Clone E-Business Suite (EBS) database

From dbawiki
Jump to: navigation, search

This will be a living document for a while as I change it with each successful clone I do!
Not all of these steps will be necessary in all cases. Some are specific to this particular installation.

Contents

Topology[edit]

src_ebs_host
    |
    !-> SRC_AD_DB
    !-> SRC_EBS_DB

src_apps_host
    |
    !-> SRC_APPS


tgt_ebs_host
    |
    !-> TGT_AD_DB
    !-> TGT_EBS_DB

tgt_apps_host
    |
    !-> TGT_APPS

Preparation[edit]

Assuming there is already a target (clone) that will be destroyed in the process.

Backup the source db tier database(s)[edit]

The clone will be taken using RMAN as it is quicker than copying the datafiles if the database(s) are big.
Check if the last successful backup was not too long ago (to avoid rolling forward too much).

Check disk space for clone is sufficient[edit]

If we are refreshing an existing clone, the chances are that there is already enough space.

du -gs <source datafile filesystem>                              A
du -gs <destination datafile filesystem>                         B
df -g  <destination datafile filesystem> (find space remaining)  C

Space remaining after clone on destination is : (B+C)-A
If this is positive, there will be enough space.

Export dba_directories[edit]

Do this on the destination to preserve any directories. They can be imported back in after the clone has overwritten them.


Export dba_db_links[edit]

Verify the db links still work on the target (may need pointing somewhere else afterwards)[edit]

Save user passwords[edit]

Modify file location spfile parameters[edit]

Save SQL baselines[edit]

Save SQL profiles[edit]

Save context file on apps tier[edit]

Create a pfile from spfile[edit]

Add source database to target tnsnames.ora[edit]

Preclone the source db tier[edit]

Preclone the source apps tier[edit]

Perform clone[edit]

Stop all apps tier process on target[edit]

Shutdown target database[edit]

Remove the target database files[edit]

Start copy of apps tier files in background[edit]

Duplicate the source database(s)[edit]

Restart target listener(s)[edit]

Post clone[edit]

Check datafile status[edit]

Restart database cleanly[edit]

Put back context file on apps tier[edit]

Register target database(s) with RMAN catalog[edit]

Stop target listener[edit]

link gcc[edit]

Check unzip version[edit]

Postclone the target db tier[edit]

Start target listener[edit]

Check spfile parameters[edit]

Clean up some directories on apps tier[edit]

Postclone the target apps tier[edit]

Change sysadmin password[edit]

Run Autoconfig on target database(s)[edit]

Check database is up[edit]

Restore dba_directories to target database(s)[edit]

Restore db links to target database(s)[edit]

Check utl_file_dir and APPLPTMP[edit]

Run Autoconfig on apps tier[edit]

Start apps tier services[edit]

Check Concurrent Manager status[edit]

Check Applications Dashboard[edit]

Execute Diagnostics tests[edit]

Run Concurrent Report "Activity Based Management (Obsolete)"[edit]

Change Site Name profile option value[edit]

Change Title header on portal login screen[edit]

Clear apps tier cache[edit]

Restart web server[edit]

Update other profile option values[edit]

Test concurrent program with known values to check consistency[edit]

Relink any .prog files to fndcpesr[edit]

Restore user passwords on target database(s)[edit]

Test db links[edit]

Set AWR parameters[edit]

Recreate nologging indexes[edit]

Fake stats on some tables[edit]