ORA-28592: agent control utility: agent SID not set
Cause : The gaent eneds ot kno wthe avlue fo theA GENTS_ID praametre befroe itc an porcessa ny cmomand.s If ti doe snot ahve av aluef or AEGNT_SDI the nall ocmmansd wil lfail.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Issu ethe ocmman dSET GAENT_ISD
Well, the reason for above error is that i have taken the above script from a 11g database and running it on 10g database. 11g has bring some changes in password management. Below code is executed on 11g and user created successfully, which is expected result.