PL/SQL (MOSC)

MOSC Banner

How to call shell file using PL/SQL

edited Apr 16, 2015 10:04AM in PL/SQL (MOSC) 6 commentsAnswered
Hello EveryOne,

I have made one file and wanted to call it from PL/SQL code

As per documents i have set permission and user for the given file below

/tmp

-rwxrwxrwx   1 ora9i      dba            343 Dec 17 17:47 test.sh

content

ORACLE_BASE=/t03
export ORACLE_BASE
ORACLE_HOME=/t03/ora10g
export ORACLE_HOME
ORACLE_SID=$1
export ORACLE_SID
PATH=$ORACLE_HOME/bin:$PATH
export PATH
SHLIB_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/rdbms/lib:$ORACLE_HOME/network/lib:/usr/lib
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib:/lib
export LD_LIBRARY_PATH
cd /usr/bin/ksh
ls -lrt > test1.txt

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center