oracle
唐荣跃
谁的青春没遗憾
展开
-
oracle数据库备份
export ORACLE_SID=实例名 dt=’date+%Y%M%D%H%S’ expdp user_name/user_pwd@instance directory=dump_dir dumpfile=file_namedt.DMPachemas=instancelogfile=dt.DMP achemas=instance logfile=dt.DMPachemas=instancelogfile=dt.log原创 2021-01-24 19:13:58 · 71 阅读 · 0 评论 -
oracle表数据闪回
1、查询历史事件的数据量 select count(1) from table_name as of timestamp to_timestamp(‘2020-07-03 17:10:10’,‘yyyy-mm-dd hh24:mi:ss’); 2、执行flashback flashback table table_name to timestamp to_timestamp(‘2020-07-03 17:10:10’,‘yyyy-mm-dd hh24:mi:ss’) ...原创 2021-01-24 16:59:04 · 134 阅读 · 0 评论 -
awr报告导出步骤
1、登陆服务器; 2、切换到oracle用户,su - oracle; 3、导出oracle实例 ps -ef | grep smon export ORACLE_SID=实例名 sqlplus / as sysdba 4、导出awr命令 @/oracle/product/11.2.0/rdbms/admin/awrrpt.sql 指定type为html 5、表分析 DBMS_STATS.GATHER_TABLE_STATS(OWNNAME=>‘用户名’), tabname=>‘table_n原创 2021-01-24 16:55:21 · 1479 阅读 · 0 评论