Home » Infrastructure » Other Operating Systems » i have logged on, but it still report"ORA-01012: not logged on" WHY?
icon5.gif  i have logged on, but it still report"ORA-01012: not logged on" WHY? [message #198015] Fri, 13 October 2006 16:23
wanglesi
Messages: 3
Registered: October 2006
Junior Member
I use oracle with C++.When I use SELECT statement it is ok, but when use UPDATE or DELETE, it will report this,why?
part of the code is following
exec sql CONNECT :username IDENTIFIED BY :password;
sql_statement.len = strlen((char *) sql_statement.arr);

exec sql PREPARE S8 FROM :sql_statement;
exec sql execute S8;
exec sql commit work release;

Thanks a lot!
Previous Topic: problem of loading oracle8i and developer 2000(forms 6i) in pentium 4 processor machine
Next Topic: Oracle client 10g in vmWare
Goto Forum:
  


Current Time: Fri Mar 29 09:05:01 CDT 2024