ODAC: "OCI function is not linked" error while using NET connections and attempting to use TOraXML
Posted: Fri 30 Mar 2007 19:10
I have the following code which is Borland C++ Builder 5.0. The ODAC version is 5.70.0.30:
The line:
tries to run the query and put the XMLType to the database. It is where the error "OCI function is not linked" is popping up. I thought XMLType columns were supported with NET. I can use BLOBs fine this way, but I can not get XMLType to work at all while using NET. They work fine while using OCI, but because of some deployment issues I have a requirement to use both TOraXML and NET connections and can not use OCI. Any help is appreciated. We would be willing to get funding for the fix if we can have a priority put on this as we have purchased multiple versions of ODAC for different bug fixes over the past couple years.
Thanks,
Wade
Code: Select all
void updateXMLTypeColumn(Ora::TOraSession* os, const AnsiString keys[], const AnsiString keyValues[], int keyLength, const AnsiString& xmlColumnName, const AnsiString& tableName, const AnsiString& fileName) {
TOraQuery* oq = 0;
TFileStream* fs = 0;
AnsiString sql = "UPDATE "+tableName+" SET "+xmlColumnName+" = :XVAL ";
try{
if(keyLength>0){
for(int i = 0; i Session = os;
oq->SQL->Add(sql);
oq->AutoCommit = true;
TOraXML* xmlo = oq->Params->FindParam("XVAL")->AsXML;
xmlo->OCISvcCtx = os->OCISvcCtx;
xmlo->LoadFromStream(fs);
oq->Execute();
}
__finally{
if(fs){delete fs;}
if(oq){
if(oq->Active){
oq->Close();
}
delete oq;
}
}
}//end updateXMLTypeColumn
Code: Select all
oq->Execute();tries to run the query and put the XMLType to the database. It is where the error "OCI function is not linked" is popping up. I thought XMLType columns were supported with NET. I can use BLOBs fine this way, but I can not get XMLType to work at all while using NET. They work fine while using OCI, but because of some deployment issues I have a requirement to use both TOraXML and NET connections and can not use OCI. Any help is appreciated. We would be willing to get funding for the fix if we can have a priority put on this as we have purchased multiple versions of ODAC for different bug fixes over the past couple years.
Thanks,
Wade