Go Premium for a chance to win a PS4. Enter to Win

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

PL1-->Cobol-->Oracle

I am currently updating a PL1 screen to call a Cobol program that calls Oracle. I can get the Cobol/Oracle program to work(I've written many of them). When I run a BTS to test the screen, the cobol program comes down with an Oracle error-12154:TNS:could not resolve service name. Help!! Any suggestions as to where to start?
7/27/01
I got the BTS run to work..the PL1 sreen gets populated correctly. BUT..if I do a regular run of the PL1 screen, it is as if the PL1 program doesn't see the info being passed back from Oracle. The Oracle version is 8i. Help!!
0
rose55
Asked:
rose55
1 Solution
 
jpk041897Commented:
This answer is generaly caused by a typo in the client app or a misconfigured server.

Open the oracle/network/admin/listener.ora file and look for the service name that you are using to establich your connection.

If it does not appear in the listener.ora file then you should create a TNS listener with the appropiate name.

If it does appear, check out your connect string and insure you a re using the correct name, for example:

connect scott/tiger@wrongname

implies that you have either not set up a listener called wrongname or that wrongname is indeed the wrong name.

One final cause, if the client app and the DB server are on the same box, you might have either not set up a listener at all or the listener may be down.

The way you can test this is to log into SQL*Plus on the server box.

If you can't log in using connect scott/tiger then you listener is down.
0
 
pandi_kCommented:
Hi there

Can u tell me the work around?

Thanx
K.M.P
0
 
jpk041897Commented:
What version of Oracle (software and hardware platform are you using).

Generaly, to start the listener when its down you run a program from the command line (dos/windows/Unix):

lsnrctl start

This program usualy resides in the oracle/bin directory.

But the listener won't start at all if it has not been defined. Tell me your OS and Oracle version so that I can tell you how to set up and start the listener for your specific architecture.

0
 
nico5038Commented:

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
 - PAQ'd and pts removed
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 
JgouldCommented:
Question has been closed as per recommendation

JGould-EE Moderator
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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