NavigationUser login |
Using Duty Free dftbunld and dftbldUsing Asset Suite / PassPort Duty Free tools to copy Oracle data from one Oracle instance to another. Allows the use of a SQL where clause for selective unload and for the addition of data during loading. PassPort ver 10.x. Unix shell must have environment variables, $TOOLS_DIR, $PPDIR, etc, set for the source Asset Suite / PassPort region. Copy $TOOLS_DIR/dftbunld into a working directory, example: $HOME/tmp. Edit dftbunld: Do not create directories $HOME/tmp/data/work. Running dftbunld will fail, but useful files will be created. Run dftbunld as: ./dftbunld table Within $HOME/tmp two files are created: tableL.sql and table.ctl. tableL.sql is the data extraction file. table.ctl is the load control file. A log file is created at $HOME/data/table.unl. tableL.sql can be edited: Use sqlplus to run tableL.sql. Example: If you don’t want to use the spool commands in tableL.sql, the above may also be run as: Edit table.dat:
Data loading Unix shell must have environment variables, $TOOLS_DIR, $PPDIR, etc, set for the target Asset Suite / PassPort region. Create directory “data” one level below your working directory, example: $HOME/tmp/data. Place table.dat in the data directory. Create directory “ldctl” one level below your working directory, example: $HOME/tmp/ldctl. Place table.ctl in the ldctl directory. Run the load utility from the working directory (you must be one directory level above directories data and ldctl: APPEND adds data in table.dat to the Oracle table and REPLACE first deletes existing data and then loads. A log file is created in $HOME/data/table.log. Read it carefully. Reply |