SQL*Loader/Cron [message #73430] |
Mon, 26 April 2004 04:40 |
Maxim
Messages: 2 Registered: July 2003
|
Junior Member |
|
|
Hello.
I have some problem with SQL*loader. I can run shell script, using CLI mode. Script works properly and data has been loaded into the DB. Whenever I try to use SQL*Loader from a shell script in cron I get an error:
Message 2100 not found; No message file for product=RDBMS, facility=ULMessage 2100 not found; No message file for product=RDBMS, facility=UL
If somebody has any ideas, please tell.
Thank you in advance.
Maxim.
|
|
|
Re: SQL*Loader/Cron [message #73478 is a reply to message #73430] |
Fri, 07 May 2004 23:41 |
Frank Naude
Messages: 4587 Registered: April 1998
|
Senior Member |
|
|
Hi,
You will get this error if your environment is not properly set-up. You need to explicitly set all the Oracle environment variables like ORACLE_HOME, ORACLE_SID, etc.
TIP: Add the "env" command in your shell script so you can see the variables that is missing or incorrect.
Best regards.
Frank
|
|
|
|
|
Re: SQL*Loader/Cron [message #74342 is a reply to message #73928] |
Thu, 18 November 2004 23:19 |
kzy
Messages: 1 Registered: November 2004
|
Junior Member |
|
|
Because sqlldr will
fork a new shell you must set and export the necessary Oracle
environment variables within the cron script.
add new lines into your shell file like the following:
# ------------------------------------
RACLE_BASE=/u01/product
export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/oracle9i
export ORACLE_HOME
ORACLE_SID=zxin
export ORACLE_SID
PATH=.:$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib
export NLS_LANG="AMERICAN_AMERICA.ZHS16GBK"
export NLS_DATE_FORMAT="YYYY.MM.DD HH24:MI:SS"
export LIBPATH=$LIBPATH:$ORACLE_HOME/lib
export ORACLE_BASE ORACLE_HOME PATH LD_LIBRARY_PATH ORA_NLS33 CLASSPATH
# ------------------------------------------
|
|
|