Solved

PL1-->Cobol-->Oracle

Posted on 2001-07-12
5
540 Views
Last Modified: 2012-05-04
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
Comment
Question by:rose55
5 Comments
 
LVL 6

Expert Comment

by:jpk041897
Comment Utility
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
 

Expert Comment

by:pandi_k
Comment Utility
Hi there

Can u tell me the work around?

Thanx
K.M.P
0
 
LVL 6

Expert Comment

by:jpk041897
Comment Utility
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
 
LVL 54

Expert Comment

by:nico5038
Comment Utility

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
 

Accepted Solution

by:
Jgould earned 0 total points
Comment Utility
Question has been closed as per recommendation

JGould-EE Moderator
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction: Often, when running a query with joins, the results show up "duplicates", and often, those duplicates can be "eliminated" in the results using DISTINCT, for example. Using DISTINCT is simple: just add it after the SELECT keyword, an…
Introduction: I have seen many questions on EE and elsewhere, asking about how to find either gaps in lists of numbers (id field, usually) ranges of values or dates overlapping date ranges combined date ranges I thought it would be a good …
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now