RMAN深入解析之--Incarnation应用(不完全恢复)

本文涉及的产品
公共DNS(含HTTPDNS解析),每月1000万次HTTP解析
云解析 DNS,旗舰版 1个月
全局流量管理 GTM,标准版 1个月
简介:

案例环境:

操作系统:RedHat EL5

Oracle:  Oracle 11gR2

   当在做Media Recover的不完全恢复时,通过resetlogs打开库,则Incarnation(数据库对应物)表示这个数据库的特定的逻辑生存期。当作为DBA可能面临这样的还原:需要使用上次执行resetlogs命令打开数据库前生成的一个备份来进行还原数据库,或者可能需要还原到执行上一个resetlogs命令之前的时间点。

    wKiom1PGLXbijWcpAADgAKetXGE422.jpg                               如图所示: 数据库的还原线路图



案例1:(不完全恢复1)

1、table被误删除,进行不完全恢复

17:12:11 SYS@ prod>select current_scn from v$database;


CURRENT_SCN

-----------

    2123790

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
17 : 12 : 24  SYS@ prod>conn scott/tiger
Connected.
17 : 12 : 43  SCOTT@ prod>select count(*)  from  emp1;
   COUNT(*)
----------
         28
Elapsed:  00 : 00 : 00.05
17 : 12 : 53  SCOTT@ prod> delete  from  emp1;
28  rows deleted.
Elapsed:  00 : 00 : 00.08
17 : 13 : 12  SCOTT@ prod>commit;
Commit complete.
Elapsed:  00 : 00 : 00.04
17 : 13 : 17  SCOTT@ prod> insert  into  emp1 select *  from  emp  where  empno= 7788 ;
1  row created.
Elapsed:  00 : 00 : 00.04
17 : 13 : 28  SCOTT@ prod>update emp set empno= 9999  where  empno= 7788 ;
1  row updated.
Elapsed:  00 : 00 : 00.03
17 : 13 : 43  SCOTT@ prod>commit;
Commit complete.
Elapsed:  00 : 00 : 00.04
17 : 13 : 45  SCOTT@ prod>select *  from  emp1;
      EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
---------- ---------- --------- ---------- --------- ---------- ---------- ----------
       7788  SCOTT      ANALYST          7566  19 -APR -87        3000                     20
Elapsed:  00 : 00 : 00.02

2、执行不完全恢复

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
RMAN>  run {
2 >  set until scn  2123790 ;
3 >  shutdown immediate;
4 >  startup mount;
5 >  restore database;
6 >  recover database;
7 >  alter database open resetlogs;
8 >  sql 'alter system switch logfile' ;
9 >  }
executing command: SET until clause
using target database control file instead of recovery catalog
database closed
database dismounted
Oracle instance shut down
connected to target database ( not  started)
Oracle instance started
database mounted
Total System Global Area      835104768  bytes
Fixed Size                      2217952  bytes
Variable Size                 775948320  bytes
Database Buffers               54525952  bytes
Redo Buffers                    2412544  bytes
Starting restore  at  15 -JUL -14
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID= 18  device type=DISK
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore  from  backup set
channel ORA_DISK_1: restoring datafile  00001  to /u01/app/oracle/oradata/prod/system01.dbf
channel ORA_DISK_1: restoring datafile  00002  to /u01/app/oracle/oradata/prod/sysaux01.dbf
channel ORA_DISK_1: restoring datafile  00003  to /u01/app/oracle/oradata/prod/undotbs1.dbf
channel ORA_DISK_1: restoring datafile  00004  to /u01/app/oracle/oradata/prod/users01.dbf
channel ORA_DISK_1: restoring datafile  00005  to /u01/app/oracle/oradata/prod/example01.dbf
channel ORA_DISK_1: restoring datafile  00006  to /u01/app/oracle/oradata/prod/tbs1.dbf
channel ORA_DISK_1: restoring datafile  00007  to /u01/app/oracle/oradata/prod/undotbs2.dbf
channel ORA_DISK_1: restoring datafile  00008  to /u01/app/oracle/oradata/prod/perftbs01.dbf
channel ORA_DISK_1: reading  from  backup piece /u01/app/oracle/product/ 11.2. 0 /db_1/dbs/0lpcfu61_1_1
channel ORA_DISK_1: piece handle=/u01/app/oracle/product/ 11.2. 0 /db_1/dbs/0lpcfu61_1_1 tag=TAG20140703T171545
channel ORA_DISK_1: restored backup piece  1
channel ORA_DISK_1: restore complete, elapsed time:  00 : 01 : 16
Finished restore  at  15 -JUL -14
Starting recover  at  15 -JUL -14
using channel ORA_DISK_1
starting media recovery
archived log  for  thread  1  with  sequence  17  is already  on  disk  as  file /dsk4/arch1/arch_1_17_851265252.log
archived log  for  thread  1  with  sequence  18  is already  on  disk  as  file /dsk4/arch1/arch_1_18_851265252.log
archived log  for  thread  1  with  sequence  19  is already  on  disk  as  file /dsk4/arch1/arch_1_19_851265252.log
archived log file name=/dsk4/arch1/arch_1_17_851265252.log thread= 1  sequence= 17
media recovery complete, elapsed time:  00 : 00 : 09
Finished recover  at  15 -JUL -14
database opened

