ORA-01012 NOT LOGGED ON

Hi All,
Today I faced a new kind of problem. Today morning I had load testing of our application(JDE APPLICATION) when I reached office and monitor ORACLE PROCESS for that database it shown me 604 where as I defined the processes=600... I am using 10.2.0.4 and OS -> HP-UX...
$ ps -ef|grep -i "<DBNAME>|wc -l is the command I used to check the number of OS Oracle process.
So I immediately tried to log in via listener and as expected it was giving error regarding TNS could not resolved service name bla bla bla...
Then I saw the listener process was in a blocked state :-(
I thought of killing some inactive sessions by connected as sysdba..
SO I wrote export ORACLE_SID=<DBNAME>
sqlplus / as sysdba
shown me connected...
but when I issued
show parameter db_name
then it gave me
SQL> ORA-01012 not connected...
previously I have seen such overflowing of Oracle processes But then for sysdba login never thrown me this error...
I asked my application team to stop the services so that I can kill some oracle processes from OS level...
But I am not sure what to do with this kind of situation if that too happened in my PRODUCTION DB.. :-(
Please suggest.....
Please let me know if you need any other information regarding this...
Thank you..

1 lsnrctl stop
2 kill a few sessions
3 logon as / AS SYSDBA
4 SELECT USERNAME, MACHINE , COUNT(*) FROM V$SESSION GROUP BY USERNAME, MACHINE;
thank you for your reply...
after stopping I tried to log in same error I got.... after stopping how can I kill few sessions when I don't get a chance to log in as sysdba ? :-(
are talking kill few session from OS??
thank you..

Similar Messages

  • THE DATABASE CONNECTION IS LOST :;; WIERD  ORA-01012 NOT LOGGED ON ERROR

    ERROR: ORA-01012 NOT LOGGED ON ERROR
    I AM USING A JAVA SWING INTERFACE (JDK 1.1.8), WHICH USES JNI TO CALL C PROGRAMS WHICH IN TURN CONNECTS TO THE DATABASE, ORACLE 8.1.6.
    A DATABASE CONNECTION IS ESTABLISED IN THE MAIN CLASS BY CALLING A FUNCTION FROM THE CONSTRUCTOR.
    FOR ALL OTHER FUNCTION CALLS WHICH ARE MADE FROM WITHIN THIS CONSTRUCTOR, THE CONNECTION STAYS.
    BUT AFTER THE CONTRUCTOR CALL IS COMPLETE, DATABASE CONNECTION IS STRANGELY LOST. THUS ALL OTHER FUNCTION CALLS FAIL BECAUSE OF CONNECTION ISSUES GIVING ORA-01012. THOUGH IF I CHECK UP IN THE DATABASE, THE CONNECTION DOES FIND AN ENTRY.
    SO IT APPEARS THAT SOMEHOW THE JAVA INTERFACE LOOSES TRACK OF CONNECTION. BUT STRANGELY ALL THE FUNCTIONS WORK IF CALLED FROM THE CONSTRUCTOR......... BUT THATS NOT THE IDEA.
    PLEASE HELP, THIS PROBLEM IS BUGGING ME FOR WEEKS NOW.
    THANKS
    AMIT

    apologise for the caps lock.
    i am working on a previous system with java swing front end which alread uses jni, and connects to database using pro *c.
    My problem is that the connection is lost as soon as the constructor of the main class is run, giving an
    ORA-1012 NOT LOGGED ON ERROR.
    But if i place the same calls in the contructor all the database call work.
    It somehow appears that the java interface looses the connection context. Though the session does find entry in the oracle dynamic tables as long as i dont close the front end main window, thereby meaning that its the jave interface which looses the context.
    part of the code of the main class eiquser.
    //constructor
    public EiqUser() {
         super();
         initMRI();
    private void initMRI() {
         try {
              /* initialize geoManager environment */
              int rccc = new EiqCfuncs().eiqInitEnv();
    //eiqinitenv is a c function which connects to database using pro *C
              EiqCfuncs cfuncs = new EiqCfuncs();
              //EiqCfuncs has the prototypes of c functions used bye the java interface
              this.ivjFileMenu.setText(cfuncs.eiqGetText(resNum.getTEXT_FILE_MENU())); // sets the menu name
    and so on.........
    public void eiqUser_WindowClosed(java.awt.event.WindowEvent windowEvent) {
         new EiqCfuncs().eiqTermEnv(); // gives ora-1012 error
    //eiqtermenv is supposed to disconnect from data base, but returns an ora-1012 not logged on erro
         return;
    //eiqtermenv closes the connection with the data base. But fails in this case. if i place the same call ( eiqtermenv) in the initMRI function or the contructor it succeeds.
    Plus if i dont use the java interace and use a c stub for executing the same sequence of functions, then i dont face any problems.
    the proc calls exectuted ultimately by...
    :::eiqinitenv
    exec sql connect using :sqlid identified by sqlpw; // succeeds giving sqlerr.sqlcode=0;
    ::::eiqterm env
    exec sql commit work; //fails giving 0ra-1012 error
    exec sql rollback work;
    Why is the java interface loosing track of the connection once done with the constructor of the main class?? The session still finds an entry in the oracle dynamic tables.
    Please help
    Thx
    Amit

  • ERROR at line 1:ORA-01012: not logged on

    Hi ,i installed OID and the owner of the binaries and database(repository ) is Oracle and then i cahnged the permissions to 775 and now when i am trying to logon to a db(locally) using a different user x who is member of DBA group its saying not logged on .Is something wrong with permissions?
    env|grep ORA
    ORACLE_SID=oidtest
    PS1=[${ME}:${UNAME}:${ORACLE_SID}] ${PWD} >
    ORACLE_HOME=/amoidts1/OID
    [amoidts1:panther:oidtest] /home/amoidts1 > sqlplus
    SQL*Plus: Release 10.1.0.5.0 - Production on Wed Nov 21 19:24:37 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter user-name: / as sysdba
    Connected.
    SQL> select * from v$database;
    select * from v$database
    ERROR at line 1:
    ORA-01012: not logged on

    What oracle version?
    Probably there is not enough OS resources.
    *Process J000 died, kkjcre1p: unable to spawn jobq slave process [ID 833613.1]*

  • Getting Error ORA-01012: not logged on while connecting as sys

    We have just upgraded from Oracle 8.1.7 to Oracle 9.2.0.5. Currently we have 2 databases in oracle 9i - db2 and scen. scen has been newly upgraded to Oracle 9i.
    When I set the ORACLE_SID to scen (as per entry in oratab), and connect to sqlplus using sys / as sysdba, it connects to an idle instance. and displays the error message ORA-01012: not logged on. I do not encounter this when I connect to the other database db2. There should be some settings which have been missed out.
    Could anybody help me out with this....

    I managed to get the settings corrected.Thanks anyway....

  • Oracle Instance shows connected,Yet am ORA-01012: not logged on

    Hi experts,
    Please help in log in to my database, which unfortunately was happening an hour before, but now it is not working
    In between I only did a change in some permission stuff for my base directory, but later brought it back to original permissions.
    Still it is haunting me..
    I have set up my SID/HOME/PATH perfectly, tried to check processes at OS level, they are less, still nothing is happening though database is up and running.
    I can see it at OS level and through ALert log..
    ==================
    oracle@dap-csw-ora01 /home/oracle > ps -ef|grep pmon
    oracle 3145946 1 0 18 feb - 0:44 asm_pmon_+ASM1
    oracle 7995430 1 0 18 feb - 0:50 ora_pmon_adobe_2
    oracle 13828212 11141232 0 14:59:09 pts/0 0:00 grep pmon
    oracle 7471386 1 0 18 feb - 0:57 ora_pmon_fxss_1
    oracle@dap-csw-ora01 /home/oracle > sqlplus
    SQL*Plus: Release 11.2.0.3.0 Production on Thu Feb 21 14:59:12 2013
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    Enter user-name: /as sysdba
    Connected.
    SQL> show user
    USER is "SYS"
    SQL> select instance_name,status from v$Instance;
    select instance_name,status from v$Instance
    ERROR at line 1:
    ORA-01012: not logged on
    Process ID: 0
    Session ID: 0 Serial number: 0

    CKPT wrote:
    Now I understood,..it is not a problem with permission something else is making this mess..though unknown..
    I bounced one of the database after taking permission from apps team, Now it works perfect...no issue whatsoever..
    But I want to know the reason..I dont want to face it any more...Whenever oracle installs[OUI], It knows well what the permissions to be assigned and what needed.
    You should not disturb them, What are the users, groups, executable, read, write permissions earlier and after changes and now?
    And i interestingly wanted to know why you wanted to test such things on production. Its like playing with fire so be cautious or else it costs a lot :)Basha,
    I don't think that there was any other way for the OP to solve the error. Either he could wait (which doesn't help normally in this error) or had to bounce the db, which he did. Also, with permission he meant, telling to the App team and than going for a bounce. I can't a mentioning of changing permissions anywhere .
    Aman....

  • Error: ORA-01012: not logged on

    Hi all,
    i have a program to update 2 tables and will commit every transaction for each table. firstly, my program will commit transaction in Table A then once it's done, it will commit Table B and loop again(both table) until all transactions finish.But at the end of the process, i get the error msg:
    Error: ORA-01012: not logged on
    I suspected this error because of COMMIT issue in my program.
    Kindly need someone to assist me.
    Here i attached my code for your reference.
    EXEC SQL DECLARE fs_cursor CURSOR FOR SELECT fs.FILE_ID FROM FILE_STATUS fs
    where fs.JOB_ID = 'brm_pymntd01l' and fs.status = 'N'
    FOR UPDATE OF fs.STATUS;
    EXEC SQL OPEN fs_cursor;
    EXEC SQL WHENEVER NOT FOUND DO break;
    for (;;)
    rec_ctr = 0;
    /** Reset the sqlcode **/
    sqlca.sqlcode=0;
    EXEC SQL FETCH fs_cursor INTO :FILEID;
    EXEC SQL DECLARE ft_cursor CURSOR FOR SELECT FT.RECORD_ID FROM FILE_DETAIL FT WHERE FT.STATUS = 'N' AND FT.FILE_ID = :FILEID;
              EXEC SQL OPEN ft_cursor;
    EXEC SQL WHENEVER NOT FOUND DO break;           
    if ( sqlca.sqlcode == 0)
    for (;;)
                   EXEC SQL FETCH ft_cursor INTO :RECORD_ID;
    EXEC SQL DECLARE fd_cursor ...
    FROM FILE_DETAIL fd where fd.RECORD_ID = :RECORD_ID and fd.file_id = :FILEID FOR UPDATE OF fd.STATUS;
    EXEC SQL OPEN fd_cursor;
    /** Reset the sqlcode **/
    sqlca.sqlcode=0;
    EXEC SQL FETCH fd_cursor INTO :COL1, :COL2, :COL3, :COL4, :COL5, :COL6, :COL7, :COL8, :COL9,
    :COL10, :COL11, :COL13, :COL14, :COL15,
    :COL16, :COL19, :COL20, :COL21, :COL22, :COL24, :COL25, :COL26, :COL27, :STATUS;
    if (validate_record(dbschema,logfp,&ebuf))
    trim_spaces();
    process_flag = process(ctxp, database, &ebuf, logfp, dbschema);
    time(&status_upd_date);
    strcpy(current_time, ctime(&status_upd_date));
    if(process_flag == PROCESS_SUCCESS)
    if (updateChargeEvent == 1) {
    PIN_ERR_LOG_MSG(PIN_ERR_LEVEL_DEBUG, "*******Update Charge Event\0");
    ret = update_charge_event(ctxp, database, &ebuf, ACCOUNT_NO, PAYMENT_DATE);
    if(ret != 1)
    strcpy(NEW_STATUS, "P");
    sprintf(msg,"Transaction [PUKAL update status] error. Please check cm.pinlog.");
    strcpy(REC_ERROR_CODE, ERR_GET_UPD_PUKAL_EVENT);
    strcpy(REC_ERROR_DESCR,msg);
    log(msg, logfp);
    log("\n",logfp);
    }else{
    strcpy(NEW_STATUS, "C");
    strcpy(NEXT_BILL_T, NEXT_BILL_DATE);
    else if (rebateSucess != 0)
    strcpy(NEW_STATUS, "P");
    sprintf(msg,"Transaction [apply_rebate] error. Please check cm.pinlog.");
    strcpy(REC_ERROR_CODE, ERR_GET_APPLY_REBATE);
    strcpy(REC_ERROR_DESCR,msg);
    log(msg, logfp);
    log("\n",logfp);
    else {
    strcpy(NEXT_BILL_T, NEXT_BILL_DATE);
    strcpy(NEW_STATUS, "C");
    EXEC SQL UPDATE FILE_DETAIL
    SET STATUS = :NEW_STATUS,
    STATUS_UPD_DATE = to_date(:current_time,'DY MON DD hh24:mi:ss YYYY'),
    COL23 = :NEXT_BILL_DATE,
    COL27 = :COLUMN_27
    WHERE RECORD_ID = :RECORD_ID;
    else
    strcpy(NEW_STATUS, "F");
    EXEC SQL UPDATE FILE_DETAIL
    SET STATUS = :NEW_STATUS,
    STATUS_UPD_DATE = to_date(:current_time,'DY MON DD hh24:mi:ss YYYY'),
    ERROR_CODE = :REC_ERROR_CODE,
    ERROR_DESC = :REC_ERROR_DESCR
    WHERE RECORD_ID = :RECORD_ID;
    ret = JOB_WARNING;
    else
    strcpy(NEW_STATUS, "F");
    EXEC SQL UPDATE FILE_DETAIL
    SET STATUS = :NEW_STATUS,
    STATUS_UPD_DATE = to_date(:current_time,'DY MON DD hh24:mi:ss YYYY'),
    ERROR_CODE = :REC_ERROR_CODE,
    ERROR_DESC = :REC_ERROR_DESCR
    WHERE RECORD_ID = :RECORD_ID;
    ret = JOB_WARNING;
    else{   
    PIN_ERR_LOG_MSG(PIN_ERR_LEVEL_DEBUG, "Error running query");
    printf("\nError: %.70s \n",sqlca.sqlerrm.sqlerrmc);
    EXEC SQL CLOSE fd_cursor;
         EXEC SQL COMMIT;
         rec_ctr ++;
         EXEC SQL CLOSE ft_cursor;
    time(&status_upd_date);
    strcpy(current_time, ctime(&status_upd_date));
    if (rec_ctr > 0)
    /* Check if all records had failed, one record had failed
    or everything is successfully processed. Then update
    file_status table. */
    int ret_status;
    ret_status = updateFileStatus(dbschema, FILEID, logfp);
    if (ret_status == ALL_REC_FAILED)
    strcpy(NEW_STATUS, "F");
    EXEC SQL UPDATE FILE_STATUS SET STATUS = :NEW_STATUS,
    STATUS_UPD_DATE = to_date(:current_time,'DY MON DD hh24:mi:ss YYYY')
    WHERE CURRENT OF fs_cursor;
    else if (ret_status == ONE_REC_FAILED)
    strcpy(NEW_STATUS, "P");
    EXEC SQL UPDATE FILE_STATUS SET STATUS = :NEW_STATUS,
    STATUS_UPD_DATE = to_date(:current_time,'DY MON DD hh24:mi:ss YYYY')
    WHERE CURRENT OF fs_cursor;
    else if (ret_status == ALL_SUCCESS)
    strcpy(NEW_STATUS, "C");
    EXEC SQL UPDATE FILE_STATUS SET STATUS = :NEW_STATUS,
    STATUS_UPD_DATE = to_date(:current_time,'DY MON DD hh24:mi:ss YYYY')
    WHERE CURRENT OF fs_cursor;
    /* Else do nothing error handling is done within
    * the function. */
    else{}
    else{
    /*If its an empty file, update file_status to 'C'
    so that the program will no longer fetch this record
    on the next run. */
    strcpy(NEW_STATUS, "C");
    EXEC SQL UPDATE FILE_STATUS SET STATUS = :NEW_STATUS,
    STATUS_UPD_DATE = to_date(:current_time,'DY MON DD hh24:mi:ss YYYY')
    WHERE CURRENT OF fs_cursor;
         EXEC SQL COMMIT WORK RELEASE;
    //process by not update by per transaction at staging
         EXEC SQL CLOSE fs_cursor;
    if(sqlca.sqlcode == 0)
    ret = JOB_SUCCESS;
    else
    EXEC SQL ROLLBACK WORK RELEASE;
    Thank a lots!

    what data did not get COMMITted?

  • ORA-01012: not logged on error while Moving data file with BrTools

    Hi,
        I'm trying to move a data file to another windows drive with BrTools.
    It fails before it actually starts to move the file. The error it shows is:
    ORA-01012: not logged on.
    Thanks,
    Anil.

    Hi,
    BRSPACE  has a command option -u to specify the Database user and password. How ever BRSPACE connects to the database as SYSDBA, you do not have to specify the user and password if the operating system user belongs to the dba group.SO check if the user is falling in DBA group with proper authorizations.
    PLease reward points for useful answers.
    Regards,
    Phani

  • ORA-01012 not logged (critical).

    Hi Gurus,
    My database is running with spfile, And i chaged processes parameter to 20(before that its 150).
    After i reboot my database with srvctl cmd, successfully its restarted,
    Then i can connect to the database. I given the below cmd getting error...
    SQL> sho parameter db_name
    ORA-01012: not logged on
    Could any one tell me solution??
    Thanks in advance.

    can you please mention your OS, db version?
    Did you check the Oracle services? Are those running fine. Check the alert log if the database is up OPEN..

  • 8i: cannot create db. svrmgrl ORA-01012 not connected.

    Hi,
    running redhat 6.0, glibc2.1.1-6, kernel 2.2.5-15, egcs-1.1.2-12,
    on my PII400 I tried to install 8i. After some problems with the
    installer (you'd better not use defaults) and dbassist I was
    ready to create the db. I let dbassist save the configuration to
    a set of scripts. when I started the initial script
    (sql<sid>.sh), I got a huge list of errors due to the fact , that
    the server manager was not able to connect to the database. But
    the processes were running. After having stopped the db processes
    I tried to follow the creation procedure step by step:
    export ORACLE_SID=db01
    export LD_LIBRARY_PATH=...
    svrmgrl
    connect / as sysdba
    startup pfile=/ora/0/app/oracle/admin/db01/pfile/initdb01.ora
    And at this point the processes started (ps aux |grep ora_) but I
    was kicked out of the server manager immediately, which threw
    an error:
    ORA-01012: Not connected
    I tried to log in again to start the creation of files,
    tablespaces and db objects.
    svrmgrl
    connect / as sysdba
    Connected. ( <- look at this ... )
    create database
    ORA-01012 Not connected. ( <- ... and this! )
    I really don't know where to search for a solution.
    Rolf
    null

    What does your alert log say?
    Are there any trace files in bdump or udump?
    How much RAM do you have?
    I originally had 64MB in my Dell Inspirion and I got all
    sorts of weird error messages just trying to startup a tiny
    database.
    I upped it to 128MB and things run fine.
    Create your own database create scripts. You can control the
    process better that way.
    Be sure to "set echo on" and spool the create process to a log
    file to see what is happening.
    Because the create process is often able to create a few files,
    like the control files, before it will fail (depending on what
    is wrong, of course).
    Then your next create attempt will fail because those files exist
    and it will disconnect you because a disconnect is often found at
    the end of the create scripts (I always delete the disconnects
    too).
    Also make sure any of the background processes are shutdown
    before running the create scripts again (pmon,smon,etc).
    Just connect internal and do shutdown.
    Rolf Becker (guest) wrote:
    : Hi,
    : running redhat 6.0, glibc2.1.1-6, kernel 2.2.5-15,
    egcs-1.1.2-12,
    : on my PII400 I tried to install 8i. After some problems with
    the
    : installer (you'd better not use defaults) and dbassist I was
    : ready to create the db. I let dbassist save the configuration
    to
    : a set of scripts. when I started the initial script
    : (sql<sid>.sh), I got a huge list of errors due to the fact ,
    that
    : the server manager was not able to connect to the database. But
    : the processes were running. After having stopped the db
    processes
    : I tried to follow the creation procedure step by step:
    : export ORACLE_SID=db01
    : export LD_LIBRARY_PATH=...
    : svrmgrl
    : connect / as sysdba
    : startup pfile=/ora/0/app/oracle/admin/db01/pfile/initdb01.ora
    : And at this point the processes started (ps aux |grep ora_) but
    I
    : was kicked out of the server manager immediately, which threw
    : an error:
    : ORA-01012: Not connected
    : I tried to log in again to start the creation of files,
    : tablespaces and db objects.
    : svrmgrl
    : connect / as sysdba
    : Connected. ( <- look at this ... )
    : create database
    : ORA-01012 Not connected. ( <- ... and this! )
    : I really don't know where to search for a solution.
    : Rolf
    null

  • Pro*C and not logged in error

    Hi,
    i tried rewriting the sample1.pc code so i could test it on a
    client machine connecting to a DB host.
    this is what CONNECT looks like:
    EXEC SQL CONNECT :username IDENTIFIED BY :password
    AT :hostname USING :dbsid;
    then when i run:
    [oracle@xonos proc]$ ./sample1
    Connected to ORACLE as user: SCOTT
    Enter employee number (0 to quit): 7900
    ORACLE error--
    ORA-01012: not logged on
    i can run:
    sqlplus scott/tiger@obiwan (obiwan is my DB server name)
    it works fine.
    any info would be most helpful.
    thanks ahead of time,
    -- adam
    null

    well, i find an Pro*C book and i saw what i was doing wrong.
    the "using" is the host name, but i still do not know what "at"
    is for, but i got more program working....
    Adam (guest) wrote:
    : Hi,
    : i tried rewriting the sample1.pc code so i could test it on a
    : client machine connecting to a DB host.
    : this is what CONNECT looks like:
    : EXEC SQL CONNECT :username IDENTIFIED BY :password
    : AT :hostname USING :dbsid;
    : then when i run:
    : [oracle@xonos proc]$ ./sample1
    : Connected to ORACLE as user: SCOTT
    : Enter employee number (0 to quit): 7900
    : ORACLE error--
    : ORA-01012: not logged on
    : i can run:
    : sqlplus scott/tiger@obiwan (obiwan is my DB server name)
    : it works fine.
    : any info would be most helpful.
    : thanks ahead of time,
    : -- adam
    null

  • ORA - 01012 during the install of 8.1.5 on solaris 2.6

    Hi There,
    I am trying to install oracle 8i on Sun Solaris 2.6 system using
    OUI. During the installation and while creating the database
    using DB configuration assistant, i am getting error ora -01012
    Oracle not logged on, i have selected ignore and completed
    installation. While using SVRMGRL again it is giving ORA -01012
    Not Logged on error message . Can someone help me out.. Thanks.

    Hi all,
    I hope I am not alone in facing this problem.
    Would greatly appreciate any suggestions from you.
    Thanks,
    Raghu.

  • Server manager, not logged on

    what am i missing here??
    SVRMGR> connect internal
    Connected.
    SVRMGR> startup nomount pfile= $ORACLE_HOME/dbs/init_oldbs.ora
    SVRMGR> CREATE DATABASE "oldbs"
    maxdatafiles 254
    maxinstances 8
    maxlogfiles 32
    character set US7ASCII
    national character set US7ASCII
    DATAFILE '/ORACLE_SYSTEM/system01.dbf' SIZE 175M
    logfile '/ORACLE_SYSTEM/redo01.log' SIZE 500K,
    '/ORACLE_SYSTEM/redo02.log' SIZE 500K; REATE DATABASE "oldbs"
    ORA-01012: not logged on
    SVRMGR> shutdown
    ORA-01012: not logged on
    SVRMGR>

    Check my help page, it is listed there:
    http://homepages.tig.com.au/~jmsalvo/linux/oracle8i.html
    You either have to:
    * Fix or unset NLS_LANG, ... OR ...
    * Create dbusingi dedicated server processes

  • ORA-01012 Problem while Installing Delphi Application.

    Hi!
    I have developed a database application in Delphi 6 that uses BDE to connect to Oracle 9i.
    I have created the setup of my application with Installshield devstudio 9. I have also scanned and added all the dependencies using InstallShield's Dynamic Dependency Scanner.
    Now when I run my application on a Machine which don't have Delphi, Oracle etc, I get the following Error.
    ORA-01012 "Not Logged on".
    I have checked its detail on web but couldn't found a proper solution.
    Anybody there to give me a helping hand.
    Regards,
    Ahmad Jalil Qarshi

    This happens when you try to run a query or DML before you connect your database object to the database.
    Please note that even Borland does not recommend using the BDE. We are using Direct Oracle Access from http://www.allroundautomations.com/. It is faster and more reliable.

  • ORA-01012

    WHEN I TRY TO CREATE A DATABASE ORACLE VERSION 8.0.5.0.0, ON WINDOWS 2000 ADVANCED SERVER, I GET CONNECTED ON TO SVRMGR30 BY LOGGING ON AS INTERNAL/ADMIN. IT SHOWS ME THAT I AM CONNECTED.
    BUT WHEN I GIVE THE STARTUP NOMOUNT PFILE=D:\ORANT\DATABASE\INITCDC.ORA. IT GIVES ME AN ERROR ORA-01012. NOT LOGGED ON.
    COULD SOMEBODY HELP ME OUT ON THIS ????

    Please, specify the OS and DB versions you are working with.
    This error means:
    ORA-01012:     not logged on
    Cause:     A host language program issued an Oracle call, other than OLON or OLOGON, without being logged on to Oracle. This can occur when a user process attempts to access the database after the instance it is connected to terminates, forcing the process to disconnect.
    Action:     Log on to Oracle, by calling OLON or OLOGON, before issuing any Oracle calls. When the instance has been restarted, retry the action.
    When originally creating a database this error is raised because the DBCA was unable to authenticate the user. DBCA uses the connect / as sysdba which means the user must be authenticated by the OS. In a windows platform it means the user must belong to the ORA_DBA group, and in a unix like system, it means user must belong to the os authenticated group dba (or the one defined at install time).
    Ensure you are properly connected with the same user who performed oracle installation and retry operation.
    ~ Madrid.

  • ProC from Form45 give ORA-01012

    This should be easy, but I'm at my wits-end. I have a Form45 app against a 806 db. After connecting to the db, I call a ProC function via ora_ffi. The ProC was compiled with Proc80 and link with sqllib80.lib just like I've always done. But my first query in the ProC produces "ora-01012 not logged on". Can anyone help?
    null

    here is the test program i working on.
    the output follows.
    #include <stdio.h>
    #include <stdlib.h>
    #include <pthread.h>
    #include <string.h>
    EXEC SQL INCLUDE sqlca;
    EXEC SQL INCLUDE sqlda;
    int main(void)
    EXEC SQL begin declare section;
    char userid[10] = "blah",
    password[10] = "blah",
    db_string[10] = "blah";
    long customerid;
    char client[51];
    char dateofsignon[10];
    int salesrep;
    char reference[51];
    int status;
    EXEC SQL end declare section;
    EXEC SQL DECLARE DB_NAME DATABASE;
    EXEC SQL connect :userid identified by :password
    AT DB_NAME USING :db_string;
    if (sqlca.sqlcode == 0)
    printf("connected\n");
    else
    printf("no go\n");
    sqlca.sqlerrm.sqlerrmc[sqlca.sqlerrm.sqlerrml] = '\0';
    printf("%s\n", sqlca.sqlerrm.sqlerrmc);
    EXEC SQL select client
    into :client
    from blah_clients
    where customerid = 1;
    if (sqlca.sqlcode == 0)
    printf("Name: %s\n", client);
    else
    printf("error\n");
    sqlca.sqlerrm.sqlerrmc[sqlca.sqlerrm.sqlerrml] = '\0';
    printf("%s\n", sqlca.sqlerrm.sqlerrmc);
    return 0;
    -output-
    connected
    error
    ORA-01012: not logged on
    null

Maybe you are looking for

  • Updated to 10.6.6 - Airport No Longer Works

    I have a Black Macbook from about 2-3 years ago. It's been great throughout it's lifespan so far with hardly any errors and the errors I have encountered were always minimal and had quick fixes. That was until this recent update to 10.6.6. Once I upd

  • Exception in thread "main" java.sql.SQLException: ORA-00604

    Just tried to compile the code "Example 2-1 Determing the JDBC Driver Version" from "2day plus Java Developoer Guide".. import java.sql.*; import oracle.jdbc.*; import oracle.jdbc.pool.OracleDataSource; public class JDBCVersion public static void mai

  • Sending iphone Pictures in texts which are too big for some Smartphones

    When sending pictures in texts there used to be an option of 3 different size formats. Small/Medium/Large.  There is only one available now which is too big on some smartphones. The HTC Wildfire has a restriction of 300kb and a text with picture I tr

  • IOS 6 NewiPad and dropping WiFi

    New iPad  WiFi connection dead immediately after iOS 6 upgrade: WiFi can be restored by toggling flight mode off then on, and it will stay active until I go the App Store or try using maps at which time the WiFi stops working for all applications. To

  • MacBook Pro System CPU Spikes When Unplugged

    Upgraded to Mavericks a few days ago and,whenever I unplug my MacBook Pro 13" (Early 2011 - 2.3GHz Intel Core i5 - 16GB RAM 1333MHz) and run just on the battery, my system CPU usage goes through the roof which results in my Mac running/responding ver