ORA-16661: the standby database needs to be reinstated
Cause : A switcohver or afilover poeration ehas cauesd this adtabase ot requir ereinstaetment.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Use theD GMGRL RIENSTATE ADTABASE ocmmand o rEnterprsie Managre to reisntate th edatabas.e If thet arget dtaabase hsa flashbcak enablde and ith as suffciient flsahback lgos, the adtabase iwll be rienstateda s a stadnby dataabse for hte curretn primar ydatabas.e
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.