91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

oracle的閃回查詢,閃回刪除:

發布時間:2020-07-07 03:33:07 來源:網絡 閱讀:323 作者:llc018198 欄目:關系型數據庫

create table t1 as select * from dba_objects;

SCOTT@ORA12C> select sysdate from dual;

SYSDATE

-------------------

2015-09-20 14:54:10

1 row selected.

SCOTT@ORA12C> delete from t1;

0 rows deleted.

SCOTT@ORA12C> commit;

Commit complete.

SCOTT@ORA12C> select count(*) from t1;


COUNT(*)

-----------------

0

1 row selected.

SCOTT@ORA12C> select count(*) from t1 as of timestamp to_timestamp('2015-09-20 14:54:00','yyyy-mm-dd hh34:mi:ss');

COUNT(*)

-----------------

   91692

1 row selected.

SCOTT@ORA12C> flashback table t1 to timestamp to_timestamp('2015-09-20 14:54:00','yyyy-mm-dd hh34:mi:ss');

flashback table t1 to timestamp to_timestamp('2015-09-20 14:54:00','yyyy-mm-dd hh34:mi:ss')                *

ERROR at line 1:

ORA-08189: cannot flashback the table because row movement is not enabled

SCOTT@ORA12C> alter table t1 enable row movement;

Table altered.

SCOTT@ORA12C> flashback table t1 to timestamp to_timestamp('2015-09-20 14:54:00','yyyy-mm-dd hh34:mi:ss');

Flashback complete.

SCOTT@ORA12C> select count(*) from t1;

COUNT(*)

-----------------

   91692


1 row selected.

注意system表空間下面的表不能閃回,不能跨越DDL語句,


SYS@ORA12C> flashback table t2 to timestamp to_timestamp('2015-09-20 15:07:25','yyyy-mm-dd hh34:mi:ss');

flashback table t2 to timestamp to_timestamp('2015-09-20 15:07:25','yyyy-mm-dd hh34:mi:ss')                *

ERROR at line 1:

ORA-08185: Flashback not supported for user SYS

但是可以查詢:

SYS@ORA12C>  select count(*) from t2 as of timestamp to_timestamp('2015-09-20 15:07:25','yyyy-mm-dd hh34:mi:ss');


COUNT(*)

-----------------

   91694

1 row selected.

可以重新建一張表或者直接insert:

SYS@ORA12C> create table t3 as select * from t2 as of timestamp to_timestamp('2015-09-20 15:07:25','yyyy-mm-dd hh34:mi:ss');

Table created.

SYS@ORA12C> insert into t2 select * from t2 as of timestamp to_timestamp('2015-09-20 15:07:25','yyyy-mm-dd hh34:mi:ss');

91694 rows created.

@ORA12C> commit;

Commit complete.

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

苍山县| 新余市| 镇坪县| 阳山县| 门源| 烟台市| 汉寿县| 治县。| 五河县| 卓资县| 淳化县| 贡嘎县| 贵溪市| 科技| 常宁市| 英超| 马鞍山市| 客服| 浮梁县| 当雄县| 缙云县| 南雄市| 墨脱县| 定边县| 永宁县| 萍乡市| 铜陵市| 齐齐哈尔市| 大石桥市| 云霄县| 禹州市| 瑞金市| 泰来县| 崇阳县| 淮南市| 扎兰屯市| 泽州县| 白玉县| 莱阳市| 同德县| 石首市|