Skip to main content

EXPORT & IMPORT (DATAPUMP)

Export and import will be taken in schema level and table level


To export and import in user is called schema level

To export and import files or tables is called table level


Export and import can be done in schemas, tables and full data base


Schema level:

To export and import in user is called schema level

(Root level query)


Expdp directory = directory name, schema = schema name, dump file = dmp log file =. Log compression = all parallel = cpu count/2


Expdp directpry = directory name, schema = schema name, dumpfile = log.compression = all parallel = cpu count/2


Impdp directory = directory name, schema = schema name, dump file = dmp.logfile = .log compression = all parallel = cpu count/2


Table level :

To export and import in tables is called table level

In table level export we will take only table backup


ie. Export of particular table with the help of table export we can store the data on the export dumps. If anything like data misise, we need to import the same table in database.


Expdp directory = directory name, tables = username.tablename, username.tablename2 dumpfile = dmp log file = .log compression = all parallel = cpu count/2

Create a directory 


MK dir expdp_table_ddmmyyyy


Sql> create directory expdp_table_ddmmyyyy as path/path/path


Expdp directory = expdp_ table_ddmmyy tables = user name =.table1, username.table2 dumpfile = exp_table_ddmmyy.dmp log file = expdp_ table_ddmmyy.log compression= all parallel= cpu count/2


Remap_table

Remap_schema

Y=full


Impdp directory = directory name, schema = schema name dump file name. dmp logfile = log compression = all parallel = cpu count/2

Comments

Popular posts from this blog

Oracle database single instance architecture

Oracle database single instance architecture  Maine database runs on a single machine we referred to this architecture as the Oracle database single instance architecture this setup involves having one Oracle database instance running on the mission serving its clients   The term Oracle database instance simply refers to the combination of memory structure and database process that collectively represent the database service.  However this Architectire has a significant availability risk.  If anything goes wrong with the mission that database becomes UN available.

Table spaces

 Tablespace consists of one or more data files.  A data file belongs to only one tablespace. Segments, Extents, and Blocks • Segments exist within a tablespace • Segments are made up of a collection of extents • An extents is a collection of logically contiguous data blocks - Cannot span multiple data files • Data blocks are mapped to disk blocks SYSTEM and SYSAUX Tablespaces • The SYSTEM and SYSAUX tablespaces are mandatory tablespaces. • They are created at the time of database creation. • They must be online. • The SYSTEM tablespace is used for core functionality (for example, data dictionary tables). • The auxiliary SYSAUX tablespace is used for additional database components.