Import on one table from dump file
An Oracle user asks if it is possible to do an import on one table from a large dump file.
imp file=mydump.dmp tables=table_x
The import process will import only the table noted in the TABLES parameter. All other objects in the dump will be skipped. But keep in mind that the import will also import any triggers, indexes, or constraints on this table unless you turn those off with the appropriate parameter.
Another example of mixing modes is to assume you have a full export of the entire database. You can import just the SCOTT schema similar to:
imp file=mydump.dmp fromuser=scott
Or assume that the dump file contains only two schemas (export was created with OWNER=schema1,schema2). You can import both schemas by specifying FULL=Y for the import.
Dig Deeper on Oracle database administration
Related Q&A from Brian Peasland
Calling stored procedures inside user-defined functions in Oracle Database
In this expert answer, Brian Peasland explains how to call a stored procedure inside user-defined functions in Oracle Database. Continue Reading
Copy Oracle Database but with no data
One reader asks how he can make a copy of his Oracle Database but not have any data in it, for test purposes. Continue Reading
How to add disk to ASM diskgroup with two-way mirroring
Learn how to add disk to ASM diskgroup with two-way mirroring and how to specify a failgroup in this tip from Oracle expert Brian Peasland. Continue Reading