为监听器设置口令权限---Configuring Password Authentication for the Listener

本文主要是介绍为监听器设置口令权限---Configuring Password Authentication for the Listener,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

文档地址:http://docs.oracle.com/cd/B19306_01/network.102/b14212/listenercfg.htm#i490255

 

Configuring Password Authentication for the Listener

Note:

If you are administering the listener remotely over an insecurenetwork and require maximum security, configure the listener with asecure protocol address that uses the TCP/IP with SSL protocol. If the listener hasmultiple protocol addresses, ensure that the TCP/IP with SSLprotocol address is listed first in the listener.orafile.

It is important to provide security through a passwordfor the listener. With a password, privileged operations, such assaving configuration changes or stopping the listener, used fromthe Listener Control utility will require a password.

--为监听器提供一个密码设置是非常重要的。使用密码,可以验证有权限的操作,例如保存改变的配置或者终止监听器,可以使用监听器工具来修改需要的一个密码。

 

Use the Listener Control utility's CHANGE_PASSWORD command or OracleEnterprise Manager to set or modify an encrypted password in thePASSWORDS_listener_nameparameter in the listener.ora file. If thePASSWORDS_listener_name parameter is setto an unencrypted password, you must manually remove it from thelistener.ora file prior to modifying it. If theunencrypted password is not removed, you will be unable tosuccessfully set an encrypted password.

To set or modify an encrypted password with Oracle EnterpriseManager:

  1. Access the Net Services Administration page in Oracle EnterpriseManager.

    See Also:

    "OracleEnterprise Manager"
  2. Select Listeners from the Administerlist, and then select the Oracle home that contains the location ofthe configuration files.

  3. Click Go.

    The Listeners page appears.

  4. Select a listener, and then click Edit.

    The Edit Listeners page appears.

  5. Click the Authentication tab.

  6. Click Require a password for listeneroperations.

  7. Click OK.

    Note:

    You can also configure static service information with Oracle NetManager. See topic Configure Password Authentication for theListener in the online Help for further instruction.

To set a new encrypted password with theCHANGE_PASSWORD command, issue the following commandsfrom the Listener Control utility:

 
LSNRCTL> CHANGE_PASSWORD
Old password: 
New password: takd01
Reenter new password: takd01
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=tpc)(HOST=sales-server)(PORT=1521)))
Password changed for LISTENER
The command completed successfully

 
LSNRCTL> SAVE_CONFIGConnecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=sales-server)(PORT=1521)))
Saved LISTENER configuration parameters.
Listener Parameter File   /oracle/network/admin/listener.ora
Old Parameter File   /oracle/network/admin/listener.bak
The command completed successfully
 Bold denotes user input. The password is not displayed when entered.To modify an encrypted password with the CHANGE_PASSWORD command:
LSNRCTL> SET PASSWORD
Password: takd01
The command completed successfully
LSNRCTL> CHANGE_PASSWORD
Old password: takd01
New password: smd01
Reenter new password: smd01
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=tpc)(HOST=sales-server)(PORT=1521)))
Password changed for LISTENER
The command completed successfully
LSNRCTL> SAVE_CONFIG
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=sales-server)(PORT=1521)))
Saved LISTENER configuration parameters.
Listener Parameter File   /oracle/network/admin/listener.ora
Old Parameter File   /oracle/network/admin/listener.bak
The command completed successfully

而SET PASSWORD 的作用是密码验证用的,如你设置好了密码后,如果要停止监听,则需要先用SET PASSWORD输入正确的密码。如果为listener 设置了口令,那么在lsnrctl 中执行stop,save_config(第一次保存设置的时候,是不需要set password的,因为在没设置密码前,密码为空的。当第一次密码设置成功后,密码功能启用了,执行此命令,需要set password来录入现在的密码才能保存设置,否则返回错误信息)命令操作不论是local 还是remote listener 时都需要通过setpassword 来输入口令,只有口令正确才能执行上述命令。
 

这篇关于为监听器设置口令权限---Configuring Password Authentication for the Listener的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1030629

相关文章

MySQL8.0设置redo缓存大小的实现

