标签:bfs alt class HERE man upd ref creat auto
目录
在日常的数据库维护中,经常出现因为数据库登录审计的功能启动,导致system表空间被用满.从而出现异常,一般建议把aud$相关对象迁移到其他表空间,从而避免system被用完的风险.
步骤如下:
SYS@kyeupdbfs> 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.
SYS@kyeupdbfs> alter table aud$ move tablespace audit_data;
Table altered.
SYS@kyeupdbfs> alter table audit$ move tablespace audit_data;
Table altered.
SYS@kyeupdbfs> alter table audit_actions move tablespace audit_data;
Table altered.
SYS@kyeupdbfs> alter index i_audit rebuild online tablespace audit_data;
Index altered.
SYS@kyeupdbfs> alter index i_audit_actions rebuild online tablespace audit_data;
Index altered.
```
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‘;
标签:bfs alt class HERE man upd ref creat auto
原文地址:https://www.cnblogs.com/kyeup/p/9286687.html