File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
data-platform/core-converged-db/sql-tuning-sets/scripts-for-sts Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments