lsnrctl security

1)lsnrctl security
1@@@@log
@@@set logfile
[oracle@station78 admin]$ lsnrctl
LSNRCTL> set log_directory /u01/app/oracle/product/10.2.0/db_1/network/admin
LSNRCTL> set log_file ocp.log
LSNRCTL> set log_status on
LSNRCTL> save_config

@@@
[oracle@station78 ~]$ sqlplus hr/hr@ocp

@@@
[oracle@station78 admin]$ tail -f ocp.log
...
15-JUN-2012 17:00:17 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ocp)(CID=(PROGRAM=sqlplus)(HOST=station78.example.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.78)(PORT=54774)) * establish * ocp * 0
15-JUN-2012 17:00:20 * service_update * ocp * 0



2@@@@tns passwd for remote sys
[oracle@station78 dbs]$ pwd
/u01/app/oracle/product/10.2.0/db_1/dbs
[oracle@station78 dbs]$ rm -rf orapwocp

@@@
[oracle@station78 ~]$ sqlplus sys/oracle@ocp as sysdba;
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jun 15 17:11:30 2012
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
ERROR:
ORA-01031: insufficient privileges
Enter user-name:

@@@
[oracle@station78 dbs]$ orapwd file=orapwocp password=oracle entries=4

@@@
[oracle@station78 ~]$ sqlplus sys/oracle@ocp as sysdba;
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jun 15 17:11:39 2012
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL>


3@@@@local os authenticate
@@@
@@@add a line to it,as follows to disable local os authenticate
[oracle@station3 admin]$ pwd
/u01/app/oracle/product/10.2.0/db_1/network/admin
[oracle@station3 admin]$ cat sqlnet.ora
sqlnet.authentication_services=none

@@@now you have insufficient privilege to login.
[oracle@station3 ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Oct 23 22:22:15 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn /as sysdba;
ERROR:
ORA-01031: insufficient privileges


@@@
@@@comment this line.you could login using local authentication without password.
[oracle@station3 admin]$ cat sqlnet.ora
#sqlnet.authentication_services=none

[oracle@station3 ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Oct 23 22:27:04 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn /as sysdba;
Connected.

你可能感兴趣的:(listener,lsnrctl)