ORA-23502: valid directory for offline instatiation is not specified
Cause : An attempt was made to offline instantiate to a directory which is not specified or null.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
There are two ways to specify the directory: o As a parm offline_dirpath to the API o As an init.ora parm named utl_file_dir Make sure you have specified an appropriate directory in which the offline file can be created.
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.