I have a script that contains plsql codes. The output of the code is so complex. The code is here:
#!/usr/bin/ksh
$ORACLE_HOME/bin/sqlplus<<EOF
x/xx@xxx
set serveroutput on
set sqlnumber off
set sqlblanklines off
set feedback off
DECLARE
is_found_rec boolean := false;
CURSOR c1
IS
select name from rdsolucadm.BPM_T_SEMAPHORE where value in ('0') and description like 'R%';
BEGIN
FOR r1 IN c1
LOOP
is_found_rec := true;
update RDSOLUCADM.BPM_T_SEMAPHORE set value ='2' where value in ('0') and description like 'R%';
commit;
dbms_output.put_line ('BPM_T_SEMAPHORE table is updated.');
END LOOP;
if not is_found_rec then
dbms_output.put_line ('BPM_T_SEMAPHORE table is NOT updated!!!');
end if;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line(SubStr('Error '||TO_CHAR(SQLCODE)||': '||SQLERRM, 1, 255));
RAISE;
END;
/
exit
EOF
And the result is as below:
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options
SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> SQL> BPM_T_SEMAPHORE table is NOT updated!!!
SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options
I dont want to see lots of "SQL> SQL> SQL> SQL> SQL> ....." How to set this properties? Could you help me please ?
Thanks, Best Regards