Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Objective: This document explains the different steps for importing and exporting of the
schemas.
Scope: This document has been prepared for exclusive use at Cholamandalam DBS.
-----********************************************
----- STEP 1 **** Exporting Schema
-----********************************************
export ORACLE_SID=CDCASUAT
-----********************************************
----- STEP 2 **** Connect as SYS user
-----********************************************
export ORACLE_SID=CHOLASIT
sqlplus /nolog
conn SYS as sysdba
-----********************************************
----- STEP 3 **** Tablespace Free space
-----********************************************
---Check tablespace free space (including undo tablespace and temporary tablespace)
-----********************************************
----- STEP 5 **** IMPORTING THE DUMP
-----********************************************
-----Monitor tablespace free space
export ORACLE_SID=CHOLASIT
----********************************************************
---- STEP 6 Comparing objects after Import
----**********************************************************
Check the import log For the rows imported in table and errors
Check the count of imported objects and compare it from UAT schema
----********************************************************
---- STEP 7 - Rebuild Indexes - NUCPRODCAS
----**********************************************************
@/oracle/indexnuc.txt
----Rebuild indexes
select 'ALTER INDEX '|| index_name || ' REBUILD ONLINE;' from user_indexes;
----*******************************************************************
----- STEP 8 **** Grants of exported NUCPRODCAS(UAT) to new NUCPRODCAS
-----******************************************************************
-----******************************************************
----- STEP 9 **** COMPILING FOR INVALID OBJECTS (REPEAT)
-----******************************************************
Login as New NUCPRODCAS and run the following command till you get no rows
selected.
-----********************************************
----- STEP 10 **** Database Links
-----********************************************
-----********************************************
----- STEP 11 **** Analyzing Schema
-----********************************************
conn / as sysdba
Exec Dbms_STATS.GATHER_Schema_STATS('NUCPRODCAS');
-----********************************************
----- END
-----********************************************