oracle checkpoint
22874 단어 Oaclecheckpoint
- oracle alter :/u01/app/oracle/admin/orcl/bdump
- @@@
- ALTER SYSTEM SET LOG_checkpointS_TO_ALERT=TRUE;
- checkpoint alert_$SID.log 。
- @@@@
- checkpoint( )
- , IO ,
- , , ,
- (commit) ,
- (buffer cache) 。
- , 。 ,
- ,
- , , 。
- , ,
- 。
- checkpoint (event),checkpoint checkpoint
- (LGWR/CKPT ) , checkpoint DBWn ,
- checkpoint 。
-
- @@@@
- ( scn checkpointscn)oracle dbwn , , checkpoint
- scn buffer cache , ,ckpt , , 。
- ( )
- v$datafile checkpoint scn , 。
- SQL> select checkpoint_change# from v$datafile;
-
- CHECKPOINT_CHANGE#
- ------------------
- 679453
- 679453
- 679453
- 679453
- 679453
-
- @@@
-
- checkpoint , SCN 。
- control file , datafile header。
- Control file
- 1.System checkpoint SCN ===========> (SYSTEM CHECKPOINT SCN in control file)
- SQL> select checkpoint_change# from v$database;
- CHECKPOINT_CHANGE#
- --------------------
- 292767
- 2.Datafile checkpoint SCN ===============> (DATAFILE CHECKPOINT SCN in control file)
- SQL> select name,checkpoint_change#
- from v$datafile where name like '%users01%';
- NAME CHECKPOINT_CHANGE#
- ----------------------------------- --------------------
- /u02/oradata/OMFD1/users01.dbf 292767
- 3.Stop SCN ======================> (STOP SCN in control file)
- SQL> select name,last_change#
- from v$datafile where name like '%users01%';
- NAME LAST_CHANGE#
- ----------------------------------- ------------
- /u02/oradata/OMFD1/users01.dbf
-
- datafile read-write mode last_change# NULL
- datafile header
-
- @@@
-
-
- 4.Start SCN ================================> (DATAFILE HEADER)
- SQL> select name,checkpoint_change#
- from v$datafile_header where name like '%users01%';
- NAME CHECKPOINT_CHANGE#
- ----------------------------------- --------------------
- /u02/oradata/OMFD1/users01.dbf 292767
-
- SQL> show parameter checkpoint
-
- NAME TYPE VALUE
- ------------------------------------ ----------- ------------------------------
- log_checkpoint_interval integer 0
- log_checkpoint_timeout integer 1800
- log_checkpoints_to_alert boolean FALSE( true)
- SQL> alter system set log_checkpoints_to_alert=true;
-
- System altered.
-
- :alter system alter database/tablespaces
-
-
- @@@@
- checkpoint SCN ?
- Oracle SCN , ,
- Oracle SCN Oracle 。
- Oracle checkpoint “ ” , “ ” SCN,
- checkpoint SCN checkpoint。
-
- SQL> select resetlogs_change#,checkpoint_change#,current_scn from v$database;
-
- RESETLOGS_CHANGE# CHECKPOINT_CHANGE# CURRENT_SCN
- ----------------- ------------------ -----------
- 525876 669103 670673
-
-
- sys> select resetlogs_change#,checkpoint_change#,current_scn from v$database;
-
- RESETLOGS_CHANGE# CHECKPOINT_CHANGE# CURRENT_SCN
- ----------------- ------------------ -----------
- 525876 669103 670673
- ( ) ( )
- sys> select checkpoint_change# from v$datafile;( scn)
-
- CHECKPOINT_CHANGE#
- ------------------
- 669103
- 669103
- 669103
- 669103
- 669103
-
-
-
- :system( ,) ,undotbs( ,)
- (sysaux,emample( ),users)
- system,undotbs
- SQL> alter tablespace system offline;
- alter tablespace system offline
- *
- ERROR at line 1:
- ORA-01541: system tablespace cannot be brought offline; shut down if necessary
-
-
- SQL> alter tablespace undotbs1 offline;
- alter tablespace undotbs1 offline
- *
- ERROR at line 1:
- ORA-30042: Cannot offline the undo tablespace
-
- A、
- SQL> update employees set salary=24001 where employee_id=100;
-
- 1 row updated.
-
- B、
- SQL> select checkpoint_change#,name from v$datafile;
-
- CHECKPOINT_CHANGE#
- ------------------
- NAME
- --------------------------------------------------------------------------------
- 669442
- /u01/app/oracle/oradata/orcl/system01.dbf
-
- 669442
- /u01/app/oracle/oradata/orcl/undotbs01.dbf
-
- 669442
- /u01/app/oracle/oradata/orcl/sysaux01.dbf
-
-
- CHECKPOINT_CHANGE#
- ------------------
- NAME
- --------------------------------------------------------------------------------
- 669442
- /u01/app/oracle/oradata/orcl/users01.dbf
-
- 676942
- /u01/app/oracle/oradata/orcl/example01.dbf
-
-
-
-
- SQL> alter tablespace example offline;
-
- Tablespace altered.
-
-
-
- B、
- SQL> select checkpoint_change#,name from v$datafile;
-
- CHECKPOINT_CHANGE#
- ------------------
- NAME
- --------------------------------------------------------------------------------
- 669442
- /u01/app/oracle/oradata/orcl/system01.dbf
-
- 669442
- /u01/app/oracle/oradata/orcl/undotbs01.dbf
-
- 669442
- /u01/app/oracle/oradata/orcl/sysaux01.dbf
-
-
- CHECKPOINT_CHANGE#
- ------------------
- NAME
- --------------------------------------------------------------------------------
- 669442
- /u01/app/oracle/oradata/orcl/users01.dbf
-
- 671527--scn
- /u01/app/oracle/oradata/orcl/example01.dbf
-
-
- @@@
- : ,ckpt LRBA 。
- , scn scn , ckpt
- LRBA , 。
- @@@
- : ,ckpt dbwn
- :
- A、
- SQL> conn hr/hr
- Connected.
- SQL> update employees set salary=24001 where employee_id=100;
-
- B
- SQL> alter system checkpoint;( 。 (shutdown immediate))
-
- System altered. database bffer cache ( , )
-
- @@@
- SQL> show parameter fast_start
-
- NAME TYPE VALUE
- ------------------------------------ ----------- ------------------------------
- fast_start_io_target integer 0
- fast_start_mttr_target integer 0( 0, 3600, 。 , , )
- fast_start_parallel_rollback string LOW
- SQL> alter system set fast_start_mttr_target=300;
-
- System altered.
-
, DBWR 。
, 。
1. (shutdown immediate
Shutdown normal).
2. :
LOG_CHECKPOINT_INTERVAL,
LOG_CHECKPOINT_TIMEOUT ,
FAST_START_IO_TARGET ;
3. :
ALter system checkpoint;
alter tablespace ... offline;
4. ;
alter system switch logfile
:
1. alter system switch logfile 。
2. alter database datafile ... offline
offline datafile, , offline
tablespace , online datafile media
recovery online tablespace 。
1. , DB_Buffer
。 , :
ALTER TABLESPACE tablespace_name BIGEN BACKUP / end backup;
;
2. ,
ALTER TABLESPACE tablespace_name READ ONLY;
ALTER TABLESPACE tablespace_name OFFLINE NORMAL;
。
offline online , checkpoint 。
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
activemq 5.5 의 입문 은 설치, 시작, 데이터베이스 지속 화 를 포함한다Apache ActiveMQ 5.5.0 은 주로 유지보수 버 전 으로 130 개가 넘 는 문 제 를 복 구 했 으 며 대부분 bug 와 개선 이 었 다. Improved performance for offline d...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.