Oracle的监听器一直以来都存在一个严重的安全问题,那就是:
如果不设置安全措施-监听加密,那么能够访问的用户就可以远程关闭监听器。所以在10g以前,对listener加密是可以防止远程关闭监听的,但是到了10g,默认已经对远程用户进行了安全加固,远程用户不可以关闭server端的监听。
In this Document
Goal
Solution
How to set a password for 10g and newer listeners leaving the default OS authentication mechanism in place.
In Oracle 10g and newer versions of the listener, the listener is secure out of the box. There should be no need to set a listener password to prohibit privileged LSNRCTL commands from being executed.
Beginning with version 10g, the listener now uses local OS authentication. As long as one runs LSNRCTL privileged commands (stop, status, etc) as the same user who started the listener, that user will be able to fully administer the running listener without providing a password.
This security feature is enabled by default and can be identified at listener
startup, or when issuing a LSNRCTL STATUS command, by the following output:
Security ON: Local OS Authentication
If the TNSListener is started as the "oracle" user and the user "sales" attempts
to administer the listener, or if "oracle" on a different node attempts to
administer the listener, the following error will be returned:
TNS-01190: The user is not authorized to execute the requested listener command
A secondary user is able to administer the listener if a listener password is
set and the secondary user knows the password. In this example, "oracle" will
set an encrypted password for the listener and the user "sales" will stop the
listener.
参考文献:
1. Setting Listener Passwords With an Oracle 10g or Newer Listener [ID 260986.1]
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9252210/viewspace-664326/ ,如需转载,请注明出处,否则将追究法律责任。