ORA-22833: Must cast a transient type to a persistent type
Cause : An attempt was made to use the transient type in the query result.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Cast the transient type to a structurally equivalent persistent type.
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.