sikyala
asked on
How do I resolve ORA-12514: TNS:listener does not currently know of service requested in
When I type emca -repos create
I get prompted with the question:
Do you wish to continue? [yes(Y)/no(N)]: Y
Jul 22, 2011 3:16:49 PM oracle.sysman.emcp.EMConfi g perform
INFO: This operation is being logged at /raquel/u01/app/oracle/pro duct/10.2. 0.1/cfgtoo llogs/emca /tems/emca _2011-07-2 2_03-16-08 -PM.log.
Jul 22, 2011 3:16:50 PM oracle.sysman.emcp.Databas eChecks performReposChecks
SEVERE: Dbcontrol Repository already exists. Fix the error(s) and run EM Configuration Assistant again in standalone mode.
Now when I type emca -repos recreate
I get the following error in the log file:
WARNING: ORA-12514: TNS:listener does not currently know of service requested in
connect descriptor
The database is online and the listener as well. I don't know how to fix this. Can someone help me?
I get prompted with the question:
Do you wish to continue? [yes(Y)/no(N)]: Y
Jul 22, 2011 3:16:49 PM oracle.sysman.emcp.EMConfi
INFO: This operation is being logged at /raquel/u01/app/oracle/pro
Jul 22, 2011 3:16:50 PM oracle.sysman.emcp.Databas
SEVERE: Dbcontrol Repository already exists. Fix the error(s) and run EM Configuration Assistant again in standalone mode.
Now when I type emca -repos recreate
I get the following error in the log file:
WARNING: ORA-12514: TNS:listener does not currently know of service requested in
connect descriptor
The database is online and the listener as well. I don't know how to fix this. Can someone help me?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
LSNRCTL for Solaris: Version 10.2.0.5.0 - Production on 04-AUG-2011 15:25:18
Copyright (c) 1991, 2010, Oracle. All rights reserved.
lsnrctl services LISTENER
Connecting to (DESCRIPTION=(ADDRESS=(PRO TOCOL=IPC) (KEY=EXTPR OC)))
Services Summary...
Service "tems.usae.bah.com" has 1 instance(s).
Instance "tems", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:113571 refused:80
LOCAL SERVER
The command completed successfully
The oracle sid is tems
Copyright (c) 1991, 2010, Oracle. All rights reserved.
lsnrctl services LISTENER
Connecting to (DESCRIPTION=(ADDRESS=(PRO
Services Summary...
Service "tems.usae.bah.com" has 1 instance(s).
Instance "tems", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:113571 refused:80
LOCAL SERVER
The command completed successfully
The oracle sid is tems
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
So can you login to tems via TNS?
sqlplus system/<pass>@tems
Does tnsnames.ora have the correct alias for tems?
sqlplus system/<pass>@tems
Does tnsnames.ora have the correct alias for tems?
ASKER
yes
tnsnames.ora
tems.USAE.BAH.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = backupdb)(PORT = 1522))
)
(CONNECT_DATA =
(SERVICE_NAME = tems.usae.bah.com)
)
)
tnsnames.ora
tems.USAE.BAH.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = backupdb)(PORT = 1522))
)
(CONNECT_DATA =
(SERVICE_NAME = tems.usae.bah.com)
)
)
Run alter system register
This "Instance "tems", status UNKNOWN, has 1 handler(s) for this service...
should go to a READY state and then you are good.
You can check the status of the service through "lsnrctl status" command too.
should go to a READY state and then you are good.
You can check the status of the service through "lsnrctl status" command too.
ASKER
I executed alter system register
$ lsnrctl status
LSNRCTL for Solaris: Version 10.2.0.5.0 - Production on 04-AUG-2011 15:39:07
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PRO TOCOL=IPC) (KEY=EXTPR OC)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Solaris: Version 10.2.0.5.0 - Production
Start Date 04-AUG-2011 15:38:57
Uptime 0 days 0 hr. 0 min. 10 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /raquel/u01/app/oracle/pro duct/10.2. 0.1/networ k/admin/li stener.ora
Listener Log File /raquel/u01/app/oracle/pro duct/10.2. 0.1/networ k/log/list ener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PRO TOCOL=ipc) (KEY=EXTPR OC)))
(DESCRIPTION=(ADDRESS=(PRO TOCOL=tcp) (HOST=back updb)(PORT =1522)))
Services Summary...
Service "tems.usae.bah.com" has 1 instance(s).
Instance "tems", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
$ lsnrctl status
LSNRCTL for Solaris: Version 10.2.0.5.0 - Production on 04-AUG-2011 15:39:07
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PRO
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Solaris: Version 10.2.0.5.0 - Production
Start Date 04-AUG-2011 15:38:57
Uptime 0 days 0 hr. 0 min. 10 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /raquel/u01/app/oracle/pro
Listener Log File /raquel/u01/app/oracle/pro
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PRO
(DESCRIPTION=(ADDRESS=(PRO
Services Summary...
Service "tems.usae.bah.com" has 1 instance(s).
Instance "tems", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
Looks like you have domains set in the database. What does your sqlnet.ora file look like? You might need to set the default domain or specify the full name in your connects: tems.usae.bah.com
Fyi: is that not a 'sensitive' domain name? In other words, should you be posting it in a public site?
Fyi: is that not a 'sensitive' domain name? In other words, should you be posting it in a public site?
ASKER
I didn't think it was sensitive because it isn't an IP address. in the sqlnet file the names.default_domain is set to usae.bah.com
NAMES.DEFAULT_DOMAIN = usae.bah.com
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES)
NAMES.DEFAULT_DOMAIN = usae.bah.com
NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES)
>>I didn't think it was sensitive because it isn't an IP address
C:\>nslookup usae.bah.com
Address: 10.128.0.5
Name: usae.bah.com
>>NAMES.DEFAULT_DOMAIN = usae.bah.com
from a command prompt try: tnsping tems.usae.bah.com
C:\>nslookup usae.bah.com
Address: 10.128.0.5
Name: usae.bah.com
>>NAMES.DEFAULT_DOMAIN = usae.bah.com
from a command prompt try: tnsping tems.usae.bah.com
ASKER
that is not the IP
tnsping comes back ok
tnsping comes back ok
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks
I doubt the listener is listening to any DB services.