Skip to content

Commit b763bb4

Browse files
authored
Create 1-transport-sts-from-source.sql
1 parent af17cca commit b763bb4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
REM Script: 1-transport-sts-from-source.sql
2+
REM Create a staging table and add the statements to it (source system)
3+
4+
-- Use CREATE_STGTAB_SQLSET to create the staging table
5+
6+
execute dbms_sqltune.create_stgtab_sqlset(table_name => '&tablename', schema_name => '&owner');
7+
8+
-- Load the staging table with data from one or more STS with PACK_STGTAB_SQLSET
9+
10+
execute dbms_sqltune.pack_stgtab_sqlset(sqlset_name => '&stsname', -
11+
  sqlset_owner => '&owner', -
12+
  staging_table_name => '&stagingtab_name',-
13+
  staging_schema_owner=> '&stagingtab_owner');
14+
15+
16+
-- use datapump to export the staging table and import it to the target system

0 commit comments

Comments
 (0)