I was playing - for my upcoming project- how to perform expdp
and impdp
on play environment which is two levels away from the test environment . So i did expdp
with scott/tiger and exported the scott schema. However, out of curiosity, I dropped Scott schema from the database (expecting to do impdp
in the same database) then I got a lot of errors and lost the Scott schema from the database.
Is there I was I can recover Scott schema from the dumpfile?
This is what I did:
expdp scott/tiger schemas=scott directory=test_dir dumpfile=scott.dmp logfile=expdpscott.log
impdp scott/tiger schemas=scott directory=test_dir dumpfile=scott.dmp logfile=impdpscott.log
. . . then I got this:Job "SCOTT"."SYS_IMPORT_SCHEMA_01" completed with 4 error(s) at 19:13:31"
... then I did:
drop user Scott cascade;
and then
impdp scott/tiger schemas=scott directory=test_dir dumpfile=scott.dmp logfile=impdpscott.log
then I got this error:
UDI-01017: operation generated ORACLE error 1017 ORA-01017: invalid username/password; logon denied
... Now I realized that I did a stupid thing (which is good as a learner).
How can I get back or recover the dropped scott
schema?