ITPub博客

首页 > Linux操作系统 > Linux操作系统 > listener密码设置及取消问题

listener密码设置及取消问题

原创 Linux操作系统 作者:tolywang 时间:2006-06-28 00:00:00 0 删除 编辑

http://rchsh.itpub.net/post/8010/107233

http://cjf107.itpub.net/post/15237/107213

监听器设置密码

以下是给监听器设置密码的步骤:进入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: TNS吐舌rotocol 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/35489/viewspace-84404/,如需转载,请注明出处,否则将追究法律责任。

下一篇: TOP命令详解
请登录后发表评论 登录
全部评论
Oracle , MySQL, SAP IQ, SAP HANA, PostgreSQL, Tableau 技术讨论,希望在这里一起分享知识,讨论技术,畅谈人生 。

注册时间:2007-12-10

  • 博文量
    5595
  • 访问量
    13383033