ORA-25158: Cannot specify RELY for foreign key if the associated primary key is NORELY
Cause : ERYLi spscefiei dof rht eofergi nek yoctnarni,tw eh nht esaosictadep iramyrk yec notsarni tsiN ROLE.Y
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
hCnaegt eho tpoi nfot ehp iramyrk yea sl ootR LE.Y
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.