《MySQL8.0设置redo缓存大小的实现》本文主要在MySQL8.0.30及之后版本中使用innodb_redo_log_capacity参数在线更改redo缓存文件大小,下面就来介绍一下,具有一... mysql 8.0.30及之后版本可以使用innodb_redo_log_capacity参数来更改

Nginx设置连接超时并进行测试的方法步骤

《Nginx设置连接超时并进行测试的方法步骤》在高并发场景下,如果客户端与服务器的连接长时间未响应,会占用大量的系统资源,影响其他正常请求的处理效率,为了解决这个问题,可以通过设置Nginx的连接... 目录设置连接超时目的操作步骤测试连接超时测试方法:总结:设置连接超时目的设置客户端与服务器之间的连接

mybatis和mybatis-plus设置值为null不起作用问题及解决

《mybatis和mybatis-plus设置值为null不起作用问题及解决》Mybatis-Plus的FieldStrategy主要用于控制新增、更新和查询时对空值的处理策略,通过配置不同的策略类型... 目录MyBATis-plusFieldStrategy作用FieldStrategy类型每种策略的作

Android 悬浮窗开发示例((动态权限请求 | 前台服务和通知 | 悬浮窗创建 )

《Android悬浮窗开发示例((动态权限请求|前台服务和通知|悬浮窗创建)》本文介绍了Android悬浮窗的实现效果,包括动态权限请求、前台服务和通知的使用,悬浮窗权限需要动态申请并引导... 目录一、悬浮窗 动态权限请求1、动态请求权限2、悬浮窗权限说明3、检查动态权限4、申请动态权限5、权限设置完毕后

浅析如何使用Swagger生成带权限控制的API文档

《浅析如何使用Swagger生成带权限控制的API文档》当涉及到权限控制时,如何生成既安全又详细的API文档就成了一个关键问题,所以这篇文章小编就来和大家好好聊聊如何用Swagger来生成带有... 目录准备工作配置 Swagger权限控制给 API 加上权限注解查看文档注意事项在咱们的开发工作里,API

CSS弹性布局常用设置方式

《CSS弹性布局常用设置方式》文章总结了CSS布局与样式的常用属性和技巧,包括视口单位、弹性盒子布局、浮动元素、背景和边框样式、文本和阴影效果、溢出隐藏、定位以及背景渐变等,通过这些技巧,可以实现复杂... 一、单位元素vm 1vm 为视口的1%vh 视口高的1%vmin 参照长边vmax 参照长边re

Windows设置nginx启动端口的方法

《Windows设置nginx启动端口的方法》在服务器配置与开发过程中,nginx作为一款高效的HTTP和反向代理服务器,被广泛应用,而在Windows系统中,合理设置nginx的启动端口,是确保其正... 目录一、为什么要设置 nginx 启动端口二、设置步骤三、常见问题及解决一、为什么要设置 nginx

vue基于ElementUI动态设置表格高度的3种方法

《vue基于ElementUI动态设置表格高度的3种方法》ElementUI+vue动态设置表格高度的几种方法,抛砖引玉,还有其它方法动态设置表格高度,大家可以开动脑筋... 方法一、css + js的形式这个方法需要在表格外层设置一个div,原理是将表格的高度设置成外层div的高度,所以外层的div需要

电脑密码怎么设置? 一文读懂电脑密码的详细指南

《电脑密码怎么设置?一文读懂电脑密码的详细指南》为了保护个人隐私和数据安全,设置电脑密码显得尤为重要,那么,如何在电脑上设置密码呢?详细请看下文介绍... 设置电脑密码是保护个人隐私、数据安全以及系统安全的重要措施,下面以Windows 11系统为例,跟大家分享一下设置电脑密码的具体办php法。Windo

如何设置vim永久显示行号

《如何设置vim永久显示行号》在Linux环境下,vim默认不显示行号,这在程序编译出错时定位错误语句非常不便,通过修改vim配置文件vimrc,可以在每次打开vim时永久显示行号... 目录设置vim永久显示行号1.临时显示行号2.永www.chinasem.cn久显示行号总结设置vim永久显示行号在li