3、验证

1
2
3
4
5
6
7
8
9
10
11
12
[oracle@rh6 ~]$ sqlplus  '/as sysdba'
SQL*Plus: Release  11.2. 0.1. 0  Production  on  Tue Jul  15  17 : 26 : 10  2014
Copyright (c)  1982 2009 , Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release  11.2. 0.1. 0  - 64bit Production
With the Partitioning, OLAP, Data Mining  and  Real Application Testing options
17 : 26 : 10  SYS@ prod>select count(*)  from  scott.emp1;
   COUNT(*)
----------
         28
Elapsed:  00 : 00 : 00.03
17 : 27 : 09  SYS@ prod>

数据被恢复!

5、查看Incarnation

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
RMAN> list incarnation;
using target database control file instead of recovery catalog
List of Database Incarnations
DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
------- ------- -------- ---------------- --- ---------- ----------
1        1        PROD      239333010         PARENT   1           15 -AUG -09
2        2        PROD      239333010         PARENT   945184      30 -SEP -13
3        3        PROD      239333010         PARENT   1087512     18 -MAY -14
4        4        PROD      239333010         PARENT   1857377     26 -JUN -14
5        5        PROD      239333010         CURRENT  2123791     15 -JUL -14
RMAN> 
RMAN> list backup of database;
List of Backup Sets
===================
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
17       Full     1. 13G      DISK         00 : 01 : 21      03 -JUL -14      
         BP Key:  17    Status: AVAILABLE  Compressed: NO  Tag: TAG20140703T171545
         Piece Name: /u01/app/oracle/product/ 11.2. 0 /db_1/dbs/0lpcfu61_1_1
   List of Datafiles  in  backup set  17
   File LV Type Ckp SCN    Ckp Time  Name
   ---- -- ---- ---------- --------- ----
   1        Full  2066885     03 -JUL -14  /u01/app/oracle/oradata/prod/system01.dbf
   2        Full  2066885     03 -JUL -14  /u01/app/oracle/oradata/prod/sysaux01.dbf
   3        Full  2066885     03 -JUL -14  /u01/app/oracle/oradata/prod/undotbs1.dbf
   4        Full  2066885     03 -JUL -14  /u01/app/oracle/oradata/prod/users01.dbf
   5        Full  2066885     03 -JUL -14  /u01/app/oracle/oradata/prod/example01.dbf
   6        Full  2066885     03 -JUL -14  /u01/app/oracle/oradata/prod/tbs1.dbf
   7        Full  2066885     03 -JUL -14  /u01/app/oracle/oradata/prod/undotbs2.dbf
   8        Full  2066885     03 -JUL -14  /u01/app/oracle/oradata/prod/perftbs01.dbf

