Multidomain MDM
- Multidomain MDM 10.3 HotFix 2
- All Products
Drop schema A - using system user (sqlplus system/password@tnsname) SQL> drop user envA cascade; Create schema A - using system user (sqlplus system/password@tnsname) SQL> <hub_server_install>/resources/database/custom_scripts/oracle/import/@mk_cmx_ors_user; -- supply the schema name as A
C:\> impdp <dba_username>/<dba_password>@<tns_entry_name> directory=<DATA_PUMP_DIR_OBJECT> dumpfile==<mrm_backup_envb.dmp> logfile=<mrm_restore_after_upgrade.log> content=all remap_schema=<from_user>:<to_user> parallel=8 job_name=<RESTORE_ENVB>
The type already exists, and therefore it is not re-created. You can safely ignore these messages.ORA-39083: Object type TYPE failed to create with error: ORA-02304: invalid object identifier literal
/* Repository tables for ZDT */ delete from C_REPOS_ZDT_EVENT_QUEUE; delete from C_REPOS_ZDT_REPLICAT_EXCEPTION; update C_REPOS_ZDT_ENV_STATE set state = NULL, state_ts = NULL, state_desc = NULL, updated_by=NULL, update_date=NULL; /* Tables for Oracle GoldenGate */ delete from GGS_CHECKPOINT; -- Do not drop this table delete from GGS_CHECKPOINT_LOX; -- Do not drop this table drop table GGS_EVENT_CHECKPOINT cascade constraints; drop table GGS_EVENT_CHECKPOINT_LOX cascade constraints; drop table GGS_EVENT_TRACE cascade constraints; commit;
SQL > @update_javasp.sql @compile_types.sql
SQL > @cmx_zdt_objects_support.sql @cmxlb_pack.plb @cmx_debug_print_prc.plb @cmxlog_pack.plb @cmxlog_body.plb @cmxzdt_pack.plb @cmxzdt_body.plb
delete from c_repos_zdt_status; commit; insert into C_REPOS_ZDT_STATUS (REPLICATION_TARGET_IND, ACTIVE_UPGRADE_IND, CREATOR, CREATE_DATE,GGS_HOME_PATH, REPLICAT_NUMBER, TRAIL_FILE_SIZE, DISCARD_FILE_SIZE, ACCEPTABLE_LAG_MINUTES, LAG_DETECTION_TOKEN, LOCAL_ENVIRONMENT_NAME, LOCAL_SCHEMA_NAME, LOCAL_TRAIL_PATH, PUMP_RMTHOST, PUMP_MGRPORT, REMOTE_TRAIL_PATH, REMOTE_ENVIRONMENT_NAME, REMOTE_SCHEMA_NAME , REGULAR_STREAM_ID, EVENT_QUEUE_ID, EXTRACT_PREFIX, REPLICAT_PREFIX , BATCH_DISABLED_IND, DEFAULT_TIMEOUT_MINUTES ) Values (<insert a comma-separated list of the values that were in the C_REPOS_ZDT_STATUS table before you dropped the schema.> ); commit;
BEGIN CMXZDT.GET_ZDT_CONFIG; CMXZDT.CONFIGURE_SEQUENCES; END; /
DECLARE out_error_msg VARCHAR2(32000); out_return_code INT; BEGIN CMXZDT.CONFIGURE_GGS_EVENT_REPLICAT(CMXZDT.zdt_local); CMXZDT.CONFIGURE_GGS_EVENT_EXTRACT(CMXZDT.zdt_local); CMXZDT.START_EVENT_QUEUE(out_error_message => out_error_msg, out_return_code => out_return_code); dbms_output.put_line('out_return_code => '||out_return_code||' out_error_msg => '||substr(out_error_msg,1,250)); END; /
BEGIN CMXZDT.CONFIGURE_GGS_REPLICAT(CMXZDT.zdt_local); END; /
DECLARE out_error_msg VARCHAR2(32000); out_return_code INT; begin cmxzdt.start_replication_replay(in_env_type => cmxzdt.zdt_local, out_error_message => out_error_msg, out_return_code => out_return_code,in_after_csn => <SCN>); dbms_output.put_line('out_return_code => '||out_return_code||' out_error_msg => '||substr(out_error_msg,1,250)); end; /