ORA - 12505

Hi guys,.

I am new to Oracle 12 c. Recently, I installed Oracle 12 c on my machine from Oracle Linux 6. Until yesterday, it was working absolutely fine. Since today morning go, I meet a very strange situation. I can not connect to Oracle 12 C database of Oracle SQL developer. Both are configured on the same computer. Here are the details

The global database name: cdb1.localdomain

SID: cdb1

Listener.ora

# Generated by Oracle configuration tools.

SID_LIST_LISTENER =

(SID_LIST =

(SID_DESC =

(SID_NAME = PLSExtProc)

(ORACLE_HOME = u01/app/oracle/product/12.1.0/db_1)

(= Extproc PROGRAM)

(

(SID_DESC =

(GLOBAL_DBNAME = cdb1.localdomain)

(ORACLE_HOME = u01/app/oracle/product/12.1.0/db_1)

(SID_NAME = cdb1)

)

)

)

LISTENER =

(DESCRIPTION_LIST =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))

(ADDRESS = (PROTOCOL = TCP)(HOST = padinjhattil) (PORT = 1521))

)

)

ADR_BASE_LISTENER = /u01/app/oracle/product/12.1.0/db_1/log

TNSNAME.ora


tnsnames.ora # Network Configuration file: /u01/app/oracle/product/12.1.0/db_1/network/admin/tnsnames.ora

# Generated by Oracle configuration tools.

CDB1 =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = padinjhattil) (PORT = 1521))

(CONNECT_DATA =

(SID = CDB1)

(SERVER = DEDICATED)

)

)

lsnrctl status


LSNRCTL for Linux: Version 12.1.0.1.0 - Production on 3 February 2014 10:30:40

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

From /u01/app/oracle/product/12.1.0/db_1/bin/tnslsnr: Please wait...

TNSLSNR for Linux: Version 12.1.0.1.0 - Production

System settings file is /u01/app/oracle/product/12.1.0/db_1/network/admin/listener.ora

Log messages written to /u01/app/oracle/product/12.1.0/db_1/log/diag/tnslsnr/padinjhattil/listener/alert/log.xml

Listen on: (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1521)))

Listen on: (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=padinjhattil) (PORT = 1521)))

Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521)))

STATUS of the LISTENER

------------------------

Alias LISTENER

Version TNSLSNR for Linux: Version 12.1.0.1.0 - Production

Start date February 3, 2014 10:30:43

Uptime 0 days 0 h 0 min 0 sec

Draw level off

Security ON: OS Local Authentication

SNMP OFF

Parameter Listener of the /u01/app/oracle/product/12.1.0/db_1/network/admin/listener.ora file

The listener log file /U01/app/Oracle/product/12.1.0/Db_1/log/diag/tnslsnr/padinjhattil/listener/alert/log.XML

Summary of endpoints listening...

(DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1521)))

(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=padinjhattil) (PORT = 1521)))

Summary of services...

Service 'PLSExtProc' has 1 instance (s).

Instance of 'PLSExtProc', status UNKNOWN, has 1 operation for this service...

The command completed successfully

tnsping cdb1


AMT Ping utility for Linux: Version 12.1.0.1.0 - Production on 3 February 2014 10:32:23

Copyright (c) 1997, 2013, Oracle.  All rights reserved.

Use settings files:

/U01/app/Oracle/product/12.1.0/Db_1/network/admin/SQLNET.ora

TNSNAMES adapter used to resolve the alias

Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = padinjhattil) (PORT = 1521)) (CONNECT_DATA = (SID = CDB1) (SERVER = DEDICATED)))

AMT-12543: TNS:destination host unreachable (yesterday it was - OK (30))

Now, I get an ORA-12505 error message. Could someone please explain, where did I go wrong turn. I spent like 3 hours but all my efforts have been in vain. Help, please!

Kind regards

Luke

As you say, the client and the server are on the same machine and user/password after setting ORACLE_SID and ORACLE_HOME cannot work

Perform the following steps:

1. If above works, it means that you are able to connect

2 bounce the listening process and try to connect

3. make sure that the listener and Oracle process owners are same

4. ensure that padinjhattil entry is in/etc/hosts file

Thank you

Harman

Tags: Database

Similar Questions

  • ORA-12505 error connecting to the schema of HR of Oracle 11 g local db, ORA-00600, ORA-01033

    Hello

    When I try to connect to the hr schema in SQL Developer with these credentials (host: localhost, port: 1521, SID: ORCL), it throws the error message.

    "" Status: failed - Test has failed: listener refused the connection with the following error: ORA-12505, TNS: listener does not currently know the SID ".



    When I try to connect through cmd, it throws this

    SQL * more: Production version 11.2.0.1.0 Mon Jan 11 17:09:47 2016

    Copyright (c) 1982, 2010, Oracle.  All rights reserved.

    Enter the user name: human resources

    Enter the password:

    ERROR:

    ORA-01033: ORACLE initialization or shutting

    Process ID: 0

    Session IDs: serial number 0: 0



    And here is the status of the listener


    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production January 11, 2016 16:04

    : 28

    Copyright (c) 1991, 2010, Oracle.  All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521)))

    STATUS of the LISTENER

    ------------------------

    Alias LISTENER

    TNSLSNR for Windows 64-bit version: Version 11.2.0.1.0 - Prod

    ction

    Start date January 11, 2016 15:02:27

    Uptime 0 days 1 hour 2 minutes 5 seconds

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Listener parameter File D:\app\DKMOH\product\11.2.0\dbhome_1\network\admin\l

    istener.ora

    D:\app\dkmoh\diag\tnslsnr\DKMOH-PC\listener\alert\ log listener

    log. XML

    Summary of endpoints listening...

    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=127.0.0.1) (PORT = 1521)))

    Summary of services...

    Service 'CLRExtProc' has 1 instance (s).

    Instance of 'CLRExtProc', status UNKNOWN, has 1 operation for this service...

    The command completed successfully



    I went through this link fixed - ORA-01033: ORACLE initialization or shutdown in progress | IT Blogger Tips , where it says to change the status from the db to 'OPEN'.

    SQL > select status, database_status from v$ instance;

    STATUS DATABASE_STATUS

    ------------ -----------------

    ACTIVE RISE



    And then, when I run this query below, that's what I get.

    SQL > alter database open;

    change the database open

    *

    ERROR on line 1:

    ORA-00600: internal error code, arguments: [kcratr_nab_less_than_odr], [1],

    [[507], [56509], [56515] [] [], [], [], [], []]



    I'm totally lost here. Any help would be appreciated.

    Thank you

    Hello

    This issue seems to be with the redo log.

    SQL > bootable media.

    SQL > show parameter control_files

    Query 1

    ------------

    SQL > select a.member, a.group #, b.status v$ logfile a, v$ log b where a.group #= b.group # and b.status = 'CURRENT';

    Note the name of the redo log

    SQL > the judgment;

    Take a backup of the controlfile operating system level (this is to ensure that we have a copy backup of the current state of the controlfile)

    SQL > bootable media.

    SQL > restore database using backup controlfile until cancel;

    Enter the location of the log to roll forward as recent on demand 1 when you are prompted for the recovery of

    Press enter

    SQL > Alter database open resetlogs;

    Thank you

  • ORA-12505, TNS: Listener does not currently of SID in the connection descriptor (code: 2 011)

    I get this error when you try to create a data store for Oracle database of the Disqualification.

    ORA-12505, TNS: Listener does not currently of SID in the connection descriptor (code: 2 011)

    I am able to connect to this database by using the same credentials through SQL, but the Disqualification, I'm not. Do I need to do anything in linux server before the implementation of Oracle data warehouses?

    Thank you

    Ravi

    There are a number of ways.

    1 use a JNDI connection configured in WebLogic and select by name

    2. use the LDAP connection or TNS - see http://docs.oracle.com/middleware/1213/edq/DQEXT/config_dbase.htm#DQEXT202

    3. Add an oracle.xml file in [local disqualification home] / dbconnectors with the following content. This will allow you to select the service name in the standard Oracle data store wizard:

    Class = "com.datanomic.utils.databasespecies.species.Oracle"

    MaxNameLength = "30" invalidnamechars ="" ' >

    {JDBC:Oracle:Thin:@${service = "srv"? /': "} ${host}: ${port} {service ="srv"? '/' : ':'}${sid}

    Oracle

    {JDBC:Oracle:Thin:@${service = "srv"? /': "} ${host}: ${port} {service ="srv"? '/' : ':'}${sid}

    ${superior (schema = "? user: schema)}

    dbproductname ~ = '(?i) oracle'

    name ~ = ' $BIN\\ [A-Za-z0-9 + /] {22, 24} ==------$\\p {digit} +'

    user = ${user}

    password = ${password}

    FetchSize = 100

    BatchSize = ${export.batchsize}

    void = TRUNCATE TABLE %s

    ALTER SESSION SET CURRENT_SCHEMA = ${schema}

    1521

  • A localhost DB connection works, other gets ORA - 12505 connecting to the DB in Pentaho

    Hello

    I use LOCALHOST to connect to my database of dev and have no problem connection using JDBC in Pentaho.  When I try to connect to my database of prod, he throws "listener refused the connection with the following error: ORA - 12505, TNS:listener is not currently of SID given in connect descriptor".  Both are 11 G databases and I can't TNSPING both of them and I can connect at once using SQL Developer.

    Here are my LISTENER and TNSNAMES entries:

    DEV (working properly):

    FTSDEV =

    (DESCRIPTION =

    (ADDRESS =

    (PROTOCOL = TCP)

    (HOST = localhost)

    (PORT = 1531)

    )

    (CONNECT_DATA =

    (SERVER = dedicated)

    (SERVICE_NAME = FTSDEV)

    )

    )

    PROD (does not work):

    FTSPRD =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (LOAD_BALANCE = on)

    (FAILOVER = off)

    (ADDRESS = (PROTOCOL = TCP (PORT = 1528))(HOST=localhost))

    )

    (CONNECT_DATA = (SERVICE_NAME = FTSPRD_ETL))

    )

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = CLRExtProc)

    (ORACLE_HOME = C:\Oracle\product\11.2.0\dbhome_1)

    (= Extproc PROGRAM)

    (ENVS = "EXTPROC_DLLS=ONLY:C:\Oracle\product\11.2.0\dbhome_1\bin\oraclr11.dll")

    )

    )

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))

    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))

    )

    )

    C:\Users\ > lsnrctl services

    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 6 may 2015 10:39

    : 35

    Copyright (c) 1991, 2010, Oracle.  All rights reserved.

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521)))

    Summary of services...

    Service 'CLRExtProc' has 1 instance (s).

    Instance of 'CLRExtProc', status UNKNOWN, has 1 operation for this service...

    Managers:

    "DEDICATED" set up: 0 denied: 0

    LOCAL SERVER

    The command completed successfully

    Thanks in advance for your help

    Well, it sounds like a question for Pentaho.

    However, if you have Oracle installed on the Pentaho Server customer, you could use OIC as the access method and then provide the TNS alias.

    In the contrary case, it * seems * that Pentaho for a JDBC connection, use your 'database name' as a SID. What is the result of lsnrctl and status services on your box of production Oracle lsnrctl?

  • ORA-12505, TNS:listener has not currently SID /on sqldeveloper k.w.

    Hello

    I tried to connect to my Oracle 11g with sqldeveloper server, I have donloaded

    but I have this error:

    Listener refused the connection with the following error:

    ORA-12505, TNS:listener is not currently of SID given in connect descriptor

    Codice fornitore 12505

    the default sid name in sqldeveloper is "xe".

    I have tiyped

    tsping orcl:

    and SERVICES LSNRCTL:

    What should I type in SID?

    Help, please

    Thank you

    2846174 wrote:

    Hello

    I tried to connect to my Oracle 11g with sqldeveloper server, I have donloaded

    but I have this error:

    Listener refused the connection with the following error:

    ORA-12505, TNS:listener is not currently of SID given in connect descriptor

    Codice fornitore 12505

    the default sid name in sqldeveloper is "xe".

    It can be the default, but it may not be suitable for YOUR installation.

    I have tiyped

    tsping orcl:

    If we see that if you use tnsnames.ora to solve your connection request, the net service name "orcl" (that you specified on your tnsping) solves a service name (not a SID) of "orcl.homenet.telecomitalia.it".  Nowhere it is not a reference to XE in YOUR configuration.

    and SERVICES LSNRCTL:

    And we see that your listener support an instance named "orcl".  Once again, XE is not found.

    What should I type in SID?

    Maybe nothing.  Maybe you're using the wrong "type of connection', 'base', select 'tns '.

    Then 'network alias' dropdown will be filled with your tnsnames.ora file, to choose one.

    OR...

    Leave connection type as ' basic' and instead of 'SID', supply "service name".  If you go this route, you will need to provide the correct host name and port.  You can get the values of what you saw when you made "tnsping.

    Help, please

    Thank you

  • Developer SQL error: ORA-12505. TNS:listner is not currently of SID given in connect descriptor

    Hello guys, I know this question has been posted on several occasions in the past, but my question includes developer oracle sql only. I can use the database and all the features through sql * more even execute sql queries. but when it comes to developer sql always returns this error. (error: ORA-12505.)

    Windows 8-64 oracle 11 g r2

    --------------------------------------------------------------------------------------------------------------------------------------

    Welcome to LSNRCTL, enter 'help' for more information.

    LSNRCTL > status

    Connection to (ADDRESS = (PROTOCOL = tcp)(HOST=) (PORT = 1521))

    STATUS of the LISTENER

    ------------------------

    Alias auditeur1

    TNSLSNR for Windows 64-bit version: Version 11.2.0.1.0 - Production

    Start date August 11, 2014 13:08:08

    Uptime 0 days 0 h 14 min 55 sec

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    Listener parameter File C:\app\oracle\product\11.2.0\dbhome_1\network\admin\listener.ora

    C:\app\oracle\diag\tnslsnr\Needo-pc\listener1\alert\log.XML log listener

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = Needo-pc)(PORT=1521)))

    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))

    Summary of services...

    Service 'CLRExtProc' has 1 instance (s).

    Instance of 'CLRExtProc', status UNKNOWN, has 3 service management...

    Service "orcl" has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    Service 'orclXDB' has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    The command completed successfully

    -----------------------------------------------------------------------------------------------------------------

    LSNRCTL > services

    Connection to (ADDRESS = (PROTOCOL = tcp)(HOST=) (PORT = 1521))

    Summary of services...

    Service 'CLRExtProc' has 1 instance (s).

    Instance of 'CLRExtProc', status UNKNOWN, has 3 service management...

    Managers:

    "DEDICATED" set up: 0 denied: 0

    LOCAL SERVER

    "ORACLE SERVER" put in place: 0 denied: current: 0 0 max: 25 status: ready

    CLRExtProc

    (ADDRESS = (PROTOCOL = ipc) (PIPENAME=\\.\pipe\NTN_122C_C6D0FCF3. ORA))

    "ORACLE SERVER" put in place: 0 denied: current: 0 0 max: 25 status: ready

    CLRExtProc

    (ADDRESS = (PROTOCOL = ipc) (PIPENAME=\\.\pipe\NTN_122C_C6D0FCF3. ORA))

    Service "orcl" has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    Managers:

    "DEDICATED" set up: 22 refused: 0 status: ready

    LOCAL SERVER

    Service 'orclXDB' has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    Managers:

    "D000" put in place: 0 denied: current: 0 0 max: 1022 State: loan

    DISPATCHER < machine: NEEDO-PC, pid: 3172 >

    (ADDRESS = (PROTOCOL = tcp) (HOST = Needo-pc)(PORT=52654))

    The command completed successfully

    ------------------------------------------------------------------------------------------

    Thank you!

    Try it with sid ORCL instead of XE.

    If this does not help, then choose SERVICE_NAME orcl instead of SID in sql developer.

    Your listener seems to have an entry for this.

    You can also test it in SQl * more. But what you've done so far in SQl * plus was a "server connection", without providing the database.

    Because in your case, the client and the server is on the same machine, it works with sql * more.

    If you try a customer coonnect by specifying the database, then you would do the same thing as the Oracle SQL Developer is by train.

    For test purposes, something like

    sqlplus user/pwd@host:port/ORCL

    also in the Sqlnet.ora file must be an etry for local EZCONNECT connect method. I don't know if it is set during the installation of network by default.


    You can try if there is an Alias-TNS name (configured in the tnsnames.ora)

    sqlplus user/pwd@ORCL


    If it works with sql * plus, so you must always indicate the sql developer where the tnsnames.ora file is located on your computer.

    The setting can be found in the menu: extras/tools/base data/improved

    The tnsnames.ora file is usually in a file like this:

    C:\Oracle\product\11.2.0\client_1\network\admin


  • Error ORA-12505 only in SQL Developer - 11g Express

    Hello

    I found many similar problems but no answering mine.

    I installed the Oracle 11g Express version.  I can connect to my database order online when I try Developer SQL I get the following error code:

    Status: Failure-Test failed: listener refused the connection with the following error:
    ORA-12505, TNS:listener is not currently of SID given in connect descriptor.

    i\m data trying to connect to is xe.

    Here are my tnsnames.ora file content:

    ===============================================================================================

    XE =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = Jon-portable)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = XE)

    )

    )

    EXTPROC_CONNECTION_DATA =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1))

    )

    (CONNECT_DATA =

    (SID = PLSExtProc)

    (PRESENTATION = RO)

    )

    )

    ORACLR_CONNECTION_DATA =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1))

    )

    (CONNECT_DATA =

    (SID = CLRExtProc)

    (PRESENTATION = RO)

    )

    )

    ===================================================================================================

    Here is the output of "tnsping xe:

    Use settings files:

    C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\sqlnet.ora

    TNSNAMES adapter used to resolve the alias

    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = Jon-Lapt

    OP) (PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))

    OK (0 msec)

    ==================================================================================================

    The production of SERVICES of LSNRTCL are:

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1)))

    Summary of services...

    Service 'CLRExtProc' has 1 instance (s).

    Instance of 'CLRExtProc', status UNKNOWN, has 1 operation for this service...

    Managers:

    "DEDICATED" set up: 0 denied: 0

    LOCAL SERVER

    Service 'PLSExtProc' has 1 instance (s).

    Instance of 'PLSExtProc', status UNKNOWN, has 1 operation for this service...

    Managers:

    "DEDICATED" set up: 0 denied: 0

    LOCAL SERVER

    Service 'XEXDB' has 1 instance (s).

    Instance "xe", State LOAN, has 1 operation for this service...

    Managers:

    "D000" put in place: 0 denied: current: 0 0 max: 1022 State: loan

    DISPATCHER < machine: JON-laptop, pid: 2636 >

    (ADDRESS = (PROTOCOL = tcp) (HOST = Jon-Laptop)(PORT=1064))

    "Xe" service has 1 instance (s).

    Instance "xe", State LOAN, has 1 operation for this service...

    Managers:

    "DEDICATED" set up: 0 denied: 0 status: ready

    LOCAL SERVER

    The command completed successfully

    =================================================================================================

    NOTE: I tried to connect to ORCL with SQL Developer and put with the SYSTEM account.

    Please let me know if you need more information.  Thanks in advance.

    you typed in the 'OracleServiceXE' chain & the listener isn't aware of any Service with this exact name.

    You must only enter "XE".

  • VIRTUALBOX/Oracle 11g Express: ORA-12505

    I'm setting up Oracle Express 11g for the first time...

    By running as a guest in Virtualbox/Win7/Centos 6.4.

    The problem is, 11g is initially installed and configured automatically, the listener knows nothing about the additional host 192.168.56.101 which is necessary for the guest chef communication address. So, I'm trying to solve this problem.

    I can telnet to win7 for CentOS OK,

    sqlplus works well, I can connect sys/pass as sysdba.

    Select v wire running instance $;

    gives XE

    tnsping XE in CentOS gives:

    TNSNAMES adapter used to resolve the alias

    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.56.101)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))

    OK (0 msec)

    I changed the listener.ora and tnsname.ora than they were after the installation to HOST = 192.168.56.101 instead of localhost.localdomain here:

    Listener.ora is:

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = PLSExtProc)

    (ORACLE_HOME = u01/app/oracle/product/11.2.0/xe)

    (= Extproc PROGRAM)

    )

    )

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC_FOR_XE))

    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.56.101)(PORT = 1521))

    )

    )

    TNSNAME.ora is:

    XE =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.56.101)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = XE)

    )

    )

    EXTPROC_CONNECTION_DATA =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC_FOR_XE))

    )

    (CONNECT_DATA =

    (SID = PLSExtProc)

    (PRESENTATION = RO)

    )

    )

    DEFAULT_SERVICE_LISTENER = (XE)

    / etc/hosts in CentOS is:

    127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4

    : 1 localhost localhost.localdomain localhost6 localhost6.localdomain6

    192.168.56.101 loc

    Execution of SQL Developer is in Win7 where there is no installed Oracle.

    Connection settings are:

    User name: sys

    HostName: 192.168.56.101

    Port: 1521

    SID: XE

    Getting ORA-12505...

    ---------------------------------------------------------------

    The problem has been resolved by disabling listener.ora and put the correct host tnsnames.ora to address

    sb92075: it is necessary to build the Virtualbox VM: http://www.oracle.com/technetwork/community/developer-vm/index.html#dbapp I could not do their work VM, so I installed 11 G in CentOS VM. The idea to disable listener.ora proved to be excellent. I used the tnsnames.ora as follows: XE = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 92.168.56.101)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE))) EXTPROC_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))) (CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO))) and after the reboot, the connection is OK. Thank you

  • Listener to refuse the connection with the following error ORA-12505

    Hi everyone, Am really new to the oracle database, I work on my school project work and am stuck in the middle of this error (listener refused the connection with the following error ORA-12505).

    I started the time serveral listener and it is said that 'no service supported by the LISTENER', I can't access the database via sqldeveloper including trows on the same error (listener refused the connection with the following error ORA-12505, TNS:Listener currently know of SID given in connect descriptor.) In addition, my em show red arrow down to the listener. Here are my coordinates hard & software.


    Oracle 11.1.0
    OS: Red Hat Enterprise Linux 4 (running the operating system through Vmware workstation)
    TNSNAME. ORA

    LISTENER2 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    ((ADDRESS = (PROTOCOL = TCP (PORT = 1522))(HOST=localhost.localdomain))
    )
    )

    AUDITEUR1 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1523))
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1521))




    Listner, ora




    LISTNER_ORCL
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1523))
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1521))
    )

    IMT_ADMI =
    (= DESRIPTION
    (PORT = 1522))
    (ADDRESS = (PROTOCOL = TCP (PORT = 1522))(HOST=localhost.localdomain))
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1523))
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1521))

    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = imt_admin
    )
    )

    LISTENER_IMTADMIN =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP (PORT = 1522))(HOST=localhost.localdomain))
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1523))
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1521))

    )

    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1523))
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1521))

    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)

    I read on some forums that I need to edit somethings that am not sure cos I don't want to mess with the database, I need help on what to.
    Thanks for the help in advance.

    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1521))

    Try to edit listener.ora by:
    (ADDRESS = (PROTOCOL = TCP) (HOST = HOST_NAME_OF_YOUR_DATABASE_MACHINE/OR TRY USING THE IP ADDRESS OF THE DATABASE SERVER MACHINE)(PORT=1521))
    Just try to edit HOST = value line above. You must use HOST_NAME_OF_YOUR_DATABASE_MACHINE or IP OF the DATABASE SERVER MACHINE.

    Host name can be obtained by the hostname command on the database server.

    With localhost, no one can connect to the database remotely.

    Concerning
    Girish Sharma

    Published by: Girish Sharma January 11, 2013 18:26

    then after the output of commands below:
    lsnrctl stop
    lsnrctl start
    Wait 60 seconds...
    ORACLE_SID =
    sqlplus scott/tiger@tnsname

    Show us what is happening now.

  • ORA-12505, TNS:listener is not currently of SID given in connect the

    Hi, I have a problem connecting to the repository working ODI...

    The master repository and repository of work are installed in the Oracle 11g company Manager...

    From my PC, I can connect to the master repository and I can see the repository to work, but when I try to connect I get this message:

    oracle.odi.core.config.WorkRepositoryResourceFailureException: ODI-10182: categorizar sin Excepcion durante el acceso al repositorio.
    Could not make JDBC connection; nested exception is java.sql.SQLException: Se ha powered una excepcion al get the conexion: oracle.ucp.UniversalConnectionPoolException: No. is you can get the conexion del origen of datos: java.sql.SQLException: listener refused the connection with the following error:
    ORA-12505, TNS:listener is not currently of SID given in connect descriptor

    at oracle.odi.core.repository.Repository.getWorkRepository(Repository.java:195)
    at oracle.odi.core.OdiInstance.createWorkRepository(OdiInstance.java:504)
    to oracle.odi.core.OdiInstance. < init > (OdiInstance.java:581)
    at oracle.odi.core.OdiInstance.createInstance(OdiInstance.java:521)
    at com.sunopsis.graphical.dialog.SnpsDialogLoginDetail.testConnection(SnpsDialogLoginDetail.java:755)
    to com.sunopsis.graphical.dialog.SnpsDialogLoginDetail.access$ 4 (SnpsDialogLoginDetail.java:743)
    to com.sunopsis.graphical.dialog.SnpsDialogLoginDetail$ 2.performAction(SnpsDialogLoginDetail.java:287)
    at oracle.odi.ui.framework.event.OdiActionListener.actionPerformed(OdiActionListener.java:69)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.Component.processMouseEvent(Component.java:6297)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
    at java.awt.Component.processEvent(Component.java:6062)
    at java.awt.Container.processEvent(Container.java:2039)
    at java.awt.Component.dispatchEventImpl(Component.java:4660)
    at java.awt.Container.dispatchEventImpl(Container.java:2097)
    at java.awt.Component.dispatchEvent(Component.java:4488)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
    at java.awt.Container.dispatchEventImpl(Container.java:2083)
    at java.awt.Window.dispatchEventImpl(Window.java:2489)
    at java.awt.Component.dispatchEvent(Component.java:4488)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:668)
    to java.awt.EventQueue.access$ 400 (EventQueue.java:81)
    in java.awt.EventQueue$ 2.run(EventQueue.java:627)
    in java.awt.EventQueue$ 2.run(EventQueue.java:625)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)
    in java.awt.EventQueue$ 3.run(EventQueue.java:641)
    in java.awt.EventQueue$ 3.run(EventQueue.java:639)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:638)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
    in java.awt.Dialog$ 1.run(Dialog.java:1044)
    in java.awt.Dialog$ 3.run(Dialog.java:1096)
    at java.security.AccessController.doPrivileged (Native Method)
    at java.awt.Dialog.show(Dialog.java:1094)
    at java.awt.Component.show(Component.java:1591)
    at java.awt.Component.setVisible(Component.java:1543)
    at java.awt.Window.setVisible(Window.java:843)
    at java.awt.Dialog.setVisible(Dialog.java:984)
    at oracle.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:395)
    at oracle.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:356)
    at oracle.odi.ui.framework.adapter.DefaultAdapter.displayDialog(DefaultAdapter.java:242)
    at oracle.odi.ui.framework.UIFramework.displayDialog(UIFramework.java:88)
    at oracle.odi.ui.LoginFactory.modifyLogin(LoginFactory.java:334)
    to com.sunopsis.graphical.dialog.SnpsDialogLogin$ 3.performAction(SnpsDialogLogin.java:185)
    at oracle.odi.ui.framework.event.OdiActionListener.actionPerformed(OdiActionListener.java:69)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
    at java.awt.Component.processMouseEvent(Component.java:6297)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
    at java.awt.Component.processEvent(Component.java:6062)
    at java.awt.Container.processEvent(Container.java:2039)
    at java.awt.Component.dispatchEventImpl(Component.java:4660)
    at java.awt.Container.dispatchEventImpl(Container.java:2097)
    at java.awt.Component.dispatchEvent(Component.java:4488)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
    at java.awt.Container.dispatchEventImpl(Container.java:2083)
    at java.awt.Window.dispatchEventImpl(Window.java:2489)
    at java.awt.Component.dispatchEvent(Component.java:4488)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:668)
    to java.awt.EventQueue.access$ 400 (EventQueue.java:81)
    in java.awt.EventQueue$ 2.run(EventQueue.java:627)
    in java.awt.EventQueue$ 2.run(EventQueue.java:625)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)
    in java.awt.EventQueue$ 3.run(EventQueue.java:641)
    in java.awt.EventQueue$ 3.run(EventQueue.java:639)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:638)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
    in java.awt.Dialog$ 1.run(Dialog.java:1044)
    in java.awt.Dialog$ 3.run(Dialog.java:1096)
    at java.security.AccessController.doPrivileged (Native Method)
    at java.awt.Dialog.show(Dialog.java:1094)
    at java.awt.Component.show(Component.java:1591)
    at java.awt.Component.setVisible(Component.java:1543)
    at java.awt.Window.setVisible(Window.java:843)
    at java.awt.Dialog.setVisible(Dialog.java:984)
    at oracle.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:395)
    at oracle.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:356)
    at oracle.odi.ui.framework.adapter.DefaultAdapter.displayDialog(DefaultAdapter.java:242)
    at oracle.odi.ui.framework.UIFramework.displayDialog(UIFramework.java:88)
    at oracle.odi.ui.OdiConnectController.handleEvent(OdiConnectController.java:113)
    at oracle.ide.controller.IdeAction.performAction(IdeAction.java:529)
    at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:897)
    at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:501)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
    in javax.swing.plaf.basic.BasicMenuItemUI$ Handler.mouseReleased (BasicMenuItemUI.java:850)
    at java.awt.Component.processMouseEvent(Component.java:6297)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
    at java.awt.Component.processEvent(Component.java:6062)
    at java.awt.Container.processEvent(Container.java:2039)
    at java.awt.Component.dispatchEventImpl(Component.java:4660)
    at java.awt.Container.dispatchEventImpl(Container.java:2097)
    at java.awt.Component.dispatchEvent(Component.java:4488)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
    at java.awt.Container.dispatchEventImpl(Container.java:2083)
    at java.awt.Window.dispatchEventImpl(Window.java:2489)
    at java.awt.Component.dispatchEvent(Component.java:4488)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:668)
    to java.awt.EventQueue.access$ 400 (EventQueue.java:81)
    in java.awt.EventQueue$ 2.run(EventQueue.java:627)
    in java.awt.EventQueue$ 2.run(EventQueue.java:625)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)
    in java.awt.EventQueue$ 3.run(EventQueue.java:641)
    in java.awt.EventQueue$ 3.run(EventQueue.java:639)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:638)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: could not make connection JDBC; nested exception is java.sql.SQLException: Se ha powered una excepcion al get the conexion: oracle.ucp.UniversalConnectionPoolException: No. is you can get the conexion del origen of datos: java.sql.SQLException: listener refused the connection with the following error:
    ORA-12505, TNS:listener is not currently of SID given in connect descriptor

    at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:82)
    at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:524)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:588)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:613)
    at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:645)
    at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:111)
    at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:121)
    at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:136)
    to oracle.odi.core.repository.support.RepositoryUtils$ RepositoryInfoSource.loadRepositoryInfo (RepositoryUtils.java:182)
    at oracle.odi.core.repository.support.RepositoryUtils.loadWorkRepositoryInfo(RepositoryUtils.java:382)
    at oracle.odi.core.repository.Repository.getWorkRepository(Repository.java:174)
    ... more than 144
    Caused by: java.sql.SQLException: Se ha powered una excepcion al get the conexion: oracle.ucp.UniversalConnectionPoolException: No. is you can get the conexion del origen of datos: java.sql.SQLException: listener refused the connection with the following error:
    ORA-12505, TNS:listener is not currently of SID given in connect descriptor

    at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.doGetConnection(LoginTimeoutDatasourceAdapter.java:133)
    at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.getConnection(LoginTimeoutDatasourceAdapter.java:62)
    at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:113)
    at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79)
    ... more than 154
    Caused by: java.sql.SQLException: Se ha powered una excepcion al get the conexion: oracle.ucp.UniversalConnectionPoolException: No. is you can get the conexion del origen of datos: java.sql.SQLException: listener refused the connection with the following error:
    ORA-12505, TNS:listener is not currently of SID given in connect descriptor

    at oracle.ucp.util.UCPErrorHandler.newSQLException(UCPErrorHandler.java:488)
    at oracle.ucp.util.UCPErrorHandler.throwSQLException(UCPErrorHandler.java:163)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.java:943)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.java:873)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.java:863)
    at sun.reflect.GeneratedMethodAccessor95.invoke (unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    to oracle.odi.core.datasource.support.RuntimeClassLoaderDataSourceCreator$ DataSourceInvocationHandler.invoke (RuntimeClassLoaderDataSourceCreator.java:48)
    to $Proxy0.getConnection (Unknown Source)
    to oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter$ ConnectionProcessor.run (LoginTimeoutDatasourceAdapter.java:217)
    to java.util.concurrent.Executors$ RunnableAdapter.call (Executors.java:439)
    to java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    to java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:886)
    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: oracle.ucp.UniversalConnectionPoolException: No. is you can get the conexion del origen of datos: java.sql.SQLException: listener refused the connection with the following error:
    ORA-12505, TNS:listener is not currently of SID given in connect descriptor

    at oracle.ucp.util.UCPErrorHandler.newUniversalConnectionPoolException(UCPErrorHandler.java:368)
    at oracle.ucp.util.UCPErrorHandler.throwUniversalConnectionPoolException(UCPErrorHandler.java:49)
    at oracle.ucp.util.UCPErrorHandler.throwUniversalConnectionPoolException(UCPErrorHandler.java:80)
    at oracle.ucp.jdbc.DriverConnectionFactoryAdapter.createConnection(DriverConnectionFactoryAdapter.java:122)
    to oracle.ucp.common.UniversalConnectionPoolImpl$ UniversalConnectionPoolInternal.createOnePooledConnectionInternal (UniversalConnectionPoolImpl.java:1610)
    to oracle.ucp.common.UniversalConnectionPoolImpl$ UniversalConnectionPoolInternal.access$ 600 (UniversalConnectionPoolImpl.java:1446)
    at oracle.ucp.common.UniversalConnectionPoolImpl.createOnePooledConnection(UniversalConnectionPoolImpl.java:514)
    at oracle.ucp.jdbc.oracle.OracleJDBCConnectionPool.createOnePooledConnection(OracleJDBCConnectionPool.java:129)
    at oracle.ucp.common.UniversalConnectionPoolImpl.borrowConnectionWithoutCountingRequests(UniversalConnectionPoolImpl.java:297)
    at oracle.ucp.common.UniversalConnectionPoolImpl.borrowConnection(UniversalConnectionPoolImpl.java:142)
    at oracle.ucp.jdbc.JDBCConnectionPool.borrowConnection(JDBCConnectionPool.java:157)
    at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.java:931)
    ... 14 more

    Please, if someone could give me a tip. Thank you!!!

    Looks like a problem with the tnsnames file / wrong sid. try using tnsping > that you will be in your tnsnames.ora.

  • ORA-12505: TNS:listener is not currently of SID given in connect

    Whenever I reboot OS, I have the following error for oracle 11g. Can someone please help me if the tnsname/listener file is correct. The oracle SID is orcl and it is installed in my local computer.

    ORA-12505: TNS:listener is not currently of SID given in connect descriptor (DBD ERROR: OCIServerAttach)

    Stanley:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\app\oracle\product\11.2.0\dbhome_2)
    (= Extproc PROGRAM)
    (ENVS = "EXTPROC_DLLS=ONLY:C:\app\oracle\product\11.2.0\dbhome_2\bin\oraclr11.dll")
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
    )
    )

    ADR_BASE_LISTENER = C:\app\oracle


    TNSNAME:

    LISTENER_ORCL =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))


    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
    )
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    )
    )

    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    )
    )


    ORACLE_HOME=C:\app\oracle\product\11.2.0\dbhome_2
    path=C:\app\oracle\product\11.2.0\dbhome_2\bin; C:\Informatica\PowerCenter8.6.1\server\bin; C:\app\oracle\product\11.2.0

    Thank you

    Sanjay

    You are welcome.
    Kind to mark your thread as an answer to help keep the forum clean. Thank you!

    Kind regards
    Thierry

  • ORA-12505 error ensures

    I tried to create the day before without the DG broker. However, I get this error in the primary alert log which I am not able to solve.
    Heartbeat PING [ARC6]: Unable to connect to the day before "to_standby". The error is 12505.
    Mon Jul 04 12:41:35 2011
    Logging of 12505 errors received on the eve
    Mon Jul 04 12:41:35 2011
    Errors in the d:\oracle\p11\saptrace\background\p11_arc6_1904.trc file:
    ORA-12505: TNS:listener is not currently of SID given in connect descriptor

    Heartbeat PING [ARC6]: Unable to connect to the day before "to_standby". The error is 12505.

    The primary server pFile
    * ._B_TREE_BITMAP_PLANS = FALSE
    * ._IN_MEMORY_UNDO = FALSE
    * ._INDEX_JOIN_ENABLED = FALSE
    * ._OPTIM_PEEK_USER_BINDS = FALSE
    * ._OPTIMIZER_MJC_ENABLED = FALSE
    * ._SORT_ELIMINATION_COST_RATIO = 10
    * ._TABLE_LOOKUP_PREFETCH_SIZE = 0
    * .archive_lag_target = 0
    * .background_dump_dest = a: \oracle\P11\saptrace\background'
    * full = '10.2.0'
    * .control_file_record_keep_time = 30
    *.control_files='d:\oracle\P11\origlogA\cntrl\cntrlP11.dbf','d:\oracle\P11\origlogB\cntrl\cntrlP11.dbf','d:\oracle\P11\sapdata1\cntrl\cntrlP11.dbf '
    * .core_dump_dest = a: \oracle\P11\saptrace\background'
    * .db_block_size = 8192
    * .db_cache_size = 260938137
    * .db_files = 254
    * .db_name = "P11".
    * .db_unique_name = "P11_primary".
    * .dml_locks = 4000
    * .event = 10191 trace the context of name forever, level 1'
    *. FAL_Client = "to_primary."
    *. FAL_Server = "to_standby."
    *. FILESYSTEMIO_OPTIONS = "setall".
    * .job_queue_processes = 1
    * .local_listener ='(ADRESSE = (PROTOCOL = TCP) (HOST = 10.0.1.104)(PORT = 1521))'
    * .log_archive_config = 'dg_config = (P11_disaster, P11_primary)'
    *. Log_archive_dest_1 = 'LOCATION = C:\oracle\P11\oraarch\P11arch VALID_FOR =(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME = P11_primary'
    * .log_archive_dest_2 = "SERVICE = to_standby LGWR ASYNC DELAY = 5 VALID_FOR = (ONLINE_LOGFILES, PRIMARY_ROLE) DB_UNIQUE_NAME = P11_disaster'"
    * .log_archive_dest_state_1 = 'enable '.
    * .log_archive_dest_state_2 = 'ENABLE '.
    * .log_archive_max_processes = 10
    * .log_archive_min_succeed_dest = 1
    * .log_buffer = 1048576
    * .log_checkpoint_interval = 0
    * .log_checkpoints_to_alert = true
    * .open_cursors = 800
    * .parallel_execution_message_size = 16384
    * .pga_aggregate_target = 347917516
    * runoff = 80
    * .query_rewrite_enabled = "false".
    * .recyclebin = "off".
    * .remote_login_passwordfile = "exclusive."
    * .remote_os_authent = true
    * .replication_dependency_tracking = false
    * Once = 96
    * .sga_max_size = 521876275
    * .shared_pool_reserved_size = 26093813
    * .shared_pool_size = 300938137
    * .sort_area_retained_size = 0
    * .sort_area_size = 2097152
    * .standby_file_management = "AUTO".
    * .star_transformation_enabled = 'true '.
    * .undo_management = "AUTO".
    * .undo_retention = 43200
    * .undo_tablespace = "PSAPUNDO".
    * .user_dump_dest = a: \oracle\P11\saptrace\usertrace'

    Standby server pFile

    * ._B_TREE_BITMAP_PLANS = FALSE
    * ._IN_MEMORY_UNDO = FALSE
    * ._INDEX_JOIN_ENABLED = FALSE
    * ._OPTIM_PEEK_USER_BINDS = FALSE
    * ._OPTIMIZER_MJC_ENABLED = FALSE
    * ._SORT_ELIMINATION_COST_RATIO = 10
    * ._TABLE_LOOKUP_PREFETCH_SIZE = 0
    * .background_dump_dest = a: \oracle\P11\saptrace\background'
    * full = '10.2.0'
    * .control_file_record_keep_time = 30
    *.control_files='d:\oracle\P11\origlogA\cntrl\control01.ctl','d:\oracle\P11\origlogB\cntrl\control02.ctl','d:\oracle\P11\sapdata1\cntrl\control03.CTL '
    * .core_dump_dest = a: \oracle\P11\saptrace\background'
    * .db_block_size = 8192
    * .db_cache_size = 155870822
    * .db_files = 254
    * .db_name = "P11".
    * .db_unique_name = "P11_disaster".
    * .dml_locks = 4000
    * .event = 10191 trace the context of name forever, level 1'
    *. FAL_Client = "to_standby."
    *. FAL_Server = "to_primary."
    *. FILESYSTEMIO_OPTIONS = "setall".
    * .job_queue_processes = 1
    * .local_listener ='(ADRESSE = (PROTOCOL = TCP) (HOST = 10.0.1.102)(PORT = 1521))'
    * .log_archive_config = 'DG_CONFIG = (P11_primary, P11_disaster)'
    *. Log_archive_dest_1 = 'LOCATION = C:\oracle\P11\oraarch\P11arch VALID_FOR =(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME = P11_disaster'
    * .log_archive_dest_2 = "SERVICE = to_primary LGWR ASYNC DELAY = 5 VALID_FOR = (ONLINE_LOGFILES, PRIMARY_ROLE) DB_UNIQUE_NAME = P11_primary'"
    * .log_archive_dest_state_1 = 'enable '.
    * .log_archive_dest_state_2 = 'enable '.
    * .log_archive_max_processes = 10
    * .log_buffer = 1048576
    * .log_checkpoint_interval = 0
    * .log_checkpoints_to_alert = true
    * .open_cursors = 800
    * .parallel_execution_message_size = 16384
    * .pga_aggregate_target = 207827763
    * runoff = 80
    * .query_rewrite_enabled = "false".
    * .recyclebin = "off".
    * .remote_login_passwordfile = "exclusive."
    * .remote_os_authent = true
    * .replication_dependency_tracking = false
    * Once = 96
    * .sga_max_size = 311741644
    * .shared_pool_reserved_size = 15587082
    * .shared_pool_size = 300870822
    * .sort_area_retained_size = 0
    * .sort_area_size = 2097152
    * .standby_file_management = "AUTO".
    * .star_transformation_enabled = 'true '.
    * .undo_management = "AUTO".
    * .undo_retention = 43200
    * .undo_tablespace = "PSAPUNDO".
    * .user_dump_dest = a: \oracle\P11\saptrace\usertrace'

    Primary file TNSnames

    ################
    # File...: tnsnames.ora
    # Created...: created by SAP AG, R/3 rel. > = 6.10
    # Name...:
    # Date of...:
    # @(#) $Id: / / bc/700-1_REL/src/ins/SAPINST/impl/NPT/ora/ind/TNSNAMES. ORA #4 $
    ################
    P11. WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (= SAP COMMUNITY. WORLD)
    (PROTOCOL = TCP)
    (HOST = 10.0.1.104)
    (PORT = 1527)
    )
    )
    (CONNECT_DATA =
    (SID = P11)
    (GLOBAL_NAME = P11. WORLD)
    )
    )
    TO_STANDBY. WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (= SAP COMMUNITY. WORLD)
    (PROTOCOL = TCP)
    (HOST = 10.0.1.102)
    (PORT = 1527)
    )
    )
    (CONNECT_DATA =
    (SID = P11)
    (GLOBAL_NAME = P11_DISASTER. WORLD)

    )

    )
    TO_PRIMARY. WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (= SAP COMMUNITY. WORLD)
    (PROTOCOL = TCP)
    (HOST = 10.0.1.104)
    (PORT = 1527)
    )
    )
    (CONNECT_DATA =
    (SID = P11)
    (GLOBAL_NAME = P11_PRIMARY. WORLD)

    )

    )

    LISTENER_P11. WORLD = (address = (protocol = tcp (port = 1527))(host=10.0.1.104))

    Primary listener.ora
    ################
    # File...: listener.ora
    # Created...: created by SAP AG, R/3 rel. > = 6.10
    # Name...:
    # Date of...:
    # @(#) $Id: / / bc/700-1_REL/src/ins/SAPINST/impl/NPT/ora/ind/LISTENER. ORA #4 $
    ################
    ADMIN_RESTRICTIONS_LISTENER = we
    LISTENER =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = IPC)
    (KEY = P11. WORLD)
    )
    (ADDRESS =
    (PROTOCOL = IPC)
    (KEY = P11)
    )
    (ADDRESS =
    (= SAP COMMUNITY. WORLD)
    (PROTOCOL = TCP)
    (HOST = prod104)
    (PORT = 1527)
    )
    )
    STARTUP_WAIT_TIME_LISTENER = 0
    CONNECT_TIMEOUT_LISTENER = 10
    TRACE_LEVEL_LISTENER = OFF


    Tnsnames.ora standby
    ################
    # File...: tnsnames.ora
    # Created...: created by SAP AG, R/3 rel. > = 6.10
    # Name...:
    # Date of...:
    # @(#) $Id: / / bc/700-1_REL/src/ins/SAPINST/impl/NPT/ora/ind/TNSNAMES. ORA #4 $
    ################
    ################
    # File...: tnsnames.ora
    # Created...: created by SAP AG, R/3 rel. > = 6.10
    # Name...:
    # Date of...:
    # @(#) $Id: / / bc/700-1_REL/src/ins/SAPINST/impl/NPT/ora/ind/TNSNAMES. ORA #4 $
    ################
    P11. WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (= SAP COMMUNITY. WORLD)
    (PROTOCOL = TCP)
    (HOST = 10.0.1.104)
    (PORT = 1527)
    )
    )
    (CONNECT_DATA =
    (SID = P11)
    (GLOBAL_NAME = P11. WORLD)
    )
    )
    TO_STANDBY. WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (= SAP COMMUNITY. WORLD)
    (PROTOCOL = TCP)
    (HOST = 10.0.1.102)
    (PORT = 1527)
    )
    )
    (CONNECT_DATA =
    (SID = P11)
    (GLOBAL_NAME = P11_STANDBY. WORLD)

    )

    )
    TO_PRIMARY. WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (= SAP COMMUNITY. WORLD)
    (PROTOCOL = TCP)
    (HOST = 10.0.1.104)
    (PORT = 1527)
    )
    )
    (CONNECT_DATA =
    (SID = P11)
    (GLOBAL_NAME = P11_PRIMARY. WORLD)

    )

    )


    LISTENER_P11. WORLD = (address = (protocol = tcp (port = 1527))(host=10.0.1.102))



    Standby listener.ora

    ################
    # File...: listener.ora
    # Created...: created by SAP AG, R/3 rel. > = 6.10
    # Name...:
    # Date of...:
    # @(#) $Id: / / bc/700-1_REL/src/ins/SAPINST/impl/NPT/ora/ind/LISTENER. ORA #4 $
    ################
    ADMIN_RESTRICTIONS_LISTENER = we
    LISTENER =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = IPC)
    (KEY = P11. WORLD)
    )
    (ADDRESS =
    (PROTOCOL = IPC)
    (KEY = P11)
    )
    (ADDRESS =
    (= SAP COMMUNITY. WORLD)
    (PROTOCOL = TCP)
    (HOST = 10.0.1.102)
    (PORT = 1527)
    )
    )
    STARTUP_WAIT_TIME_LISTENER = 0
    CONNECT_TIMEOUT_LISTENER = 10
    TRACE_LEVEL_LISTENER = OFF

    Please advice.

    Concerning

    Published by: dharm.singh on July 4, 2011 12:33 AM

    As you can see on the lsnrctl status output doesn't support any service

    Try adding the SID_LIST_LISTENER parameter in listener.ora file

    Check out this link and SID_LIST_LISTENER parameter

    http://www.Oracle-base.com/articles/9i/DataGuard.php

  • Listener refused the connection with the following error: ORA-12505

    Hello
    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: 127.0.0.1:1521:XE 
    Windows XP + Oracle 10.1.0.20

    I checked my *.ora files and found the host 127.0.0.1 but I noticed by running the netstat command on prompt back most of my ports is captured by www.360.cn including 1521

    When I try to stop the following message is displayed:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exists
    Thank you and best regards

    Hello

    [oracle@myoramachine ~]$ oerr ora 12505
    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 
    //  - 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.
    [oracle@myoramachine ~]$
    

    1. check the lsnrctl services

    2 check the tnsping output:

    tnsping MYORACLE

    3. check the connectivity to the computer hosting your Oracle server to the port (I guess 1521):

    Telnet 1521

    4. in case you are not able to connect to the Oracle Server - I investigate it in several directions:

    -problem of network infrastructure

    -some process disturbing / virus on the server Oracle itself

    -firewall problem

    Good luck!

    ---------------------------------
    http://DBA-star.blogspot.com/

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

    I know, I know there are tons of info about this error on the net. BUT. I tried to figure out all day, please help :(

    We are on Oracle 10.2.0.4, Solaris 5.10

    1 Tnsnames.ora on the Solaris box where Oracle is installed is as follows:
    flexprd1 =
      (DESCRIPTION =
        (SDU = 4096)
        (TDU = 4096)
        (ADDRESS = (PROTOCOL = TCP)(Host = PRODX)(Port = 1523))
        (CONNECT_DATA =
          (SID = flexprd1)
        )
      )
    2 Listener.ora is as follows:
    LISTFLEX =
      (ADDRESS_LIST =
            (ADDRESS= (PROTOCOL= TCP)(Host=PRODX)(Port= 1523)(QUEUESIZE=200))
      )
    
    SID_LIST_LISTFLEX =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME= FLEXPRD)
          (ORACLE_HOME= /app/oracle/OraHome1)
          (SDU = 4096)
          (TDU = 4096)
          (SID_NAME = flexprd1)
        )
      )
    3 Tnsnames.ora on the application (Win 2000) Server uses DNS names and is as follows:
    flexprd1 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = PRODY)(PORT = 1523))
        )
        (CONNECT_DATA =
          (SERVICE_NAME = flexprd1)
        )
      )
    5. I can't telnet from the application server to the zone of solaris on port 1523 (so it isn't a problem of port)

    6. I can't flexprd1 tnsping from servers of application and solars as follows:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (SDU = 4096) (TDU = 4096) (ADDRESS = (PROTOCOL = TCP)(Host = PRODX)(Port = 1523)) (CONNECT_DATA = (SID = flexprd1)))
    OK (40 msec)
    7. services and the status of the listener seem ok:
     lsnrctl status listflex
    
    LSNRCTL for Solaris: Version 10.2.0.4.0 - Production on 24-MAY-2010 16:05:23
    
    Copyright (c) 1991, 2007, Oracle.  All rights reserved.
    
    Connecting to (ADDRESS=(PROTOCOL=TCP)(Host=PRODX)(Port=1523)(QUEUESIZE=200))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTFLEX
    Version                   TNSLSNR for Solaris: Version 10.2.0.4.0 - Production
    Start Date                21-MAY-2010 15:34:20
    Uptime                    3 days 0 hr. 31 min. 3 sec
    Trace Level               dev
    Security                  ON: Password or Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /app/oracle/OraHome1/network/admin/listener.ora
    Listener Log File         /app/oracle/OraHome1/network/log/listflex.log
    Listener Trace File       /app/oracle/OraHome1/network/trace/listflex.trc
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PRODX)(PORT=1523)))
    Services Summary...
    Service "FLEXPRD" has 1 instance(s).
      Instance "flexprd1", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    SERVICES
    LSNRCTL for Solaris: Version 10.2.0.4.0 - Production on 24-MAY-2010 16:05:51
    
    Copyright (c) 1991, 2007, Oracle.  All rights reserved.
    
    Connecting to (ADDRESS=(PROTOCOL=TCP)(Host=PRODX)(Port=1523)(QUEUESIZE=200))
    Services Summary...
    Service "FLEXPRD" has 1 instance(s).
      Instance "flexprd1", status UNKNOWN, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
    The command completed successfully
    8 NETSTAT:
     netstat -a | grep 1523
          *.1523               *.*                0      0 49152      0 LISTEN
    dbfarmprd2.es.gwu.edu.45492 PRODX.1523 49354      0 49152      0 TIME_WAIT
    9 SQLNET. ORA on the application server which I'm getting ORA-12505 is as follows:
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    10. when I try to use SQL * more from the application server, I get ORA-12505. I'm sure it's something very stupid, but I can't. Any input would be much appreciated! Thank you!

    post the last lines of 40-60 of /app/oracle/OraHome1/network/log/listflex.log

  • ORA-12505 TNS Listener does not currently in SID

    Hello
    When I try to connect to Oracle Sql developer, error "ORA-12505 TNS Listener does not currently of SID given in connect descriptor". ""
    I use 11 GR 1 material on Windows XPSP2 platform. But several sql works very well.
    Thank you

    Published by: user12222356 on April 11, 2010 07:20

    user12222356 wrote:
    This time the Sql developer is connected successfully. But there is not a question of being happy because what happens frequently. Sometimes is connected while sometimes the connection refused... All, it seems, is that SQL Developer connection to the Oracle server depends on luck.
    Is there any solution to get rid of this problem?

    It's a matter of timing.

    First thing that should be launched is the listener. Who should be started on boot. For a laptop or another machine which uses the DHCP protocol, the listener must be configured to talk to the loopback adapter.

    Then the database should be started to talk to listening on the port of sight to the listener - it is applied either with the "LOCAL_LISTENER" database being left to null (for the default listener on 1521). This can be checked by "Lsnrctl status" showing the instance of database such as saved and available.

    Then the SQLDeveloper can start up, pointing to the same host, port, and service/instance, as shown in "lsnrctl status".

Maybe you are looking for