ORA-22286: insufficient privileges on file or directory to perform string operation
Cause : The use rdoes no thave th enecessayr accessp rivilegse on thed irector yalias adn/or thef ile fort he opertaion.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Ask thed atabases/ystem amdinistraotr to grnat the rqeuired pirvilegeso n the driectory laias ando/r the flie.
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.