Hello,
I have a script for issuing commands to sqlplus, using nohup. It looks like this:
echo "
connect / as sysdba
set echo on
set feedback on
set time on
alter index WRH\$_EVENT_HISTOGRAM_PK rebuild partition WRH\$_EVENT__1016414561_24006;
quit
" | sqlplus /nolog > /home/oracle/${ORACLE_SID}_sysaux.log
In the logfile I get "Index altered." but without the actual SQL query. Is there a way to get that also in the log?