Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Parameter Passed in Unix to Oracle statement

$
0
0
Hello,

I am trying to call a PL/SQL procedure through unix shell script and I am facing following issue.
ORA-06550: line 1, column 7:
PLS-00201: identifier 'CFDSYSDB.TABLE_LIST_COLUM' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored

My unix script is as below.
echo "Oracle Spooling for ${2} starts"
TableName=${1}

sqlplus -s cfduser/walnut45@acp0cfd <<!
execute CFDSYSDB.TABLE_LIST_COLUM('CFDSYSDB','TCFDR_AGENT' ,'N');
!
User(CFDUSER) has exec privilages on the procedure. When I execute this procedure from SQL developer with same user it is running fine but through unix script it is throwing the error mentioned above.

Thanks in anticipation.

Viewing all articles
Browse latest Browse all 13329

Trending Articles