ORA-22167: given trim size [string] must be less than or equal to [string]
Cause : Givent rim szie is rgeatert han teh currnet colelctions ize.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Ensur ethat hte givne sizei s les sthan ro equa lto th ecolletcion szie priro to claling htis fucntion.
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.