1 参数文件中的 db_name为修改
oracle@yangDB1:/home/oracle>export ORACLE_SID=orcl
oracle@yangDB1:/home/oracle>rman target /
Recovery Manager: Release 10.2.0.1.0 - Production on Wed Aug 17 18:25:58 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: ORCL (DBID=1286259285)
RMAN> connect auxiliary sys/yang@yqldb
connected to auxiliary database: ORCL (not mounted)
RMAN> exit
原因:实例名称和yqldb不符,修改inityqldb.ora文件中的db_name=‘yqldb’
修改后正常:
oracle@yangDB1:/home/oracle>export ORACLE_SID=orcl
oracle@yangDB1:/home/oracle>rman target /
Recovery Manager: Release 10.2.0.1.0 - Production on Wed Aug 17 18:25:58 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: ORCL (DBID=1286259285)
RMAN> connect auxiliary sys/yang@yqldb
connected to auxiliary database: YQLDB (not mounted)
2 监听方面的问题:
# listener.ora Network Configuration File: /opt/oracle/10.2.0/orcl/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /opt/oracle/10.2.0/orcl)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_NAME = PLSExtProc)
(ORACLE_HOME = /opt/oracle/10.2.0/orcl)
(SID_NAME = yqldb)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1 )(PORT = 1521))
)
)
oracle@yangDB1:/opt/oracle/10.2.0/orcl/network/admin>lsnrctl status
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 17-AUG-2011 17:38:44
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
修改 (GLOBAL_NAME = PLSExtProc)为 (GLOBAL_NAME = yqldb)
问题解决
oracle@yangDB1:/opt/oracle/10.2.0/orcl/dbs>lsnrctl status
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 17-AUG-2011 17:43:01
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 17-AUG-2011 17:42:30
Uptime 0 days 0 hr. 0 min. 31 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/oracle/10.2.0/orcl/network/admin/listener.ora
Listener Log File /opt/oracle/10.2.0/orcl/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "yqldb" has 1 instance(s).
Instance "yqldb", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully