Komplettes Datenbankschema in andere Datenbank kopieren
siehe Metalink-Dokument 336012.1:
How To Copy Database Schemas To A New Database With Same Login Password ?
In Oracle10g you can use the Export DataPump and Import DataPump utilities. Example:
How To Copy Database Schemas To A New Database With Same Login Password ?
In Oracle10g you can use the Export DataPump and Import DataPump utilities. Example:
1. Run a schema level Export DataPump job and connect with a user who has the EXP-FULL_DATABASE role. E.g.:
expdp system/manager directory=my_dir dumpfile=exp_scott.dmp logfile=exp_scott.log schemas=scott
2. Run a schema level Import DataPump job which will also create the user in the target database. E.g.:
impdp system/manager directory=my_dir dumpfile=exp_scott.dmp logfile=imp_scott.log schemas=scott
3. Or you can create a logfile (SQLFILE) with all relevant statements. E.g.:
impdp system/manager directory=my_dir dumpfile=exp_scott.dmp logfile=imp_scott.log schemas=scott sqlfile=imp_user.sql
Kommentare
Kommentar veröffentlichen