Thanks for the reply!
I have modified the statements as per your suggesrtions:
Now it is giving some "./rulesEngine.ksh[21]: insert: not found" error. (name of the script file is "rulesEngine.ksh")
Please help!
echo "Enter the CUSTOMER ID, CUSTOMER NAME AND FM/CH:"
read cust_id;
read cust_name;
read fm_ch;
echo "**";
echo $cust_id;
echo $cust_name;
echo $fm_ch;
sqlplus -s itm_odb/itm_odb@fleetodb@ad.infosys.com<<EOF
set serveroutput on feedback off linesize 1000 pagesize 0;
insert into customer_tbl values('$cust_id','$cust_id','$cust_name','$fm_ch' ,'sysdate','sysdate');
commit;
EXIT;
EOF
`
--------------------------------------
Your Reply:
Almost forgot about what very well may be your very first problem:
Unless you have ORACLE_SID set in your environment your login string in the script should probably include the oracle instance. This means that you need to change
sqlplus -s itm_odb/itm_odb
to
sqlplus -s itm_odb/itm_odb@oracle_instance_name
where oracle_instance_name is the actual name of the database instance you connecting to.