The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
A SQL Loader Script LiquidChild Shell Programming and Scripting 2 04-23-2007 03:17 AM
Bus error(coredump) while running SQL*Loader in HP Unix 11 srinivas_paluku UNIX for Advanced & Expert Users 3 04-23-2007 12:53 AM
Shell script for accessing a file in the network drive and invoking oracle sql loader sayydevara Shell Programming and Scripting 0 03-20-2007 12:54 PM
Running Script from Telnet - Problems pauljohn UNIX for Dummies Questions & Answers 1 10-03-2006 10:58 AM
error running COBOL - ".loader does not exist" jbrubaker UNIX for Dummies Questions & Answers 16 08-02-2006 09:21 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-22-2006
Registered User
 

Join Date: Dec 2006
Posts: 1
problems running a sql loader script

Hi Folks,

I have created a number of unix scripts that i can run from the scheduler on a server-side application that we use (Chordiant Marketing Director). All scripts are working except one. This last script is a user load script which first truncates a table and then loads it using a flat file. The script comprises of a ctl file, a sql file (for truncating), a data file, a generic load script and an oracleset.ini file. When I run it directly from a unix session (Telnet) everything works, but when I try to run it from the application it gives me a status of completed but doesn't actually do anything. I have set permissions on all files and directories to rwxrwxrwx but still no success. I have tried several different unix accounts but none of them work (including the master user that owns all of the scripts and files). Is there anything obvious that I could be missing here?

Any help much appreciated.

Cheers,

James
Reply With Quote
Forum Sponsor
  #2  
Old 12-22-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
The first thing to check is the environment variables in the scheduled script.
Next make sure the script redirects stderr and stdout to the same log file.

cron jobs run with a different environment - eg. $ORACLE_HOME probably is not defined.
Reply With Quote
  #3  
Old 01-03-2007
Registered User
 

Join Date: Jul 2005
Location: Amsterdam
Posts: 97
Quote:
Originally Posted by jim mcnamara
The first thing to check is the environment variables in the scheduled script.
Next make sure the script redirects stderr and stdout to the same log file.

cron jobs run with a different environment - eg. $ORACLE_HOME probably is not defined.
When running such a script it is most of the times the best way to set (reset) all the system parameters needed so you are sure that they are there and that the values are correct.



Regards,
Johan Louwers. http://www.terminalcult.org
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:31 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0