SQL Loader and Selects [message #74284] |
Wed, 27 October 2004 10:13 |
Joe
Messages: 138 Registered: November 1999
|
Senior Member |
|
|
Is it possible to load a table using SQL Loader and imbedded SQL Select statements to load data from a table in another instance? I know I can do this in PL/SQL with an INSERT, however, due to the installation, I am limited to using SQLLOADER. If possible can you provide an example?
|
|
|
|
data migration [message #74289 is a reply to message #74284] |
Thu, 28 October 2004 12:32 |
azam
Messages: 5 Registered: August 2004
|
Junior Member |
|
|
actually i need following script....
So, basically, the script will have to do the following:
1) Look in a particular directory that contains all of the .ncs files
2) Loop through files
a) Change filetype to .mdb
b) Connect to the file via ODBC and query the appropriate data
c) Connect to MNUSS(database) via ODBC
d) Query the MNUSS data to determine if the records already exist (decide if next query is an insert or an update)
e) Execute insert or update queries on relevant MNUSS tables
The script should create a log file of all actions so that they can be verified
please reply me soon
thanks
|
|
|