最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

重慶思莊技術(shù)分享——oracle審計(jì)清理

2023-06-16 17:07 作者:sizhuang1  | 我要投稿

oracle審計(jì)清理

審計(jì)遷移
1、本地創(chuàng)建備份表
create tablespace TSP_AUDBAK datafile '+DATA' size 32g;
alter tablespace TSP_AUDBAK add datafile '+DATA' size 32g;
alter tablespace TSP_AUDBAK add datafile '+DATA' size 32g;
alter tablespace TSP_AUDBAK add datafile '+DATA' size 32g;
alter tablespace TSP_AUDBAK add datafile '+DATA' size 32g;
alter tablespace TSP_AUDBAK add datafile '+DATA' size 32g;

create table aud_bak tablespace TSP_AUDBAK as select * from aud$;

2、創(chuàng)建dblink
create public database link dblink_aud
connect to audqy identified by audqy
using '(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 168.168.232.100)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
)
)';

select * from dual@dblink_aud;
2、遠(yuǎn)端創(chuàng)建備份表
create tablespace TSP_AUDBAK datafile '+DATA' size 32g;
alter tablespace TSP_AUDBAK add datafile '+DATA' size 32g;
alter tablespace TSP_AUDBAK add datafile '+DATA' size 32g;
alter tablespace TSP_AUDBAK add datafile '+DATA' size 32g;
alter tablespace TSP_AUDBAK add datafile '+DATA' size 32g;
alter tablespace TSP_AUDBAK add datafile '+DATA' size 32g;

create table sys.aud_bak tablespace tsp_audbak as select * from aud_bak@dblink_aud;



審計(jì)清理
1、查詢
select segment_name,bytes/1024/1024 size_in_megabytes from dba_segments where segment_name='AUD$';
select table_name, tablespace_name from dba_tables where table_name='AUD$' order by table_name;

2、截?cái)郃UD
truncate table aud$;

3、再次查詢并確認(rèn)
select segment_name,bytes/1024/1024 size_in_megabytes from dba_segments where segment_name='AUD$';

重慶思莊技術(shù)分享——oracle審計(jì)清理的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
壤塘县| 罗源县| 神木县| 平昌县| 灵武市| 阜新市| 文成县| 林州市| 即墨市| 嘉鱼县| 湖口县| 如东县| 克什克腾旗| 同心县| 松滋市| 光泽县| 开原市| 元氏县| 新和县| 乌兰县| 云阳县| 佛山市| 牡丹江市| 晋江市| 满洲里市| 基隆市| 花莲县| 昭通市| 项城市| 蚌埠市| 凤山市| 涞源县| 龙门县| 包头市| 宜宾市| 黎城县| 凌云县| 新乐市| 府谷县| 山丹县| 泰兴市|