设置监听密码



一、设置密码

  1. 在监听启动状态设置密码
         
         
    1. [oracle@node1 admin]$ lsnrctl[oracle@node1 admin]$ lsnrctl
    2. LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 25-NOV-2016 09:45:45
    3. Copyright (c) 1991, 2013, Oracle. All rights reserved.
    4. Welcome to LSNRCTL, type "help" for information.
    5. LSNRCTL> status
    6. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.66.101)(PORT=1521)))
    7. STATUS of the LISTENER
    8. ------------------------
    9. Alias LISTENER
    10. Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production
    11. Start Date 25-NOV-2016 09:35:38
    12. Uptime 0 days 0 hr. 10 min. 10 sec
    13. Trace Level off
    14. Security ON: Local OS Authentication
    15. SNMP OFF
    16. Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    17. Listener Log File /u01/app/oracle/diag/tnslsnr/node1/listener/alert/log.xml
    18. Listening Endpoints Summary...
    19. (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.66.101)(PORT=1521)))
    20. (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    21. Services Summary...
    22. Service "orcl" has 1 instance(s).
    23. Instance "orcl", status READY, has 1 handler(s) for this service...
    24. Service "orclXDB" has 1 instance(s).
    25. Instance "orcl", status READY, has 1 handler(s) for this service...
    26. The command completed successfullyLSNRCTL> change_password
    27. Old password: 
    28. New password: 
    29. Reenter new password: 
    30. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.66.101)(PORT=1521)))
    31. Password changed for LISTENER
    32. The command completed successfully
    33. LSNRCTL> save_config
    34. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.66.101)(PORT=1521)))
    35. Saved LISTENER configuration parameters.
    36. Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    37. Old Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.bak
    38. The command completed successfully


  2. 9i 异常
    当执行save_config保存时会报异常
    TNS-01169: The listener has not recognized the password
    此时运行
         
         
    1. LSNRCTL> set password
    2. Password: 
    3. The command completed successfully
    4. LSNRCTL> save_config
    5. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.66.101)(PORT=1521)))
    6. Saved LISTENER configuration parameters.
    7. Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    8. Old Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.bak
    9. The command completed successfully
    10. LSNRCTL> exit
  3. 修改监听文件
    # PASSWORDS_LISTENER下方添加
    LOCAL_OS_AUTHENTICATION_LISTENER = OFF
  4. 重启监听

二、测试

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值