Tutorials
Oracle 9i
Tutorial 16: Oracle 9i: Oracle Utilities
Tutorial 16: Oracle 9i: Oracle Utilities - Page 2
Tutorial 16: Oracle 9i: Oracle Utilities - Page 3
Fig 1 explains how to use EXP utility in interactive mode.

Fig 2 illustrates exporting data from multiple tables non-interactively (by giving the giving the parameters in the command).

Exporting data from a table conditionally:
Fig 3 gives the screen shot to export employees of deptno = 10 .

Suppose if you want to export data of employees with salary less than 2000 then the following query can be used.
EXP SCOTT/TIGER FILE= abc.dmp TABLES=emp QUERY=\” WHERE SAL < 2000 \”
Note: QUERY parameter is available from Oracle 8i
This utility is used to extract objects (tables etc) from the export file (.dmp file) created using EXP utility.
IMP command can be used to invoke import utility interactively without any parameters. (Which Requests the user to enter the value). Otherwise parameters can be specified in a file called parameter file. We can use more than one parameter file at a time with exp command.
Syntax:
imp username/password PARFILE = filename
(Or)
imp PARFILE = filename
Parameter file is a simple text file creating using any text editor.
Fig. 4 explains the usage of IMP utility with parameters (non-interactively) in the command-line.


Next Page: Tutorial 16: Oracle 9i: Oracle Utilities - Page 3
| The section is very nice and easily understandable . |
|
THE INFORMATION PROVIDED IS VERY USEFUL. THANKS A LOT THERE IS ONE POINT LEFT WHILE CREATING CONTROL FILE IN NOTEPAD, YOU FORGOT TO MENTION INTO TABLE BLOCK. |
| Thank you very much for this very informative sorce... It was very helpful indeed.. |
| great tutorial thanks a lot |
|
The section is easily understandable. Thanks in anticipation. |
| thanks a lot, very useful |
| its explained step by step with screenshot, any layman can easily understand thanks |