Oracle DB Error Msg (ORA-12505)

Hi,
I had problem accessing my DB (running on AIX-based) from SQL plus. An error code ORA-12505 is given. I had no problem to start up and shutdown the database. Anyone can advise?
By the way, what is ORA12505 means? How to resolve this error msg. Anywhere I can get full list of Oracle error message?
Thanks a lot!

Hi Bee
In this link you can have all Oracle errors.
http://otn.oracle.com/pls/db92/db92.error_search?remark=homepage&prefill=ORA-
What is the message that you are getting ?
Joel Pérez

Similar Messages

  • Error msg ORA-00054

    Hi,
    I'm getting the error msg ORA-00054: resource busy and aquire with NOWAIT specified. This happens when I'm trying to delete a table.

    use to detect who's locking the table:
    select S.SID,Q.SQL_TEXT
    from V$LOCK L, V$SESSION S, V$SQLAREA Q
    where L.BLOCK = 1
    and S.SID = L.SID
    and S.SADDR = Q.ADDRESS;

  • Sudden error? ORA-12505

    Hi... today when I tried to connect to my local Oracle i get this error:
    ORA-12505, TNS:listner does not currently know SID given in connect decriptor.
    I've connected in the same way before and I have not changed anything that I know of. Why is this?
    I attach my tnsnames.ora and listner.ora. (the JH2 is the connection that doesn't work. the other ones work fine (thay are on other machines))
    tnsnames.ora:
    # tnsnames.ora Network Configuration File: C:\oracle\product\10.1.0\jh\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    TSORA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.X.X.17)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = tsp)
    JH =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.Y.Y.119)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = JH)
    TSDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.X.X.11)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = TSDB)
    ELSA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.X.X.119)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ELSA)
    JH2 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = STKPCL530)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = jh)
    DEVDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.X.X.13)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = DevDb)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    listener.ora:
    # listener.ora Network Configuration File: C:\oracle\product\10.1.0\jh\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER2 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = STKPCL530)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = jh)
    (ORACLE_HOME = C:\oracle\product\10.1.0\jh)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = STKPCL530)(PORT = 1521))
    Can anyone please help?

    I've tried a few other things now. I've deleted and re-created the litner (with Net configuration assistant) - no diffrence
    I've tried to add code to the listener.ora file - no diffrence...
    This is what my listener.ora-file look like now:
    # listener.ora Network Configuration File: C:\oracle\product\10.1.0\jh\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER2 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = STKPCL530)(PORT = 1521))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    SID_LIST_LISTENER2 =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.1.0\jh)
    (PROGRAM = extproc)
    (SID_DESC =
         (SID_NAME = jh2)
         (ORACLE_HOME = C:\oracle\product\10.1.0\jh)
    and the post in tnsnames is:
    JH2 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = STKPCL530)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = jh)
    when I try to connect specifying jh2 I get the ORA-12514, when itry to connect without the jh2 (it is default) I get ORA-28547 (connection to server failed, probable Oracle Net admin error)
    Still no sign of anything improving... Any more ideas?

  • Error msg:ora 12154

    Hi I installed oracleDEV 10g at my home desktop while I can't connect to company's oracle server, the user name and pswd are corrected set up while I got the error message ORA 12154 again and again, anybody can give me a help will be highly appreciated!
    you can tell me the solution to [email protected]
    Thanks

    Hi
    Check the tnsnames.ora file you are using, verify that it is accessible. Check if you have a $HOME/.tnsnames.ora file - This will be used in addition to 'tnsnames.ora'. Check TNS_ADMIN is set in your environment. - There is a readable tnsnames.ora file in $TNS_ADMIN
    Regards Raf

  • Stored procedure - insert clob obj - error msg: ORA-01460: unimplemented

    Hi all,
    I have a situation where I want to insert a clob object to my local table via a stored procedure. The clob object stores large amount of text. The clob data is populated from retrieving content in an external text file. When executing an insert statement in c# code, the information was inserted successfully. when executing the stored procedure to insert the information, i always get "ORA-01460: unimplemented or unreasonable conversion requested". I use ReadToEnd() from StreamReader class to retrieve the context of the external text file. Does anyone know why Oracle behaves this way? Thanks for helping in advance.
    TABLE DEFINITION FOR CLOB_TEST
    Name       Type         Nullable Default Comments
    PKG_NAME   VARCHAR2(50) Y                        
    PKG_DESC   CLOB         Y                        
    PKG_FAM_ID NUMBER       Y                        
    STORED PROCEDURE
    procedure InsertTempReleaseTable(p_name        in varchar2,
                                       p_description in clob,
                                       p_fam_id      number) is
      begin
        insert into clob_test
          (pkg_name, pkg_desc, pkg_fam_id)
        values
          (p_name, p_description, p_fam_id);
      end InsertTempReleaseTable;
    RETRIEVE CONTENT FROM A TEXT FILE
    public string GetTextFileContents(string path)
                using (StreamReader sr = new StreamReader(path))
                      return (sr.ReadToEnd());
    C# INVOKE STORED PROCEDURE TO INSERT
    using (OracleCommand cmd = (OracleCommand)database.GetStoredProcCommand("pkg_sptbuildstatus.InsertTempReleaseTable"))
                    cmd.Parameters.Add("p_name", OracleType.VarChar, 255).Value = obj.PackageName;  // string  
                    cmd.Parameters.Add("p_description", OracleType.Clob).Value = obj.ChangeDescription; // string
                    cmd.Parameters.Add("p_fam_id", OracleType.Number).Value = obj.FamilyId; // int
                    database.ExecuteNonQuery(cmd);
                }Edited by: user8976335 on Jan 11, 2010 4:28 PM
    Edited by: user8976335 on Jan 11, 2010 4:59 PM
    Edited by: user8976335 on Jan 11, 2010 4:59 PM
    Edited by: user8976335 on Jan 12, 2010 10:48 AM

    It's possible it doesn't like the name of your variables (being the same as the table), it's good practice to not do that.
    Much better would be.
    procedure InsertTempReleaseTable
       p_name in varchar2,
       p_description in clob,
       p_fam_id number
    is
    begin
       insert into clob_test
          (name, description, fam_id)
       values
          (p_name, p_description, p_fam_id);
    end InsertTempReleaseTable;Your Oracle version is typically of immense help.
    select * from v$version;Also, using the tags will keep the formatting of your code.
    If this isn't any help, can you post a working example of your example ? Where the code breaks (which call).
    Edited by: Tubby on Jan 11, 2010 3:50 PM
    Edited by: Tubby on Jan 11, 2010 3:51 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Error msg ORA-12203

    I installed a windows nt version on windows 95 and cannot log in. I am getting the error ORA-12203 TNSnames. Help anyone?
    thanks
    Minerva

    Hi,
    If you are using Sqlplus on the same machine in which you have the DB, you can run it in two ways :
    - Specifying only username and password : in this case you have to set ORACLE_HOME and ORACLE_SID environment variables. ORACLE_HOME should be already defined in the registry, so you should have to set only ORACLE_SID = <your SID>
    - Specifying username,password and connection string : here you have to configure an alias in the TNSNAMES.ora file to point to your DB : you can do this using NET MANAGER or NET EASY CONFIGURATION (I don't use often Windows systems, so I don't remember exactly....)
    If you are using a Client, the second way is needed.
    Then you have to check that the listener is running on the Server. Check the listener service, it has to be active. If so, from a DOS Window try :
    LSNRCTL stop
    LSNRCTL start
    This stop and restart the listene
    hth
    Paolo

  • Ora 12505 error in Sql developer

    can any one help.... when i was about to create a table in oracle sql developer i got error mesg ora 12505 listener refused the connection... tns doesnt respond

    892111 wrote:
    can any one help.... when i was about to create a table in oracle sql developer i got error mesg ora 12505 listener refused the connection... tns doesnt respond
    12505, 00000, "TNS:listener does not currently know of SID given in connect descriptor"
    // *Cause:  The listener received a request to establish a connection to a
    // database or other service. The connect descriptor received by the listener
    // specified a SID for an instance (usually a database instance) that either
    // has not yet dynamically registered with the listener or has not been
    // statically configured for the listener. This may be a temporary condition
    // such as after the listener has started, but before the database instance
    // has registered with the listener.
    // *Action:
    //  - Wait a moment and try to connect a second time.
    //  - Check which instances are currently known by the listener by executing:
    //    lsnrctl services <listener name>
    //  - Check that the SID parameter in the connect descriptor specifies
    //    an instance known by the listener.
    //  - Check for an event in the listener.log file.

  • Error-ORA-12505: TNS:listener does not currently know of SID given in conne

    Dears,
    On our AIX 6.1 server we were having one PI dev(PD1) instance,Now we have installed one PI QAS(PQ1) instance on it.
    Now issue is that PD1 is working fine but while starting PQ1 instance it is giving error:
    I have also changed port in listner,tnsnames.ora and in configtool to 1526 for PQ1 instance.
    Checking PQ1 Database
    Database is not available via R3trans
    Running /usr/sap/PQ1/SYS/exe/run/startdb
    Trying to start PQ1 database ...
    Log file: /home/pq1adm/startdb.log
    /usr/sap/PQ1/SYS/exe/run/startdb: Terminating with error code 12
    DB startup failed
    While by SQLPLUS I checked that oracle is up but issue is SAP is not able to connect to oracle.
    R3trans -x
    This is R3trans version 6.18 (release 710 - 08.10.07 - 13:37:00).
    unicode enabled version
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'PQ1'"
    R3trans finished (0012).
    trans.log says:
    ORA-12505: TNS:listener does not currently know of SID given in connect descriptor'
    Please suggest.
    Shivam

    Dears,
    Content of the files are:
    tnsnames.ora
    PQ1.WORLD=
      (DESCRIPTION =
        (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = SAP.WORLD)
              (PROTOCOL = TCP)
              (HOST = pidev)
              (PORT = 1526)
        (CONNECT_DATA =
           (SID = PQ1)
           (GLOBAL_NAME = PQ1.WORLD)
    listner.ora
    ADMIN_RESTRICTIONS_LISTENER = on
    LISTENER =
      (ADDRESS_LIST =
            (ADDRESS =
              (PROTOCOL = IPC)
              (KEY = PQ1.WORLD)
            (ADDRESS=
              (PROTOCOL = IPC)
              (KEY = PQ1)
            (ADDRESS =
              (COMMUNITY = SAP.WORLD)
              (PROTOCOL = TCP)
              (HOST = pidev)
              (PORT = 1526)
    STARTUP_WAIT_TIME_LISTENER = 0
    CONNECT_TIMEOUT_LISTENER = 10
    TRACE_LEVEL_LISTENER = OFF
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PQ1)
          (ORACLE_HOME = /oracle/PQ1/102_64)
    Output of R3trans -x
    pidev:pq1adm> R3trans -x
    This is R3trans version 6.18 (release 710 - 08.10.07 - 13:37:00).
    unicode enabled version
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'PQ1'"
    R3trans finished (0012).
    Service file entries are:
    #pdap-np                 1526/tcp               # Prospero Data Access Prot non-priv
    #pdap-np                 1526/udp               # Prospero Data Access Prot non-priv
    tlisrv                  1527/tcp                # oracle
    tlisrv                  1527/udp                # oracle
    tlisrv                  1526/tcp
    tlisrv                  1526/udp
    trans.log contains:
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12505
    4 ETW000                                                                              55  0.017769
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error '12505'
    4 ETW000                                                                              52  0.017821
    4 ETW000  [dev trc     ,00000]     set_ocica() -> OCI or SQL return code 12505        31  0.017852
    4 ETW000  [dev trc     ,00000]     OCIErrorGet -> SQL error code: 0                   70  0.017922
    4 ETW000  [dev trc     ,00000]     error text: 'ORA-12505: TNS:listener does not currently know of SID given in connect descriptor'
    4 ETW000                                                                              48  0.017970
    4 ETW000  [dblink      ,00000]  ***LOG BY2=>sql error 12505  performing CON           71  0.018041
    4 ETW000  [dblink      ,00000]  ***LOG BY0=>ORA-12505: TNS:listener does not currently know of SID given in connect descriptor
    4 ETW000                                                                              61  0.018102
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'PQ1'"
    Please suggest.
    Shivam

  • ORA-12505: TNS:listener does not...

    Hello,
    I have a problem with Oracle XE. It was succesfully installed, but when I try connect I got an error message: ORA-12505, TNS:listener does not currently know of SID given in connect...
    I tried reinstall it, but result is still the same.
    Thank you for any help....
    With best regards
    Zdenek
    The important files are bellow:
    listener.ora
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = pc4026)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    tnsnames.ora
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = pc4026)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    lsnrctl status
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 04-KVĚ-2012 08:11:58
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
    Start Date 04-KVĚ-2012 07:50:45
    Uptime 0 days 0 hr. 21 min. 15 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\listener.ora
    Listener Log File C:\oraclexe\app\oracle\diag\tnslsnr\pc4026\listener\alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pc4026)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    lsnrctl services
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 04-KVĚ-2012 08:12:32
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    The command completed successfully

    lsnrctl start
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 04-KVĚ-2012 08:24:25
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    TNS-01106: Listener using listener name LISTENER has already been started
    tnsping
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.2.0 - Production on 04-KVĚ-2012 08:25:00
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.ora
    TNS-03505: Failed to resolve name

  • Getting Error - CREATE_CASH : ORA-01403: no data found

    When i use api AR_RECEIPT_API_PUB.CREATE_CASH in loop then i get error 'CREATE_CASH : ORA-01403: no data found' for second record.
    AR_RECEIPT_API_PUB.CREATE_CASH(p_api_version => 1.0
    ,p_init_msg_list => fnd_api.g_true
    ,p_commit => fnd_api.g_true
    ,p_receipt_number => i_receipt_number
    ,p_receipt_date => TRUNC(SYSDATE)
    ,p_gl_date => TRUNC(SYSDATE)
    ,p_amount => i_receipt_amount
    ,p_currency_code => g_currency_code
    ,p_receipt_method_id => i_receipt_method_id
    ,p_customer_id => i_customer_id
    ,p_cr_id => l_cr_id
    ,p_org_id => i_org_id
    ,x_return_status => l_return_status
    ,x_msg_count => l_msg_count
    ,x_msg_data => l_msg_data
    I run it for different org. First org it's running fine but for second it's fail -
    Here is output -
    Start, Org ID - 84
    l_receipt_number - 43164
    l_receipt_amount - 74.55
    g_currency_code - USD
    l_receipt_method_id - 4000
    l_customer_id - 7040
    l_cr_id -
    l_return_status -
    l_msg_count -
    l_msg_data -
    Status - S
    Start, Org ID - 81
    l_receipt_number - 43166
    l_receipt_amount - 30
    g_currency_code - USD
    l_receipt_method_id - 4000
    l_customer_id - 7047
    l_cr_id -
    l_return_status -
    l_msg_count -
    l_msg_data -
    Error count/msg - 2-
    Error msg - CREATE_CASH : ORA-01403: no data found
    Error msg - ORA-01403: no data found in Package AR_RECEIPT_API_PUB Procedure Create_cash
    PLease help it's urgent

    Here is code which i am using...
    IF l_ar_pay_rec > 0 THEN
    l_receipt_number := ar_cash_receipts_s.NEXTVAL;
    FOR r_ar_org_records IN cr_ar_org_records
    LOOP
    IF r_ar_org_records.org_id = 81 THEN
    l_resp_id := 50677;
    ELSE
    l_resp_id := 50681;
    END IF;
    MO_GLOBAL.INIT('AR');
    MO_GLOBAL.SET_POLICY_CONTEXT('S',r_ar_org_records.org_id);
    FND_GLOBAL.APPS_INITIALIZE(g_user_id,l_resp_id,l_appl_id,0);
    DBMS_OUTPUT.PUT_LINE('User,Resp,App,Org - '||g_user_id||','||l_resp_id||','||l_appl_id||','||r_ar_org_records.org_id);
    -- Derive Receipt Method ID
    BEGIN
    SELECT receipt_method_id
    INTO l_receipt_method_id
    FROM ar_receipt_methods
    WHERE name = g_receipt_method;
    EXCEPTION
    WHEN OTHERS THEN
    g_ar_error := 'Y';
    g_ar_error_msg := g_ar_error_msg||'Receipet Method Not Found, ';
    FND_FILE.PUT_LINE(FND_FILE.LOG,'Error While Derive Receipt Method ID');
    END;
    -- Derive Customer ID
    BEGIN
    SELECT customer_id
    ,SUM(AMOUNT_PAID)
    INTO l_customer_id
    ,l_receipt_amount
    FROM xxar_third_party_validation
    WHERE raf_code = i_raf
    AND receipt_date = i_date_paid
    AND org_id = r_ar_org_records.org_id
    AND customer_id is not null
    GROUP BY customer_id;
    EXCEPTION
    WHEN OTHERS THEN
    g_ar_error := 'Y';
    g_ar_error_msg := g_ar_error_msg||' Customer ID Not Found, ';
    FND_FILE.PUT_LINE(FND_FILE.LOG,'Error While Customer ID');
    END;
    fnd_msg_pub.initialize;
    l_return_status := NULL;
    l_msg_count := NULL;
    l_msg_data := NULL;
    l_cr_id := NULL;
    g_currency_code := 'USD';
    DBMS_OUTPUT.PUT_LINE('Start, Org ID - '||r_ar_org_records.org_id);
    -- Create Cash for Customer
    DBMS_OUTPUT.PUT_LINE('l_receipt_number - '||l_receipt_number);
    DBMS_OUTPUT.PUT_LINE('l_receipt_amount - '||l_receipt_amount);
    DBMS_OUTPUT.PUT_LINE('g_currency_code - '||g_currency_code);
    DBMS_OUTPUT.PUT_LINE('l_receipt_method_id - '||l_receipt_method_id);
    DBMS_OUTPUT.PUT_LINE('l_customer_id - '||l_customer_id);
    DBMS_OUTPUT.PUT_LINE('l_cr_id - '||l_cr_id);
    DBMS_OUTPUT.PUT_LINE('l_return_status - '||l_return_status);
    DBMS_OUTPUT.PUT_LINE('l_msg_count - '||l_msg_count);
    DBMS_OUTPUT.PUT_LINE('l_msg_data - '||l_msg_data);
    AR_RECEIPT_API_PUB.CREATE_CASH(p_api_version => 1.0
    ,p_init_msg_list => fnd_api.g_true
    ,p_receipt_number => l_receipt_number
    ,p_receipt_date => TRUNC(SYSDATE)
    ,p_gl_date => TRUNC(SYSDATE)
    ,p_amount => l_receipt_amount
    ,p_currency_code => g_currency_code
    ,p_receipt_method_id => l_receipt_method_id
    ,p_customer_id => l_customer_id
    ,p_cr_id => l_cr_id
    ,p_org_id => r_ar_org_records.org_id
    ,x_return_status => l_return_status
    ,x_msg_count => l_msg_count
    ,x_msg_data => l_msg_data
    DBMS_OUTPUT.PUT_LINE('Status - '||l_return_status);
    IF l_return_status <> 'S' THEN
    g_ar_error := 'Y';
    DBMS_OUTPUT.PUT_LINE('Error count/msg - '||l_msg_count||'-'||l_msg_data);
    IF l_msg_count = 1 THEN
    g_ar_error_msg := g_ar_error_msg||l_msg_data;
    DBMS_OUTPUT.PUT_LINE('Error msg - '||l_msg_data);
    ELSIF l_msg_count > 1 THEN
    LOOP
    l_msg_data := fnd_msg_pub.get (fnd_msg_pub.g_next
    ,fnd_api.g_false);
    IF l_msg_data IS NULL THEN
    EXIT;
    END IF;
    g_ar_error_msg := g_ar_error_msg||l_msg_data;
    DBMS_OUTPUT.PUT_LINE('Error msg - '||l_msg_data);
    END LOOP;
    END IF;
    xxar_log_error(r_ar_org_records.record_id,SUBSTR(g_ar_error_msg,1,120));
    ELSE
    DBMS_OUTPUT.PUT_LINE('Status - '||l_return_status);
    FOR r_ar_records IN cr_ar_records(r_ar_org_records.org_id)
    LOOP
    fnd_msg_pub.initialize;
    l_return_status := NULL;
    l_msg_count := NULL;
    l_msg_data := NULL;
    l_cr_id := NULL;
    l_receipt_amount := r_ar_records.amount_paid;
    l_trx_number := r_ar_records.transaction_number;
    g_currency_code := r_ar_records.currency_code;
    l_receipt_date := SYSDATE;
    l_gl_date := SYSDATE;
    -- Apply payments for the RAF and Date Paid
    AR_RECEIPT_API_PUB.APPLY(p_api_version => 1.0
    ,p_init_msg_list => fnd_api.g_true
    ,p_commit => fnd_api.g_false
    ,x_return_status => l_return_status
    ,x_msg_count => l_msg_count
    ,x_msg_data => l_msg_data
    ,p_receipt_number => l_receipt_number
    ,p_trx_number => l_trx_number
    ,p_amount_applied => l_receipt_amount
    ,p_org_id => r_ar_org_records.org_id
    IF l_return_status <> 'S' THEN
    g_ar_error := 'Y';
    IF l_msg_count = 1 THEN
    g_ar_error_msg := g_ar_error_msg||l_msg_data;
    ELSIF l_msg_count > 1 THEN
    LOOP
    l_msg_data := fnd_msg_pub.get (fnd_msg_pub.g_next
    ,fnd_api.g_false);
    IF l_msg_data IS NULL THEN
    EXIT;
    END IF;
    g_ar_error_msg := g_ar_error_msg||l_msg_data;
    END LOOP;
    END IF;
    xxar_log_error(r_ar_records.record_id,SUBSTR(g_ar_error_msg,1,240));
    ELSE
    DBMS_OUTPUT.PUT_LINE('Sucess 2 - ');
    NULL;
    /* -- Call Adjustment API for Contractual Allowance
    IF NVL(r_ar_records.contractual_allowance_amt,0) > 0 THEN
    xxar_third_party_rcpt_adj(r_ar_records.record_id
    ,r_ar_records.transaction_number
    ,r_ar_records.contractual_allowance_amt
    ,i_user_id
    END IF; */
    END IF;
    END LOOP;
    END IF;
    DBMS_OUTPUT.PUT_LINE('Error Flag AR - '||g_ar_error);
    IF g_ar_error = 'Y' THEN
    xxar_log_error(r_ar_org_records.record_id,SUBSTR(g_ar_error_msg,1,240));
    END IF;
    END LOOP;

  • ORA-12505 error with oracle 11.2.0.2 RAC Grid

    Hi,
    We have just installed Oracle 11.2.0.2 with oracle clusterware. Every thing went well during the installation, How ever after install we can not connect to the RAC instance from clients, through jdbc OR oracle sql developer.
    We get following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor.
    After the installation we created service (myrac) through OEM Cluster Managed Database Services tab. and We are using service name as following:
    jdbc:oracle:thin:@orap-cluster.mydomain.com:1521:myrac
    Here below is Service TNS string:
    myrac = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = orap-cluster.mydomain.com)(PORT = 1521))(LOAD_BALANCE = YES)(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = myrac)))
    Any help..??
    Cheers

    HI,
    to clarify:
    if you try with
    <SERVER>:<PORT>:<SID> you are accessing the server with a database SID, whereas
    <SERVER>:<PORT>/<SERVICE> will access a service.
    The SCAN Listener only know of services, and not of database SIDs.
    This is the reason you should always create separate services for your RAC databases, since only they are registered. If you connect via. a service the listener will forward you to (one of) the corresponding instances servicing the service.
    Database SIDs are only known to the local listener on the node (not to the SCAN listener). And SIDs actually should not be used anymore.
    However if you still need to access the SID you can use the virtual hostname of the server resp. the VIP address of the server in the connection and this will work:
    <VIP>:<PORT>:<SID>
    Note the SID of a RAC database is either myrac1 or myrac_1 (depending on administrator or policy managed database).
    I still would recommend using services and not SIDs.
    Furthermore the SCAN can only be resolved correctly by 11.2 clients.
    Any pre 11.2 client should use an address_list containing the SCAN VIPs:
    PRE112 =
    (DESCRIPTION =
    (LOAD_BALANCE=ON)
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.41)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.42)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.43)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = pre112)
    If a application server does not understand / then try using the TNSNAMES entry directly:
    jdbc:oracle:thin:@(DESCRIPTION = (LOAD_BALANCE=ON)(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.41)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.42)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.43)(PORT = 1521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = pre112)))
    Hope that helps
    Regards
    Sebastian

  • (ORA-12505) JDBC - Oracle connectivity Error

    Hi
    Experts
    I am SAP developer.
    I am trying to connecting remote server through webDynpro ( SAP programming Tool.) through JDBC. I can directly get connected to Oracle server through SQL plus.
    My code to establish connection is
    conn =DriverManager.getConnection ("jdbc:oracle:thin:@132.132.48.4:1521:orclahd.adaniahd.com","scott", "tiger");
    and i am getting exception.
         java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: 132.132.48.4:1521:orclahd.adaniahd.com

    your database is not registered with the listener.
    you need to go to the server and check the status of the listener to see if the database service is registered. If not you need to do it manually.
    LSNRCTL status

  • Unable to add external data source in BAM : Error ORA-12505

    Hi,
    In BAM,
    Im trying to add an external data source for creating a data object.
    But when i try to test the connection i get the following error:
    Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    Source: "java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor "
    Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    Source: "oracle.net.ns.NetException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor "
    As mentioned in another post ((Listener does not currently know of SID given in connection descriptor
    i tried
    lsnrctl stop.
    delete listener.ora
    lsnrctl start
    lsnrctl reload
    But still get the same error;
    Im able to access the database with the specified username and password using sqlplus.
    Your help will be appreciated.
    Regards
    Vignesh Ramanathan

    For #5, not Windows, ConfigMgr 2012 R2. Anything before ConfigMgr 2012 R2 is not supported for the 8.1 ADK.
    For the permissions, what accounts are you setting this for. In general, if the share is on the same server, Everyone Full or Read on the Share and System Full or Read on the NTFS should work.
    For the error message, it looks like you are trying to import an OS Image and not an OS Install Package. OS images use a WIM file and OS Install Packages use the entire set of source files from the media. For OS images, you must thus explicitly point it
    to a specific WIM file.
    Jason | http://blog.configmgrftw.com

  • Error (ORA-12505) in answers 11g

    Hi all,
    I have tried to install SampleApp(build 825) on 11g.
    http://www.oracle.com/technetwork/middleware/bi-foundation/obiee-samples-167534.html
    When I try to look data in Administration tool I can, but when loging in in Anayltics and try to look requests I am getting error
    *Oracle Error code: 12505, message: ORA-12505: TNS:listener does not currently know of SID given in connect descriptor at OCI call OCIServerAttach. [nQSError: 17014] Could not connect to Oracle database. (HY000)*
    How to resolve this?
    Thanks

    Admintool and Answers might use different ORACLE_HOMEs.
    Do you have an Oracle db client installed on the same machine?
    In 11g Obiee brings its own Oracle client, so you might have two on your box.
    if so, just check that both tnsnames.ora have the sid you are using.
    Knut

  • Developerday  VM Ora-12505 Getting Started with Oracle SQL Developer 3.0

    Just downloaded the VM , Started the tutorial Getting Started with Oracle SQL Developer 3.0
    As mentioned in tutorial , I was trying to make a new connection and I am getting following error
    Ora - 12505 : TNS Listener doesn't currently know of SID
    I gave SID as orcl, and seems to be working OK, can I use orcl for this tutorial
    Edited by: OrcArgusDev on Apr 13, 2012 9:01 AM
    Edited by: OrcArgusDev on Apr 13, 2012 9:11 AM

    Thanks, I'll survive. Just my luck, the first item I try to anon. debug didn't work! :)
    thanks, hopefully this problem will be few and far between

Maybe you are looking for