ORACLE数据恢复 ORA-08181with admin option grant 区别

select dbms_flashback.get_system_change_number FROM dual;


select dbms_flashback.get_system_change_number FROM dual;
法一:
select * FROM tablename as of scn 13248629807;
insert into tablename select * from tablename as of scn 13248629807;

法二:
select * from tablename as of timestamp to_Date('2013-01-19 15:28:00', 'yyyy-mm-dd hh24:mi:ss');

法三:
ALTER TABLE tablename ENABLE row MOVEMENT;
flashback table tablename to timestamp to_timestamp('2012-09-13 13:00:00','yyyy-mm-dd hh24:mi:ss');

ORA-08181: 指定的编号不是有效的系统更改号的解决方法
SELECT dbms_rowid.rowid_block_number(ROWID) blockno,ora_rowscn,t.* FROM tablename t;
SCN与timestamp转化
select scn_to_timestamp(13248629807) scn from dual;
select timestamp_to_scn(scn_to_timestamp(8908390522972)) scn from dual;
grant dba to SCHEMA with admin option;
with admin option 这个没有
with grant option 级联回收(mysql反的)

你可能感兴趣的:(oracle)