Solved

ORA-12545: TNS: name lookup failure (Oracle 8.1.6)

Posted on 2001-07-04
11
1,584 Views
Last Modified: 2012-05-04
Connecting to an Oracle 8.1.6 database on HP-UX server.
I am able to tnsping the ORACLE_SID from the NT server MS-DOS command prompt. However, when I try to connect using e.g. SQL*Plus 3.3 I get the following error and cannot proceed:

ORA-12545: TNS: name lookup failure

The entry in the c:\orant\network\admin\tnsnames.ora file looks fine.

Can anyone help?

Thanks
0
Comment
Question by:Butzi
  • 3
  • 2
  • 2
  • +4
11 Comments
 
LVL 1

Expert Comment

by:forquestion
ID: 6253623
Check your SQLNet.ora, If there are lines like :

NAMES.DEFAULT_DOMAIN = yourdomain
SQLNET.AUTHENTICATION_SERVICES= (NTS)

Then it needs to lookup dns server


0
 

Author Comment

by:Butzi
ID: 6254826
Thank you for your comment. This is a fresh 8.1.6 installation. The SQLNet.ora file is not being used.
0
 
LVL 1

Expert Comment

by:forquestion
ID: 6255395
How about the listener.ora. Can you show both listner.ora in HP and tnsnames.ora in NT to here? If there is any SQLNET.ora in NT, please post to here too.



0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Expert Comment

by:danhw
ID: 6255403
Depending on the version of SQLPLUS and the tools, some use NET8, some use SQLNET, to talk to the the DB. The NET8 is newer. NET8 looks in c:\orant\net80\admin; while sqlnet looks in c:\orant\network\admin. Check that the same TNSNAMES.ORA file is in BOTH directories, with the desired alias.

Do you have a registry setting for TNS_ADMIN? If so, that directory is where it will look for a TNSNAME.ORA file.

The other thing I just found out had to do with multiple Oracle Homes. Are you using multiple Oracle Homes?
0
 

Author Comment

by:Butzi
ID: 6256139
tnsnames.ora amended in both Net8 & SQLNet admin folders:

Beq-local.world =
  (DESCRIPTION =
    (ADDRESS_LIST =
        (ADDRESS =
          (COMMUNITY = beq.world)
          (PROTOCOL = BEQ)
          (PROGRAM = oracle73)
          (ARGV0 = oracle73ORCL)
          (ARGS = '(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')
        )
    )
    (CONNECT_DATA = (SID = ORCL)
    )
  )
CDEV.world =
  (DESCRIPTION =
    (ADDRESS_LIST =
        (ADDRESS =
          (COMMUNITY = tcp.world)
          (PROTOCOL = TCP)
          (Host = 20.44.147.100)
          (Port = 1521)
        )
    )
    (CONNECT_DATA = (SID = CDEV)
    )
  )

listener ora file on HP-UX server:

LISTENER =
 (ADDRESS_LIST=3%)
   (ADDRESS=(PROTOCOL=tcp)
            (HOST=localhost)
            (PORT=1521)
   )
  )

SID_LIST_LISTENER=
   (SID_LIST=
      (SID_DESC=
          (GLOBAL_DBNAME=CDEV.world)
          (SID_NAME=CDEV)
          (ORACLE_HOME=/u01/app/oracle/product/8.1.6)
         (PRESPAWN_MAX=20)
          (PRESPAWN_LIST=
           (PRESPAWN_DESC=(PROTOCOL=tcp)(POOL_SIZE=2)(TIMEOUT=1))
         )
        )
       )

0
 
LVL 1

Expert Comment

by:forquestion
ID: 6257091
It looks like both tnsnames.ora and listener.ora are copied from Oracle7 or Oracle8. Some parameter are obsoluted.

Please check the localhost IP. Usually localhost is using 127.0.0.1.

0
 

Expert Comment

by:sunsapollos
ID: 6268358

  Check your localhost address: host localhost or get it from /etc/hosts.
  change localhost to IP address(not 127.0.0.1).
  I suggest you reconfig listener.ora and tnsnames.ora.
On server:run netassist to config listener.ora.on client
select net8 assist menu to config tnsnames.ora.if client is sql*net,select net easy config menu
 
0
 
LVL 1

Expert Comment

by:leolkk
ID: 6330315
Butzi,
your question is resolved?
0
 
LVL 6

Expert Comment

by:Mindphaser
ID: 7038060
Please update and finalize this old, open question. Please:

1) Award points ... if you need Moderator assistance to split points, comment here with details please or advise us in Community Support with a zero point question and this question link.
2) Ask us to delete it if it has no value to you or others
3) Ask for a refund so that we can move it to our PAQ at zero points if it did not help you but may help others.

EXPERT INPUT WITH CLOSING RECOMMENDATIONS IS APPRECIATED IF ASKER DOES NOT RESPOND.

Thanks,

** Mindphaser - Community Support Moderator **

P.S.  Click your Member Profile, choose View Question History to go through all your open and locked questions to update them.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7052762
Lacking timely response from Butzi or contributing experts, but seeing that there is some useful info here, I recommend:
    Refund points and save as a 0-pt PAQ.

DanRollins -- EE database cleanup volunteer
0
 
LVL 6

Accepted Solution

by:
Mindphaser earned 0 total points
ID: 7052823
Points refunded and moved to PAQ

** Mindphaser - Community Support Moderator **
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
report returning null 21 96
Fastest way to replace data in Oracle 5 65
use lov values 2 50
ORA-04071: missing BEFORE, AFTER or INSTEAD OF keyword 2 47
Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question