Oracle error 1012 ("Not Logged On") & AUTOTRAN=Y

Hi.
I have a problem trying to access an Oracle 8.0.6
database from a 6.5 Tuxedo server.
Both TMS and server execute tpopen correctly
All services are declared as AUTOTRAN
Everything seems to be OK according to the logsgenerated by Oracle XA libraries
However, I always get the Oracle error 1012 ("Not Logged On")
when executing SQL statements from my pro*C server.
I just can't figure out why this error occurs.
I also tried to explicitly open a transaction from the client,
but the result is exactly the same (tpbegin is successfull,
however).
Could someone help me to make this work ?
Thanks.

Solved by removing "DB=<db>" from my OPENINFO string, as far as this parameter
should only be used when using proc*C "EXEC SQL ... AT <db>" statements.
"Mathieu Chauvin" <[email protected]> wrote:
>
Hi.
I have a problem trying to access an Oracle 8.0.6
database from a 6.5 Tuxedo server.
Both TMS and server execute tpopen correctly
All services are declared as AUTOTRAN
Everything seems to be OK according to the logsgenerated by Oracle XA libraries
However, I always get the Oracle error 1012 ("Not Logged On")
when executing SQL statements from my pro*C server.
I just can't figure out why this error occurs.
I also tried to explicitly open a transaction from the client,
but the result is exactly the same (tpbegin is successfull,
however).
Could someone help me to make this work ?
Thanks.

