DBAsupport.com Forums - Powered by vBulletin
Results 1 to 10 of 10

Thread: SQLNET.LOG shows error message

  1. #1
    Join Date
    Sep 2001
    Location
    OH
    Posts
    44
    Hi all,

    Our SID,instance name is TEST but I see foll. error msg in sqlnet.log.

    Fatal OSN Connect Error 12154, Connecting to : PROD

    Because of this, I am unable to sign on in my Oracle Application.

    I checked TNSNAMES.ora file. There is no reference of PROD.

    Can someone tell me from where it tries to look for PROD instance instead of TEST?

    Thanks in advance

    Sam

  2. #2
    Join Date
    Aug 2000
    Location
    Chicago IL
    Posts
    586

    Cool

    hmm search for a tnsnames.ora in ur machine..maybe its using a differnt home
    "High Salaries = Happiness = Project Success."

  3. #3
    Join Date
    Sep 2001
    Location
    NJ, USA
    Posts
    1,287
    One of your application use connect string like this:

    connect user/pwd@prod

    and in your tnsnames.ora doesn't exists entry named PROD

  4. #4
    Join Date
    Sep 2001
    Location
    OH
    Posts
    44
    Originally posted by Shestakov
    One of your application use connect string like this:

    connect user/pwd@prod

    and in your tnsnames.ora doesn't exists entry named PROD
    Hi,

    I checked all the files but it can not find any file with @prod. Can you suggest me some files?

    Thanks,

    Sam

  5. #5
    Join Date
    Sep 2001
    Location
    OH
    Posts
    44
    Originally posted by jlakhani
    hmm search for a tnsnames.ora in ur machine..maybe its using a differnt home

    Hi,

    I have only one Oracle Home and only one tnsnames.ora file.

    Thanks,

    Sam


  6. #6
    Join Date
    Sep 2001
    Location
    NJ, USA
    Posts
    1,287
    oracle doc:

    ORA-12154 TNS:Could not resolve service name

    Cause: The service name specified is not defined in the TNSNAMES.ORA file.
    Action: Make the following checks and correct the error:
    Verify that a TNSNAMES.ORA file exists and is in the proper place and accessible. See the operating system specific manual for details on the required name and location.
    ----------------------------------------------------------
    Check to see that the service name exists in one of the TNSNAMES.ORA files and add it if necessary.
    ----------------------------------------------------------

    I hope, that your tnsnames.ora place in $ORACLE_HOME/network/admin or $ORACLE_HOME/net8/admin

  7. #7
    Join Date
    Sep 2001
    Location
    OH
    Posts
    44
    Originally posted by Shestakov
    oracle doc:

    ORA-12154 TNS:Could not resolve service name

    Cause: The service name specified is not defined in the TNSNAMES.ORA file.
    Action: Make the following checks and correct the error:
    Verify that a TNSNAMES.ORA file exists and is in the proper place and accessible. See the operating system specific manual for details on the required name and location.
    ----------------------------------------------------------
    Check to see that the service name exists in one of the TNSNAMES.ORA files and add it if necessary.
    ----------------------------------------------------------

    I hope, that your tnsnames.ora place in $ORACLE_HOME/network/admin or $ORACLE_HOME/net8/admin
    Hi,

    I have only one TNSNAMES.ORA and it is in %ORACLE_HOME%\net80\admin directory.

    Then, I did some workaround. I added new entry with 'PROD' in Tnsnames.ora keeping other adress details as of TEST.

    Now, It does not give any error in sqlnet.log.

    What does it mean when my instance name and all services are starting with TEST?

    Can u pl. help clarify?

    Thanks,

    Sam

  8. #8
    Join Date
    Sep 2001
    Location
    OH
    Posts
    44
    Hi,

    Pl. help. Its very urgent...

    Thanks,

    Sam

  9. #9
    Join Date
    Sep 2001
    Location
    NJ, USA
    Posts
    1,287
    are you have in tnsnames.ora something like this:

    prod = (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = test_host )(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = test )
    )
    )

    or

    test = (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = test_host )(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = test )
    )
    )
    or

    test = (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = test_host )(PORT = 1521))
    )
    (CONNECT_DATA =
    (SID = test )
    )
    )
    

    this is only 3 aliases to one oracle instance and applications may use any alias.


  10. #10
    Join Date
    Sep 2001
    Location
    OH
    Posts
    44
    Originally posted by Shestakov
    are you have in tnsnames.ora something like this:

    prod = (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = test_host )(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = test )
    )
    )

    or

    test = (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = test_host )(PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = test )
    )
    )
    or

    test = (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = test_host )(PORT = 1521))
    )
    (CONNECT_DATA =
    (SID = test )
    )
    )
    

    this is only 3 aliases to one oracle instance and applications may use any alias.



    Hi,

    I have

    prod = (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = test_host )(PORT = 1521))
    )
    (CONNECT_DATA =
    (SID = test )
    )
    )

    and

    test = (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = test_host )(PORT = 1521))
    )
    (CONNECT_DATA =
    (SID = test )
    )
    )


    My question is...

    Why it looks for PROD instead of TEST?

    Thanks,

    Sam

Posting Permissions

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


Click Here to Expand Forum to Full Width