Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 762
  • Last Modified:

setting up a db and tnsnameslisterner does not appear/work

Hi,

I have tried to install Toad on a windows 2003 server with a 9.2 oracle database.

I set up the database but when I try and connect to sqlplus/toad I get ora-12154: TNS: could not resolve service name....

The only difference I can find with this setup is that when I go to deveice manager - services there is no Ora92TNSnameslistener in the list. There has also been no TNS entry in Oracle\ora92\network\admin\.

I've manually put:
PLAYP1.WORLD  =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = gbsflatest)(PORT = 1521))
    (CONNECT_DATA = (SID = PLAYP1))
  )

but still no joy.

When I try:
c:Lsnrctl status

I get lsnrctl for 32-bit windows.......
..........
starting tnslsnr: please wait..
Failed to open service <OracleOraHome92TNSListener>, error 1060
STATUS of the Listener..........
..........
The listener supports no services

any ideas what Im doing wrong?

0
joehodge
Asked:
joehodge
  • 3
1 Solution
 
joehodgeAuthor Commented:
I've set up the listener via Oracle Net configuration Assistant and I can now see the tnsnames service running,

however, when I try c:\ Lsnrctl status I get :

Service OracleOraHome92TNSListener already running
TNS-12536: TNS:operation would block
TNS-12560: TNS:protocol adapter error
 TNS-00506: Operation would block
  32-bit Windows Error: 997: Unknown error
0
 
joehodgeAuthor Commented:
Hi,

I have now set the oracle_sid=playp1 and I can enter sqplus via the dos prompt.

I still get an tnsnames error if I try and access the database throgh TOAD or sqlplus (via Programs - Application Development - SQPLUS)

?? Im confused??
0
 
-jer-Commented:
When you connect, are you typing in PLAYP1 into TOAD or are you typing PLAYP1.WORLD?

Check your sqlnet.ora file and see of your domain is defaulted, that may have something to do with it.
0
 
joehodgeAuthor Commented:
Hi,

thats got it working. I put

NAMES.DEFAULT_DOMAIN = WORLD

in my sqlnet.ora

and then


PLAYP1.WORLD =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = GBSFTEST)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = PLAYP1)
     
    )

and it worked.

thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now