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 · 86 阅读 · 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、执行flashbackflashback 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 · 147 阅读 · 0 评论 -
awr报告导出步骤
1、登陆服务器;2、切换到oracle用户,su - oracle;3、导出oracle实例ps -ef | grep smonexport ORACLE_SID=实例名sqlplus / as sysdba4、导出awr命令@/oracle/product/11.2.0/rdbms/admin/awrrpt.sql指定type为html5、表分析DBMS_STATS.GATHER_TABLE_STATS(OWNNAME=>‘用户名’), tabname=>‘table_n原创 2021-01-24 16:55:21 · 1522 阅读 · 0 评论