listener密码设置及取消问题

以下是给监听器设置密码的步骤:进入LSNRCTL

--设置监听器的口令.默认口令为空.LSNRCTL> change_password
Old password:
New password:
Reenter new password:
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=vecentli)(PORT=1521)))LISTENER的口令已更改命令执行成功LSNRCTL>

[@more@]

以下是给监听器设置密码的步骤:进入LSNRCTL

--设置监听器的口令.默认口令为空.LSNRCTL> change_password
Old password:
New password:
Reenter new password:
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=vecentli)(PORT=1521)))LISTENER的口令已更改命令执行成功LSNRCTL>

--
设置session级别的密码,如果密码错误,不报错,也显示"命令执行成功",但不能停止监听器.LSNRCTL> set password
Password:
命令执行成功--保存到配置文件,否则下次登陆,以前设置的密码无效.LSNRCTL> save_config正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=vecentli)(PORT=1521)))保存的LISTENER配置参数。监听器参数文件 D:oracleora92networkadminlistener.ora旧的参数文件D:oracleora92networkadminlistener.bak命令执行成功LSNRCTL>LSNRCTL>exit

--------------------------------------------------------------------------

忘记密码怎么办?

我现在的情况是:原来对listener设过密码,可忘了密码了,而listener.ora文件已被修改,listener是已经启来的。这时我在本机既不能查看状态(status),也不能stop后按新的listener.ora文件启动。

http://www.itpub.net/showthread.php?s=&threadid=560996&perpage=10&pagenumber=1

不论我是到别的环境的instance,设置一个新的密码,然后cp listener.ora过来;还是直接把加密的那一段删除,都是一样的情况。

[oracle@qadb admin]$ /u01/app/oracle/product/9.2.0.4/bin/lsnrctl

LSNRCTL for Linux: Version 9.2.0.4.0 - Production on 01-JUN-2006 09:22:39

Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.

Welcome to LSNRCTL, type "help" for information.

LSNRCTL> status
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> status
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> status
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> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
TNS-01169: The listener has not recognized the password
LSNRCTL> start
Starting /u01/app/oracle/product/9.2.0.4/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 9.2.0.4.0 - Production
System parameter file is /u01/app/oracle/product/9.2.0.4/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/9.2.0.4/network/log/listener.log
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
TNS-12542: TNS:address already in use
TNS-12560: TNSrotocol adapter error
TNS-00512: Address already in use
Linux Error: 98: Address already in use

Listener failed to start. See the error message(s) above...

LSNRCTL>

最后只有kill listener的进程,然后修改listener.ora为未设密码的状态,就正常了:

[oracle@qadb admin]$ ps -aux |grep lsnr
oracle 1884 0.0 0.2 14652 2132 ? S May03 0:45 /u01/app/oracle/product/9.2.0.4/bin/tnslsnr LISTENER -inherit
oracle 17762 0.0 0.0 3588 620 pts/5 S 13:14 0:00 grep lsnr
[oracle@qadb admin]$ kill -9 1884
[oracle@qadb admin]$ vi listener.ora

# LISTENER.ORA Network Configuration File: /u01/app/oracle/product/9.2.0.4/network/admin/listener.ora
# Generated by Oracle configuration tools.

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = qadb)(PORT = 1521))
)
)
)

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/9.2.0.4)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = unicode.meetexpo)
(ORACLE_HOME = /u01/app/oracle/product/9.2.0.4)
(SID_NAME = unicode)
)
)


~
"listener.ora" 30L, 700C written
[oracle@qadb admin]$ /u01/app/oracle/product/9.2.0.4/bin/lsnrctl

LSNRCTL for Linux: Version 9.2.0.4.0 - Production on 01-JUN-2006 13:16:38

Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.

Welcome to LSNRCTL, type "help" for information.

LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
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=qadb)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
LSNRCTL> start
Starting /u01/app/oracle/product/9.2.0.4/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 9.2.0.4.0 - Production
System parameter file is /u01/app/oracle/product/9.2.0.4/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/9.2.0.4/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=qadb)(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 01-JUN-2006 13:16:49
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File /u01/app/oracle/product/9.2.0.4/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/9.2.0.4/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=qadb)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "unicode.meetexpo" has 1 instance(s).
Instance "unicode", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL> stop
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
The command completed successfully
LSNRCTL> start
Starting /u01/app/oracle/product/9.2.0.4/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 9.2.0.4.0 - Production
System parameter file is /u01/app/oracle/product/9.2.0.4/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/9.2.0.4/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=qadb)(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 01-JUN-2006 13:16:57
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File /u01/app/oracle/product/9.2.0.4/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/9.2.0.4/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=qadb)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "unicode.meetexpo" has 1 instance(s).
Instance "unicode", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL>

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/34329/viewspace-847537/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/34329/viewspace-847537/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值