案例2:(不完全恢复2) 

 1、table被误删除,通过不完全恢复进行恢复

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 : 42 : 24  SYS@ prod>conn scott/tiger
Connected.
17 : 42 : 28  SCOTT@ prod> insert  into  emp1 select *  from  emp  where  rownum < 4 ;
3  rows created.
Elapsed:  00 : 00 : 00.05
17 : 42 : 42  SCOTT@ prod>commit;
Commit complete.
Elapsed:  00 : 00 : 00.01
17 : 42 : 44  SCOTT@ prod> insert  into  emp1 select *  from  emp  where  rownum < 5 ;
4  rows created.
Elapsed:  00 : 00 : 00.02
17 : 42 : 52  SCOTT@ prod>commit;
Commit complete.
Elapsed:  00 : 00 : 00.05
17 : 42 : 55  SCOTT@ prod>conn / as  sysdba
Connected.

17:43:01 SYS@ prod>select current_scn from v$database;


CURRENT_SCN

-----------

    2124840

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
17 : 43 : 13  SYS@ prod>alter system switch logfile;
System altered.
Elapsed:  00 : 00 : 00.10
17 : 43 : 38  SYS@ prod>conn scott/tiger
Connected.
17 : 43 : 42  SCOTT@ prod>select count(*)  from  scott.emp1;
   COUNT(*)
----------
         35
Elapsed:  00 : 00 : 00.02
17 : 43 : 48  SCOTT@ prod> delete  from  emp1;
35  rows deleted.
Elapsed:  00 : 00 : 00.04
17 : 43 : 56  SCOTT@ prod>commit;
Commit complete.
Elapsed:  00 : 00 : 00.01
17 : 43 : 58  SCOTT@ prod> insert  into  emp1 select *  from  emp  where  empno= 7788 ;
1  row created.
Elapsed:  00 : 00 : 00.01
17 : 44 : 09  SCOTT@ prod>update emp1 set empno= 8888 ;
1  row updated.
Elapsed:  00 : 00 : 00.01
17 : 44 : 16  SCOTT@ prod>commit;
Commit complete.
Elapsed:  00 : 00 : 00.02
17 : 44 : 17  SCOTT@ prod>select *  from  emp1;
      EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
---------- ---------- --------- ---------- --------- ---------- ---------- ----------
       8888  SCOTT      ANALYST          7566  19 -APR -87        3000                     20
Elapsed:  00 : 00 : 00.03

