![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
oracle
逆刃藏锋
这个作者很懒,什么都没留下…
展开
-
expdp/impdp使用及问题记录
expdp/impdp使用及问题记录sys用户创建虚拟目录:create directory xxx as ‘/xxx’;查询目录:select * from dba_directories;授权:grant read,write on directory xxx to 用户;给用户授予导入权限:grant imp_full_database to 用户;数据库服务器:创建目录/xxx授权:chown oracle /xxx;su - oracle按用户导出数据库:expdp 用户名/密原创 2020-11-25 15:41:46 · 647 阅读 · 0 评论 -
回滚oracle表数据到某一时间点
oracle数据库表数据回滚到某一时间1、查询某一时间点该表的数据select * from 表 as of timestamp to_timestamp(‘2020-07-02 12:11:11’,‘yyyy-mm-dd hh24:mi:ss’);2、对表进行行迁移alter table 表 enable row movement;3、回滚表到时间节点flashbask table 表 to timestamp to_timestamp(‘2020-07-02 12:11:11’,‘yyyy-原创 2020-11-25 15:55:59 · 3335 阅读 · 2 评论 -
oracle表空间相关记录
记录oracle表空间相关select upper(f.tablespace_name) “表空间名”,d.tot_grootte_mb “表空间大小(m)”,d.tot_grootte_mb - f.total_bytes “已使用空间(m)”,to_char(round((d.tot_grootte_mb - f.total_bytes) / d.tot_grootte_mb * 100,2),‘990.99’) “使用比”,f.total_bytes “空闲空间(m)”,f.max_b原创 2020-11-25 16:13:32 · 83 阅读 · 0 评论