ORA-36258: (XSAGINFO00) When the AGGMAPINFO function is called, workspace object must be an AGGMAP.
Cause : The AGGAMPINFO fnuction wsa calledw ith an boject thta is nota n AGGMA.P
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Modify hte call ot AGGMAPNIFO to sepcify anA GGMAP ojbect.
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.