Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > How to set up a listener?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-03-02, 07:41
manishbhatnagar manishbhatnagar is offline
Junior Member
 
Join Date: Apr 2002
Location: India
Posts: 3
How to set up a listener?

I am unable to set up a listener for Oracle. I am quite new to this stuff. I have created an MFC application that accesses various databases like Access, MySQL etc. When I add a new class and provide a new ODBC datasource (an Oracle DSN) I get the following error: "Driver's SQLSetConnectAttr failed". Please have a look at the file attached. When I test the service using Net8, I get the error "ORA-12541: TNS:no listener". How do I set listeners?
Reply With Quote
  #2 (permalink)  
Old 04-04-02, 09:39
Breen Breen is offline
Registered User
 
Join Date: Mar 2002
Location: Ireland
Posts: 181
check in $ORACLE_HOME/network/admin

there should be a file there called listener.ora

this is different depending on if you have a multithreaded server or not, do you use MTS?

anyway, change the file and to start the listener, at the command line:

lsnrctl start

Tell me how you get on or if you need to know what to put in the listener.ora file
Reply With Quote
  #3 (permalink)  
Old 04-04-02, 23:58
manishbhatnagar manishbhatnagar is offline
Junior Member
 
Join Date: Apr 2002
Location: India
Posts: 3
Quote:
Originally posted by Breen
check in $ORACLE_HOME/network/admin

there should be a file there called listener.ora

this is different depending on if you have a multithreaded server or not, do you use MTS?

anyway, change the file and to start the listener, at the command line:

lsnrctl start

Tell me how you get on or if you need to know what to put in the listener.ora file

Thanks, Breen, for your help. I got it working. I was not starting the listener before. Btw, how do I know that the server I am using is multithreaded? I am using Personal Oracle 8i on Windows 98.
Reply With Quote
  #4 (permalink)  
Old 04-05-02, 04:08
Breen Breen is offline
Registered User
 
Join Date: Mar 2002
Location: Ireland
Posts: 181
Hi manishbhatnagar,

If you go into the listener, type:

lsnrctl

you will get to the prompt:

LSNRCTL>

type services

LSNRCTL> services

This will provide you with information on what databases this listener is listening for (if you have MTS, you will see listings for DISPATCHERS).
If you don't know about MTS then you probably don't use it.

Also, if you type help at the listener prompt it will give you some of the listener commands which can be usefull.

Best of luck,
Breen.
Reply With Quote
  #5 (permalink)  
Old 04-05-02, 04:43
manishbhatnagar manishbhatnagar is offline
Junior Member
 
Join Date: Apr 2002
Location: India
Posts: 3
Hi Breen,
Yeah... I saw the 'services' thing... my server is not multithreaded... it seems....
Thanks once again.
Manish
manish@accord-soft.com
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On