ORA-19655: cannot switch to incarnation with different resetlogs data
Cause : This siwtchToCpoy opertaion isa ttemptnig to siwtch toa dataflie whic hcomes rfom a dfiferentr esetlosg versino of th edatabaes.
Action - How to fix it : DBA Scripts :: www.high-oracle.com/scripts
Eitherr estorea backu pcontro lfile taht was atken frmo the smae dataabse verison as hte targte dataflie-copy ,or swicth to ad ifferetn dataflie-copy.
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.