-
Notifications
You must be signed in to change notification settings - Fork 1
Copy database tables
walkerhound edited this page Sep 14, 2012
·
7 revisions
On all three databases - dev, test and production - there is a package called MIGRATETABLES which is designed to migrate the following tables:
- GENE_SYMBOLS
- EXPRESSION_QTLS
- PROBESETS
- EXON_IDENTIFIERS
- HERITABILITY
- AFFY_EXON_PROBES
- AFFY_EXON_PROBESET
- SNPS
- LOCATION_SPECIFIC_EQTL
To copy table X from dev to test, for example:
- Create an external table external_X on dev with the data from X.
- Copy the dmp file from the EXTERNAL_TABLE_DIR location for dev to the EXTERNAL_TABLE_DIR location for test.
- Create an external table external_X on test with the dmp file
- Backup up X on test
- Copy the data from external_X to X on test
- Look at the procedure MIGRATETABlES.runAllMigrations
- On dev, run datapumpWrite
- Copy the dmp files from /data/userFiles/OracleExternalFiles/Development to /data/userFiles/OracleExternalFiles/Test on phenogen
- On test, run datapumpRead
- On test, run createTableForMigration
- On test, run copyTableOnDestination