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

Tom Corr

2006-09-18

Replies:

On Monday 18 September 2006 12:04, Sebastian Reitenbach wrote:
Was the new database on the same box as the database that is causing the
problems?

There are several things that can help:

1 - There is a "default" service based on your "DB_UNIQUE_NAME" that seems to
get enabled for me, that does not show up in the "lsnrctl status services"
command. This has driven me nuts before.

2 - you can try setting "local_listener" on the database. This should resolve
to a TNSNAMES.ORA alias that points to the hostname and port information for
the listener. This may help your database instance "auto register" with the
listener.

3 - i would remove the listener entry that you tried to place in the
listener.ora file, as this should not be needed. The database server process
should register with the listener within a few minutes.

4 - some useful commands if using "spfiles", otherwise you must manually edit
the init.ora file:
sqlplus / as sysdba
show parameter serivice_names
show parameter local_listener
alter system set service_names='newservice' scope = both;
alter system set local_listener='tns_alias' scope = both;

Hope this helps...

> 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

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