dbTalk Databases Forums  

Starting Oracle Net Listener...forever!? Oracle XE

comp.databases.oracle.server comp.databases.oracle.server


Discuss Starting Oracle Net Listener...forever!? Oracle XE in the comp.databases.oracle.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
CS
 
Posts: n/a

Default Starting Oracle Net Listener...forever!? Oracle XE - 08-04-2010 , 08:33 AM






Hi

I reinstalled my database Oracle XE and now when I run it
/etc/init.d/oracle-xe start,
It hangs for a few minutes on : "Starting Oracle Net Listener... " and when
trying to connectto database i get ORA-12505: TNS: listener could not
resolve SID given in connection description.

Any ideas ?

Reply With Quote
  #2  
Old   
gazzag
 
Posts: n/a

Default Re: Starting Oracle Net Listener...forever!? Oracle XE - 08-04-2010 , 08:40 AM






On 4 Aug, 14:33, "CS" <c... (AT) gryftechnologia (DOT) com> wrote:
Quote:
Hi

I reinstalled my database Oracle XE and now when I run it
/etc/init.d/oracle-xe start,
It hangs for a few minutes on : "Starting Oracle Net Listener... " *andwhen
trying to connectto database i get ORA-12505: TNS: listener could not
resolve SID given in connection description.

Any ideas ?
Can you post your ${ORACLE_HOME}/listener.ora and ${ORACLE_HOME}/
tnsnames.ora please?

-g

Reply With Quote
  #3  
Old   
joel garry
 
Posts: n/a

Default Re: Starting Oracle Net Listener...forever!? Oracle XE - 08-04-2010 , 10:48 AM



On Aug 4, 6:33*am, "CS" <c... (AT) gryftechnologia (DOT) com> wrote:
Quote:
Hi

I reinstalled my database Oracle XE and now when I run it
/etc/init.d/oracle-xe start,
It hangs for a few minutes on : "Starting Oracle Net Listener... " *andwhen
trying to connectto database i get ORA-12505: TNS: listener could not
resolve SID given in connection description.

Any ideas ?
$ oerr ora 12505
12505, 00000, "TNS:listener does not currently know of SID given in
connect descriptor"
// *Cause: The listener received a request to establish a connection
to a
// database or other service. The connect descriptor received by the
listener
// specified a SID for an instance (usually a database instance) that
either
// has not yet dynamically registered with the listener or has not
been
// statically configured for the listener. This may be a temporary
condition
// such as after the listener has started, but before the database
instance
// has registered with the listener.
// *Action:
// - Wait a moment and try to connect a second time.
// - Check which instances are currently known by the listener by
executing:
// lsnrctl services <listener name>
// - Check that the SID parameter in the connect descriptor specifies
// an instance known by the listener.
// - Check for an event in the listener.log file.

Watch the case of the service name, and the ports you use, too.

What connect string are you using? My guess is you wound up with a
different SID than you had before.

Do the appropriate ps on your system to see all processes, grepping
for lsnr, in case you managed to wind up with multiple listeners
somehow. Also grep for dbw, in case you wound up with multiple
instances somehow. Or none at all.

What does tnsping tell you?

jg
--
@home.com is bogus.
“This is John, I’m a little too depressed to take your call today.
Please leave your message at the gunshot.”
http://www.nytimes.com/2010/07/28/ar...8callahan.html

Reply With Quote
  #4  
Old   
CS
 
Posts: n/a

Default Re: Starting Oracle Net Listener...forever!? Oracle XE - 08-05-2010 , 03:54 AM



# listener.ora Network Configuration File:

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM = extproc)
)
)

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = hpserwer)(PORT = 1521))
)
)

DEFAULT_SERVICE_LISTENER = (XE)

# tnsnames.ora Network Configuration File:

XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = hpserwer)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)
)

EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)



Uzytkownik "gazzag" <gareth (AT) jamms (DOT) org> napisal w wiadomosci
news:3ba0cbb3-e8f0-4b81-b875-e14edd884b82 (AT) c10g2000yqi (DOT) googlegroups.com...
On 4 Aug, 14:33, "CS" <c... (AT) gryftechnologia (DOT) com> wrote:
Quote:
Hi

I reinstalled my database Oracle XE and now when I run it
/etc/init.d/oracle-xe start,
It hangs for a few minutes on : "Starting Oracle Net Listener... " and
when
trying to connectto database i get ORA-12505: TNS: listener could not
resolve SID given in connection description.

Any ideas ?
Can you post your ${ORACLE_HOME}/listener.ora and ${ORACLE_HOME}/
tnsnames.ora please?

-g

Reply With Quote
  #5  
Old   
CS
 
Posts: n/a

Default Re: Starting Oracle Net Listener...forever!? Oracle XE - 08-05-2010 , 04:06 AM



My connect string is:
jdbcracle:thin:@localhost:1521:XE (its java aplication runing on
server).

tsnspinf for localhost tell :
Used HOSTNAME adapter to resolve the alias
Attempting to contact
(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRES S=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))
OK (0 msec)

tnsping for address 192.168.1.251 (server adddress) :
Used HOSTNAME adapter to resolve the alias
Attempting to contact
(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRES S=(PROTOCOL=TCP)(HOST=192.168.1.251)(PORT=1521)))
OK (0 msec)

