AWS EC2 To AWS RDS Oracle Migration POC Test 2
AWS EC2 To AWS RDS Oracle Migration POC Test 2
AWS EC2 To AWS RDS Oracle Migration POC Test 2
Transfer the expdp dump files from source to target using DBMS_FILE_TRANSFER.PUT_FILE.
BEGIN
END;
To Transfer the Expdp dump file connect to Source PDB where dblink was created and then execute
the command as below.
Now Verify if the data pump file has been received on AWS RDS location using below query:
Create Below mentioned Roles on the Target AWS RDS Oracle DB.
1. LANDING_RAVE
2. CUSTOM_RAVE
3. LANDING_VEEVA
4. PDRAPPLCTN
5. PDRUSER
Schema: CADMIN
Ref: https://docs.aws.amazon.com/SchemaConversionTool/latest/userguide/
CHAP_Source.Oracle.ToRDSOracle.html
Schemas:
SMARTTRIAL_ODR_CONTROL
SMARTTRIAL_ODR_LANDING
SMARTTRIAL_ODR_LANDING_BKP
SMARTTRIAL_ODR_LANDING_ARCH
SMARTTRIAL_ODR_CUSTOM
SMARTTRIAL_ODR_CUSTOM_BKP
SMARTTRIAL_ODR_CUSTOM_ARCH
ADMIN_USER
Create the PDR schema’s 1st and then execute the grants on the schema’s.
*****************************************************************************
DECLARE
RETURN VARCHAR2
AS
l_return VARCHAR2(32767);
BEGIN
RETURN 'NULL';
END IF;
END;
BEGIN
a.lower_port,
a.upper_port,
b.principal,
b.privilege,
b.is_grant,
b.start_date,
b.end_date
FROM dba_network_acls a
LOOP
l_last_host := '~';
DBMS_OUTPUT.put_line('-- -------------------------------------------------');
DBMS_OUTPUT.put_line('-- -------------------------------------------------');
DBMS_OUTPUT.put_line('BEGIN');
DBMS_OUTPUT.put_line(' COMMIT;');
DBMS_OUTPUT.put_line('END;');
DBMS_OUTPUT.put_line('/');
DBMS_OUTPUT.put_line(' ');
DBMS_OUTPUT.put_line('BEGIN');
DBMS_OUTPUT.put_line(' COMMIT;');
DBMS_OUTPUT.put_line('END;');
DBMS_OUTPUT.put_line('/');
DBMS_OUTPUT.put_line(' ');
l_last_acl := i.acl;
l_last_principal := i.principal;
l_last_privilege := i.privilege;
END IF;
DBMS_OUTPUT.put_line('BEGIN');
DBMS_OUTPUT.put_line(' COMMIT;');
DBMS_OUTPUT.put_line('END;');
DBMS_OUTPUT.put_line('/');
DBMS_OUTPUT.put_line(' ');
l_last_principal := i.principal;
l_last_privilege := i.privilege;
END IF;
IF l_last_host <> i.host||':'||i.lower_port||':'||i.upper_port THEN
DBMS_OUTPUT.put_line('BEGIN');
DBMS_OUTPUT.put_line(' COMMIT;');
DBMS_OUTPUT.put_line('END;');
DBMS_OUTPUT.put_line('/');
DBMS_OUTPUT.put_line(' ');
l_last_host := i.host||':'||i.lower_port||':'||i.upper_port;
END IF;
END LOOP;
END;
******************************************************************************
-- -------------------------------------------------
-- /sys/acls/smtp_mail_new.xml
-- -------------------------------------------------
BEGIN
DBMS_NETWORK_ACL_ADMIN.drop_acl (
COMMIT;
END;
BEGIN
DBMS_NETWORK_ACL_ADMIN.create_acl (
COMMIT;
END;
BEGIN
DBMS_NETWORK_ACL_ADMIN.assign_acl (
COMMIT;
END;
BEGIN
DBMS_NETWORK_ACL_ADMIN.add_privilege (
COMMIT;
END;
/
Check the ACL Status using below query.