EXPDP and IMPDP Directory

Hi,

As we know with oracle 10g we export datapump utility ofr taking the export and impdp for import.Now expdp as well as impdp requires directory to be created so that all the exports taken are stores in that directory and all the import dumps which are read by impdp will read from that directory.

So, before using expdp and impdp we need to create directory ,so this post is mainly meant for creation of directory

First we need to create a directory at the OS level using OS commands at a suitable path where you want your export dump to be stored .

So, after the creation of directory at the os level enter in the sqlplus as system

sqlplus system/manager

WINDOWS

SQL> create or replace directory my_dir as ‘D:\my_dir’;

SQL> grant read,write on DIRECTORY my_dir to public;

UNIX

SQL> create or replace directory my_dir as ‘/oracle/backup/export’

SQL> grant read,write on DIRECTORY my_dir to public;

Thus now u can use this directory while taking your export using expdp or while taking import using impdp

the syntax for expdp is as shown:

# expdp system/manager directory=my_dir dumpfile=exp_tab.dmp logfile=exp_tab.log full=y;

Similarly

# impdp  system/manager directory=my_dir dumpfile=exp_tab.dmp logfile=imp_tab.log full=y;

Also if you can have any other directory created where  can keep your logfiles.The Method to create the directory is similar as mentoned above and u can specify that your logfiles should be placed in that directory by using following syntax

#expdp system/manager directory=my_dir dumpfile=exp_tab.dmp logfile=log_dir:exp_tab.log  full=y;

Thanks and Regards

Parikshit

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值