ORA-12505 [message #408433] |
Tue, 16 June 2009 03:43 |
westen30
Messages: 13 Registered: June 2009
|
Junior Member |
|
|
Hi,
I have Oracle 10g installed on a Windows 2003 Server Virtual Machine and I have the following problem that I hope someone can help me with.
All the Oracle services seem to start ok on OS startup, but I am unable to access my database, so I run up Enterprise Manager in my Browser. I get the following statuses:
Database Instance Down
Listener Up
Agent has the error message. ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)
So I click on the Startup button and I enter my OS username and password and the database starts and I'm able to access it.
I don't understand why the Database starts manually but not automatically on startup. Its not a major problem to do this as its just a test environment its just annoying.
If you require any more info let me know.
Regards
Martin
|
|
|
|
Re: ORA-12505 [message #408457 is a reply to message #408433] |
Tue, 16 June 2009 05:17 |
westen30
Messages: 13 Registered: June 2009
|
Junior Member |
|
|
Thank you, I had already seen that article and tried the suggestions but it still doesn't explain why I'm getting the problem.
After logging in to the OS I ran lsnrctl services LISTENER as suggested and I get the following results:
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-JUN-2009 11:06
:37
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=teamcenter07)(PORT=1521)
))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
The command completed successfully
and in the listener.log file I get these lines:
16-JUN-2009 11:06:39 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.92.128)(PORT=1250)) * establish * orcl * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
16-JUN-2009 11:07:07 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.92.128)(PORT=1255)) * establish * orcl * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
16-JUN-2009 11:07:10 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.92.128)(PORT=1258)) * establish * orcl * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
16-JUN-2009 11:07:10 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.92.128)(PORT=1259)) * establish * orcl * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
After going into em and doing a startup I run lsnrctl services LISTENER again and I get:
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-JUN-2009 10:54
:57
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=teamcenter07)(PORT=1521)
))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:99 refused:0 state:ready
LOCAL SERVER
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1002 state:ready
DISPATCHER <machine: TEAMCENTER07, pid: 172>
(ADDRESS=(PROTOCOL=tcp)(HOST=teamcenter07.tisuk.thales)(PORT=1279))
Service "orcl_XPT" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:99 refused:0 state:ready
LOCAL SERVER
The command completed successfully
And the log file has these lines:
16-JUN-2009 11:09:56 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.92.128)(PORT=1543)) * establish * orcl * 0
16-JUN-2009 11:09:56 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.92.128)(PORT=1544)) * establish * orcl * 0
16-JUN-2009 11:09:56 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.92.128)(PORT=1545)) * establish * orcl * 0
16-JUN-2009 11:09:56 * service_update * orcl * 0
16-JUN-2009 11:10:01 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.92.128)(PORT=1546)) * establish * orcl * 0
16-JUN-2009 11:10:02 * service_update * orcl * 0
16-JUN-2009 11:10:11 * service_update * orcl * 0
16-JUN-2009 11:10:12 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.92.128)(PORT=1549)) * establish * orcl * 0
16-JUN-2009 11:10:13 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.92.128)(PORT=1551)) * establish * orcl * 0
16-JUN-2009 11:10:14 * service_update * orcl * 0
16-JUN-2009 11:10:32 * service_update * orcl * 0
I still don't understand why I have to startup manually and it doesn't start automatically.
Cheers
Martin
|
|
|
|
Re: ORA-12505 [message #408520 is a reply to message #408517] |
Tue, 16 June 2009 09:24 |
westen30
Messages: 13 Registered: June 2009
|
Junior Member |
|
|
All the Oracle services are set to Auto and seem to start normally, there seems to be no difference in the state of the services after doing a startup in EM.
Cheers
Martin
|
|
|
|
Re: ORA-12505 [message #408527 is a reply to message #408521] |
Tue, 16 June 2009 10:10 |
westen30
Messages: 13 Registered: June 2009
|
Junior Member |
|
|
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = teamcenter07)(PORT = 1521))
)
)
# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = teamcenter07)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
|
|
|
|
|
|
|
|
|
Re: ORA-12505 [message #408544 is a reply to message #408541] |
Tue, 16 June 2009 11:52 |
westen30
Messages: 13 Registered: June 2009
|
Junior Member |
|
|
gentlebabu wrote on Tue, 16 June 2009 17:05 |
Try to check
1/ lsnrctl services <listener name>
2/ Check SERVICE_NAME parameter (Check from sys user)
Thanks
|
1/ Already ran this and posted the results earlier, I get different results before and after doing a manual startup.
2/ The SERVICE_NAME is orcl
Cheers
|
|
|
|
|
Re: ORA-12505 [message #409016 is a reply to message #409011] |
Thu, 18 June 2009 14:24 |
westen30
Messages: 13 Registered: June 2009
|
Junior Member |
|
|
BlackSwan wrote on Thu, 18 June 2009 19:57 | >Any other ideas anyone?
Post the content & location of the script that is supposed to start the Oracle database after the OS boots up.
|
I don't know if there is a script, the problem is that the Oracle services appear to start normally but I am unable to connect to the database. When I open the em console in ie it says that the Database instance is down, the Listener is up and the Agent is down with the ORA-12505 error. I can then click the Startup button and I can then connect to the database. I shouldn't have to do this, on other installations I can just connect to the database on OS startup. I was hoping somebody would be able to tell me why I am getting this error.
Many thanks
Martin
|
|
|
|
Re: ORA-12505 [message #409082 is a reply to message #409018] |
Fri, 19 June 2009 05:09 |
westen30
Messages: 13 Registered: June 2009
|
Junior Member |
|
|
The ORACLE_HOME environment variable is set to C:\oracle\product\10.2.0\db_1 that is the only oracle home I have on the server.
Cheers
Martin
|
|
|
|
Re: ORA-12505 [message #409358 is a reply to message #409178] |
Mon, 22 June 2009 05:13 |
westen30
Messages: 13 Registered: June 2009
|
Junior Member |
|
|
Here are the results of running lsnrctl
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-JUN-2009 11:06
:37
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=teamcenter07)(PORT=1521)
))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
The command completed successfully
Regards
|
|
|
|
|
|
Re: ORA-12505 [message #409586 is a reply to message #409451] |
Tue, 23 June 2009 03:47 |
westen30
Messages: 13 Registered: June 2009
|
Junior Member |
|
|
Here are the results of the lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 23-JUN-2009 09:44
:54
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=teamcenter07)(PORT=1521)
))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
Start Date 23-JUN-2009 09:42:09
Uptime 0 days 0 hr. 2 min. 45 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\oracle\product\10.2.0\db_1\network\admin\listener.o
ra
Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=teamcenter07.tisuk.thales)(PORT=1521
)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orcl_XPT" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
And the results of lsnrctl service
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 23-JUN-2009 09:46
:12
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=teamcenter07)(PORT=1521)
))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:2 refused:0 state:ready
LOCAL SERVER
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1002 state:ready
DISPATCHER <machine: TEAMCENTER07, pid: 1736>
(ADDRESS=(PROTOCOL=tcp)(HOST=teamcenter07.tisuk.thales)(PORT=1033))
Service "orcl_XPT" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:2 refused:0 state:ready
LOCAL SERVER
The command completed successfully
|
|
|
Re: ORA-12505 [message #409709 is a reply to message #409586] |
Tue, 23 June 2009 10:13 |
babuknb
Messages: 1736 Registered: December 2005 Location: NJ
|
Senior Member |
|
|
Here are the results of the lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 23-JUN-2009 09:44
:54
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=teamcenter07)(PORT=1521)
))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
Start Date 23-JUN-2009 09:42:09
Uptime 0 days 0 hr. 2 min. 45 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\oracle\product\10.2.0\db_1\network\admin\listener.o
ra
Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=teamcenter07.tisuk.thales)(PORT=1521
)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orcl_XPT" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
And the results of lsnrctl service
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 23-JUN-2009 09:46
:12
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=teamcenter07)(PORT=1521)
))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:2 refused:0 state:ready
LOCAL SERVER
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1002 state:ready
DISPATCHER <machine: TEAMCENTER07, pid: 1736>
(ADDRESS=(PROTOCOL=tcp)(HOST=teamcenter07.tisuk.thales)(PORT=1033))
Service "orcl_XPT" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:2 refused:0 state:ready
LOCAL SERVER
The command completed successfully
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = teamcenter07)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
As per your update; The above TNS Entry should work; Suppose if you have any problem; Try to re-create your listener.
Thanks
|
|
|