ORA-26519: no memory available to allocate
Cause : There was no memory left for the RepAPI process. This error may occur when RepAPI is trying to allocate a new table buffer area.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Shutdown one or more local applications to attempt to free heap memory and retry the RepAPI operation.
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.