martino has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to call sql*loader (sqlldr) from a Perl script. The script appears to run okay (no errors are generated) but the loader doesn't do anything. There's no data in the target database table and no log file is generated from loader. I'm sure the script is going through the code (debug messages are generated) but it just doesn't do anything.
The script is running under Linux and is loading to a Oracle 10g database. Here is line from the script:
my $rt = `sqlldr userid=$u/$p\@$sid control=$fileParms[0] log=$fileParms[0] 2>&1`;
where $u is the user id, $p is the password, $sid is the database instance and $fileparms[0] contains the name for the sqlldr control and log files (no .ctl or .log is included). If i run the equivalent from the command line it works fine.
As usual, any help given will be greatly appreciated.
Martino
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with sql*loader
by moritz (Cardinal) on May 15, 2008 at 08:20 UTC | |
by martino (Initiate) on May 15, 2008 at 10:25 UTC | |
by almut (Canon) on May 15, 2008 at 12:09 UTC | |
by martino (Initiate) on May 16, 2008 at 12:03 UTC | |
by Starky (Chaplain) on May 15, 2008 at 14:36 UTC | |
by moritz (Cardinal) on May 15, 2008 at 10:35 UTC |