I am using oracle 9i.
Now I want to copy its whole data like tables, cursors, function, procedure and trigger to an another system which has no link with my first system.
Oracle export (EXP) and import (IMP) utilities are used to perform logical database backup and recovery. export / import are logical backup system in oracle.
Just type exp(in case of export) or imp (in case of import) at prompt, you will get online help from oracle and supply parameters, it will serve your purpose.
Otherwise, the command is
login as sys user and give command...
exp file= full=y statistics = none (will export all schema backups)
for example,
exp scott/tiger file=emp.dmp log=emp.log tables=emp rows=yes indexes=no
(table level export)
exp scott/tiger file=emp.dmp tables=(emp,dept) (exporting 2 tables)
Similarly import command will be like....
imp scott/tiger file=emp.dmp full=yes
imp scott/tiger file=emp.dmp fromuser=scott touser=scott
tables=dept
Now I want to copy its whole data like tables, cursors, function, procedure and trigger to an another system which has no link with my first system.
Oracle export (EXP) and import (IMP) utilities are used to perform logical database backup and recovery. export / import are logical backup system in oracle.
Just type exp(in case of export) or imp (in case of import) at prompt, you will get online help from oracle and supply parameters, it will serve your purpose.
Otherwise, the command is
login as sys user and give command...
exp file= full=y statistics = none (will export all schema backups)
for example,
exp scott/tiger file=emp.dmp log=emp.log tables=emp rows=yes indexes=no
(table level export)
exp scott/tiger file=emp.dmp tables=(emp,dept) (exporting 2 tables)
Similarly import command will be like....
imp scott/tiger file=emp.dmp full=yes
imp scott/tiger file=emp.dmp fromuser=scott touser=scott
tables=dept
Comments (0)
Post a Comment