0% found this document useful (0 votes)
3 views2 pages

index creation & restore point

The document outlines the steps for index creation and establishing a restore point before and after a migration process for the SIEBEL database. It includes checking the count of objects, modifying an index, creating a guaranteed restore point, and dropping the restore point after migration verification. The document also provides SQL commands for executing these tasks and verifying object counts in the database.

Uploaded by

tpyzvc6g2d
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

index creation & restore point

The document outlines the steps for index creation and establishing a restore point before and after a migration process for the SIEBEL database. It includes checking the count of objects, modifying an index, creating a guaranteed restore point, and dropping the restore point after migration verification. The document also provides SQL commands for executing these tasks and verifying object counts in the database.

Uploaded by

tpyzvc6g2d
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

index creation & restore point

===============================================

Before Migration Steps

1. Check Count of Objects  Should be same before and after migration

select count(*), object_type from dba_objects where owner='SIEBEL'


group by object_type;

2. Modify Index - Ensure application is completed down before executing it

DROP INDEX "SIEBEL"."S_ORDPART_MVMT_M1";


CREATE INDEX "SIEBEL"."S_ORDPART_MVMT_M1" ON "SIEBEL"."S_ORDPART_MVMT"
("ORDER_ITEM_ID", "ACTL_START_DT" DESC) PARALLEL 64 TABLESPACE SIEBELINDX;
ALTER INDEX "SIEBEL"."S_ORDPART_MVMT_M1" NOPARALLEL;

3. Create Guaranteed Restore Point

ALTER DATABASE FLASHBACK ON;

CREATE RESTORE POINT BEFORERELEASE_20APR2024 GUARANTEE FLASHBACK DATABASE;

After Migration

1. Modify Index

DROP INDEX "SIEBEL"."S_ORDPART_MVMT_M1";


CREATE INDEX "SIEBEL"."S_ORDPART_MVMT_M1" ON "SIEBEL"."S_ORDPART_MVMT"
("ORDER_ITEM_ID", "ACTL_START_DT") PARALLEL 64 TABLESPACE SIEBELINDX;
ALTER INDEX "SIEBEL"."S_ORDPART_MVMT_M1" NOPARALLEL;

2. Check Count of Objects  Should be same before and after migration

select count(*), object_type from dba_objects where owner='SIEBEL'


group by object_type;

3. After Verifying with Application Team all is OK, Drop the restore point that
we created before Migration

DROP RESTORE POINT BEFORERELEASE_20APR2024;

ALTER DATABASE FLASHBACK OFF;

-----------------------------------------------------------------------------------
------------------------------------------------------

SQL> select count(*), object_type from dba_objects where owner='SIEBEL' group by


object_type;

COUNT(*) OBJECT_TYPE
---------- -----------------------
4 PROCEDURE
2 PACKAGE BODY
11 SEQUENCE
3 FUNCTION
114 VIEW
2 PACKAGE
6031 TABLE
28417 INDEX
1264 LOB

9 rows selected.

You might also like