ITPub博客

首页 > 数据库 > Oracle > 导出gather_status分析--用于测试压力等

导出gather_status分析--用于测试压力等

原创 Oracle 作者:peng163fj 时间:2015-07-10 17:58:40 0 删除 编辑
----查看欲导出的user
select * from dba_users
SELECT * FROM SYSTEM.TEMP_STAT2

--建立导出表temp_stat2,进行复制和导出
EXEC  dbms_stats.create_stat_table('SYSTEM','temp_stat2'); 
exec dbms_stats.export_schema_stats('SYSTEM','temp_stat2','SYSTEM'); 
expdp SYSTEM/manager directory=SYSTEM_DIR dumpfile=gather_status.dmp logfile=gather_status.log tables=temp_stat2 



--导出时将目录设置
SELECT * FROM ALL_DIRECTORIES;


create directory SYSTEM_DIR as '/u01/uat/expdp'; 
Grant read,write on directory SYSTEM_DIR to system;

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21302630/viewspace-1729079/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: toad使用
请登录后发表评论 登录
全部评论

注册时间:2013-11-20

  • 博文量
    155
  • 访问量
    440176