Java Mailing List Archive

http://www.dba.5341.com/

Home » Home (12/2007) » suse oracle »

RE: [suse-oracle] how to get rid of ORA-12514

michael d taylor

2006-09-18

Replies:

Try changing LISTENER = to DB002 = in listener.ora, and change the port
in both listener.ora and tnsnames.ora to anything other than 1521. 1522
should be fine. It appears the auto registration to the local_listener
init parameter is not working. Then start the listener with lsnrctl
start db002.

-Michael

-----Original Message-----
From: Sebastian Reitenbach [mailto:reitenbach@(protected)]
Sent: Monday, September 18, 2006 9:05 AM
To: suse-oracle@(protected)
Subject: [suse-oracle] how to get rid of ORA-12514

Hi,

I am using oracle 10g. after a reboot of the database server, I get the
ORA-12514: TNS:listener does not currently know of service requested in
connect
when I try to connect to it via sqlplus.
looking at ora-code.com, it says, I shall wait a bit, it needs to
register to
the listener.

just for testing, I created a new database with dbca, activated it
in /etc/oratab, then restarted oracle. It says the listener is fine, it
says
the database was successfully warm started.

a tnsping works well:

TNS Ping Utility for Linux: Version 10.1.0.3.0 - Production on
18-SEP-2006
17:45:28

Copyright (c) 1997, 2003, Oracle. All rights reserved.

Used parameter files:
/opt/oracle/app/oracle/10.1.0/Db_1/network/admin/sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =
192.168.0.13)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED)
(SERVICE_NAME
= db002)))
OK (0 msec)


and a lsnrctl status shows me:
lsnrctl status

LSNRCTL for Linux: Version 10.1.0.3.0 - Production on 18-SEP-2006
17:50:21

Copyright (c) 1991, 2004, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
STATUS of the LISTENER
------------------------
Alias              LISTENER
Version             TNSLSNR for Linux: Version 10.1.0.3.0 -
Production
Start Date           18-SEP-2006 17:42:47
Uptime             0 days 0 hr. 7 min. 34 sec
Trace Level          user
Security            ON: Local OS Authentication
SNMP               OFF
Listener Parameter
File  /opt/oracle/app/oracle/10.1.0/Db_1/network/admin/listener.ora
Listener Log
File      /opt/oracle/app/oracle/10.1.0/Db_1/network/log/listener.log
Listener Trace
File     /opt/oracle/app/oracle/10.1.0/Db_1/network/trace/listener.trc
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.13)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this
service...
The command completed successfully

shouldn't there be a Service db002 listed? this is my listener.ora file:
# listener.ora Network Configuration
File: /opt/oracle/app/oracle/10.1.0/Db_1//network/admin/listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
(SID_LIST =
  (SID_DESC =
   (SID_NAME = PLSExtProc)
   (ORACLE_HOME = /opt/oracle/app/oracle/10.1.0/Db_1)
   (PROGRAM = extproc)
  )
)

LISTENER =
(DESCRIPTION_LIST =
  (DESCRIPTION =
   (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
  )
  (DESCRIPTION =
   (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.13)(PORT = 1521))
  )
)

TRACE_LEVEL_LISTENER = USER

I added the following to the SID_LIST_LISTENER:
  (SID_DESC =
   (SID_NAME = db002)
   (ORACLE_HOME = /opt/oracle/app/oracle/10.1.0/Db_1)
  )

then a lsnrctl status showed me the db002, but still the same error when

trying to connect to the database with sqlplus.
but afaik, I do not need to add this snippet in the listener.ora file,
the
database should register automatically.

any hint how do I let the listener know about the databases available,
what I
can do or where to look for errors or warning messages?

kind regards
Sebastian


--
To unsubscribe, email: suse-oracle-unsubscribe@(protected)
For additional commands, email: suse-oracle-help@(protected)
Please see http://www.suse.com/oracle/ before posting


--
To unsubscribe, email: suse-oracle-unsubscribe@(protected)
For additional commands, email: suse-oracle-help@(protected)
Please see http://www.suse.com/oracle/ before posting

©2008 dba.5341.com - Jax Systems, LLC, U.S.A.