赞
踩
select dba_profiles.profile,resource_name, limit from dba_profiles, dba_users where dba_profiles.profile = dba_users.profile and dba_users.account_status='OPEN' and resource_name='PASSWORD_REUSE_MAX';
select LIMIT from dba_profiles where RESOURCE_NAME='PASSWORD_REUSE_MAX' AND PROFILE='DEFAULT';
查询结果大于应等于5
select LIMIT from dba_profiles where RESOURCE_NAME='PASSWORD_LOCK_TIME' AND PROFILE='DEFAULT';
查看值是否小于或等于5
select * from dba_role_privs where grantee in ( select username from dba_users where account_status='OPEN') and granted_role='DBA' order by grantee;
lsnrctl status
show parameter audit_trail;
select name, value from v$parameter where name like 'audit%';
SELECT OBJECT_NAME FROM DBA_OBJECTS WHERE OBJECT_TYPE='TRIGGER';
SELECT NAME FROM USER_SOURCE WHERE TYPE='TRIGGER' GROUP BY NAME;
select object_name from user_objects where object_type='TRIGGER';
show parameter REMOTE_LOGIN_PASSWORDFILE;
查看cat $ORACLE_HOME/network/admin/listener.ora文件中是否设置参数PASSWORDS_LISTENER
show parameter O7_DICTIONARY_ACCESSIBILITY
应为FALSE
select LIMIT from dba_profiles where RESOURCE_NAME='PASSWORD_VERIFY_FUNCTION' AND PROFILE='DEFAULT';
select * from dba_profiles s where s.profile='DEFAULT' and resource_name='FAILED_LOGIN_ATTEMPTS';
建议为6次
sqlplus '/as sysdba'
conn system/system
conn system/manager
conn sys/sys
conn sys/cHAnge_on_install
conn scott/scott
conn scott/tiger
conn dbsnmp/dbsnmp
conn rman/rman
conn xdb/xdb
select profile from dba_profiles;
select profile from dba_users;
存在default以外的profile即可
cat $ORACLE_HOME/network/admin/sqlnet.ora
如数据库将自动断开超过10分钟的空闲远程连接
设置SQLNET.EXPIRE_TIME=10
select LIMIT from dba_profiles where RESOURCE_NAME='PASSWORD_GRACE_TIME' AND PROFILE='DEFAULT';
7天
select LIMIT from dba_profiles where RESOURCE_NAME='PASSWORD_LIFE_TIME' AND PROFILE='DEFAULT';
90天
select LIMIT from dba_profiles where RESOURCE_NAME=‘FAILED_LOGIN_ATTEMPTS’ AND PROFILE=‘DEFAULT’;
$ORACLE_HOME/network/admin/sqlnet.ora文件中设置sqlnet.encryption
$ORACLE_HOME/network/admin/sqlnet.ora中设置tcp.validnode_checking = yes和tcp.invited_nodes = (信任ip1,信任ip2,...)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。