用sys用戶SYSDBA權限登陸PL/SQL,
忘記sys密碼需要到修改
C:\Users\zhouxq>sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on 星期一 4月 15 11:47:59 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> connect /as sysdba
已連接。
SQL> alter user sys identified by upay1234;
用戶已更改。
登陸過後
select * from dba_source
AS OF TIMESTAMP TO_TIMESTAMP('2013-4-15 09:10:00', 'YYYY-MM-DD HH24:MI:SS') where owner = 'UPAY' and line >1590
表數據恢復
首先要刪掉表裏面的數據,然後執行
insert into s_module (mod_id,mod_name,mod_parent_id,mod_addr,mod_icon,mod_max_auth,mod_level)
select * from s_module as of timestamp to_timestamp('2013-04-15 09:20:00', 'yyyy-mm-dd hh24:mi:ss');