2、通过rman做不完全恢复

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
RMAN> run {
  set until scn  2124840 ;
2 >  shutdown immediate;
3 4 >  startup mount;
5 >  restore database;
6 >  recover database;
7 >  alter database open resetlogs;
8 >  sql 'alter system switch logfile' ;
9 >  }
executing command: SET until clause
database closed
database dismounted
Oracle instance shut down
connected to target database ( not  started)
Oracle instance started
database mounted
Total System Global Area      835104768  bytes
Fixed Size                      2217952  bytes
Variable Size                 775948320  bytes
Database Buffers               54525952  bytes
Redo Buffers                    2412544  bytes
Starting restore  at  15 -JUL -14
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID= 18  device type=DISK
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore  from  backup set
channel ORA_DISK_1: restoring datafile  00001  to /u01/app/oracle/oradata/prod/system01.dbf
channel ORA_DISK_1: restoring datafile  00002  to /u01/app/oracle/oradata/prod/sysaux01.dbf
channel ORA_DISK_1: restoring datafile  00003  to /u01/app/oracle/oradata/prod/undotbs1.dbf
channel ORA_DISK_1: restoring datafile  00004  to /u01/app/oracle/oradata/prod/users01.dbf
channel ORA_DISK_1: restoring datafile  00005  to /u01/app/oracle/oradata/prod/example01.dbf
channel ORA_DISK_1: restoring datafile  00006  to /u01/app/oracle/oradata/prod/tbs1.dbf
channel ORA_DISK_1: restoring datafile  00007  to /u01/app/oracle/oradata/prod/undotbs2.dbf
channel ORA_DISK_1: restoring datafile  00008  to /u01/app/oracle/oradata/prod/perftbs01.dbf
channel ORA_DISK_1: reading  from  backup piece /u01/app/oracle/product/ 11.2. 0 /db_1/dbs/0lpcfu61_1_1
channel ORA_DISK_1: piece handle=/u01/app/oracle/product/ 11.2. 0 /db_1/dbs/0lpcfu61_1_1 tag=TAG20140703T171545
channel ORA_DISK_1: restored backup piece  1
channel ORA_DISK_1: restore complete, elapsed time:  00 : 01 : 25
Finished restore  at  15 -JUL -14
Starting recover  at  15 -JUL -14
using channel ORA_DISK_1
starting media recovery
archived log  for  thread  1  with  sequence  17  is already  on  disk  as  file /dsk4/arch1/arch_1_17_851265252.log
archived log  for  thread  1  with  sequence  18  is already  on  disk  as  file /dsk4/arch1/arch_1_18_851265252.log
archived log  for  thread  1  with  sequence  19  is already  on  disk  as  file /dsk4/arch1/arch_1_19_851265252.log
archived log  for  thread  1  with  sequence  20  is already  on  disk  as  file /dsk4/arch1/arch_1_20_851265252.log
archived log  for  thread  1  with  sequence  1  is already  on  disk  as  file /dsk4/arch1/arch_1_1_853003284.log
archived log file name=/dsk4/arch1/arch_1_17_851265252.log thread= 1  sequence= 17
archived log file name=/dsk4/arch1/arch_1_18_851265252.log thread= 1  sequence= 18
archived log file name=/dsk4/arch1/arch_1_19_851265252.log thread= 1  sequence= 19
archived log file name=/dsk4/arch1/arch_1_20_851265252.log thread= 1  sequence= 20
media recovery complete, elapsed time:  00 : 00 : 10
Finished recover  at  15 -JUL -14
database opened

3、验证

1
2
3
4
5
6
7
8
9
10
11
[oracle@rh6 ~]$ sqlplus  '/as sysdba'
SQL*Plus: Release  11.2. 0.1. 0  Production  on  Tue Jul  15  17 : 48 : 52  2014
Copyright (c)  1982 2009 , Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release  11.2. 0.1. 0  - 64bit Production
With the Partitioning, OLAP, Data Mining  and  Real Application Testing options
17 : 48 : 52  SYS@ prod>select count(*)  from  scott.emp1;
   COUNT(*)
----------
         35
Elapsed:  00 : 00 : 00.03

数据恢复成功

4、查看Incarnation:

1
2
3
4
5
6
7
8
9
10
11
RMAN> list incarnation;
using target database control file instead of recovery catalog
List of Database Incarnations
DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
------- ------- -------- ---------------- --- ---------- ----------
1        1        PROD      239333010         PARENT   1           15 -AUG -09
2        2        PROD      239333010         PARENT   945184      30 -SEP -13
3        3        PROD      239333010         PARENT   1087512     18 -MAY -14
4        4        PROD      239333010         PARENT   1857377     26 -JUN -14
5        5        PROD      239333010         PARENT   2123791     15 -JUL -14
6        6        PROD      239333010         CURRENT  2124841     15 -JUL -14

注意:2124841 为当前Incarnation !


案例3:(不完全恢复3)

1、将数据库再次恢复到当前Incarnation前

RMAN> run {

 set until scn 2122840;

3>  shutdown immediate;

4>  startup mount;

5>  restore database;

6>  recover database;

7>  alter database open resetlogs;

8>  }

executing command: SET until clause

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: failure of shutdown command at 07/15/2014 17:51:17

RMAN-20208: UNTIL CHANGE is before RESETLOGS change

---恢复出错,不能再恢复到当前Incarnation前 !

2、查看Incarnation

