中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

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

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

Oracle手工熱備

發布時間:2020-04-09 07:50:34 來源:網絡 閱讀:986 作者:whshurk 欄目:關系型數據庫

sys@newtestCDB> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination c:\app\Administrator\virtual\archivelog
Oldest online log sequence 16
Next log sequence to archive 18
Current log sequence 18
sys@newtestCDB> alter pluggable database all open;

Pluggable database altered.

Elapsed: 00:00:13.20
備份表空間
sys@newtestCDB> alter pluggable database all open;

Pluggable database altered.

Elapsed: 00:00:13.20
sys@newtestCDB> alter session set container=clonepdb_plug;

Session altered.

Elapsed: 00:00:00.16
sys@newtestCDB> alter tablespace users begin backup;

Tablespace altered.

Elapsed: 00:00:00.23
拷貝表空間文件到安全區域
sys@newtestCDB> alter tablespace users end backup;

Tablespace altered.

Elapsed: 00:00:00.01
sys@newtestCDB> select * from scott.test;

 EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO

  7399 ALLEN      SALESMAN        7698 1981-02-20 00:00:00       1600        300         30
  7521 WARD       SALESMAN        7698 1981-02-22 00:00:00       1250        500         30
  7566 JONES      MANAGER         7839 1981-04-02 00:00:00       2975                    20
  7654 MARTIN     SALESMAN        7698 1981-09-28 00:00:00       1250       1400         30
  7698 BLAKE      MANAGER         7839 1981-05-01 00:00:00       2850                    30
  7782 CLARK      MANAGER         7839 1981-06-09 00:00:00       2450                    10
  7839 KING       PRESIDENT            1981-11-17 00:00:00       5000                    10
  7844 TURNER     SALESMAN        7698 1981-09-08 00:00:00       1500          0         30
  7900 JAMES      CLERK           7698 1981-12-03 00:00:00        950                    30
  7902 FORD       ANALYST         7566 1981-12-03 00:00:00       3000                    20
  7934 MILLER     CLERK           7782 1982-01-23 00:00:00       1300                    10

 EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO

  7369 SMITH      CLERK           7902 1980-12-17 00:00:00        800                    20
  7499 ALLEN      SALESMAN        7698 1981-02-20 00:00:00       1600        300         30

13 rows selected.

Elapsed: 00:00:00.12
sys@newtestCDB> truncate table scott.test;

Table truncated.

Elapsed: 00:00:00.36
sys@newtestCDB> select * from scott.test;

no rows selected

Elapsed: 00:00:00.02

sys@newtestCDB> shutdown immediate
Pluggable Database closed.
//刪除users01.dbf或移動到其他目錄造成數據庫崩潰。
sys@newtestCDB> startup
ORA-01157: cannot identify/lock data file 43 - see DBWR trace file
ORA-01110: data file 43: 'C:\APP\ADMINISTRATOR\VIRTUAL\ORADATA\NEWTEST\CLONEPDB_PLUG\USERS01.DBF'
//將備份的數據文件復制回目錄
sys@newtestCDB> recover datafile 43
Media recovery complete.
sys@newtestCDB> alter database open;

Database altered.

Elapsed: 00:00:04.93
sys@newtestCDB> select * from scott.test;

no rows selected

Elapsed: 00:00:00.11

向AI問一下細節

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

AI

容城县| 五莲县| 四会市| 拜城县| 双鸭山市| 石城县| 罗山县| 厦门市| 富裕县| 石河子市| 若羌县| 栖霞市| 渭源县| 象州县| 科技| 柘城县| 防城港市| 高雄县| 娄烦县| 沙坪坝区| 东乡| 乐东| 桃园县| 正定县| 达尔| 易门县| 登封市| 淮滨县| 昌乐县| 米易县| 邵武市| 宜春市| 司法| 延长县| 德庆县| 灯塔市| 酒泉市| 汝城县| 台中市| 峡江县| 博爱县|