I use Oracle Clob and it is very simple and there is no need to do type conversion, just assume this is a string in asp.net, and here is an example:
Dim sql = "select xmlagg (XMLElement (" user ", xmlattributes (user_id" user_id "))). GetClobVal () from users" is just an example of returning the value of clob
Dim adp as new Data.OleDb.OleDbDataAdapter (sql, MyConnectionString)
Dim dt As New DataTable
adp.Fill (dt)
Dim data As String = dt.Rows [0] [0] .toString ()
and now in the data variable you have the result
source share