1
2
3
4
5
6
7
8
9
10
RMAN> list incarnation;
List of Database Incarnations
DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
------- ------- -------- ---------------- --- ---------- ----------
1        1        PROD      239333010         PARENT   1           15 -AUG -09
2        2        PROD      239333010         PARENT   945184      30 -SEP -13
3        3        PROD      239333010         PARENT   1087512     18 -MAY -14
4        4        PROD      239333010         PARENT   1857377     26 -JUN -14
5        5        PROD      239333010         PARENT   2123791     15 -JUL -14
6        6        PROD      239333010         CURRENT  2124841     15 -JUL -14

3、重新执行恢复

1、关闭数据库

1
2
3
4
RMAN> shutdown immediate;
database closed
database dismounted
Oracle instance shut down

2、启动数据库到nomount

1
2
3
4
5
6
7
8
9
RMAN> startup mount;
connected to target database ( not  started)
Oracle instance started
database mounted
Total System Global Area      835104768  bytes
Fixed Size                      2217952  bytes
Variable Size                 775948320  bytes
Database Buffers               54525952  bytes
Redo Buffers                    2412544  bytes

3、恢复Incarnation到前一个

RMAN> reset database to incarnation 5;

database reset to incarnation 5

1
2
3
4
5
6
7
8
9
10
RMAN> list incarnation;
List of Database Incarnations
DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
------- ------- -------- ---------------- --- ---------- ----------
1        1        PROD      239333010         PARENT   1           15 -AUG -09
2        2        PROD      239333010         PARENT   945184      30 -SEP -13
3        3        PROD      239333010         PARENT   1087512     18 -MAY -14
4        4        PROD      239333010         PARENT   1857377     26 -JUN -14
5        5        PROD      239333010         CURRENT  2123791     15 -JUL -14
6        6        PROD      239333010         ORPHAN   2124841     15 -JUL -14

4、restore数据库

RMAN> restore database until scn 2124835;

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Starting restore  at  15 -JUL -14
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID= 21  device type=DISK
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore  from  backup set
channel ORA_DISK_1: restoring datafile  00001  to /u01/app/oracle/oradata/prod/system01.dbf
channel ORA_DISK_1: restoring datafile  00002  to /u01/app/oracle/oradata/prod/sysaux01.dbf
channel ORA_DISK_1: restoring datafile  00003  to /u01/app/oracle/oradata/prod/undotbs1.dbf
channel ORA_DISK_1: restoring datafile  00004  to /u01/app/oracle/oradata/prod/users01.dbf
channel ORA_DISK_1: restoring datafile  00005  to /u01/app/oracle/oradata/prod/example01.dbf
channel ORA_DISK_1: restoring datafile  00006  to /u01/app/oracle/oradata/prod/tbs1.dbf
channel ORA_DISK_1: restoring datafile  00007  to /u01/app/oracle/oradata/prod/undotbs2.dbf
channel ORA_DISK_1: restoring datafile  00008  to /u01/app/oracle/oradata/prod/perftbs01.dbf
channel ORA_DISK_1: reading  from  backup piece /u01/app/oracle/product/ 11.2. 0 /db_1/dbs/0lpcfu61_1_1
channel ORA_DISK_1: piece handle=/u01/app/oracle/product/ 11.2. 0 /db_1/dbs/0lpcfu61_1_1 tag=TAG20140703T171545
channel ORA_DISK_1: restored backup piece  1
channel ORA_DISK_1: restore complete, elapsed time:  00 : 01 : 15
Finished restore  at  15 -JUL -14

5、Recover 数据库

