|
2019-05-15 2019-05-20
- select d.RESETLOGS_CHANGE#,
- d.CHECKPOINT_CHANGE#,
- d.CURRENT_SCN
- from v_$database d;
-
-
- select d.CHECKPOINT_CHANGE#, d.NAME
- from v_$datafile d;
-
-
- select * from v$log;
复制代码 完全检查点:- Thread 1 cannot allocate new log, sequence 18
- Private strand flush not complete
- Current log# 2 seq# 17 mem# 0: +DATA/orcl/onlinelog/group_2.262.1008007573
- Current log# 2 seq# 17 mem# 1: +FRA/orcl/onlinelog/group_2.258.1008007573
- Beginning log switch checkpoint up to RBA [0x12.2.10], SCN: 1068598
- Thread 1 advanced to log sequence 18 (LGWR switch)
- Current log# 3 seq# 18 mem# 0: +DATA/orcl/onlinelog/group_3.263.1008007575
- Current log# 3 seq# 18 mem# 1: +FRA/orcl/onlinelog/group_3.259.1008007577
- Thu May 16 04:54:40 2019
- Completed checkpoint up to RBA [0x12.2.10], SCN: 1068598
- Thu May 16 05:00:33 2019
- Thread 1 cannot allocate new log, sequence 19
- Private strand flush not complete
- Current log# 3 seq# 18 mem# 0: +DATA/orcl/onlinelog/group_3.263.1008007575
- Current log# 3 seq# 18 mem# 1: +FRA/orcl/onlinelog/group_3.259.1008007577
- Beginning log switch checkpoint up to RBA [0x13.2.10], SCN: 1069527
- Thread 1 advanced to log sequence 19 (LGWR switch)
- Current log# 1 seq# 19 mem# 0: +DATA/orcl/onlinelog/group_1.261.1008007569
- Current log# 1 seq# 19 mem# 1: +FRA/orcl/onlinelog/group_1.257.1008007571
- Thu May 16 05:05:45 2019
- Completed checkpoint up to RBA [0x13.2.10], SCN: 1069527
- Thu May 16 05:09:27 2019
- Incremental checkpoint up to RBA [0x13.c86.0], current log tail at RBA [0x13.1141.0]
- Thu May 16 05:39:32 2019
- Incremental checkpoint up to RBA [0x13.1e9b.0], current log tail at RBA [0x13.2416.0]
- Thu May 16 06:09:37 2019
- Incremental checkpoint up to RBA [0x13.3aa5.0], current log tail at RBA [0x13.401b.0]
- Thu May 16 06:26:10 2019
- Beginning global checkpoint up to RBA [0x13.48a7.10], SCN: 1075074
- Completed checkpoint up to RBA [0x13.48a7.10], SCN: 1075074
复制代码 部分检查点,又称表空间级检查点:
- alter tablespace users offline;
复制代码-
- select d.CHECKPOINT_CHANGE#, d.NAME
- from v_$datafile d;
复制代码
| CHECKPOINT_CHANGE# | NAME | 1 | 1075074 | +DATA/orcl/datafile/system.256.1008007421 | 2 | 1075074 | +DATA/orcl/datafile/sysaux.257.1008007423 | 3 | 1075074 | +DATA/orcl/datafile/undotbs1.258.1008007423 | 4 | 1075281 | +DATA/orcl/datafile/users.259.1008007423 | 5 | 1075074 | +DATA/orcl/datafile/example.265.1008007585 |
-
- select d.CHECKPOINT_CHANGE#, d.NAME
- from v_$datafile d;
-
复制代码
| CHECKPOINT_CHANGE# | NAME | 1 | 1075492 | +DATA/orcl/datafile/system.256.1008007421 | 2 | 1075492 | +DATA/orcl/datafile/sysaux.257.1008007423 | 3 | 1075492 | +DATA/orcl/datafile/undotbs1.258.1008007423 | 4 | 1075281 | +DATA/orcl/datafile/users.259.1008007423 | 5 | 1075492 | +DATA/orcl/datafile/example.265.1008007585 |
- alter tablespace users online;
复制代码
| CHECKPOINT_CHANGE# | NAME | 1 | 1075492 | +DATA/orcl/datafile/system.256.1008007421 | 2 | 1075492 | +DATA/orcl/datafile/sysaux.257.1008007423 | 3 | 1075492 | +DATA/orcl/datafile/undotbs1.258.1008007423 | 4 | 1075684 | +DATA/orcl/datafile/users.259.1008007423 | 5 | 1075492 | +DATA/orcl/datafile/example.265.1008007585 |
热备份的查询:
- select * from v$log;
- alter system switch logfile;
- alter system checkpoint;
- select * from v$datafile;
- select open_mode from v$database;
- select * from v$backup;
复制代码- select * from v$backup;
- select log_mode from v$database;
- select * from v$datafile;
- alter tablespace users read only;
- alter system checkpoint;
- alter tablespace users read write;
复制代码
|
|