ORA-12154: TNS:could not resolve service name [message #338473] |
Tue, 05 August 2008 03:54 |
in.lukfai
Messages: 8 Registered: July 2008 Location: India
|
Junior Member |
|
|
#########################################################################################################
C:\>set oracle_sid=katie3
C:\>net start oracleServiceKatie3
The OracleServicekatie3 service is starting.
The OracleServicekatie3 service was started successfully.
C:\>rman target sys/katie3@katie3
Recovery Manager: Release 9.2.0.1.0 - Production
Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: error from target database:
ORA-12154: TNS:could not resolve service name
############################################################################################
Whenever I connect to DB and mention @database_name then I always get this error:
ORA-12154: TNS:could not resolve service name
If I do not mention, just simply add user name and password then I can connect to database.
############################################################################################
C:\>rman target sys/katie3
Recovery Manager: Release 9.2.0.1.0 - Production
Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
connected to target database (not started)
RMAN>
############################################################################################
I have checked TNSNAMES.ORA file and service name is already there:
###########################################################################################
# TNSNAMES.ORA Network Configuration File: C:\oracle\ora92\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
KATIE_LOCALHOAT =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhoat)(PORT = 1521))
)
(CONNECT_DATA =
(SID = katie)
(SERVER = DEDICATED)
)
)
RMAN_LOCALHOST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
(CONNECT_DATA =
(SID = rman)
(SERVER = DEDICATED)
)
)
###########################################################################################
What is wrong? The main point is I would like to connect target database and then catalog database but if I mention @database_name then I could not log in.
At first, I thought it might be some wrong settings in TNSNAME.ORA file and catalog database then it was not let me connect to catalog DB. Then I try to connect only single database(target) then it shows me the same error above.
###########################################################################################
C:\>rman target sys/katie3
Recovery Manager: Release 9.2.0.1.0 - Production
Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
connected to target database (not started)
RMAN> connect catalog rman_u/rman@rman
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-04004: error from recovery catalog database: ORA-12154: TNS:could not resolve service name
RMAN>
###########################################################################################
|
|
|
|
|
|