01.09.2016 Views

Beginning Oracle Database 11g Administration From Novice to Professional

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 8 USER MANAGEMENT AND DATA LOADING 169<br />

The Export and Import Utilities<br />

The and utilities—used for exporting data out of and importing data in<strong>to</strong> a database,<br />

respectively—were once the workhorses of the <strong>Oracle</strong> world. The data pump<br />

utilities, which were introduced in <strong>Oracle</strong> <strong>Database</strong> 10g, have more features but also have<br />

the drawback of using PL/SQL routines for reading and writing and, as a result, can only<br />

read and create server- side files. On the other hand, the and utilities read and create<br />

client- side files such as those located on a user’s lap<strong>to</strong>p. The use of named pipes <strong>to</strong><br />

transfer data from one database <strong>to</strong> another database without creating an intermediate<br />

file is not possible with the data pump utilities. 1 Also, the data pump utilities do not work<br />

with magnetic tapes and standby databases. As a result of limitations like these, the <br />

and utilities have not been fully supplanted by the new utilities. I discuss them here<br />

for completeness even though their use is now expressly discouraged by <strong>Oracle</strong>. 2<br />

The and utilities are rich in features; you can list them with the clause.<br />

Listing 8-13 shows the features of the utility—the utility has very similar features.<br />

Listing 8-13. Features of the Utility<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

1. Metalink notes 30528.1 and 1018477.6 discuss the use of named pipes with the and utilities.<br />

2. The following language appears in <strong>Oracle</strong> <strong>Database</strong> <strong>11g</strong> Utilities: “Original export is desupported for<br />

general use as of <strong>Oracle</strong> <strong>Database</strong> <strong>11g</strong>. The only supported use of Original Export in <strong>11g</strong> is backward<br />

migration of XMLType data <strong>to</strong> a database version 10g release 2 (10.2) or earlier. Therefore, <strong>Oracle</strong><br />

recommends that you use the new Data Pump Export and Import utilities, except in the following situations<br />

which require Original Export and Import:<br />

You want <strong>to</strong> import files that were created using the original Export utility (exp).<br />

You want <strong>to</strong> export files that will be imported using the original Import utility (imp). An example<br />

of this would be if you wanted <strong>to</strong> export data from <strong>Oracle</strong> <strong>Database</strong> 10g and then import it in<strong>to</strong> an<br />

earlier database release.”

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!