You are on page 1of 3

REDEFINITION OF CALL AND ITS RELATED

CHILD TABLES ON AMPIL DATABASE

1. PURPOSE

This document used for working on redefinition of CALL and its related child
tables in AMPIL database. This causes decrease in Cluster Factor results good
query performance

2. SCOPE

Cluster factor will be improved when it undergoes restructure of Oracle Table


without making data unavailable using REDEFINTION package.

3. FREQUENCY

This process applies any time if there is a need for performance boost up after
large volume of transactions happened in call table related queries or standard
execution of every quarter.

4. DEFINITIONS

DBMS_REDEFINITION This is the Oracle package which provides an


interface to perform an online redefinition of tables

CLUSTER FACTOR It defines how ordered the rows are in the index, and
affects the number of I/Os required for the whole operation.

CONS_USE_PK This parameter used in REDEF package, indicates that the


redefinition should be done using primary keys

CONS_USE_ROWID This parameter used in REDEF package indicate that the


redefinition should be done using rowids

5. SCRIPTS

There are three categories of scripts, which need to be


executed in below order,
 Pre-check script
 Main Table scripts
 Post-check script.

5.1 Pre-check script

precheck.txt –Need to be executed as SYS user in SQL prompt.

1|Page
REDEFINITION OF CALL AND ITS RELATED
CHILD TABLES ON AMPIL DATABASE
Output of the logs need to be captured in below two formats for references
if required.

A. Output Table for CF:

CF before
S.No TABLE_NAME INDEX_NAME REDEF

B. Output Table for Rowcount,size and stats update:

Last
TABLE_NAME ROWCOUNT SIZE(MB) Analyzed
     
       

5.2 Execution of Redefinition Scripts-CALL & its related 12 Child


Tables

steps_redefine_CALL.txt

steps_redefine_1.txt
steps_redefine_2.txt
steps_redefine_3.txt
steps_redefine_4.txt
steps_redefine_5.txt
steps_redefine_6.txt
steps_redefine_7.txt
steps_redefine_8.txt
steps_redefine_9.txt
steps_redefine_10.txt
steps_redefine_11.txt
steps_redefine_12.txt

5.3 Post-check script

postcheck.txt –Need to be executed as SYS user in SQL prompt.

A. Output Table for CF:

S.No TABLE_NAME INDEX_NAME CF after REDEF

2|Page
REDEFINITION OF CALL AND ITS RELATED
CHILD TABLES ON AMPIL DATABASE

A. Output Table for Rowcount,size and stats update:

Last
TABLE_NAME ROWCOUNT SIZE(MB) Analyzed
     
       

6. ERROR HANDLING REFERENCES

Error_Handling.txt -Various key Errors and its action item will


found in this text file.

3|Page

You might also like