The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Facing issue in Solaris OS in crontab for running shell script mabrar Shell Programming and Scripting 2 11-02-2007 06:32 AM
how to capture oracle export log while running as background process hippo2020 SUN Solaris 4 07-03-2007 02:39 PM
Cannot running export database using bash script tovohery Linux 5 03-23-2007 02:27 AM
Problem in running shell script gammit UNIX for Dummies Questions & Answers 6 09-11-2006 01:42 AM
shell script- oracle connection problem nattynatty Shell Programming and Scripting 4 08-14-2002 09:48 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-16-2008
jsheehan223 jsheehan223 is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 2
problem running shell script (for oracle export) in crontab

Hello Gurus,

I've been tasked with solving a problem at my new job and I'm stumped. We've got a script that dynamically builds an oracle export parameter files and then runs export from the shell. it runs fine when using the shell, but will NOT run (fails in one spot everytime) when entered into crontab.

I have attached the script. It fails at line 94 every time (see below).

$ORACLE_HOME/bin/exp PARFILE=$ORACLE_SCRIPT/temp.sql

One thing that i've tried is to put direct paths to both the executable and parfile, but to no avail. I've got a feeling that it has to do with the environment variables, but I don't know for sure. I believe that this is running the KSH shell (but again i'm not sure). I just started here and this is my first adventure with AIX.

Any assistance with this will be great!

Thanks in advance,

Jeremy
Attached Files
File Type: txt ora_export_EMTLTD_FPLEFW.sh.txt (5.3 KB, 194 views)

Last edited by jsheehan223; 10-16-2008 at 03:01 PM.. Reason: more information!
  #2 (permalink)  
Old 10-16-2008
jsheehan223 jsheehan223 is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 2
More information

It says that the Oracle home is not set, but i'm certain it is in the script! I will continue digging, but will still welcome any assistance!

----------------------------------------------------

Message 206 not found; No message file for product=RDBMS, facility=EXP: Release 10.2.0.2.0 - Production on Thu Oc
t 16 15:11:00 2008

Copyright (c) 1982, 2005, Orac

Invalid format of Export utility name

Verify that ORACLE_HOME is properly set

Export terminated unsuccessfully

EXP-00000: Message 0 not found; No message file for product=RDBMS, facility=EXP
Closed Thread

Bookmarks

Tags
aix, export, oracle, shell script

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:24 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0