Home » Developer & Programmer » Precompilers, OCI & OCCI » ORA-21301: not initialized in object mode
ORA-21301: not initialized in object mode [message #94282] Wed, 30 June 2004 00:07 Go to next message
Sami Zeitoun
Messages: 8
Registered: June 2004
Junior Member
Hi,
I get the following error "ORA-21301: not initialized in object mode" when I call OCIDateCheck after fetching a column with Date datatype!!
Can anyone tell me what does this mean and why am I getting it??
 
Thanks,
Sami.
Re: ORA-21301: not initialized in object mode [message #94284 is a reply to message #94282] Wed, 30 June 2004 01:18 Go to previous messageGo to next message
Nicholas Gray
Messages: 13
Registered: November 2000
Junior Member
OCIDateCheck requires an object of type OCIDate as second parameter.
OCIDate is an object-related datatype.
Thus you probably have to do what the error message tells you to.
Make sure the mode parameter on your OCIEnvCreate, OCIInitialize or OCIEnvNlsCreate includes OCI_OBJECT.
Re: ORA-21301: not initialized in object mode [message #94286 is a reply to message #94284] Wed, 30 June 2004 04:39 Go to previous message
Sami Zeitoun
Messages: 8
Registered: June 2004
Junior Member
That indeed was the problem... at OCIInitialize I used OCI_DEFAULT as the mode instead of OCI_OBJECT!!

Thanks for the info.
Sami.
Previous Topic: Pro*C changes for Oracle upgrade to 9i
Next Topic: Declare Cursor error in pro*c
Goto Forum:
  


Current Time: Wed Sep 26 06:07:32 CDT 2018