Linux Operating System (MOSC)

MOSC Banner

Script

edited Mar 8, 2013 6:13AM in Linux Operating System (MOSC) 4 commentsAnswered
Hi Gurus

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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center