RMAN> recover database until scn 2124835;

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Starting recover  at  15 -JUL -14
using channel ORA_DISK_1
starting media recovery
archived log  for  thread  1  with  sequence  17  is already  on  disk  as  file /dsk4/arch1/arch_1_17_851265252.log
archived log  for  thread  1  with  sequence  18  is already  on  disk  as  file /dsk4/arch1/arch_1_18_851265252.log
archived log  for  thread  1  with  sequence  19  is already  on  disk  as  file /dsk4/arch1/arch_1_19_851265252.log
archived log  for  thread  1  with  sequence  20  is already  on  disk  as  file /dsk4/arch1/arch_1_20_851265252.log
archived log  for  thread  1  with  sequence  1  is already  on  disk  as  file /dsk4/arch1/arch_1_1_853003284.log
archived log file name=/dsk4/arch1/arch_1_17_851265252.log thread= 1  sequence= 17
archived log file name=/dsk4/arch1/arch_1_18_851265252.log thread= 1  sequence= 18
archived log file name=/dsk4/arch1/arch_1_19_851265252.log thread= 1  sequence= 19
archived log file name=/dsk4/arch1/arch_1_20_851265252.log thread= 1  sequence= 20
archived log file name=/dsk4/arch1/arch_1_1_853003284.log thread= 1  sequence= 1
media recovery complete, elapsed time:  00 : 00 : 08
Finished recover  at  15 -JUL -14

6、查看Incarnation

1
2
3
4
5
6
7
8
9
10
RMAN> list incarnation;
List of Database Incarnations
DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
------- ------- -------- ---------------- --- ---------- ----------
1        1        PROD      239333010         PARENT   1           15 -AUG -09
2        2        PROD      239333010         PARENT   945184      30 -SEP -13
3        3        PROD      239333010         PARENT   1087512     18 -MAY -14
4        4        PROD      239333010         PARENT   1857377     26 -JUN -14
5        5        PROD      239333010         CURRENT  2123791     15 -JUL -14
6        6        PROD      239333010         ORPHAN   2124841     15 -JUL -14

7、打开数据库(resetlogs)

RMAN> alter database open resetlogs;

database opened

1
2
3
4
5
6
7
8
9
10
11
RMAN> list incarnation;
List of Database Incarnations
DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
------- ------- -------- ---------------- --- ---------- ----------
1        1        PROD      239333010         PARENT   1           15 -AUG -09
2        2        PROD      239333010         PARENT   945184      30 -SEP -13
3        3        PROD      239333010         PARENT   1087512     18 -MAY -14
4        4        PROD      239333010         PARENT   1857377     26 -JUN -14
5        5        PROD      239333010         PARENT   2123791     15 -JUL -14
7        7        PROD      239333010         CURRENT  2124836     15 -JUL -14
6        6        PROD      239333010         ORPHAN   2124841     15 -JUL -14

8、验证

1
2
3
4
5
6
7
8
9
10
11
[oracle@rh6 ~]$ sqlplus  '/as sysdba'
SQL*Plus: Release  11.2. 0.1. 0  Production  on  Tue Jul  15  18 : 01 : 11  2014
Copyright (c)  1982 2009 , Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release  11.2. 0.1. 0  - 64bit Production
With the Partitioning, OLAP, Data Mining  and  Real Application Testing options
18 : 01 : 11  SYS@ prod>select count(*)  from  scott.emp1;
   COUNT(*)
----------
         35
Elapsed:  00 : 00 : 00.05

@至此,数据恢复完成!