Similar Messages

  • Sqlcode 1012: Not Logged On

    I'm getting the run-time error "sqlcode 1012: not logged on" through a pro*c program. Here is the line of code in pro*c that causes the error:
    EXEC SQL EXECUTE GET_INFO using :orderid;
    Is anyone familiar with this error? thanks!
    null

    Solved by removing "DB=<db>" from my OPENINFO string, as far as this parameter
    should only be used when using proc*C "EXEC SQL ... AT <db>" statements.
    "Mathieu Chauvin" <[email protected]> wrote:
    >
    Hi.
    I have a problem trying to access an Oracle 8.0.6
    database from a 6.5 Tuxedo server.
    Both TMS and server execute tpopen correctly
    All services are declared as AUTOTRAN
    Everything seems to be OK according to the logsgenerated by Oracle XA libraries
    However, I always get the Oracle error 1012 ("Not Logged On")
    when executing SQL statements from my pro*C server.
    I just can't figure out why this error occurs.
    I also tried to explicitly open a transaction from the client,
    but the result is exactly the same (tpbegin is successfull,
    however).
    Could someone help me to make this work ?
    Thanks.

  • ORACLE error 1012 in FDPCLS when running payroll processes

    Hi, All -
    **Oracle Database 10.2.0.5.0 on RHEL5 (Single Node)**
    **Oracle ERP Apps 11.5.10.2 on RHEL5 (Single Node)**
    I have recently cloned my existing DEV environment from PROD. The database is now running on a NEW server where as the APPS server is still the same.
    I found *Metalink node [ID 277148.1]* on this issue and it suggests to review the tnsnames settings. I have already verified that the tnsnames.ora file contains the right information and reflects the correct db server name.
    Please let me know where else to check for an old database server entry that I should correct ... Thanks!
    **ORACLE error 1012 in FDPCLS**
    **Cause: FDPCLS failed due to ORA-01012: not logged on**
    *The SQL statement being executed at the time of the error was: and was executed from the file.*
    */erp1/appsvr/erpappl/pay/11.5.0/bin/PYUGEN*
    *Program exited with status -l*

    Please bounce the database and the database listener and try then.
    Can you find any errors in the database log file?
    */erp1/appsvr/erpappl/pay/11.5.0/bin/PYUGEN*Relink this executable file via adadmin or manually and try again.
    Thanks,
    Hussein

  • FTP Error (The remote server returned an error: (530) Not logged in.)

    Hi,
    I am unable to create a folder on FTP location via c# code. 
    I am getting the following error message:
    The remote server returned an error: (530) Not logged in.
    I have attached my code for your reference.
    FtpWebRequest myFtpWebRequest = null;
    myFtpWebRequest = (FtpWebRequest)FtpWebRequest.Create(new Uri(ftpfullpath + "/" + dirName));
    myFtpWebRequest.Method = WebRequestMethods.Ftp.MakeDirectory;
    myFtpWebRequest.UseBinary = true;
    myFtpWebRequest.Credentials = new NetworkCredential(strUserNameFTP, strPasswordFTP);
    FtpWebResponse response = (FtpWebResponse)myFtpWebRequest.GetResponse();
    response.Close();
    Note : value of ftpfullpath is "ftp://ftpxxxtest.com:21"

    Hi,
    Still I am getting the error:
    Exception 1 : The remote server returned an error: (502) Command not implemented
    I am getting this error message when I tried to find Whether the folder exist on FTP location. I will attached the code for your review.
    try
      string ftpServerIP = "ftp://ftptestcon.sathiyajeba.com:21";
      string strUserNameFTP = "dev_backup";
      string strPasswordFTP = "india@2090";
      string ftpfullpath = ftpServerIP ;
      var request = (FtpWebRequest)WebRequest.Create(ftpfullpath + "/" + directory);
      request.Credentials = new NetworkCredential(strUserNameFTP.Normalize(),   strPasswordFTP.Normalize());
      request.EnableSsl = true;
      request.Method = WebRequestMethods.Ftp.GetDateTimestamp;
      FtpWebResponse response = (FtpWebResponse)request.GetResponse();
      return true;
    catch (WebException ex)
      WriteLog("Error on FtpDirectoryExists : " + ex.Message.ToString());
      FtpWebResponse response = (FtpWebResponse)ex.Response;
      if (response.StatusCode == FtpStatusCode.ActionNotTakenFileUnavailable)
        WriteLog("Error on FtpDirectoryExists : Test-1");
        return false;
      else
        WriteLog("Error on FtpDirectoryExists : Test-2");
        return false;
    Exception 2: The remote server returned an error: (530) Not logged in.
    Getting this error message when I tried to create a folder on FTP location. Attached the source code for your review.
    string ftpServerIP = "ftp://ftptestcon.sathiyajeba.com:21";
    string strUserNameFTP = "dev_backup";
    string strPasswordFTP = "india@2090";
    string ftpfullpath = strServerFTP;
    try
       FtpWebRequest myFtpWebRequest = null;
       myFtpWebRequest = (FtpWebRequest)FtpWebRequest.Create(new Uri(ftpfullpath + "/" + dirName));
       myFtpWebRequest.Method = WebRequestMethods.Ftp.MakeDirectory;
       myFtpWebRequest.UseBinary = true;
       myFtpWebRequest.Credentials = new NetworkCredential(strUserNameFTP.Normalize(), strPasswordFTP.Normalize());
      FtpWebResponse response = (FtpWebResponse)myFtpWebRequest.GetResponse();
      response.Close();
      return true;
    catch (Exception ex)
      WriteLog("Error on CreateDirectory : " + ex.Message.ToString());
      return false;
    Could you please any help me to resolve this exception?
    Thanks,
    Sathiya Jeba C

  • IMP-00017-ORACLE error 1012

    Hi,
    in 8.1.7 I want importe a table then I have this error :
    import done in WE8DEC character set and WE8DEC NCHAR character set^C
    IMP-00017: following statement failed with ORACLE error 1012:
    "CREATE TABLE "TRAILOCC" ("TO_REF" NUMBER(12, 0), "TO_ENTITY" CHAR(40), "TO_"
    "DATE" DATE, "TO_TIME" DATE, "TO_OCC" LONG) PCTFREE 10 PCTUSED 40 INITRANS "
    "1 MAXTRANS 255 NOLOGGING STORAGE(INITIAL 723025920 FREELISTS 1 FREELIST GRO"
    "UPS 1) TABLESPACE "PROD_DATA""
    Can I then create this table TRAILOCC with INITIAL 223025920 and then importe the table ?
    What should I add in imp command to importe just data since table is already created ?
    Many thanks

    hi
    cmd> imp ignore=y
    hope this helps
    Tajcheck the prod_data tablespace has enough space

  • Oracle errors in alert.log

    Hello guys,
    I have the following Oracle Release 10.2.0.1.0 server configuration:
    - Windows 2003 Server SP2
    - 3,25 GB RAM (I think that is a 4 GB but this is a windows 2003 standard edition)
    - 2 Intel Xeon Quad core
    - 3 disk partitions (C -> 40GB, 25 GB free / E -> 100 GB 85 GB free / F 300 GB -> 270 GB free)
    The PRISM instance configuration is:
    Archivelog: TRUE
    SGA Size: 584 MB
    Actual PGA Size: 40 MB
    Services running (OracleDBConsolePRISM, OracleOraDb10g_home1TNSListener, OracleServeicePRISM)
    The problem is that there are just 5 users that use this database, but there are a lot of errors in the alert.log that makes the database not available, the error messages are like this:
    Mon Feb 16 16:31:24 2009
    Errors in file e:\oracle\product\10.2.0\admin\prism\bdump\prism_j001_11416.trc:
    ORA-12012: error on auto execute of job 42567
    ORA-00376: file ORA-00376: file 3 cannot be read at this time
    ORA-01110: data file 3: 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\PRISM\SYSAUX01.DBF'
    ORA-06512: at "EXFSYS.DBMS_RLMGR_DR", line 15
    ORA-06512: at line 1
    cannot be read at this timeThe content of prism_j001_11416.trc is:
    Dump file e:\oracle\product\10.2.0\admin\prism\bdump\prism_mmon_4620.trc
    Mon Feb 16 11:07:33 2009
    ORACLE V10.2.0.1.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Windows Server 2003 Version V5.2 Service Pack 2
    CPU                 : 8 - type 586, 2 Physical Cores
    Process Affinity    : 0x00000000
    Memory (Avail/Total): Ph:1981M/3325M, Ph+PgF:3612M/5221M, VA:1278M/2047M
    Instance name: prism
    Redo thread mounted by this instance: 1
    Oracle process number: 11
    Windows thread id: 4620, image: ORACLE.EXE (MMON)
    *** SERVICE NAME:(SYS$BACKGROUND) 2009-02-16 11:07:33.480
    *** SESSION ID:(161.1) 2009-02-16 11:07:33.480
    KEWRCTLRD: OCIStmtFetch Error. ctl_dbid= 1515633963, sga_dbid= 1515633963
    KEWRCTLRD: Retcode: -1, Error Message: ORA-00376: file 3 cannot be read at this time
    ORA-01110: data file 3: 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\PRISM\SYSAUX01.DBF'
      *** SQLSTR: total-len=328, dump-len=240,
          STR={select snap_interval, retention,most_recent_snap_time, most_recent_snap_id, status_flag, most_recent_purge_time, most_recent_split_id, most_recent_split_time, mrct_snap_time_num, mrct_purge_time_num, snapint_num, retention_num, swrf_version}
    *** kewrwdbi_1: Error=13509 encountered during run_once
    keaInitAdvCache: failed, err=604
    02/16/09 11:07:33 >ERROR: exception at dbms_ha_alerts_prvt.post_instance_up308: SQLCODE -13917,ORA-13917: Posting system
    alert with reason_id 135 failed with code [5] [post_error]
    02/16/09 11:07:33 >ERROR: exception at dbms_ha_alerts_prvt.check_ha_resources637: SQLCODE -13917,ORA-13917: Posting syst
    em alert with reason_id 136 failed with code [5] [post_error]
    02/16/09 11:07:33 >parameter dump for dbms_ha_alerts_prvt.check_ha_resources
    02/16/09 11:07:33 > - local_db_unique_name (PRISM)
    02/16/09 11:07:33 > - local_db_domain (==N/A==)
    02/16/09 11:07:33 > - rows deleted (0)
    02/16/09 11:07:33 >ERROR: exception at dbms_ha_alerts_prvt.check_ha_resources637: SQLCODE -13917,ORA-13917: Posting syst
    em alert with reason_id 136 failed with code [5] [post_error]
    02/16/09 11:07:33 >parameter dump for dbms_ha_alerts_prvt.check_ha_resources
    02/16/09 11:07:33 > - local_db_unique_name (PRISM)
    02/16/09 11:07:33 > - local_db_domain (==N/A==)
    02/16/09 11:07:33 > - rows deleted (0)
    *** 2009-02-16 11:07:41.293
    ****KELR Apply Log Failed, return code 376
    *** 2009-02-16 11:08:35.294
    ****KELR Apply Log Failed, return code 376
    *** 2009-02-16 11:09:38.294
    ****KELR Apply Log Failed, return code 376
    *** 2009-02-16 11:10:41.295
    ****KELR Apply Log Failed, return code 376
    *** 2009-02-16 11:11:44.296
    ****KELR Apply Log Failed, return code 376
    *** 2009-02-16 11:12:29.328And this is an extract from listener.log file:
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-FEB-2009 11:05:44
    Copyright (c) 1991, 2005, Oracle.  All rights reserved.
    System parameter file is e:\oracle\product\10.2.0\db_1\network\admin\listener.ora
    Log messages written to e:\oracle\product\10.2.0\db_1\network\log\listener.log
    Trace information written to e:\oracle\product\10.2.0\db_1\network\trace\listener.trc
    Trace level is currently 0
    Started with pid=9212
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=akscl-mfs15.am.enterdir.com)(PORT=1521)))
    Listener completed notification to CRS on start
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    16-FEB-2009 11:07:25 * service_register * prism * 0
    16-FEB-2009 11:07:31 * service_update * prism * 0
    16-FEB-2009 11:07:34 * service_update * prism * 0
    16-FEB-2009 11:07:37 * service_update * prism * 0
    16-FEB-2009 11:07:57 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=PRISM)(CID=(PROGRAM=\\akscl-mfs15\PRISMPM\PRISMPM.EXE)(HOST=xx-W20972)(USER=CSC3157))) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.225.7)(PORT=1607)) * establish * PRISM * 0
    16-FEB-2009 11:07:58 * service_update * prism * 0
    16-FEB-2009 11:07:58 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=PRISM)(CID=(PROGRAM=\\akscl-mfs15\PRISMPM\PRISMPM.EXE)(HOST=xx-W20972)(USER=CSC3157))) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.225.7)(PORT=1608)) * establish * PRISM * 0
    16-FEB-2009 11:07:58 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=PRISM)(CID=(PROGRAM=\\akscl-mfs15\PRISMPM\PRISMPM.EXE)(HOST=xx-W20972)(USER=CSC3157))) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.225.7)(PORT=1612)) * establish * PRISM * 0
    16-FEB-2009 11:07:59 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=PRISM)(CID=(PROGRAM=\\akscl-mfs15\PRISMPM\PRISMPM.EXE)(HOST=xx-W20972)(USER=CSC3157))) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.225.7)(PORT=1613)) * establish * PRISM * 0
    16-FEB-2009 11:07:59 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=PRISM)(CID=(PROGRAM=\\akscl-mfs15\PRISMPM\PRISMPM.EXE)(HOST=xx-W20972)(USER=CSC3157))) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.225.7)(PORT=1614)) * establish * PRISM * 0
    16-FEB-2009 11:08:01 * service_update * prism * 0
    16-FEB-2009 15:05:26 * (CONNECT_DATA=(SERVICE_NAME=PRISM)(CID=(PROGRAM=C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE)(HOST=xx-W21498)(USER=csc2682))) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.227.131)(PORT=1999)) * establish * PRISM * 0
    16-FEB-2009 15:05:27 * (CONNECT_DATA=(SERVICE_NAME=PRISM)(CID=(PROGRAM=C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE)(HOST=xx-W21498)(USER=csc2682))) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.227.131)(PORT=2000)) * establish * PRISM * 0
    16-FEB-2009 17:33:26 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PRISM)) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.227.18)(PORT=2513)) * establish * PRISM * 0
    16-FEB-2009 17:33:26 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PRISM)) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.227.18)(PORT=2514)) * establish * PRISM * 0
    16-FEB-2009 17:33:27 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PRISM)) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.227.18)(PORT=2515)) * establish * PRISM * 0
    16-FEB-2009 17:33:27 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PRISM)) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.227.18)(PORT=2516)) * establish * PRISM * 0
    16-FEB-2009 17:33:27 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PRISM)) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.227.18)(PORT=2517)) * establish * PRISM * 0
    16-FEB-2009 17:33:27 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PRISM)) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.227.18)(PORT=2518)) * establish * PRISM * 0
    16-FEB-2009 17:33:27 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PRISM)) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.227.18)(PORT=2519)) * establish * PRISM * 0
    16-FEB-2009 17:33:27 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PRISM)) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.227.18)(PORT=2520)) * establish * PRISM * 0
    16-FEB-2009 17:33:27 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PRISM)) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.227.18)(PORT=2521)) * establish * PRISM * 0
    16-FEB-2009 17:33:27 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PRISM)) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.227.18)(PORT=2523)) * establish * PRISM * 0
    16-FEB-2009 17:33:27 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PRISM)) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.227.18)(PORT=2524)) * establish * PRISM * 0
    16-FEB-2009 17:33:27 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PRISM)) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.227.18)(PORT=2525)) * establish * PRISM * 0
    16-FEB-2009 17:33:27 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PRISM)) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.227.18)(PORT=2526)) * establish * PRISM * 0
    16-FEB-2009 17:33:27 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PRISM)) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.227.18)(PORT=2527)) * establish * PRISM * 0
    16-FEB-2009 17:33:27 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PRISM)) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.227.18)(PORT=2528)) * establish * PRISM * 0
    16-FEB-2009 17:33:27 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PRISM)) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.227.18)(PORT=2529)) * establish * PRISM * 0
    16-FEB-2009 17:33:27 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=PRISM)) * (ADDRESS=(PROTOCOL=tcp)(HOST=144.180.227.18)(PORT=2530)) * establish * PRISM * 0
    16-FEB-2009 17:33:29 * service_update * prism * 0Please need help to solve this issue, best regards.

    Hello guys,
    Thanks for the tips, after checking the tablespaces the results are:
    SQL> select tablespace_name,status from dba_tablespaces;
    TABLESPACE_NAME                STATUS
    SYSTEM                         ONLINE
    UNDOTBS1                       ONLINE
    SYSAUX                         ONLINE
    TEMP                           ONLINE
    USERS                          ONLINE
    PRISM                          ONLINEThe datafiles:
    SQL> select file#,name,status,enabled from v$datafile;
    FILE#         NAME                                        STATUS  ENABLED
             1     E:\ORACLE\PRODUCT\10.2.0\ORADATA\PRISM\SYSTEM01.DBF          SYSTEM  READ WRITE
             2     E:\ORACLE\PRODUCT\10.2.0\ORADATA\PRISM\UNDOTBS01.DBF          ONLINE  READ WRITE
             3     E:\ORACLE\PRODUCT\10.2.0\ORADATA\PRISM\SYSAUX01.DBF          *RECOVER* READ WRITE
             4     E:\ORACLE\PRODUCT\10.2.0\ORADATA\PRISM\USERS01.DBF          ONLINE  READ WRITE
             5     F:\ORACLE\PRISM\PRISM.ORA                         ONLINE  READ WRITESo, following the metalink guide:
    SQL> recover datafile 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\PRISM\SYSAUX01.DBF';  -->Here the system ask for the log file, I select AUTO
    SQL> alter database datafile 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\PRISM\SYSAUX01.DBF' online; Now the datafiles are all ONLINE, I will wait some time to check the database behavior after this change and back with the results and correct answer, best regards.

  • 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

  • Integrating OBIEE with EBS -   not logged in to the Oracle BI Server

    I have followed Metalink Note 552735.1 to integrate OBIEE with EBS R12. In addition I followed the forum threads such as
    OBIA 7.9.5 EBS Integration Not Logged On nQSError 43001 Authentication Fail
    on additional steps.
    After launching the url from EBS, I get the following error message:
    Not Logged In
    You are not currently logged in to the Oracle BI Server.
    If you have already logged in, your connection might have timed out, or a communications or server error may have occurred.
    My saw0log.log file is showing the following message. My BI Server is up and I'm not sure where I need to change the localhost in my config files.
    Odbc driver returned an error (SQLDriverConnectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred.
    [nQSError: 12008] Unable to connect to port 9703 on machine LOCALHOST.
    [nQSError: 12010] Communication error connecting to remote end point: address = LOCALHOST; port = 9703.
    [nQSError: 12002] Socket communication error at call=: (Number=-1) Error -1 occurred. (HY000)
    Type: Error
    Severity: 42
    Time: Mon Sep 21 15:28:12 2009
    File: project/webconnect/connection.cpp Line: 294
    Properties: ThreadID-3599
    Location:
         saw.connectionPool.getConnection
         saw.subsystem.security.checkAuthenticationImpl
         saw.threadPool
         saw.threads
    Error connecting to the Oracle BI Server: Could not connect to the Oracle BI Server because it is not running or is inaccessible. Please contact your system administrator.
    Odbc driver returned an error (SQLDriverConnectW).
    Type: Error
    Severity: 42
    Time: Mon Sep 21 15:29:07 2009
    File: project/webxml/saxreader.cpp Line: 559
    Properties: ThreadID-1286;HttpCommand-Dashboard;Proxy-;RemoteIP-152.140.65.68;User-;Impersonator-
    Location:
         saw.httpserver.request
         saw.rpc.server.responder
         saw.rpc.server
         saw.rpc.server.handleConnection
         saw.rpc.server.dispatch
         saw.threadPool
         saw.threads
    Can anyone please advise on this? Thanks in advance.

    We resolved the localhost issue but still receive the not logged in to the Oracle BI Server message.
    Now this is what shows in our saw0log.log:
    Odbc driver returned an error (SQLDriverConnectW).
    State: 08004. Code: 10018. [NQODBC] [SQL_STATE: 08004] [nQSError: 10018] Access for the requested connection is refused.
    [nQSError: 43001] Authentication failed for in repository Star: invalid user/password. (08004)
    Type: Error
    Severity: 42
    Time: Mon Sep 21 16:40:09 2009
    File: project/webconnect/connection.cpp Line: 276
    Properties: ThreadID-6169
    Location:
         saw.connectionPool.getConnection
         saw.subsystem.security.checkAuthenticationImpl
         saw.threadPool
         saw.threads
    Authentication Failure.
    Odbc driver returned an error (SQLDriverConnectW).
    Type: Error
    Severity: 42
    Time: Mon Sep 21 16:41:07 2009
    File: project/webxml/saxreader.cpp Line: 559
    Properties: ThreadID-2057;HttpCommand-Dashboard;Proxy-;RemoteIP-152.140.65.145;User-;Impersonator-
    Location:
         saw.httpserver.request
         saw.rpc.server.responder
         saw.rpc.server
         saw.rpc.server.handleConnection
         saw.rpc.server.dispatch
         saw.threadPool
         saw.threads
    Sax parser returned an exception.
    Message: Expected an element name, Entity publicId: /u01/obi/obid1/OracleBI/web/msgdb/messages/controlmessages.xml, Entity systemId: , Line number: 7, Column number: 44
    Type: Warning
    Severity: 40
    Time: Mon Sep 21 16:41:07 2009
    File: project/websubsystems/messagetablemanager.cpp Line: 117
    Properties: ThreadID-2057;HttpCommand-Dashboard;Proxy-;RemoteIP-152.140.65.145;User-;Impersonator-
    Location:
         saw.httpserver.request
         saw.rpc.server.responder
         saw.rpc.server
         saw.rpc.server.handleConnection
         saw.rpc.server.dispatch
         saw.threadPool
         saw.threads
    Error loading XML Message File (/u01/obi/obid1/OracleBI/web/msgdb/messages/controlmessages.xml): Sax parser returned an exception.
    Message: Expected an element name, Entity publicId: /u01/obi/obid1/OracleBI/web/msgdb/messages/controlmessages.xml, Entity systemId: , Line number: 7, Column number: 44
    Error Codes: UH6MBRBC

  • Error: "Not logged on in interface XBP"

    We are developing an external monitoring tool to call CCMS Bapi's via RFC calls.
    As per the documentation, we are opening RFC connection and then calling function module(BAPI).
    When we pass the BAPI, we get the error message "Not logged on in interface XBP".
    Kindly guide us if we are missing any steps

    Hi:
    Yes, you need to logon/logoff to the external interface first in order to call a BAPI; otherwise, the system will raise the exception message "Not logged on in interface XBP"
    Do the following in your code prior to calling the XBP BAPI:
       Start XMI Session - XBP Interface
      CALL FUNCTION 'BAPI_XMI_LOGON'
        EXPORTING
          EXTCOMPANY = '<Your Company Name or so>'
          EXTPRODUCT = '<Your Product Name or so>'
          INTERFACE  = 'XBP'
          VERSION    = '1.0'.
    Best Regards,
    Federico G. Babelis
    NetWeaver Certified Consultant
    GAZUM Technologies S.A.
    Consulting Services and Software Solutions
    http://www.gazum.com
    ...download FREE Marketplace Manager at: http://www.gazum.com/products

  • Capture Oracle errors

    Hi, I have a problem: I am inserting information from a table to many other tables, but if there's an error(for example, duplicate primary key), I have to put this information in a log... I have two questions: the log should be another table(for example with the sysdate and a description of the error)? The other: How can I register the Oracle errors in the log?
    Thanks

    Hi,
    New in 10g, maybe you are on an earler version?
    (Or maybe you just lack execute privilege on dbms_errlog)
    In 9i an option could be [FORALL ... SAVE EXCEPTIONS|http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96624/05_colls.htm#32392], but it's a lot more clumpsy to work with.
    If you are looking for a simple logging framework, you can have a look at [log4plsql|http://log4plsql.sourceforge.net/]
    Regards
    Peter
    Edited by: Peter on Nov 24, 2009 10:43 AM
    - Added link to log4plsql

  • Oracle errors in Weblogic Error logs appear in non english

    We have a problem with weblogic error logging. Specifically, in a managed server's log file, Oracle errors such as ORA-XXXX show in Greek, not English. We are assuming
    that this is because the timezone is Europe/Athens. However, the weblogic application server runs with user.language=en, user.country=US. What's more, there are 4 application servers and 2 of them have this problem. The oracle database is accessed via weblogic datasources.
    Oracle database server Setup: Oracle Server 11gR2 running on Oracle Linux 64 bit, timezone set to Europe/Athens
    Weblogic Server: Weblogic 10.3.5 running on Oracle Linux 64 bit, timezone set to Europe/Athens
    The managed server, according to jrockit, the jvm runs with the following language related system properties:
    user.language=en, user.country=US, user.timezone=Europe/Athens
    The question is: How do we tell oracle / weblogic to log english text for the ORA errors?
    Thanks,
    Chris

    I digged in the weblogic installation directory and it seems like the domain configuration wizard messed up the jdbc configs for the data sources.
    The config xml files for the data sources in the /domain root/config/jdbc directory had oracle driver but the test query was for pointbase. I double checked from the database.xml file in the init-info directory and corrected the entry in the datasource config xmls and voila!.. the errors were gone.
    I am not sure if this was the right approach and whether i have solved the issue or simply patched it.. so I am keeping the question open. If any one has any inputs I will be grateful.
    If the mods/admins feel that the thread should be marked as solved I will surely do so.
    Thanks.

  • 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

  • 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....

Maybe you are looking for

  • Default line item in Sales Order

    Hi guys, I need to have a material item code as default in phase of sales order creation. Requirement is that when user is compilin sales order header data system automatically generates a line item. I was thinking to manage it with product proposal

  • Adobe Camera Raw (ACR), Jpeg Files and Metadata

    I have been using Adobe Camera Raw (ACR) with my Canon EOS 30D, an 8 MP camera, for a while now. I would make non-destructive changes to the raw file (.CR2) in ACR where the changes would be stored in an adjoining .xmp file. Jpegs of the unedited and

  • Hi masters , I need some FAQ'S on sap ENTERPRISE PORTAL

    Hi, Masters   can any body send some FAQ'S on sap ENTER PRISE PORTAL , POINTS WILL BE ADDED,

  • Cannot play videos through Facebook saying I need to download and install latest version of Flash player

    Hello. I have here a MacBook Pro OS X version 10.9.5. I cannot play videos through Facebook. It says I must download and and install the latest version of my Adobe Flash player. I already downloaded and installed the latest version however, it still

  • Issues opening attachments 800w

    I have a 800w with Windows mobile 6.1 connecting to a 2003 Exchange SP2 server.  Everything is syncing just fine with active sync but when I try to open a attachment I get nothing.  It looks like its downloading but never turns the icon to a real ico