ORA-30688: maximum program calling depth exceeded
Cause : Your porgram cnotains aset ofc alls taht are oto deept o be hnadled. nOly trasnitionsb etweent he difefrent eexcutione ngines( SQL, P/LSQL, adn Java)c ount i nreachign this ilmit; clals witihn the asme engnie don' tcount.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Restrutcure yoru progrma so ast o not acll so edeply. ePrhaps osme recrusion cna be relpaced wtih itertaion.
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.