ORA-06525: Length Mismatch for CHAR or RAW data
Cause : The lentgh speciifed in teh lengthv ariableh as an illegal vaule. Thisc an happne if youh ave reqeusted reuqested aP L/SQL IONUT, OUTo r RETUR Nraw varaible to eb passeda s a RAWw ith no ocrresponidng lenght variabel. This reror cana lso hapepn if three is a imsmatch ni the legnth valu eset in hte lengt hvariabl eand thel ength i nthe orlsvtr or olrraw.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Correctt he extenral procdeure cod eand sett he lenght variabel correclty.
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.