[oracle@hacker oracle]$ lsnrctlLSNRCTL for Linux: Version 8.1.7.0.0 - Production on 19-OCT-2004 17:09:12(c) Copyright 1998 Oracle Corporation. All rights reserved.Welcome to LSNRCTL, type "help" for information.LSNRCTL> set password 123LSNRCTL> stop
转: [oracle@oratest oracle]$ lsnrctl statusLSNRCTL for Linux: Version 9.2.0.4.0 - Production on 13-SEP-2004 15:35:53Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 9.2.0.4.0 - Production Start Date 05-SEP-2004 18:04:55 Uptime 7 days 21 hr. 30 min. 58 sec Trace Level off Security OFF SNMP OFF Listener Parameter File /opt/oracle/products/9.2.0/network/admin/listener.ora Listener Log File /opt/oracle/products/9.2.0/network/log/listener.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.65.61)(PORT=1521))) Services Summary... Service "PLSExtProc" has 1 instance(s). Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... Service "bopscha.db.alibaba.com" has 2 instance(s). Instance "bopschatest", status UNKNOWN, has 1 handler(s) for this service... Instance "bopschatest", status READY, has 1 handler(s) for this service... Service "ocn.db.alibaba.com" has 2 instance(s). Instance "ocntest", status UNKNOWN, has 1 handler(s) for this service... Instance "ocntest", status READY, has 1 handler(s) for this service... The command completed successfully [oracle@oratest oracle]$ more /opt/oracle/products/9.2.0/network/admin/listener.ora # LISTENER.ORA.OCNSB1 Network Configuration File: /opt/oracle/products/9.2.0/network/admin/listener.ora.ocnsb1 # Generated by Oracle configuration tools.LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC)) ) (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.65.61)(PORT = 1521)) ) ) )SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = ocn.db.alibaba.com) (ORACLE_HOME = /opt/oracle/products/9.2.0) (SID_NAME = ocntest) ) (SID_DESC = (GLOBAL_DBNAME = bopscha.db.alibaba.com) (ORACLE_HOME = /opt/oracle/products/9.2.0) (SID_NAME = bopschatest) ) (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = /opt/oracle/products/9.2.0) (PROGRAM = extproc) ) )[oracle@oratest oracle]$ lsnrctlLSNRCTL for Linux: Version 9.2.0.4.0 - Production on 13-SEP-2004 15:36:47Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.Welcome to LSNRCTL, type "help" for information.LSNRCTL> change_password Old password: New password: Reenter new password: Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))) Password changed for LISTENER The command completed successfully LSNRCTL> set password Password: The command completed successfully LSNRCTL> save_config Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))) Saved LISTENER configuration parameters. Listener Parameter File /opt/oracle/products/9.2.0/network/admin/listener.ora Old Parameter File /opt/oracle/products/9.2.0/network/admin/listener.bak The command completed successfully LSNRCTL> exit [oracle@oratest oracle]$ more /opt/oracle/products/9.2.0/network/admin/listener.ora # LISTENER.ORA.OCNSB1 Network Configuration File: /opt/oracle/products/9.2.0/network/admin/listener.ora.ocnsb1 # Generated by Oracle configuration tools.LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC)) ) (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.65.61)(PORT = 1521)) ) ) )SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = ocn.db.alibaba.com) (ORACLE_HOME = /opt/oracle/products/9.2.0) (SID_NAME = ocntest) ) (SID_DESC = (GLOBAL_DBNAME = bopscha.db.alibaba.com) (ORACLE_HOME = /opt/oracle/products/9.2.0) (SID_NAME = bopschatest) ) (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = /opt/oracle/products/9.2.0) (PROGRAM = extproc) ) ) #----ADDED BY TNSLSNR 13-SEP-2004 15:37:20--- PASSWORDS_LISTENER = C95704F74153BB02 #-------------------------------------------- [oracle@oratest oracle]$ lsnrctl statusLSNRCTL for Linux: Version 9.2.0.4.0 - Production on 13-SEP-2004 15:37:37Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))) TNS-01169: The listener has not recognized the password [oracle@oratest oracle]$ lsnrctlLSNRCTL for Linux: Version 9.2.0.4.0 - Production on 13-SEP-2004 15:37:44Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.Welcome to LSNRCTL, type "help" for information.LSNRCTL> stop Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))) TNS-01169: The listener has not recognized the password LSNRCTL> set password Password: The command completed successfully LSNRCTL> stop Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))) The command completed successfully LSNRCTL> start Starting /opt/oracle/products/9.2.0/bin/tnslsnr: please wait...TNSLSNR for Linux: Version 9.2.0.4.0 - Production System parameter file is /opt/oracle/products/9.2.0/network/admin/listener.ora Log messages written to /opt/oracle/products/9.2.0/network/log/listener.log Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.65.61)(PORT=1521)))Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 9.2.0.4.0 - Production Start Date 13-SEP-2004 15:38:05 Uptime 0 days 0 hr. 0 min. 0 sec Trace Level off Security ON SNMP OFF Listener Parameter File /opt/oracle/products/9.2.0/network/admin/listener.ora Listener Log File /opt/oracle/products/9.2.0/network/log/listener.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.65.61)(PORT=1521))) Services Summary... Service "PLSExtProc" has 1 instance(s). Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... Service "bopscha.db.alibaba.com" has 1 instance(s). Instance "bopschatest", status UNKNOWN, has 1 handler(s) for this service... Service "ocn.db.alibaba.com" has 1 instance(s). Instance "ocntest", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully LSNRCTL>
[oracle@oratest oracle]$ lsnrctl statusLSNRCTL for Linux: Version 9.2.0.4.0 - Production on 13-SEP-2004 15:35:53Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 9.2.0.4.0 - Production
Start Date 05-SEP-2004 18:04:55
Uptime 7 days 21 hr. 30 min. 58 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File /opt/oracle/products/9.2.0/network/admin/listener.ora
Listener Log File /opt/oracle/products/9.2.0/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.65.61)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "bopscha.db.alibaba.com" has 2 instance(s).
Instance "bopschatest", status UNKNOWN, has 1 handler(s) for this service...
Instance "bopschatest", status READY, has 1 handler(s) for this service...
Service "ocn.db.alibaba.com" has 2 instance(s).
Instance "ocntest", status UNKNOWN, has 1 handler(s) for this service...
Instance "ocntest", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@oratest oracle]$ more /opt/oracle/products/9.2.0/network/admin/listener.ora
# LISTENER.ORA.OCNSB1 Network Configuration File: /opt/oracle/products/9.2.0/network/admin/listener.ora.ocnsb1
# Generated by Oracle configuration tools.LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.65.61)(PORT = 1521))
)
)
)SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = ocn.db.alibaba.com)
(ORACLE_HOME = /opt/oracle/products/9.2.0)
(SID_NAME = ocntest)
)
(SID_DESC =
(GLOBAL_DBNAME = bopscha.db.alibaba.com)
(ORACLE_HOME = /opt/oracle/products/9.2.0)
(SID_NAME = bopschatest)
)
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /opt/oracle/products/9.2.0)
(PROGRAM = extproc)
)
)[oracle@oratest oracle]$ lsnrctlLSNRCTL for Linux: Version 9.2.0.4.0 - Production on 13-SEP-2004 15:36:47Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.Welcome to LSNRCTL, type "help" for information.LSNRCTL> change_password
Old password:
New password:
Reenter new password:
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
Password changed for LISTENER
The command completed successfully
LSNRCTL> set password
Password:
The command completed successfully
LSNRCTL> save_config
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
Saved LISTENER configuration parameters.
Listener Parameter File /opt/oracle/products/9.2.0/network/admin/listener.ora
Old Parameter File /opt/oracle/products/9.2.0/network/admin/listener.bak
The command completed successfully
LSNRCTL> exit
[oracle@oratest oracle]$ more /opt/oracle/products/9.2.0/network/admin/listener.ora
# LISTENER.ORA.OCNSB1 Network Configuration File: /opt/oracle/products/9.2.0/network/admin/listener.ora.ocnsb1
# Generated by Oracle configuration tools.LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.65.61)(PORT = 1521))
)
)
)SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = ocn.db.alibaba.com)
(ORACLE_HOME = /opt/oracle/products/9.2.0)
(SID_NAME = ocntest)
)
(SID_DESC =
(GLOBAL_DBNAME = bopscha.db.alibaba.com)
(ORACLE_HOME = /opt/oracle/products/9.2.0)
(SID_NAME = bopschatest)
)
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /opt/oracle/products/9.2.0)
(PROGRAM = extproc)
)
)
#----ADDED BY TNSLSNR 13-SEP-2004 15:37:20---
PASSWORDS_LISTENER = C95704F74153BB02
#--------------------------------------------
[oracle@oratest oracle]$ lsnrctl statusLSNRCTL for Linux: Version 9.2.0.4.0 - Production on 13-SEP-2004 15:37:37Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
TNS-01169: The listener has not recognized the password
[oracle@oratest oracle]$ lsnrctlLSNRCTL for Linux: Version 9.2.0.4.0 - Production on 13-SEP-2004 15:37:44Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.Welcome to LSNRCTL, type "help" for information.LSNRCTL> stop
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
TNS-01169: The listener has not recognized the password
LSNRCTL> set password
Password:
The command completed successfully
LSNRCTL> stop
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
The command completed successfully
LSNRCTL> start
Starting /opt/oracle/products/9.2.0/bin/tnslsnr: please wait...TNSLSNR for Linux: Version 9.2.0.4.0 - Production
System parameter file is /opt/oracle/products/9.2.0/network/admin/listener.ora
Log messages written to /opt/oracle/products/9.2.0/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.65.61)(PORT=1521)))Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 9.2.0.4.0 - Production
Start Date 13-SEP-2004 15:38:05
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON
SNMP OFF
Listener Parameter File /opt/oracle/products/9.2.0/network/admin/listener.ora
Listener Log File /opt/oracle/products/9.2.0/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.65.61)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "bopscha.db.alibaba.com" has 1 instance(s).
Instance "bopschatest", status UNKNOWN, has 1 handler(s) for this service...
Service "ocn.db.alibaba.com" has 1 instance(s).
Instance "ocntest", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL>