Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2007
    Posts
    3

    Unanswered: tnsping Ok, still getting ORA-12541: TNS: No listener

    Hi, I have two databases and a client

    Using the client, I can tnsping and sqlplus to the database A, however, for database B I can only tnsping, when I tried to connec to the database, I am getting ORA-12541: TNS: No listener.

    here is my listener.ora file.

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\OraHome_2)
    (PROGRAM = extproc)
    )
    (SID_DESC =
    (SID_NAME = orcl)
    (ORACLE_HOME = C:\oracle\OraHome_2)
    (GLOBAL_DBNAME = orcl.famis.com)
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = irvine7.famis.com)(PORT = 1521))
    )
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    )
    )
    )


    Here is the tnsname.ora entry

    irvine7.famis.com =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = irvine7.famis.com)(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SID = orcl)
    )
    )

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    I only see a single alias in tnsnames.ora

    How many different systems are involved?

    What OS names & versions?

    Which Oracle versions to 4 decimal places?

    Did this ever work?

    I prefer my tnsnames.ora entries to be on a single line as below:
    Code:
    cdb1=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=cdb1.example.com)(PORT=1521))(CONNECT_DATA=(SID=cdb1)))
    qbeta07,security=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=qbeta07.example.com)(PORT=1521))(CONNECT_DATA=(SID=qabeeu)))
    comdb02h=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=comdb02-h.example.com)(PORT=1521))(CONNECT_DATA=(SID=comdb02)))
    Please NOTE you can have multiple alias names for the same entry -> "qbeta07,security"
    Last edited by anacedent; 12-17-07 at 18:01. Reason: expanded details
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Dec 2007
    Posts
    3
    There are 3 systems are involved. Two Databases, and one client machine.

    Databases are in window 2000 server, the client has windows XP, which is outside of firewall. I have check the firewall rules. They are OK.

    Database A is 10.1.0.4.0 (no problem)
    Database B is 10.1.0.5.0 (failing)
    The database B has never worked.

    The alias that I supplied is only for Database B.

  4. #4
    Join Date
    Dec 2007
    Posts
    3
    the tnsnames.ora file that I supplied is from the database server that I have problem to connect.

  5. #5
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    From irvine7.famis.com post the contents of sqlnet.ora file.

    The only tnsnames.ora file that matters is the one on the XP client system
    Last edited by anacedent; 12-17-07 at 20:27.
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •