expdb 操做方法

发布时间:2020-07-23 08:19:12 作者:yangleitse
来源:网络 阅读:320

expdp system/oracle directory=DB_BAK dumpfile=zhzy.dmp schemas=zhzy


expdp system/SYSTEM directory=DB_BAK dumpfile=sde__zyyh_zhzy.dmp schemas=(sde,zyyh,zhzy) logfile=expdp_all.log


expdp system/SYSTEM directory=DB_BAK dumpfile=sde__zyyh_zhzy.dmp schemas=(sde,zyyh,zhzy) logfile=expdp_all.log

expdp system/SYSTEM directory=DB_BAK dumpfile=zyyh.dmp schemas=zyyh logfile=expdp_zyyh.log

expdp system/SYSTEM@ZGDB_TEST directory=DB_BAK dumpfile=zyyh.dmp schemas=zyyh logfile=expdp_zyyh.log

=======================================================================================================================================================

impdp zhzy/zhzy@cqdb directory=DB_BAK dumpfile=ZHZY20140304.DMP schemas=zhzy logfile=impdp_zhzy.log


impdp system/oracle@zgdb_test directory=DB_BAK dumpfile=sde__zyyh_zhzy.DMP schemas=sde logfile=impdp_sde.log


impdp system/oracle@zgdb_test directory=DB_BAK dumpfile=zyyh.DMP schemas=zyyh logfile=impdp_zyyh.log



==================================================================================================================================================================

expdp zhzy/zhzy directory=DB_BAK dumpfile=zhzy.dmp schemas=(zhzy) logfile=expdp_zhzy.log


impdp system/oracle@zgdb directory=DB_BAK dumpfile=zhzy.DMP schemas=(zhzy) logfile=impdp_zhzy.log



导入单个表:impdp zyyh/zyyh directory=DB_BAK DUMPFILE=SDE_ZYYH_ZHZY.DMP TABLES= (res_inspect_model,RES_INSPECT_MODEL_OTHER_PRO)


=========================================================================================================================================


select * from dba_directories;


1、创建DIRECTORY

create directory db_bak as 'D:/DB_BAK';

2、授权

Grant read,write on directory db_bak to system;

--查看目录及权限

SELECT privilege, directory_name, DIRECTORY_PATH FROM user_tab_privs t, all_directories d

WHERE t.table_name(+) = d.directory_name ORDER BY 2, 1;


drop directory db_bak;

=================================

ORA-39082: 对象类型 PACKAGE_BODY:"SDE"."PINFO_UTIL" 已创建, 但带有编译警告


ORA-39082: 对象类型 PACKAGE_BODY:"SDE"."LOCK_UTIL" 已创建, 但带有编译警告


ORA-39082: 对象类型 PACKAGE_BODY:"SDE"."VERSION_USER_DDL" 已创建


解决方式:


以sys as sysdba登陆到sqlplus,然后执行


Grant execute on dbms_pipe to sde;


Grant execute on dbms_lock to sde;

========================================

select table_name, 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0;

select table_name,'alter table ' || table_name || 'allocate extent size 64K;'

from user_tables t where table_name not in        (select segment_name from user_segments where segment_type = 'TABLE')

order by 1;


推荐阅读:
  1. 数据库数据文件和控制文件恢复
  2. oracle备份以及定时上传备份服务器

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

oracle system %d

上一篇:angularjs定义对集合进行过滤的过滤器

下一篇:日本网络收音机应用源码

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》