Skip to content

Commit bd54b83

Browse files
committed
Changes as requested
1 parent 2bdc59c commit bd54b83

File tree

10 files changed

+49
-49
lines changed

10 files changed

+49
-49
lines changed

sqlcl/datamove-schema/dms-datamove.sql renamed to sqlcl/datamove-schema/datamove.sql

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ The above copyright notice and this permission notice shall be included in all c
1010
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1111
*/
1212

13-
@@dms-setup
14-
@@dms-precheck
15-
@@dms-dpexp
16-
@@dms-dpxfer
17-
@@dms-dpimp
18-
@@dms-postcheck
19-
@@dms-teardown
13+
@@setup
14+
@@precheck
15+
@@dpexp
16+
@@dpxfer
17+
@@dpimp
18+
@@postcheck
19+
@@teardown

sqlcl/datamove-schema/dms-dpexp.sql renamed to sqlcl/datamove-schema/dpexp.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ SET VERIFY OFF
1717

1818
WHENEVER SQLERROR EXIT
1919

20-
prompt dms-dpexp starting ...
20+
prompt dpexp starting ...
2121
-- TODO: Maybe move connect & initialize from source stuff to separate script (so this script can use the substitution values and rather than calcing log/file names twice)
2222
connect &dm_source;
2323

@@ -174,4 +174,4 @@ END;
174174
/
175175

176176
disconnect;
177-
prompt dms-dpexp exiting
177+
prompt dpexp exiting

sqlcl/datamove-schema/dms-dpimp.sql renamed to sqlcl/datamove-schema/dpimp.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
1414
set escape off
1515
set verify off
1616
whenever sqlerror exit
17-
prompt dms-dpimp starting ...
17+
prompt dpimp starting ...
1818

1919
set cloudconfig &dm_cloud_config
2020
connect &dm_target;
@@ -130,4 +130,4 @@ END;
130130

131131
disconnect;
132132

133-
prompt dms-dpimp exiting
133+
prompt dpimp exiting

sqlcl/datamove-schema/dms-dpxfer.sql renamed to sqlcl/datamove-schema/dpxfer.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- dpxfer.sql dm_data_pump_file
1+
-- dpxfer.sql
22
/*
33
The MIT License (MIT)
44
@@ -16,11 +16,11 @@ SET ECHO OFF
1616
SET SERVEROUTPUT ON
1717
SET ESCAPE OFF
1818
SET VERIFY ON
19-
prompt dms-dpxfer starting ...
19+
prompt dpxfer starting ...
2020

2121
cs oci &dm_oci_profile
2222
cs &dm_oci_bucket
2323
cs put &dm_data_pump_path/&dm_data_pump_log /o/&dm_data_pump_log
2424
cs put &dm_data_pump_path/&dm_data_pump_file /o/&dm_data_pump_file
2525

26-
prompt dms-dpxfer exiting
26+
prompt dpxfer exiting

sqlcl/datamove-schema/example.log

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
D:\work\sqlcl-21.2.1.195.1252\bin>sql /nolog
22

33

4-
SQLcl: Release 21.2 Production on Thu Jul 22 16:50:52 2021
4+
SQLcl: Release 21.2 Production on Fri Jul 23 17:06:30 2021
55

66
Copyright (c) 1982, 2021, Oracle. All rights reserved.
77

88
SQL> cd datamove-schema
9-
SQL> @@dms-datamove
10-
Starting dms-setup
11-
Exiting dms-setup
12-
Starting dms-precheck
13-
Ending dms-precheck
14-
dms-dpexp starting ...
9+
SQL> @@datamove
10+
Starting setup
11+
Exiting setup
12+
Starting precheck
13+
Ending precheck
14+
dpexp starting ...
1515
Password? (**********?) ******
1616
Connected.
1717
Calculating data pump path and file name(s)...
@@ -31,16 +31,16 @@ DPLOG
3131
HR-EXP.LOG
3232

3333
Exporting schema HR ...
34-
JOB_NAME: EXP_SD_1362
34+
JOB_NAME: EXP_SD_1522
3535
DataPump Export Status: 'COMPLETED'
3636

3737

3838
PL/SQL procedure successfully completed.
3939

4040
Disconnected from Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
4141
Version 18.4.0.0.0
42-
dms-dpexp exiting
43-
dms-dpxfer starting ...
42+
dpexp exiting
43+
dpxfer starting ...
4444
DBMS_CLOUD Credential: Not Set
4545
OCI Profile: freedb
4646
Transfer Method: oci
@@ -51,23 +51,23 @@ Transfer Method: oci
5151
URI as specified: https://objectstorage.us-phoenix-1.oraclecloud.com/n/oraclefreedb/b/transfer
5252
Put D:\app\bjeff\product\18.0.0\admin\xe\dpdump\/5460E3B4980F4EE0B5ECA9390928E66D/HR-EXP.LOG copied to https://objectstorage.us-phoenix-1.oraclecloud.com/n/oraclefreedb/b/transfer/o/HR-EXP.LOG
5353
Put D:\app\bjeff\product\18.0.0\admin\xe\dpdump\/5460E3B4980F4EE0B5ECA9390928E66D/HR.DMP copied to https://objectstorage.us-phoenix-1.oraclecloud.com/n/oraclefreedb/b/transfer/o/HR.DMP
54-
dms-dpxfer exiting
55-
dms-dpimp starting ...
54+
dpxfer exiting
55+
dpimp starting ...
5656
Password? (**********?) ************
5757
Connected.
5858
Importing schema DM_SCHEMA ...
5959
credential = SWIFTCRED2
60-
JOB_NAME: IMP_SD_406
60+
JOB_NAME: IMP_SD_444
6161
DataPump Import Status: 'COMPLETED'
6262

6363

6464
PL/SQL procedure successfully completed.
6565

6666
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
6767
Version 19.5.0.0.0
68-
dms-dpimp exiting
69-
Starting dms-postcheck
70-
Ending dms-postcheck
71-
Starting dms-teardown
72-
Ending dms-teardown
68+
dpimp exiting
69+
Starting postcheck
70+
Ending postcheck
71+
Starting teardown
72+
Ending teardown
7373
SQL>

sqlcl/datamove-schema/dms-postcheck.sql renamed to sqlcl/datamove-schema/postcheck.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ The above copyright notice and this permission notice shall be included in all c
1010
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1111
*/
1212

