Script
Ours is a 11.2.0.2 on linux redhat; an upgrade is due and thanks for the information to T all that up. I am trying to run a script that would check for users with expiring accounts. And I have managed to make quite a mess of it. I have two files a .cmd file which has the SQL query and a .sh file which I hope will call the .cmd file here are the contends. First the .cmd file
select USERNAME,ACCOUNT_STATUS,EXPIRY_DATE from dba_users where EXPIRY_DATE between sysdate and sysdate+14;
spool off
exit
and this is the content of my .sh file