Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Question: ORA-01012: not logged on after successful (?) login
I'm trying to write simple program using precompilators.
Please help. After connecting do database whatever I try to do (OPEN
CURSOR, SELECT...), I got
ORACLE error-- ORA-01012: not logged on
I did it 3 lines before? What am I doing wrong?
EXEC SQL CONNECT :username IDENTIFIED BY :password AT :uuser USING :bazadanych;
printf("\nConnected to ORACLE as user: %s\n", username);
EXEC SQL DECLARE salespeople CURSOR FOR
SELECT title FROM articles;
/* Open the cursor. */
EXEC SQL OPEN salespeople USING :bazadanych;
!!!!!!!!!!!!!!!!!!!!!!
Thanks in advance.
Tomasz Sidorkiewicz Received on Sat Aug 15 1998 - 14:39:57 CDT
![]() |
![]() |