Migration of Oracle Audit-related objects

Source: Internet
Author: User

Directory

    • Create a table space for auditing
    • Online migration
    • Query results

In routine database maintenance, it often occurs because the database logon audit function starts, which causes the system table space to be full. In this case, it is generally recommended to migrate aud$ related objects to other tablespaces to avoid the risk of system being exhausted.
The steps are as follows:

Create a table space for auditing
[email protected]> create tablespace audit_data logging datafile ‘/oracle/oradata/kyeupdbfs/audit_data.dbf‘  2  size 20m autoextend off extent management local segment space management auto;Tablespace created.
Online migration
[email protected]> alter table aud$ move tablespace audit_data;Table altered.[email protected]> alter table audit$ move tablespace audit_data;Table altered.[email protected]> alter table audit_actions move tablespace audit_data;Table altered.[email protected]> alter index i_audit rebuild online tablespace audit_data;Index altered.[email protected]> alter index i_audit_actions rebuild online tablespace audit_data;Index altered.
Query results

```
Select Table_name,tablespace_name from dba_tables where table_name like '%aud% ';
Select Index_name,tablespace_name from dba_indexes where table_name like '%aud% ';
Select Table_name,tablespace_name from Dba_tables where tablespace_name= ' audit_data ';
Select Index_name,tablespace_name from dba_indexes where tablespace_name= ' audit_data ';

Migration of Oracle Audit-related objects

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.