You are on page 1of 3

1) Purge Signon Audit data

2) Purge Logs and Closed System Alerts

Purge Signon Audit data

select count(*) from FND_LOGINS;


select count(*) from FND_LOGIN_RESP_FORMS;
select count(*) from FND_LOGIN_RESPONSIBILITIES;
select count(*) from FND_UNSUCCESSFUL_LOGINS;

before

COUNT(*)
----------
1362035

SQL>
COUNT(*)
----------
448899

SQL>
COUNT(*)
----------
168249

SQL>
COUNT(*)
----------
12706

create table bkp_8NOV_FND_LOGINS as select * from FND_LOGINS;


create table bkp_8NOV_FND_LOGIN_RESP_FORMS as select * from FND_LOGIN_RESP_FORMS;
create table bkp_FND_LOGIN_RESPONSIBILITIES as select * from
FND_LOGIN_RESPONSIBILITIES;
create table bkp_FND_UNSUCCESSFUL_LOGINS as select * from FND_UNSUCCESSFUL_LOGINS;

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Purge Logs and Closed System Alerts

select count(*) from FND_EXCEPTION_NOTES;


select count(*) from FND_OAM_BIZEX_SENT_NOTIF;
select count(*) from FND_LOG_METRICS;
select count(*) from FND_LOG_UNIQUE_EXCEPTIONS;
select count(*) from FND_LOG_EXCEPTIONS;
select count(*) from FND_LOG_MESSAGES;
select count(*) from FND_LOG_TRANSACTION_CONTEXT;
select count(*) from FND_LOG_ATTACHMENTS;

COUNT(*)
----------
23
SQL>
COUNT(*)
----------
31

SQL>
COUNT(*)
----------
0

SQL>
COUNT(*)
----------
31

SQL>
COUNT(*)
----------
90

COUNT(*)
----------
34171

SQL>
COUNT(*)
----------
1

SQL>
COUNT(*)
----------
0

Backup the tables:


+++++++++++++++++

create table bkp_FND_EXCEPTION_NOTES as select * from FND_EXCEPTION_NOTES;


create table bkp_FND_OAM_BIZEX_SENT_NOTIF as select * from
FND_OAM_BIZEX_SENT_NOTIF;
create table bkp_FND_LOG_METRICS as select * from FND_LOG_METRICS;
create table bkp_FND_LOG_UNIQUE_EXCEPTIONS as select * from
FND_LOG_UNIQUE_EXCEPTIONS;
create table bkp_FND_LOG_EXCEPTIONS as select * from FND_LOG_EXCEPTIONS;
create table bkp_FND_LOG_MESSAGES as select * from FND_LOG_MESSAGES;
create table b_FND_LOG_TRANSACTION_CONTEXT as select * from
FND_LOG_TRANSACTION_CONTEXT;
create table bkp_FND_LOG_ATTACHMENTS as select * from FND_LOG_ATTACHMENTS;

BCT- block changt track, is the technology used by oracle, if BCT is enabled, when
ever a DB block is changed or data added in the Datafile(DF) then the corresponding
block details are added to a text file by a background process called CTWR, the use
of doing all this is that when ever u issue rman backup the rman directly reads the
text file and backup those particular blocks and this would reduce processing speed
and increases backup speed,
If BCT is not enabled, the rman has to read every datafile and check for those
changed block then reads those blocka and backup them this is very cumbersome
process.

ALTER DATABASE ENABLE BLOCK CHANGE TRACKING USING FILE


'/u03/oracle/AUGCLN/db/apps_st/data/bct.log';

alter database enable block change tracking using file


'/u03/oracle/AUGCLN/db/apps_st/data/block_change_tracking.dbf';

Block change tracking file is current.


Starting background process CTWR
Sun Nov 13 11:23:47 2016
CTWR started with pid=21, OS id=20131
Sun Nov 13 11:24:05 2016
Block change tracking service is active.
Sun Nov 13 11:24:06 2016

And the new CTWR process will be created to track the changes:

[oracle@localhost ~]$ ps -ef | grep ctwr


oracle 20131 1 0 Nov13 ? 00:00:00 ora_ctwr_AUGCLN
oracle 21066 28374 0 16:32 pts/3 00:00:00 grep ctwr