The security management mechanism of oracle10g listeners and oracle9i have been greatly changed. The Listener security mechanism uses the Password and LocalOSAuthentication methods.
The security management mechanism of oracle10g listeners and oracle9i are greatly changed. The Listener security mechanism uses the Password and Local OS Authentication methods.
The security management mechanism of Oracle10g listeners and oracle9i have been greatly changed. The Listener security mechanism uses the Password and Local OS Authentication methods. When Local OS Authentication is used, even if a listener password is set, the listener can be stopped without any password. Unless otherwise specified in the listener. ora file, the oracle10g listener uses the Local OS Authentication security Authentication method by default. In this case, you can stop a listener even if you create a password.
Which of the following authentication methods is used for oracle10g? You can see from listener startup and lsnrctl status, for example:
LSNRCTL> status
Connecting to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1 )))
LISTENER STATUS
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0-Produ
Ction
Start date: 12-5-2011 18:55:40
Normal operation time 0 days 0 hours 13 minutes 2 seconds
Tracking level off
Security ON: Password or Local OS Authentication
SNMP OFF
Listener parameter file c:/oracle/product/10.2.0/db_1/network/admin/listener. o
Ra
Listener log file c:/oracle/product/10.2.0/db_1/network/log/listener. log
.....
From the above content, we can see that the security Authentication method for listening is Password or Local OS Authentication.
So how can we make oracle10g adopt passwod? Add LOCAL_ OS _AUTHENTICATION _ [listener name] = OFF in the listener. ora file.
For example, add LOCAL_ OS _AUTHENTICATION_LISTENER = OFF to my listener. ora file.
The file content is as follows:
# Listener. ora Network Configuration File: c:/oracle/product/10.2.0/db_1/network/admin/listener. ora
# Generated by Oracle configuration tools.
### Skate add
LOCAL_ OS _AUTHENTICATION_LISTENER = OFF
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = c:/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1 ))
(ADDRESS = (PROTOCOL = TCP) (HOST = LENOVEV001) (PORT = 1521 ))
)
)
......
After the modification, set the listening password as in oracle9i. This time, you need to enter the password for verification and use the password authentication method. For example:
LSNRCTL> service
Connecting to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1 )))
Service summary ..
The Service "PLSExtProc" contains one routine.
Routine "PLSExtProc", status UNKNOWN, contains one handler of this service...
Handler:
"DEDICATED" created: 0 rejected: 0
LOCAL SERVER
The Service "orcl" contains one routine.
Routine "orcl", status READY, contains 1 handler of this service...
Handler:
"DEDICATED" created: 0 rejected: 0 status: ready
LOCAL SERVER
......
Command executed successfully
LSNRCTL> quit
C:/Documents and Settings/Administrator> lsnrctl
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0-Production on-2011
8: 05
Copyright (c) 1991,200 5, Oracle. All rights reserved.
Welcome to LSNRCTL. Enter "help" for information.
LSNRCTL> service
Connecting to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1 )))
TNS-01169: the listener has not recognized the password
LSNRCTL> set password
Password:
Command executed successfully
LSNRCTL> service
Connecting to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1 )))
Service summary ..
The Service "PLSExtProc" contains one routine.
Routine "PLSExtProc", status UNKNOWN, contains one handler of this service...
Handler:
"DEDICATED" created: 0 rejected: 0
LOCAL SERVER
......
Command executed successfully
LSNRCTL>
--- End ----