13-
prompt Starting dms-postcheck
13+
prompt Starting postcheck
1414
-- Placeholder for any post operation checking we may want to do
15-
prompt Ending dms-postcheck
15+
prompt Ending postcheck

sqlcl/datamove-schema/dms-precheck.sql renamed to sqlcl/datamove-schema/precheck.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ The above copyright notice and this permission notice shall be included in all c
1010
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1111
*/
1212

13-
prompt Starting dms-precheck
13+
prompt Starting precheck
1414
-- Placeholder for any pre-flight checking we may want to do
15-
prompt Ending dms-precheck
15+
prompt Ending precheck

sqlcl/datamove-schema/readme.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ A set of scripts to datapump a schema from a local database to an ADW cloud data
77
## Typical Usage:
88
* edit dms-setup.sql to supply required information
99
* SQL> cd \<datamove-schema\>
10-
* SQL> @@dms-datamove
10+
* SQL> @@datamove
1111

1212
## The scripts
13-
* @@dms-datamove - Controller script that runs the following in sequence
14-
* @@dms-setup - Define required variables for the run
15-
* @@dms-precheck - Perform preflight checks (TODO)
16-
* @@dms-dpexp - Perform data pump export on local database
17-
* @@dms-dpxfer - Transfer data pump files to object storage
18-
* @@dms-dpimp - Import data pump from object storage to autonomous cloud db
19-
* @@dms-postcheck - Perform post run checks
20-
* @@dms-teardown - Undefine used
13+
* @@datamove - Controller script that runs the following in sequence
14+
* @@setup - Define required variables for the run
15+
* @@precheck - Perform preflight checks (TODO)
16+
* @@dpexp - Perform data pump export on local database
17+
* @@dpxfer - Transfer data pump files to object storage
18+
* @@dpimp - Import data pump from object storage to autonomous cloud db
19+
* @@postcheck - Perform post run checks
20+
* @@teardown - Undefine used
2121

2222
## License
2323
This project is licensed under the terms of the MIT license.

sqlcl/datamove-schema/dms-setup.sql renamed to sqlcl/datamove-schema/setup.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The above copyright notice and this permission notice shall be included in all c
1010
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1111
*/
1212

13-
prompt Starting dms-setup
13+
prompt Starting setup
1414

1515
-- This is a script to define variables for datamove
1616
-- Edit this script to set variables as required
@@ -50,4 +50,4 @@ define dm_target = 'ADMIN@ADW20210622_high';
5050
-- The target schema
5151
define dm_schema_imp = 'DM_SCHEMA';
5252

53-
prompt Exiting dms-setup
53+
prompt Exiting setup

sqlcl/datamove-schema/dms-teardown.sql renamed to sqlcl/datamove-schema/teardown.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
1212
*/
1313

1414
-- clear defined variables
15-
prompt Starting dms-teardown
15+
prompt Starting teardown
1616

1717
-- source
1818
undefine dm_source;
@@ -33,4 +33,4 @@ undefine dm_credential;
3333
undefine dm_target;
3434
undefine dm_schema_imp;
3535

36-
prompt Ending dms-teardown
36+
prompt Ending teardown

0 commit comments

Comments
 (0)