本文转自 客居天涯 51CTO博客,原文链接:http://blog.51cto.com/tiany/1439032,如需转载请自行联系原作者
目录
相关文章
|
17天前
|
PHP 开发者
PHP 7新特性深度解析与实践应用
【9月更文挑战第17天】本文将深入探讨PHP 7的新特性及其对开发者的实际影响,同时通过实例演示如何有效利用这些特性优化代码和提高性能。我们将从类型声明的增强开始,逐步深入到其他关键改进点,最后通过一个综合案例展示如何将这些新特性应用于日常开发中。
|
19天前
|
安全 网络协议 应用服务中间件
AJP Connector:深入解析及在Apache HTTP Server中的应用
【9月更文挑战第6天】在Java Web应用开发中,Tomcat作为广泛使用的Servlet容器,经常与Apache HTTP Server结合使用,以提供高效、稳定的Web服务。而AJP Connector(Apache JServ Protocol Connector)作为连接Tomcat和Apache HTTP Server的重要桥梁,扮演着至关重要的角色
42 2
|
14天前
|
传感器 C# Android开发
深度解析Uno Platform中的事件处理机制与交互设计艺术:从理论到实践的全方位指南,助您构建响应迅速、交互流畅的跨平台应用
Uno Platform 是一款开源框架,支持使用 C# 和 XAML 开发跨平台原生 UI 应用,兼容 Windows、iOS、Android 及 WebAssembly。本文将介绍 Uno Platform 中高效的事件处理方法,并通过示例代码展示交互设计的核心原则与实践技巧,帮助提升应用的用户体验。事件处理让应用能响应用户输入,如点击、触摸及传感器数据变化。通过 XAML 或 C# 添加事件处理器,可确保及时反馈用户操作。示例代码展示了一个按钮点击事件处理过程。此外,还可运用动画和过渡效果进一步增强应用交互性。
127 57
|
5天前
|
移动开发 Android开发 数据安全/隐私保护
移动应用与系统的技术演进:从开发到操作系统的全景解析随着智能手机和平板电脑的普及,移动应用(App)已成为人们日常生活中不可或缺的一部分。无论是社交、娱乐、购物还是办公,移动应用都扮演着重要的角色。而支撑这些应用运行的,正是功能强大且复杂的移动操作系统。本文将深入探讨移动应用的开发过程及其背后的操作系统机制,揭示这一领域的技术演进。
本文旨在提供关于移动应用与系统技术的全面概述,涵盖移动应用的开发生命周期、主要移动操作系统的特点以及它们之间的竞争关系。我们将探讨如何高效地开发移动应用,并分析iOS和Android两大主流操作系统的技术优势与局限。同时,本文还将讨论跨平台解决方案的兴起及其对移动开发领域的影响。通过这篇技术性文章,读者将获得对移动应用开发及操作系统深层理解的钥匙。
|
2天前
|
JSON JavaScript 前端开发
Javaweb中Vue指令的详细解析与应用
Vue指令提供了一种高效、声明式的编码方式,使得开发者可以更专注于数据和业务逻辑,而不是DOM操作的细节。通过熟练使用Vue指令,可以极大地提高开发效率和项目的可维护性。
10 3
|
8天前
|
数据可视化 Python
Python绘制基频曲线——实例解析与应用探讨
Python绘制基频曲线——实例解析与应用探讨
31 9
|
12天前
|
缓存 负载均衡 Dubbo
Dubbo技术深度解析及其在Java中的实战应用
Dubbo是一款由阿里巴巴开源的高性能、轻量级的Java分布式服务框架,它致力于提供高性能和透明化的RPC远程服务调用方案,以及SOA服务治理方案。
39 6
|
9天前
|
JavaScript 前端开发 UED
Javaweb中Vue指令的详细解析与应用
Vue指令是Vue框架中非常强大的特性之一,它提供了一种简洁、高效的方式来增强HTML元素和组件的功能。通过合理使用这些指令,可以使你的JavaWeb应用更加响应用户的操作,提高交互性和用户体验。而且,通过创建自定义指令,你可以进一步扩展Vue的功能,使其更贴合你的应用需求。
11 1
|
22天前
|
存储 负载均衡 Java
Jetty技术深度解析及其在Java中的实战应用
【9月更文挑战第3天】Jetty,作为一款开源的、轻量级、高性能的Java Web服务器和Servlet容器,自1995年问世以来,凭借其卓越的性能、灵活的配置和丰富的扩展功能,在Java Web应用开发中占据了举足轻重的地位。本文将详细介绍Jetty的背景、核心功能点以及在Java中的实战应用,帮助开发者更好地理解和利用Jetty构建高效、可靠的Web服务。
32 2
|
26天前
|
编译器 PHP 开发者
PHP 8新特性解析与应用实践
PHP 8作为PHP语言的最新版本,带来了许多令人兴奋的新特性和性能改进。本文将深入探讨PHP 8中的JIT编译器、联合类型、匹配表达式等关键更新,并通过实例演示如何在项目中有效利用这些新工具,帮助开发者提升代码质量和执行效率。

热门文章

最新文章

推荐镜像

更多
下一篇
无影云桌面