![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
oracle
一枚Java
一枚Java
展开
-
oracle数据库的备份与还原
备份库1.先查询该SQL然后执行查询出来的SQL,不然空表导不出来select 'alter table '||t.TABLE_NAME||' allocate extent;' from user_tables t where t.NUM_ROWS=0;2.导出数据库dmp文件到指定位置(需在命令窗口执行,电脑中需安装oracle客户端,不然无法执行)服务器端的数据库导出dmpexp name...原创 2018-03-23 20:56:23 · 173 阅读 · 0 评论 -
还原oracle的表到某个时间点
select to_char(sysdate,'yyyy-mm-dd hh24:mi:ss') from dual;select * from table_name as of timestamp to_timestamp('2017-05-26 09:10:50','yyyy-mm-dd hh24:mi:ss');alter table table_name enab...原创 2018-03-23 21:07:32 · 2658 阅读 · 0 评论