顯示具有 auditing 標籤的文章。 顯示所有文章
顯示具有 auditing 標籤的文章。 顯示所有文章

星期四, 11月 23, 2017

FW: 12c 如何移動aud$ table 到特定tablespace

12c 如何移動aud$ table 到特定tablespace
主要是運用了DBMS_AUDIT_MGMT.SET_AUDIT_TRAIL_LOCATION 這個套件來做調整

或是可參考我以前寫的文章
https://jaychu649.blogspot.tw/2012/02/oracle-11g-auditing-sysaud-disable-db.html


ref:
http://oracle-help.com/oracle-12c/oracle-12cr2/move-aud-table-another-tablespace-using-dbms_audit_mgmt/?lipi=urn%3Ali%3Apage%3Ad_flagship3_feed%3BSMvvrWj8Rxa5bKThzjrryg%3D%3D



Use steps to move AUD$.
Use the dbms_audit_mgmt to move the tablespace.
check whether tablespace has been moved from system to AUDIT_DATA or not.

星期三, 9月 26, 2012

Oracle檢測帳號是否仍使用(not expired)

col username for a25
col account_status for a8
col default_tablespace for a10
select username , account_status , created , default_tablespace from dba_users where account_status not like 'EXPIRED%';


#鎖定帳號
SQL> alter user TEST account lock;
#使密碼失效 , 若下次解鎖登入後 , 會要求更改新密碼
SQL> alter user TEST password expire;
#解開帳號
SQL> alter user TEST account unlock;



#List All User Roles with dba 權限
select granted_role , grantee from DBA_ROLE_PRIVS where grantee in (select username from dba_users)  and granted_role in ('DBA','SYSDBA') order by GRANTEE;

LinkWithin-相關文件

Related Posts Plugin for WordPress, Blogger...