but tns for service name XE failed:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =
hpserwer)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED)
(SERVICE_NAME = XE)))
and hangs forever.





Uzytkownik "joel garry" <joel-garry (AT) home (DOT) com> napisal w wiadomosci
news:c9e03240-df40-4892-885f-87d2d5ea15de (AT) y32g2000prc (DOT) googlegroups.com...
On Aug 4, 6:33 am, "CS" <c... (AT) gryftechnologia (DOT) com> wrote:
Quote:
Hi

I reinstalled my database Oracle XE and now when I run it
/etc/init.d/oracle-xe start,
It hangs for a few minutes on : "Starting Oracle Net Listener... " and
when
trying to connectto database i get ORA-12505: TNS: listener could not
resolve SID given in connection description.

Any ideas ?
$ oerr ora 12505
12505, 00000, "TNS:listener does not currently know of SID given in
connect descriptor"
// *Cause: The listener received a request to establish a connection
to a
// database or other service. The connect descriptor received by the
listener
// specified a SID for an instance (usually a database instance) that
either
// has not yet dynamically registered with the listener or has not
been
// statically configured for the listener. This may be a temporary
condition
// such as after the listener has started, but before the database
instance
// has registered with the listener.
// *Action:
// - Wait a moment and try to connect a second time.
// - Check which instances are currently known by the listener by
executing:
// lsnrctl services <listener name>
// - Check that the SID parameter in the connect descriptor specifies
// an instance known by the listener.
// - Check for an event in the listener.log file.

Watch the case of the service name, and the ports you use, too.

What connect string are you using? My guess is you wound up with a
different SID than you had before.

Do the appropriate ps on your system to see all processes, grepping
for lsnr, in case you managed to wind up with multiple listeners
somehow. Also grep for dbw, in case you wound up with multiple
instances somehow. Or none at all.

What does tnsping tell you?

jg
--
@home.com is bogus.
“This is John, I’m a little too depressed to take your call today.
Please leave your message at the gunshot.”
http://www.nytimes.com/2010/07/28/ar...8callahan.html

Reply With Quote
  #6  
Old   
CS
 
Posts: n/a

Default Re: Starting Oracle Net Listener...forever!? Oracle XE - 08-05-2010 , 06:31 AM



I solved the problem I had a bad entry in / etc / hosts
I had
192.168.1.251 hpserver
and should be
192.168.1.251 hpserwer

whole day wasted because v instead of w.

THX for answers

Użytkownik "CS" <cs (AT) gryftechnologia (DOT) com> napisał w wiadomo¶ci
news:4c596c53$0$19161$65785112 (AT) news (DOT) neostrada.pl...
Quote:
Hi

I reinstalled my database Oracle XE and now when I run it
/etc/init.d/oracle-xe start,
It hangs for a few minutes on : "Starting Oracle Net Listener... " and
when trying to connectto database i get ORA-12505: TNS: listener could not
resolve SID given in connection description.

Any ideas ?

Reply With Quote
  #7  
Old   
gazzag
 
Posts: n/a

Default Re: Starting Oracle Net Listener...forever!? Oracle XE - 08-05-2010 , 06:38 AM



On 5 Aug, 12:31, "CS" <c... (AT) gryftechnologia (DOT) com> wrote:
Quote:
I solved the problem I had a bad entry in / etc / hosts
I had
192.168.1.251 hpserver
and should be
192.168.1.251 hpserwer
Or should the entry in tnsnames.ora be "hpserver"? Anyway, no matter;
glad you fixed the problem.

Quote:
whole day wasted because v instead of w.
Yes, computers are funny like that

Quote:
THX for answers
-g

Reply With Quote
  #8  
Old   
joel garry
 
Posts: n/a

Default Re: Starting Oracle Net Listener...forever!? Oracle XE - 08-05-2010 , 11:57 AM



On Aug 5, 4:31*am, "CS" <c... (AT) gryftechnologia (DOT) com> wrote:


Quote:
whole day wasted because v instead of w.


I've wasted entire days on VW's, fer sure :-)

jg
--
@home.com is bogus.
What database are you in? http://news.cnet.com/8301-31921_3-20012583-281.html

Reply With Quote
  #9  
Old   
gazzag
 
Posts: n/a

Default Re: Starting Oracle Net Listener...forever!? Oracle XE - 08-06-2010 , 04:19 AM



On 5 Aug, 12:38, gazzag <gar... (AT) jamms (DOT) org> wrote:
Quote:
On 5 Aug, 12:31, "CS" <c... (AT) gryftechnologia (DOT) com> wrote:

I solved the problem I had a bad entry in / etc / hosts
I had
192.168.1.251 hpserver
and should be
192.168.1.251 hpserwer

Or should the entry in tnsnames.ora be "hpserver"? *Anyway, no matter;
glad you fixed the problem.

whole day wasted because v instead of w.

Yes, computers are funny like that

THX for answers

-g
I would suggest that you change the entry in /etc/hosts back to what
it was. You might screw something else up. Surely you'd be better
off changing tnsnames.ora instead?

-g

Reply With Quote
Reply




Thread Tools
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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.