Tibero Backup & Recovery Guide

Size: px
Start display at page:

Download "Tibero Backup & Recovery Guide"

Transcription

1 Tibero Backup & Recovery Guide Copyright 2014 TIBERO Co., Ltd. All Rights Reserved.

2 Copyright Notice Copyright 2014 TIBERO Co., Ltd. All Rights Reserved. 5, Hwangsaeul-ro 329beon-gil, Bundang-gu, Seongnam-si, Gyeonggi-do, Korea Restricted Rights Legend All TIBERO Software (Tibero ) and documents are protected by copyright laws and international convention. TIBERO software and documents are made available under the terms of the TIBERO License Agreement and may only be used or copied in accordance with the terms of this agreement. No part of this document may be transmitted, copied, deployed, or reproduced in any form or by any means, electronic, mechanical, or optical, without the prior written consent of TIBERO Co., Ltd. Trademarks Tibero DB is a registered trademark of TIBERO Co., Ltd. Other products, titles or services may be registered trademarks of their respective companies. Document Information Document Name: Tibero Backup & Recovery Guide Document Created: Software Version: Tibero 5 Document Version: 2.1.1

3 Table of Contents About This Document... vii Chapter 1. Overview Basic Concept Major Terms... 1 Chapter 2. Backup Overview Backup Method Control File Backup Online Backup Offline Backup... 6 Chapter 3. Recovery (Single) Overview Crash Recovery Media Recovery Recovery Environment Configuration Recovery Control File Recovery Online Log File Recovery Temp Tablespace Recovery Data File Error Complete Recovery Data File Error Incomplete Recovery Chapter 4. Recovery (TAC) Overview How to Recover Appendix A. TAC Online Backup Single Configuration A.1. Environment Configuration A.2. How to Configure Tibero iii

4

5 List of Figures [Figure 2.1] Backup Target... 3 [Figure 2.2] Backup Types... 4 [Figure 3.1] Crash Recovery Step... 9 Tibero v

6

7 About This Document Intended Audience This guide describes how to back up and recover Tibero. Required Knowledge This guide describes how to back up and recover Tibero. To fully understand this guide, users must have an understanding of the following: Databases OS and system environments UNIX and Linux Document Scope This guide does not contain all the information needed for the actual application or operation of Tibero RDBMS. Refer to the corresponding guides for more information. About This Document vii

8 Conventions Convention <AaBbCc123> <Ctrl>+C [Button] Boldface " " (double quotes) 'Input Item' Hyperlink > Note Meaning Filename of a program or source code Hold the Control key and press C Button or Menu name Emphasis Reference to chapters or sections in the manual, or to other related documentation Description for an input item on the screen account, website, or a link to other chapters or sections Progress order of menus Files or directories exist below Files or directories do not exist below Reference or note [Figure 1.1] [Table 1.1] AaBbCc123 Figure name Table name Command, execution result, or example code { } [ ] Required argument Optional argument viii Tibero Backup & Recovery Guide

9 Chapter 1. Overview This chapter describes the basic concepts of backup and recovery Basic Concept The following describes the basic concepts of backup and recovery: Backup Backup is a process that protects the database from various errors. It increases MTBF (Mean Time Between Failure) and reduces MTTR (Mean Time To Recover). The administrator must operate the database in a state that minimizes losses and can be recovered when an error occurs to the system. It is recommended to perform a full backup of the database at least once a month or export the backup once a day. The administrator must set the backup policy and back up the minimum required data. It is also recommended to regularly verify the backup was completed successfully. Recovery Recovery is the process or mechanism used to maintain the system operation in the event of an error occurring in the system Major Terms TSN TSN is the database version or commitment version. TSN is generated when a transaction is committed and is used for data concurrency control, redo ordering, and recovery. Checkpoint Checkpoint is the process of recording all dirty (changed) blocks of memory onto a disk on a regular basis or at a user's request. Checkpoint also minimizes the log file volume, which is required for recovery. Chapter 1. Overview 1

10 When all Log Switches occur, if an instance is terminated with the NORMAL, POST_TX, or IMMEDIATE option, a checkpoint is generated (alter system checkpoint) manually at the user's request. The LGWR then writes the contents of the current log buffer to the Online Log file and marks the corresponding dirty buffer. Finally, DBWR receives this information and records all marked dirty buffers to the disk. Checkpoint means all changes in the Online Log file, which occurred before Checkpoint TSN, are recorded to the disk. Log Mode The following describes Log modes. NO ARCHIVE LOG The default log mode. Redo log files are rotated and used. If a log switch occurs, the previous log file is overwritten. Only the recent portions of transaction records can be used because old logs do not exist. If redo logs are overwritten, recovery is only possible through the last full backup (offline backup). Backup must be performed after the database shuts down because services are suspended during backup. ARCHIVE LOG In this log mode, redo log files cannot be used until LOGA (Log Archiver) completes the backup. Additionally, archived log files can be used for media recovery. This backup can be performed while the database is running. 2 Tibero Backup & Recovery Guide

11 Chapter 2. Backup This chapter describes the types of backups and how to perform each type Overview Logical Backup Backs up the logical units of the database, such as table, index, constraint, and sequence, using an export tool. Physical Backup Backs up the database component files, such as data files, control files, and archive log files, using the 'copy' command at the operating system level. [Figure 2.1] Backup Target The NO ARCHIVE LOG mode and ARCHIVE LOG mode backup processes are different. NO ARCHIVE LOG Mode (Offline Backup / Cold Backup) Backs up all database component files when the database is down. The database can be recovered only to the time it was last backed up. ARCHIVE LOG Mode (Online Backup / Hot Backup) Backup can be performed while the database is running. The control file creation statement, data files, and archive log files can be backed up. Depending on when archive log file was backed up, recovery before the time of the backup is possible. Chapter 2. Backup 3

12 [Figure 2.2] Backup Types By each mode, consistent and inconsistent backup can be performed. Classification Consistent Backup Inconsistent Backup Description Backup after normal shutdown. Backup after abnormal shutdown or backup while the DB operates (it is recommended to use the ARCHIVE LOG mode) Backup Method Control File Backup The control file stores the database structure as a binary file. The control file is required when mounting the database. If the file does not exist, it must be recovered or be recreated. It is recommended to make two or more control files when configuring the database and to save the files on different disks. Use the following dynamic view to check the control file locations and whether the control file is multiplexed. v$controlfile Backup Process The following describes how to back up the control files. Control File Multiplexing 1. Use the tbdown command to shut down the database. 2. Copy the control file to a different location. 3. Add a CONTROL_FILES parameter to the $TB_SID.tip file. 4 Tibero Backup & Recovery Guide

13 4. Start the database using the command tbboot. Creating a Control File Trace Copy the file to a different location using the O/S copy command and create the trace using the following syntax: SQL> ALTER DATABASE BACKUP CONTROLFILE TO TRACE AS '<FILENAME>' REUSE NORESETLOGS; Item <FILENAME> REUSE RESETLOGS NORESETLOGS Description Sets the trace file name. (If the path is not set, the file is created in the directory defined in the DB_CREATE_FILE_DEST parameter in the $TB_SID.tip file) To use the existing file when backing up the control file creation statement, use the REUSE option. Ignores the existing log files and initializes logs. Keeps using the existing, valid log files. Note While control file multiplexing is not required, it is recommended to back up the control file before creating the control file trace Online Backup Online Backup is performed while Tibero is running. It backs up the data files of the tablespace using the ALTER DATABASE command. Online backup can only be used in the ARCHIVE LOG mode. Backup Process The following describes the online backup process. 1. Notify the database of the start of the online backup. SQL> ALTER TABLESPACE SYSTEM BEGIN BACKUP; Chapter 2. Backup 5

14 2. Check the current backup mode using the dynamic view (v$backup) as follows: SQL> select * from v$backup; FILE# STATUS CHANGE# TIME ACTIVE NOT ACTIVE 0 2 NOT ACTIVE 0 3 NOT ACTIVE 0 3. Copy the tablespace data files using an O/S command. SQL>!cp /home/tibero/tbdata/system001.dtf /home/tibero/tbdata_bak/system001.dtf 4. Notify the Tibero database of the end of the online backup. SQL> ALTER TABLESPACE SYSTEM END BACKUP; Caution During the online backup, because the volume of logs about the database changes is increasing, execute and end the process as quickly as possible Offline Backup Offline Backup is performed after Tibero shuts down. Offline backup backs up data files, log files, control files, and Tip files using the O/S copy command after Tibero shuts down. The file information to be backed up can be checked using the v$datafile and v$logfile views in MOUNT or OPEN mode. In ARCHIVE LOG mode, archive files also can be backed up. Backup Process The following describes the offline backup process. 1. Check the files to be backed up using the dynamic view (v$datafile) as follows: SQL> select name from v$datafile; NAME Tibero Backup & Recovery Guide

15 /home/tibero/tbdata/system001.dtf /home/tibero/tbdata/undo001.dtf /home/tibero/tbdata/usr001.dtf /home/tibero/tbdata/apm_ts.dtf 2. Check the log files to be backed up using the dynamic view (v$logfile) as follows: SQL> select group#, member from v$logfile; GROUP# MEMBER /home/tibero/tbdata/redo01.redo 1 /home/tibero/tbdata/redo11.redo 2 /home/tibero/tbdata/redo21.redo 3. Check the control files to be backed up using the dynamic view (v$controlfile) as follows: SQL> select name from v$controlfile; NAME /home/tibero/tbdata/c1.ctl /home/tibero/tbdata/c2.ctl 4. Shut down Tibero using the tbdown command. $ tbdown 5. Copy the files to be backed up. $ cp /home/tibero/tbdata/*.dtf /home/tibero/tbdata_bak/ $ cp /home/tibero/tbdata/*.redo /home/tibero/tbdata_bak/ $ cp /home/tibero/tbdata/*.ctl /home/tibero/tbdata_bak/ Or $ cp /home/tibero/tbdata/*.* /home/tibero/tbdata_bak/ Chapter 2. Backup 7

16

17 Chapter 3. Recovery (Single) This chapter describes the recovery process and how to handle errors Overview Recovery is the process or mechanism used to maintain system operation in the event of an error in the system. The following describes recovery related jobs by boot process. NOMOUNT: Starts an instance Database can be created Control file can be recreated MOUNT: Open a control file Data file name can be changed Archive mode option can be activated or deactivated The entire database can be recovered OPEN: Open all files defined in the control file Crash Recovery Crash Recovery performs automatically when Tibero starts up after the database abnormally terminated. Only online redo log files, online data files, and the current control file are used. Crash Recovery recovers data that has not been committed using the Undo tablespace. [Figure 3.1] Crash Recovery Step Chapter 3. Recovery (Single) 9

18 The following describes crash recovery features. The recovery job starts automatically so the database administrator does not need to apply logs manually to recover data. Uses Online logs (Redo logs) but not archive logs. Uses Roll-forward and Rollback of Redo Media Recovery Media Recovery is used when a Tibero component file suffers physical damage or when a Tibero component file does not work normally. Media Recovery must be performed when the data file version is different (when a backup data file is used due to data file damage), an Online Redo log file is damaged, data is lost due to user error, or an archive log file is lost. The following describes the features of media recovery. Media recovery is performed manually by the DBA command (ALTER DATABASE RECOVER...) Media recovery uses backup data files for recovery. The Redo record from the Redo log file or the archive log file applies. Media recovery is only possible in MOUNT mode. The media recovery types are as follows: Classification Complete Recovery Incomplete Recovery Description Uses all archive log files and Online log files to apply the most recent logs. Applies a portion of the log files or recovers to a specific point of time. Point-in-Time recovery Applies only a portion of the Redo record When performing an Incomplete Recovery, the database must start with reset log. For more information about reset logs, refer to "RESETLOGS". 10 Tibero Backup & Recovery Guide

19 Media recovery uses the following dynamic view:. V$RECOVER_FILE V$RECOVERY_FILE_STATUS V$LOGFILE V$CONTROLFILE V$LOG RESETLOGS If an incomplete recovery is performed, the database must start with resetlogs. Data files and Log files before the reset logs command are not compatible with those after reset logs has been executed. The backup files or log files before reset logs cannot be used to recover to a time point after reset logs. The files after reset logs also cannot be used to perform the incomplete recovery to a time point before reset logs. The following shows how to use RESET LOGS. $ tbboot t resetlogs Note It is recommended to perform a backup when the database starts using reset logs Recovery Environment Configuration The following describes how to configure a recovery environment: 1. Tibero parameter configuration DB_NAME=tibero LISTENER_PORT=38629 CONTROL_FILES="/home/tibero/tbdata/c1.ctl", "/home/tibero/tbdata/c2.ctl" DB_CREATE_FILE_DEST="/home/tibero/tbdata" LOG_ARCHIVE_DEST="/home/tibero/tbarch" #CERTIFICATE_FILE="/home/tibero/tibero5/config/svr_wallet/tibero.crt" #PRIVKEY_FILE="/home/tibero/tibero5/config/svr_wallet/tibero.key" #WALLET_FILE="/home/tibero/tibero5/config/svr_wallet/WALLET" MAX_SESSION_COUNT=10 TOTAL_SHM_SIZE=1024M Chapter 3. Recovery (Single) 11

20 2. Database creation CREATE DATABASE "tibero" USER SYS IDENTIFIED BY TIBERO MAXDATAFILES 4096 CHARACTER SET MSWIN949 LOGFILE GROUP 0 ('redo01.redo', 'redo02.redo') SIZE 50M, GROUP 1 ('redo11.redo', 'redo12.redo') SIZE 50M, GROUP 2 ('redo21.redo', 'redo22.redo') SIZE 50M MAXLOGFILES 100 MAXLOGMEMBERS 8 ARCHIVELOG DATAFILE 'system001.dtf' SIZE 256M AUTOEXTEND ON NEXT 16M MAXSIZE 3072M DEFAULT TABLESPACE USR DATAFILE 'usr001.dtf' SIZE 128M AUTOEXTEND ON NEXT 16M MAXSIZE 3072M DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE 'temp001.dtf' SIZE 512M AUTOEXTEND ON NEXT 16M MAXSIZE 10240M EXTENT MANAGEMENT LOCAL AUTOALLOCATE UNDO TABLESPACE UNDO DATAFILE 'undo001.dtf' SIZE 512M AUTOEXTEND ON NEXT 16M MAXSIZE 10240M EXTENT MANAGEMENT LOCAL AUTOALLOCATE; 3. Tablespace creation DROP TABLESPACE "MY_FILE001" INCLUDING CONTENTS AND DATAFILES; CREATE TABLESPACE "MY_FILE001" DATAFILE 'my_file001.dtf' SIZE 10M AUTOEXTEND ON NEXT 1M MAXSIZE 3G EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M; 4. User creation DROP USER TIBERO CASCADE; CREATE USER tibero IDENTIFIED BY tmax DEFAULT TABLESPACE MY_FILE001; GRANT CONNECT, RESOURCE, DBA TO tibero; 12 Tibero Backup & Recovery Guide

21 3.3. Recovery Control File Recovery This section describes how to recover the control file in various situations. When the control file is deleted If deleting a control file causes an error, recreate the control file using the backup control file creation statement. Error Occurrence $ tbboot $ tbsql sys/tibero SQL> ALTER DATABASE BACKUP CONTROLFILE TO TRACE AS '/home/tibero/tbdata/ctl_backup.sql' REUSE NORESETLOGS; $ rm -f /home/tibero/tbdata/c1.ctl Solution $ tbdown Tibero instance terminated (NORMAL mode). $ tbboot listener port = change core dump dir to /home/tibero_td/tibero5/bin/prof ******************************************************** * Critical Warning: Raise svmode failed. The reason is * TBR-24003: Unable to read control file. * Current server mode is NOMOUNT. ******************************************************** Tibero 5 Tibero instance started suspended at NOMOUNT mode. $ tbsql sys/tibero Chapter 3. Recovery (Single) 13

22 tbsql 5 Connected to Tibero. Control File created. File finished. SQL> exit Disconnected. $ tbdown Tibero instance terminated (NORMAL mode). $ tbboot listener port = change core dump dir to /home/tibero/tibero5/bin/prof ******************************************************** * Critical Warning: Raise svmode failed. The reason is * TBR-1024: Database needs media recovery: media recovery required(/home/tibero/tbdata/system001.dtf). * Current server mode is MOUNT. ******************************************************** Tibero 5 Tibero instance started suspended at MOUNT mode. $ tbsql sys/tibero tbsql 5 Connected to Tibero. SQL> select * from v$recover_file; FILE# ONLINE ERROR CHANGE# TIME ONLINE media recovery required /06/14 14 Tibero Backup & Recovery Guide

23 1 ONLINE media recovery required /06/14 2 ONLINE media recovery required /06/14 3 ONLINE media recovery required /06/14 4 ONLINE media recovery required /06/14 5 rows selected. SQL> alter database recover automatic database; Database altered. SQL> select * from v$recover_file; 0 row selected. SQL> exit Disconnected. $ tbdown Tibero instance terminated (NORMAL mode). $ tbboot listener port = change core dump dir to /home/tibero_td/tibero5/bin/prof Tibero 5 Tibero instance started up (NORMAL mode). $ tbsql sys/tibero tbsql 5 Connected to Tibero. --Create a Temp file by using a comment script part in the backed up control file SQL> ALTER TABLESPACE TEMP ADD TEMPFILE '/home/tibero/tbdata/temp001.dtf' 2 SIZE 512M REUSE AUTOEXTEND ON NEXT 16M MAXSIZE 10G; Tablespace 'TEMP' altered. SQL> exit Disconnected. Chapter 3. Recovery (Single) 15

24 Note When the control file is overwritten while Tibero is running, the above method can also be used. When a duplicate control file is deleted When the database is down, if a duplicate control files is deleted, recreate the deleted control file or change the parameter file content. Error Occurrence $ rm -f /home/tibero/tbdata/c1.ctl $ tbdown $ tbboot listener port = change core dump dir to /home/tibero/tibero5/bin/prof Tibero 5 Tibero instance started up (NORMAL mode). $ tail -10f trace.log 14:37: [CLC][2] 06 tc_cf.c:160 control file read failed: '/home/tibero/tbdata/c1.ctl' (blkno=1) (No such file or directory) 14:37: [CLC][2] 06 tc_cf.c:215 control file write failed: '/home/tibero/tbdata/c1.ctl' 14:37: [CLC][2] 06 tc_cf.c:160 control file read failed: '/home/tibero/tbdata/c1.ctl' (blkno=1) (No such file or directory) 14:37: [CLC][2] 06 tc_cf.c:215 control file write failed: '/home/tibero/tbdata/c1.ctl' 14:37: [CLC][2] 06 tc_cf.c:160 control file read failed: '/home/tibero/tbdata/c1.ctl' (blkno=1) (No such file or directory) 14:37: [CLC][2] 06 tc_cf.c:215 control file write failed: '/home/tibero/tbdata/c1.ctl' 14:37: [CLC][2] 06 tc_cf.c:160 control file read failed: '/home/tibero/tbdata/c1.ctl' (blkno=1) (No such file or directory) 14:37: [CLC][2] 06 tc_cf.c:215 control file write failed: '/home/tibero/tbdata/c1.ctl' 14:37: [CLC][2] 06 tc_cf.c:160 control file read failed: '/home/tibero/tbdata/c1.ctl' (blkno=1) (No such file or directory) 14:37: [CLC][2] 06 tc_cf.c:215 control file write failed: '/home/tibero/tbdata/c1.ctl' 14:37: [CLC][2] 06 tc_cf.c:160 control file read failed: '/home/tibero/tbdata/c1.ctl' (blkno=1) (No such file or directory) 14:37: [CLC][2] 06 tc_cf.c:215 control file write failed: 16 Tibero Backup & Recovery Guide

25 '/home/tibero/tbdata/c1.ctl' $ tbdown Solution $ cp /home/tibero/tbdata/c2.ctl /home/tibero/tbdata/c1.ctl $ tbboot Online Log File Recovery If the Redo log is deleted, Tibero works as follows: When one or more Redo log file does not exist when booting The boot fails When Tibero is started and is running normally, if a Redo Log file is deleted If a Redo log file that has never been used after booting is deleted (file descriptor does not exist) If there is an available member file within the group, Tibero works normally after leaving messages in the Trace logs. If all members are deleted within the group, Tibero terminates while leaving error messages in the Trace logs. If a Redo log file that was used after booting is deleted (there is a file descriptor) Works normally. When a logmmember is deleted from an INACTIVE Mode log group When Tibero is running, if a log member is deleted from an INACTIVE mode log group, the member in error is deleted and recreated. Error Occurrence SQL> set line 200 SQL> col group# for 999 SQL> col member for a50 SQL> col SEQ# for 999 SQL> col MB for 999 SQL> select a.group#, a.member, b.bytes/1024/1024 "MB", b.archived "ARC", 2 b.sequence# "SEQ#", b.status Chapter 3. Recovery (Single) 17

26 3 from v$logfile a, v$log b 4 where a.group#=b.group# 5 order by 1; GROUP# MEMBER MB ARC SEQ# STATUS /home/tibero/tbdata/redo01.redo 50 YES 3 INACTIVE 0 /home/tibero/tbdata/redo02.redo 50 YES 3 INACTIVE 1 /home/tibero/tbdata/redo11.redo 50 NO 4 CURRENT 1 /home/tibero/tbdata/redo12.redo 50 NO 4 CURRENT 2 /home/tibero/tbdata/redo21.redo 50 YES 2 INACTIVE 2 /home/tibero/tbdata/redo22.redo 50 YES 2 INACTIVE 6 rows selected. SQL>!rm -f /home/tibero/tbdata/redo01.redo SQL>!ls /home/tibero/tbdata/redo01.redo ls: /home/tibero/tbdata/redo01.redo: No such file or directory SQL> alter system switch logfile; SQL> / SQL> / SQL> / SQL> / SQL> set line Tibero Backup & Recovery Guide

27 SQL> col group# for 999 SQL> col member for a50 SQL> col SEQ# for 999 SQL> col MB for 999 SQL> select a.group#, a.member, b.bytes/1024/1024 "MB", b.archived "ARC", 2 b.sequence# "SEQ#", b.status 3 from v$logfile a, v$log b 4 where a.group#=b.group# 5 order by 1; GROUP# MEMBER MB ARC SEQ# STATUS /home/tibero/tbdata/redo01.redo 50 NO 9 CURRENT 0 /home/tibero/tbdata/redo02.redo 50 NO 9 CURRENT 1 /home/tibero/tbdata/redo11.redo 50 YES 7 INACTIVE 1 /home/tibero/tbdata/redo12.redo 50 YES 7 INACTIVE 2 /home/tibero/tbdata/redo21.redo 50 YES 8 INACTIVE 2 /home/tibero/tbdata/redo22.redo 50 YES 8 INACTIVE 6 rows selected. SQL>! $vi /home/tibero/tibero5/instance/tibero/log/dbmslog/dbms.log 21:04: [DDL][0] 18 Executing DDL: alter system switch logfile 21:04: [CLL][0] 4 LOGFILE SWITCHED. LF#1(seqno=4, blocks=769 next= ae4) 21:04: [CLA][0] 5 LOG GROUP 1 (lsn=4) ARCHIVED. (/home/tibero/tbarch/log-t0-r14647-s4.arc) 21:04: [DDL][0] 18 Executing DDL: alter system switch logfile 21:04: [CLL][3] 4 Failed to read 1 log blocks LF#0(member=0, blkno=0) 21:04: [CLL][0] 4 LOGFILE SWITCHED. LF#2(seqno=5, blocks=0 next= ae7) 21:04: [CLA][0] 5 LOG GROUP 2 (lsn=5) ARCHIVED. (/home/tibero/tbarch/log-t0-r14647-s5.arc) 21:04: [DDL][0] 18 Executing DDL: alter system switch logfile 21:04: [CLL][3] 4 Failed to read 1 log blocks LF#0(member=0, blkno=0) 21:04: [CLL][0] 4 LOGFILE SWITCHED. LF#0(seqno=6, blocks=0 next= aea) Chapter 3. Recovery (Single) 19

28 21:04: [CLL][3] 5 Failed to read 1 log blocks LF#0(member=0, blkno=0) 21:04: [CLA][0] 5 LOG GROUP 0 (lsn=6) ARCHIVED. (/home/tibero/tbarch/log-t0-r14647-s6.arc) 21:04: [DDL][0] 18 Executing DDL: alter system switch logfile 21:04: [CLL][0] 4 LOGFILE SWITCHED. LF#1(seqno=7, blocks=0 next= aec) 21:04: [CLA][0] 5 LOG GROUP 1 (lsn=7) ARCHIVED. (/home/tibero/tbarch/log-t0-r14647-s7.arc) 21:05: [DDL][0] 18 Executing DDL: alter system switch logfile 21:05: [CLL][3] 4 Failed to read 1 log blocks LF#0(member=0, blkno=0) 21:05: [CLL][0] 4 LOGFILE SWITCHED. LF#2(seqno=8, blocks=0 next= af7) 21:05: [CLA][0] 5 LOG GROUP 2 (lsn=8) ARCHIVED. (/home/tibero/tbarch/log-t0-r14647-s8.arc) Solution $ tbsql sys/tibero tbsql 5 Connected to Tibero. SQL> alter system switch logfile; SQL> alter database drop logfile member '/home/tibero/tbdata/redo01.redo'; Database altered. SQL> alter database add logfile member '/home/tibero/tbdata/redo01.redo' to group 0; Database altered. SQL> alter system switch logfile; SQL> / SQL> / 20 Tibero Backup & Recovery Guide

29 SQL>! $vi /home/tibero/tibero5/instance/tibero/log/dbmslog/dbms.log 21:11: [DDL][0] 18 Executing DDL: alter database drop logfile member '/home/tibero/tbdata/redo01.redo' 21:11: [DDL][0] 18 Alter database type 1 succeeded. 21:12: [DDL][0] 18 Executing DDL: alter database add logfile member '/home/tibero/tbdata/redo01.redo' to group 0 21:12: [DDL][0] 18 Alter database type 1 succeeded. 21:12: [DDL][0] 18 Executing DDL: alter system switch logfile 21:12: [CLL][0] 4 LOGFILE SWITCHED. LF#1(seqno=10, blocks=6 next= b96) 21:12: [CLA][0] 5 LOG GROUP 1 (lsn=10) ARCHIVED. (/home/tibero/tbarch/log-t0-r14647-s10.arc) 21:13: [DDL][0] 18 Executing DDL: alter system switch logfile 21:13: [CLL][0] 4 LOGFILE SWITCHED. LF#2(seqno=11, blocks=0 next= b98) 21:13: [CLA][0] 5 LOG GROUP 2 (lsn=11) ARCHIVED. (/home/tibero/tbarch/log-t0-r14647-s11.arc) 21:13: [DDL][0] 18 Executing DDL: alter system switch logfile 21:13: [CLL][0] 4 LOGFILE SWITCHED. LF#0(seqno=12, blocks=0 next= b9c) 21:13: [CLA][0] 5 LOG GROUP 0 (lsn=12) ARCHIVED. (/home/tibero/tbarch/log-t0-r14647-s12.arc) When an INACTIVE Mode log group is deleted When Tibero is running, if an INACTIVE mode log group is deleted, the log group in error is deleted and recreated. Error Occurrence $ tbsql sys/tibero tbsql 5 Connected to Tibero. SQL> set line 200 SQL> col group# for 999 SQL> col member for a50 SQL> col SEQ# for 999 SQL> col MB for 999 Chapter 3. Recovery (Single) 21

30 SQL> select a.group#, a.member, b.bytes/1024/1024 "MB", b.archived "ARC", 2 b.sequence# "SEQ#", b.status 3 from v$logfile a, v$log b 4 where a.group#=b.group# 5 order by 1; GROUP# MEMBER MB ARC SEQ# STATUS /home/tibero/tbdata/redo01.redo 50 YES 1 INACTIVE 0 /home/tibero/tbdata/redo02.redo 50 YES 1 INACTIVE 1 /home/tibero/tbdata/redo11.redo 50 NO 2 CURRENT 1 /home/tibero/tbdata/redo12.redo 50 NO 2 CURRENT 2 /home/tibero/tbdata/redo21.redo 50 NO -1 UNUSED 2 /home/tibero/tbdata/redo22.redo 50 NO -1 UNUSED 6 rows selected. SQL>!rm -f /home/tibero/tbdata/redo01.redo SQL>!rm -f /home/tibero/tbdata/redo02.redo SQL>!ls /home/tibero/tbdata/redo01.redo ls: /home/tibero/tbdata/redo01.redo: No such file or directory SQL>!ls /home/tibero/tbdata/redo02.redo ls: /home/tibero/tbdata/redo02.redo: No such file or directory SQL> alter system switch logfile; SQL> / SQL> / SQL> exit Disconnected. 22 Tibero Backup & Recovery Guide

31 Solution $ tbsql sys/tibero tbsql 5 Connected to Tibero. SQL> alter database drop logfile group 0; Database altered. SQL> alter database add logfile group 0 2 ('/home/tibero/tbdata/redo01.redo', '/home/tibero/tbdata/redo02.redo') 3 size 50M; Database altered. SQL> set line 200 SQL> col group# for 999 SQL> col member for a50 SQL> col SEQ# for 999 SQL> col MB for 999 SQL> select a.group#, a.member, b.bytes/1024/1024 "MB", b.archived "ARC", 2 b.sequence# "SEQ#", b.status 3 from v$logfile a, v$log b 4 where a.group#=b.group# 5 order by 1; GROUP# MEMBER MB ARC SEQ# STATUS /home/tibero/tbdata/redo01.redo 50 NO -1 UNUSED 0 /home/tibero/tbdata/redo02.redo 50 NO -1 UNUSED 1 /home/tibero/tbdata/redo11.redo 50 NO 5 CURRENT 1 /home/tibero/tbdata/redo12.redo 50 NO 5 CURRENT 2 /home/tibero/tbdata/redo21.redo 50 YES 3 INACTIVE 2 /home/tibero/tbdata/redo22.redo 50 YES 3 Chapter 3. Recovery (Single) 23

32 INACTIVE 6 rows selected. When Tibero is terminated with the abort option after the CURRENT Mode log group is deleted When Tibero is running in ARCHIVE LOG mode, if a CURRENT mode log group is deleted and Tibero is terminated using the abort option, incomplete recovery must be performed using the TSN of a specific point of time. Perform the change-based recovery using the NEXT_TSN information of the last archive log file. Check the next_tsn information through v$archive_dest_files or by generating an archive file dump. When performing change-based recovery, use the next_tsn -1 value. Error Occurrence $ tbsql sys/tibero tbsql 5 Connected to Tibero. SQL> set line 200 SQL> col group# for 999 SQL> col member for a50 SQL> col SEQ# for 999 SQL> col MB for 999 SQL> select a.group#, a.member, b.bytes/1024/1024 "MB", b.archived "ARC", 2 b.sequence# "SEQ#", b.status 3 from v$logfile a, v$log b 4 where a.group#=b.group# 5 order by 1; GROUP# MEMBER MB ARC SEQ# STATUS /home/tibero/tbdata/redo01.redo 50 NO 7 CURRENT 0 /home/tibero/tbdata/redo02.redo 50 NO 7 CURRENT 1 /home/tibero/tbdata/redo11.redo 50 YES 5 INACTIVE 24 Tibero Backup & Recovery Guide

33 1 /home/tibero/tbdata/redo12.redo 50 YES 5 INACTIVE 2 /home/tibero/tbdata/redo21.redo 50 YES 6 INACTIVE 2 /home/tibero/tbdata/redo22.redo 50 YES 6 INACTIVE 6 rows selected. SQL> CREATE TABLE T1 (C1 VARCHAR(5)); Table 'T1' created. SQL> INSERT INTO T1 (C1) VALUES ('00011'); 1 row inserted. SQL> COMMIT; Commit completed. SQL> ALTER SYSTEM SWITCH LOGFILE; SQL> INSERT INTO T1 (C1) VALUES ('00012'); 1 row inserted. SQL> COMMIT; Commit completed. SQL> ALTER SYSTEM SWITCH LOGFILE; SQL> INSERT INTO T1 (C1) VALUES ('00013'); 1 row inserted. SQL> COMMIT; Commit completed. SQL> ALTER SYSTEM SWITCH LOGFILE; SQL> INSERT INTO T1 (C1) VALUES ('00014'); 1 row inserted. SQL> COMMIT; Commit completed. SQL> set line 200 SQL> col group# for 999 SQL> col member for a50 Chapter 3. Recovery (Single) 25

34 SQL> col SEQ# for 999 SQL> col MB for 999 SQL> select a.group#, a.member, b.bytes/1024/1024 "MB", b.archived "ARC", 2 b.sequence# "SEQ#", b.status 3 from v$logfile a, v$log b 4 where a.group#=b.group# 5 order by 1; GROUP# MEMBER MB ARC SEQ# STATUS /home/tibero/tbdata/redo01.redo 50 NO 10 CURRENT 0 /home/tibero/tbdata/redo02.redo 50 NO 10 CURRENT 1 /home/tibero/tbdata/redo11.redo 50 YES 8 INACTIVE 1 /home/tibero/tbdata/redo12.redo 50 YES 8 INACTIVE 2 /home/tibero/tbdata/redo21.redo 50 YES 9 INACTIVE 2 /home/tibero/tbdata/redo22.redo 50 YES 9 INACTIVE 6 rows selected. SQL>!rm -f /home/tibero/tbdata/redo01.redo SQL>!rm -f /home/tibero/tbdata/redo02.redo SQL>!ls /home/tibero/tbdata/redo01.redo /home/tibero/tbdata/redo01.redo not found SQL>!ls /home/tibero/tbdata/redo02.redo /home/tibero/tbdata/redo02.redo not found SQL> exit Disconnected. $ tbdown abort Tibero instance terminated (ABORT mode). Solution $ cp /home/tibero/tbdata_bak/*.dtf /home/tibero/tbdata $ tbboot mount listener port = change core dump dir to /home/tibero/tibero5/bin/prof Tibero 5 26 Tibero Backup & Recovery Guide

35 Tibero instance started up (MOUNT mode). $ tbsql sys/tibero tbsql 5 Connected to Tibero. SQL> set line 200 SQL> col group# for 999 SQL> col member for a50 SQL> col SEQ# for 999 SQL> col MB for 999 SQL> select a.group#, a.member, b.bytes/1024/1024 "MB", b.archived "ARC", 2 b.sequence# "SEQ#", b.status 3 from v$logfile a, v$log b 4 where a.group#=b.group# 5 order by 1; GROUP# MEMBER MB ARC SEQ# STATUS /home/tibero/tbdata/redo01.redo 50 NO 10 CURRENT 0 /home/tibero/tbdata/redo02.redo 50 NO 10 CURRENT 1 /home/tibero/tbdata/redo11.redo 50 YES 8 INACTIVE 1 /home/tibero/tbdata/redo12.redo 50 YES 8 INACTIVE 2 /home/tibero/tbdata/redo21.redo 50 YES 9 INACTIVE 2 /home/tibero/tbdata/redo22.redo 50 YES 9 INACTIVE 6 rows selected. --Check the next_change# - 1 value SQL> set line 200 SQL> col name for a40 SQL> col SEQ# for 999 SQL> col TSN for SQL> select name, sequence# seq#, next_change#-1 tsn 2 from v$archive_dest_files order by 2; NAME SEQ# TSN /home/tibero/tbdata/arch/log-t0-r0-s7.arc Chapter 3. Recovery (Single) 27

36 /home/tibero/tbdata/arch/log-t0-r0-s8.arc /home/tibero/tbdata/arch/log-t0-r0-s9.arc rows selected. --If the TSN information does not exist, generate a log file dump. SQL> alter system dump logfile '/home/tibero/tbdata/arch/log-t0-r0-s9.arc'; SQL> exit Disconnected. $ cd $TB_HOME/instance/$TB_SID/dump/tracedump $ ls -rlt total 24 -rw-r--r-- 1 tibero dba 2688 Jul 10 19:08 tb_dump_ _37_2.trc -- Change the next_tsn value to a decimal number: b227 (hex) => (dec) --next_tsn - 1 = $ grep next tb_dump_ _37_2.trc low= b21e :59:28 next= b :59:43...(Omitted) $ tbsql sys/tibero tbsql 5 Connected to Tibero. SQL> alter database recover automatic database until change 45606; Database altered. SQL> exit Disconnected. $ tbdown Tibero instance terminated (NORMAL mode). $ tbboot resetlogs listener port = change core dump dir to /home/tibero/tibero5/bin/prof 28 Tibero Backup & Recovery Guide

37 Tibero 5 Tibero instance started up (NORMAL RESETLOGS mode). $ tbsql sys/tibero tbsql 5 Connected to Tibero. SQL> select * from t1; C rows selected. When Tibero is terminated with the immediate option after deleting the CURRENT Mode log group When Tibero is running in ARCHIVE LOG mode, if the CURRENT mode log group is deleted and Tibero is terminated with the immediate option, the last committed data is terminated after being saved in the data files. Perform the recovery based on the cancellation. Error Occurrence $ tbsql sys/tibero tbsql 5 Connected to Tibero. SQL> CREATE TABLE T1 (C1 VARCHAR(5)); Table 'T1' created. SQL> INSERT INTO T1 (C1) VALUES ('00011'); 1 row inserted. SQL> COMMIT; Chapter 3. Recovery (Single) 29

38 Commit completed. SQL> ALTER SYSTEM SWITCH LOGFILE; SQL> INSERT INTO T1 (C1) VALUES ('00012'); 1 row inserted. SQL> COMMIT; Commit completed. SQL> ALTER SYSTEM SWITCH LOGFILE; SQL> INSERT INTO T1 (C1) VALUES ('00013'); 1 row inserted. SQL> COMMIT; Commit completed. SQL> ALTER SYSTEM SWITCH LOGFILE; SQL> INSERT INTO T1 (C1) VALUES ('00014'); 1 row inserted. SQL> COMMIT; Commit completed. SQL> set line 200 SQL> col group# for 999 SQL> col member for a50 SQL> col SEQ# for 999 SQL> col MB for 999 SQL> select a.group#, a.member, b.bytes/1024/1024 "MB", b.archived "ARC", 2 b.sequence# "SEQ#", b.status 3 from v$logfile a, v$log b 4 where a.group#=b.group# 5 order by 1; GROUP# MEMBER MB ARC SEQ# STATUS /home/tibero/tbdata/redo01.redo 50 NO 7 CURRENT 0 /home/tibero/tbdata/redo02.redo 50 NO 7 CURRENT 30 Tibero Backup & Recovery Guide

39 1 /home/tibero/tbdata/redo11.redo 50 NO 5 INACTIVE 1 /home/tibero/tbdata/redo12.redo 50 NO 5 INACTIVE 2 /home/tibero/tbdata/redo21.redo 50 NO 6 INACTIVE 2 /home/tibero/tbdata/redo22.redo 50 NO 6 INACTIVE 3 rows selected. SQL>!rm -f /home/tibero/tbdata/redo01.redo SQL>!rm -f /home/tibero/tbdata/redo02.redo SQL>!ls /home/tibero/tbdata/redo01.redo /home/tibero/tbdata/redo01.redo not found SQL>!ls /home/tibero/tbdata/redo02.redo /home/tibero/tbdata/redo02.redo not found SQL> exit Disconnected. $ tbdown immediate Tibero instance terminated (IMMEDIATE mode). Solution $ tbboot listener port = change core dump dir to /home/tibero/tibero5/bin/prof ******************************************************** * Critical Warning: Raise svmode failed. The reason is * TBR-1042: Unable to read log member file in group 0, member -1 (), block 0. * Current server mode is MOUNT. ******************************************************** Tibero 5 Tibero instance started suspended at MOUNT mode. $ tbsql sys/tibero tbsql 5 Chapter 3. Recovery (Single) 31

40 Connected to Tibero. SQL> ALTER DATABASE RECOVER DATABASE UNTIL CANCEL; Database altered. SQL> exit Disconnected. $ tbdown Tibero instance terminated (NORMAL mode). $ tbboot resetlogs listener port = change core dump dir to /home/tibero/tibero5/bin/prof Tibero 5 Tibero instance started up (NORMAL RESETLOGS mode). $ tbsql sys/tibero tbsql 5 Connected to Tibero. SQL>!ls /home/tibero/tbdata/redo01.redo /home/tibero/tbdata/redo01.redo SQL>!ls /home/tibero/tbdata/redo02.redo /home/tibero/tbdata/redo02.redo SQL> set line 200 SQL> col group# for 999 SQL> col member for a50 SQL> col SEQ# for 999 SQL> col MB for 999 SQL> select a.group#, a.member, b.bytes/1024/1024 "MB", b.archived "ARC", 2 b.sequence# "SEQ#", b.status 3 from v$logfile a, v$log b 4 where a.group#=b.group# 5 order by 1; GROUP# MEMBER MB ARC SEQ# STATUS Tibero Backup & Recovery Guide

41 /home/tibero/tbdata/redo01.redo 50 NO 1 CURRENT 0 /home/tibero/tbdata/redo02.redo 50 NO 1 CURRENT 1 /home/tibero/tbdata/redo11.redo 50 NO -1 UNUSED 1 /home/tibero/tbdata/redo12.redo 50 NO -1 UNUSED 2 /home/tibero/tbdata/redo21.redo 50 NO -1 UNUSED 2 /home/tibero/tbdata/redo22.redo 50 NO -1 UNUSED 3 rows selected. SQL> select * from t1; C rows selected Temp Tablespace Recovery When the temp file is deleted When a temp tablespace file is deleted, the temp file is created automatically if tbboot is executed. Error Occurrence $ tbboot $ tbsql sys/tibero $ rm rf /home/tibero/tbdata/temp001.dtf Solution $ tbdown $ ls -al /home/tibero/tbdata/temp001.dtf ls: /home/tibero/tbdata/temp001.dtf: No such file or directory $ tbboot $ ls -al /home/tibero/tbdata/temp001.dtf -rw tibero dba Jun 24 17:25 /home/tibero/tbdata/temp001.dtf Chapter 3. Recovery (Single) 33

42 Data File Error Complete Recovery Automatic Complete Recovery When Tibero is running in ARCHIVE LOG mode, if data files are deleted, copy the backup data files and recover the files using the 'AUTOMATIC' command. Error Occurrence $ tbdown $ cp R /home/tibero/tbdata /home/tibero/tbdata_bak $ tbboot $ tbsql tibero/tmax SQL> CREATE TABLE T1 (C1 VARCHAR(5)) TABLESPACE MY_FILE001; Table 'T1' created. SQL> INSERT INTO T1 (C1) VALUES ('00011'); 1 row inserted. SQL> INSERT INTO T1 (C1) VALUES ('00012'); 1 row inserted. SQL> INSERT INTO T1 (C1) VALUES ('00013'); 1 row inserted. SQL> COMMIT; Commit completed. SQL> ALTER SYSTEM SWITCH LOGFILE; SQL> / SQL> / SQL> exit $ tbdown $ rm f /home/tibero/tbdata/my_file001.dtf 34 Tibero Backup & Recovery Guide

43 Solution $ cp /home/tibero/tbdata_bak/*.dtf /home/tibero/tbdata $ tbboot mount $ tbsql sys/tibero tbsql 5 Connected to Tibero. SQL> ALTER DATABASE RECOVER AUTOMATIC; Database altered. SQL> exit Disconnected. $ tbdown Tibero instance terminated (NORMAL mode). $ tbboot listener port = change core dump dir to /home/tibero_td/tibero5/bin/prof Tibero 5 Tibero instance started up (NORMAL mode). $ tbsql tibero/tmax tbsql 5 Connected to Tibero. SQL> select * from t1; C Chapter 3. Recovery (Single) 35

44 3 rows selected. User Complete Recovery When Tibero is running in ARCHIVE LOG mode, if data files are deleted, use the archive file to recover the data files that were created by the archive file. For the files not created by an archive file and are in the current state, use Redo files. Error Occurrence $ tbdown $ cp R /home/tibero/tbdata /home/tibero/tbdata_bak $ tbboot $ tbsql tibero/tmax SQL> CREATE TABLE T1 (C1 VARCHAR(5)) TABLESPACE MY_FILE001; Table 'T1' created. SQL> INSERT INTO T1 (C1) VALUES ('00011'); 1 row inserted. SQL> INSERT INTO T1 (C1) VALUES ('00012'); 1 row inserted. SQL> INSERT INTO T1 (C1) VALUES ('00013'); 1 row inserted. SQL> COMMIT; Commit completed. SQL> ALTER SYSTEM SWITCH LOGFILE; SQL> / SQL> / SQL> exit $ tbdown $ rm f /home/tibero/tbdata/my_file001.dtf 36 Tibero Backup & Recovery Guide

45 Solution $ cp /home/tibero/tbdata_bak/*.dtf /home/tibero/tbdata $ tbboot mount $ tbsql sys/tibero tbsql 5 Connected to Tibero. SQL> ALTER DATABASE RECOVER; Database altered. SQL> ALTER DATABASE RECOVER LOGFILE '/home/tibero/tbarch/log-t0-r0-s1.arc'; Database altered. SQL> ALTER DATABASE RECOVER LOGFILE '/home/tibero/tbarch/log-t0-r0-s2.arc'; Database altered. SQL> ALTER DATABASE RECOVER LOGFILE '/home/tibero/tbarch/log-t0-r0-s3.arc'; Database altered. SQL> select * from v$log; THREAD# GROUP# SEQUENCE# BYTES MEMBERS ARCHIVED STATUS FIRST_CHANGE# FIRST_TIME NO CURRENT /06/ YES INACTIVE /06/ YES INACTIVE /06/24 3 rows selected. SQL> select * from v$logfile; GROUP# STATUS TYPE MEMBER ONLINE /home/tibero/tbdata/redo01.redo 0 ONLINE /home/tibero/tbdata/redo02.redo 1 ONLINE /home/tibero/tbdata/redo11.redo 1 ONLINE /home/tibero/tbdata/redo12.redo Chapter 3. Recovery (Single) 37

46 2 ONLINE /home/tibero/tbdata/redo21.redo 2 ONLINE /home/tibero/tbdata/redo22.redo 6 rows selected. SQL> ALTER DATABASE RECOVER LOGFILE '/home/tibero/tbdata/redo01.redo'; Database altered. SQL> exit Disconnected. [tibero_td@tbsvr tbarch]$ tbdown Tibero instance terminated (NORMAL mode). [tibero_td@tbsvr tbarch]$ tbboot listener port = change core dump dir to /home/tibero/tibero5/bin/prof Tibero 5 Tibero instance started up (NORMAL mode). [tibero_td@tbsvr tbarch]$ tbsql tibero/tmax tbsql 5 Connected to Tibero. SQL> select * from t1; C rows selected. 38 Tibero Backup & Recovery Guide

47 Complete recovery when backup data files do not exist When Tibero is running in ARCHIVE LOG mode, if backup data files do not exist, create data files first and perform the complete recovery using the AUTOMATIC command. However, the archive files must exist from the time the data files were created. Error Occurrence $ tbdown $ cp R /home/tibero/tbdata /home/tibero/tbdata_bak $ tbboot $ tbsql tibero/tmax SQL> CREATE TABLE T1 (C1 VARCHAR(5)) TABLESPACE MY_FILE001; Table 'T1' created. SQL> INSERT INTO T1 (C1) VALUES ('00011'); 1 row inserted. SQL> INSERT INTO T1 (C1) VALUES ('00012'); 1 row inserted. SQL> INSERT INTO T1 (C1) VALUES ('00013'); 1 row inserted. SQL> COMMIT; Commit completed. SQL> ALTER SYSTEM SWITCH LOGFILE; SQL> / SQL> / SQL> exit $ tbdown $ rm f /home/tibero/tbdata/my_file001.dtf Chapter 3. Recovery (Single) 39

48 Solution $ tbboot mount $ tbsql sys/tibero SQL> ALTER DATABASE CREATE DATAFILE '/home/tibero/tbdata/my_file001.dtf'; Database altered. SQL> ALTER DATABASE RECOVER AUTOMATIC; Database altered. SQL> exit $ tbdown $ tbboot $ tbsql tibero/tmax SQL> SELECT * FROM T1; C rows selected. Complete recovery while Online when backup data files exist If there are backup data files and if a data file is deleted while Online, set the tablespace to Offline and perform partial recovery (corresponding tablespace). After recovery is complete, set the tablespace to Online. Error Occurrence $ tbdown $ cp R /home/tibero/tbdata /home/tibero/tbdata_bak $ tbboot $ tbsql tibero/tmax SQL> CREATE TABLE T1 (C1 VARCHAR(5)) TABLESPACE MY_FILE001; Table 'T1' created. SQL> INSERT INTO T1 (C1) VALUES ('00011'); 40 Tibero Backup & Recovery Guide

49 1 row inserted. SQL> INSERT INTO T1 (C1) VALUES ('00012'); 1 row inserted. SQL> INSERT INTO T1 (C1) VALUES ('00013'); 1 row inserted. SQL> COMMIT; Commit completed. SQL> ALTER SYSTEM SWITCH LOGFILE; SQL> / SQL> / SQL> exit Disconnected. $ rm f /home/tibero/tbdata/my_file001.dtf Solution $ tbsql sys/tibero tbsql 5 Connected to Tibero. SQL> alter tablespace MY_FILE001 offline immediate; Tablespace 'MY_FILE001' altered. SQL> exit Disconnected. $ cp /home/tibero/tbdata_bak/my_file001.dtf /home/tibero/tbdata $ tbsql sys/tibero tbsql 5 Chapter 3. Recovery (Single) 41

50 Connected to Tibero. SQL> alter database recover automatic tablespace MY_FILE001; Database altered. SQL> alter tablespace MY_FILE001 online; Tablespace 'MY_FILE001' altered. SQL> conn tibero/tmax Connected to Tibero. SQL> select * from t1; C rows selected Data File Error Incomplete Recovery If a corrupt block error occurs, apply "alter system set _enable_mr_corrupt_recovery=y " or register the parameter in the $TB_SID.tip file and restart. Change-based (TSN) Incomplete Recovery alter database recover automatic database until change allow <BLOCK number> corruption; Time-based Incomplete Recovery alter database recover automatic database until time '2013/06/13 15:58:50' allow <BLOCK number> corruption; Cancel-based Incomplete Recovery alter database recover until cancel allow <BLOCK number> corruption; 42 Tibero Backup & Recovery Guide

51 Note For cancel-based recovery, if DPL/DPI or nologging data is included, a log block corruption may occur. It is recommended to perform full backup after recovery. Change-Based (TSN) Incomplete Recovery When Tibero is running in ARCHIVE LOG mode, if data files are deleted, perform change-based incomplete recovery using the TSN of a specific point of time. Perform the change-based recovery using the NEXT_TSN information of the last archive log file. Check the next_tsn information through v$archive_dest_files or by generating an archive file dump. When performing change-based recovery, use the next_tsn -1 value. Error Occurrence $ tbdown $ cp R /home/tibero/tbdata /home/tibero/tbdata_bak $ tbboot $ tbsql sys/tibero SQL> SELECT * FROM V$LOG; THREAD# GROUP# SEQUENCE# BYTES MEMBERS ARCHIVED STATUS FIRST_CHANGE# FIRST_TIME YES INACTIVE NO CURRENT /06/ NO UNUSED 0 3 rows selected. SQL> CREATE TABLE T1 (C1 VARCHAR(5)); Table 'T1' created. SQL> INSERT INTO T1 (C1) VALUES ('00011'); 1 row inserted. SQL> INSERT INTO T1 (C1) VALUES ('00012'); 1 row inserted. SQL> INSERT INTO T1 (C1) VALUES ('00013'); 1 row inserted. Chapter 3. Recovery (Single) 43

52 SQL> COMMIT; Commit completed. SQL> ALTER SYSTEM SWITCH LOGFILE; SQL> INSERT INTO T1 (C1) VALUES ('00021'); 1 row inserted. SQL> INSERT INTO T1 (C1) VALUES ('00022'); 1 row inserted. SQL> INSERT INTO T1 (C1) VALUES ('00023'); 1 row inserted. SQL> COMMIT; Commit completed. SQL> ALTER SYSTEM SWITCH LOGFILE; SQL> INSERT INTO T1 (C1) VALUES ('00031'); 1 row inserted. SQL> INSERT INTO T1 (C1) VALUES ('00032'); 1 row inserted. SQL> INSERT INTO T1 (C1) VALUES ('00033'); 1 row inserted. SQL> COMMIT; Commit completed. SQL> ALTER SYSTEM SWITCH LOGFILE; SQL> INSERT INTO T1 (C1) VALUES ('00041'); 1 row inserted. SQL> INSERT INTO T1 (C1) VALUES ('00042'); 1 row inserted. SQL> INSERT INTO T1 (C1) VALUES ('00043'); 1 row inserted. SQL> COMMIT; 44 Tibero Backup & Recovery Guide

53 Commit completed. SQL> exit Disconnected. $ tbdown Tibero instance terminated (NORMAL mode). $ rm /home/tibero/tbdata/*.dtf $ tbboot listener port = change core dump dir to /home/tibero/tibero5/bin/prof ******************************************************** * Critical Warning: Raise svmode failed. The reason is * TBR-1024: Database needs media recovery: open failed(/home/tibero/tbdata/system001.dtf). * Current server mode is MOUNT. ******************************************************** Tibero 5 Tibero instance started suspended at MOUNT mode. Solution $ tbdown Tibero instance terminated (NORMAL mode). $ cp /home/tibero/tbdata_bak/*.dtf /home/tibero/tbdata $ tbboot mount listener port = change core dump dir to /home/tibero/tibero5/bin/prof Tibero 5 Tibero instance started up (MOUNT mode). $ tbsql sys/tibero Chapter 3. Recovery (Single) 45

54 tbsql 5 Connected to Tibero. SQL> SELECT * FROM V$LOG; THREAD# GROUP# SEQUENCE# BYTES MEMBERS ARCHIVED STATUS FIRST_CHANGE# FIRST_TIME YES INACTIVE /06/ NO CURRENT /06/ YES INACTIVE /06/14 3 rows selected. --Check the next_change# - 1 value SQL> set line 200 SQL> col name for a40 SQL> col SEQ# for 999 SQL> col TSN for SQL> select name, sequence# seq#, next_change#-1 tsn 2 from v$archive_dest_files order by 2; NAME SEQ# TSN /home/tibero/tbarch/log-t0-r0-s1.arc /home/tibero/tbarch/log-t0-r0-s2.arc /home/tibero/tbarch/log-t0-r0-s3.arc /home/tibero/tbarch/log-t0-r0-s4.arc rows selected. --When the TSN informaiton does not exist, generate a Log file dump. SQL> alter system dump logfile '/home/tibero/tbarch/log-t0-r0-s4.arc'; SQL> exit Disconnected. $ cd $TB_HOME/instance/$TB_SID/dump/tracedump $ ls -rlt 46 Tibero Backup & Recovery Guide

Tibero Migration Utility Guide

Tibero Migration Utility Guide Tibero Migration Utility Guide Copyright 2014 TIBERO Co., Ltd. All Rights Reserved. Copyright Notice Copyright 2014 TIBERO Co., Ltd. All Rights Reserved. 5, Hwangsaeul-ro 329beon-gil, Bundang-gu, Seongnam-si,

More information

Tibero TSC Installation Guide

Tibero TSC Installation Guide Technical Training Tibero TSC Installation Guide 2014. 05. 26. Table of Contents 1. Pre-Installation Tasks... 4 1.1. Configuring the Operating System... 4 1.1.1. Installing Linux... 4 1.1.2. Creating VM

More information

Oracle Database 10g Migration to Automatic Storage Management. An Oracle White Paper August 2005

Oracle Database 10g Migration to Automatic Storage Management. An Oracle White Paper August 2005 Oracle Database 10g Migration to Automatic Storage Management An Oracle White Paper August 2005 Oracle Database 10g Migration to Automatic Storage Management Introduction... 3 Database Migration to ASM

More information

Recovering Oracle Databases

Recovering Oracle Databases CHAPTER 20 Recovering Oracle Databases In this chapter you will learn how to Recover from loss of a controlfile Recover from loss of a redo log file Recover from loss of a system-critical datafile Recover

More information

Disaster Recovery: Restore Database from One Server to another Server when Different Location

Disaster Recovery: Restore Database from One Server to another Server when Different Location Disaster Recovery: Restore Database from One Server to another Server when Different Location Mohamed Azar Oracle DBA http://mohamedazar.wordpress.com 1 Mohamed Azar http://mohamedazar.wordpress.com Step

More information

RECO CKPT SMON ARCH PMON RMAN DBWR

RECO CKPT SMON ARCH PMON RMAN DBWR Database Architecture t Architecture Topics Memory Structure Background Processes Database Accessing Database Information Starting the Database SMON PMON DBWR LGWR Parameter Database Architecture SNPn

More information

LOSS OF FULL DATABASE AND DATABASE RECOVERY ORACLE 11g

LOSS OF FULL DATABASE AND DATABASE RECOVERY ORACLE 11g CONNECT TO TARGET DATABASE USING RMAN $ export ORACLE_SID=crms $ rlrman target / Recovery Manager: Release 11.2.0.1.0 - Production on Sat Jan 31 10:13:56 2015 Copyright (c) 1982, 2009, Oracle and/or its

More information

Tablespaces and Datafiles

Tablespaces and Datafiles C H A P T E R 4 Tablespaces and Datafiles As you saw in Chapter 2, when you create a database, typically five tablespaces are created when you execute the CREATE DATABASE statement: SYSTEM SYSAUX UNDO

More information

Tibero Client Installation Guide

Tibero Client Installation Guide Tibero Client Installation Guide Copyright 2014 TIBERO Co., Ltd. All Rights Reserved. Copyright Notice Copyright 2014 TIBERO Co., Ltd. All Rights Reserved. Restricted Rights Legend All TIBERO Software

More information

9i RAC: Manual Backup and Recovery Shankar Govindan

9i RAC: Manual Backup and Recovery Shankar Govindan 9i RAC: Manual Backup and Recovery Shankar Govindan Introduction When we plan to move a large database or a heavily used OLTP database to a cluster setup, to get enough mileage from the horizontal scaling

More information

Steps how to duplicate a database to a new machine. Version 10gR2

Steps how to duplicate a database to a new machine. Version 10gR2 Steps how to duplicate a database to a new machine. Version 10gR2 First take a fresh backup of the target database set the ORACLE_* variables If the databse is running in noarchivelog mode, shut it down

More information

Tibero Object Usage Guide

Tibero Object Usage Guide Tibero Object Usage Guide Copyright 2014 TIBERO Co., Ltd. All Rights Reserved. Copyright Notice Copyright 2014 TIBERO Co., Ltd. All Rights Reserved. 5, Hwangsaeul-ro 329beon-gil, Bundang-gu, Seongnam-si,

More information

Chapter One. Concepts BACKUP CONCEPTS

Chapter One. Concepts BACKUP CONCEPTS Chapter One 1 Concepts Backup and recovery is not a single, discrete subject, but a collection of methods, strategies, and procedures to protect the data in your database and provide a means of recovery

More information

Using Recovery Manager with Oracle Data Guard in Oracle9i. An Oracle White Paper March 2004

Using Recovery Manager with Oracle Data Guard in Oracle9i. An Oracle White Paper March 2004 Using Recovery Manager with Oracle Data Guard in Oracle9i An Oracle White Paper March 2004 Using Recovery Manager with Oracle Data Guard in Oracle9i Executive summary... 3 Introduction... 3 Configuration

More information

These copies should be placed on different disks, if possible. Disk 1 Disk 2 Disk 3

These copies should be placed on different disks, if possible. Disk 1 Disk 2 Disk 3 DATABASE CONFIGURATIONS Configuration Topics Simple Databases with Mirroring Multiplexing Control Files and REDO Logs Disk Shadowing Database Links and Snapshots Optimal Flexible Architecture 1 Stand Alone

More information

Course Contents of ORACLE 9i

Course Contents of ORACLE 9i Overview of Oracle9i Server Architecture Course Contents of ORACLE 9i Responsibilities of a DBA Changing DBA Environments What is an Oracle Server? Oracle Versioning Server Architectural Overview Operating

More information

ASM migration process

ASM migration process Management on Dell/EMC Storage Arrays By Zafar Mahmood, Uday Datta Shet, and Bharat Sajnani ASM migration process The process for migrating an Oracle Real Application Clusters (RAC) database from Oracle

More information

Oracle RMAN for Absolute Beginners

Oracle RMAN for Absolute Beginners Oracle RMAN for Absolute Beginners Darl Kuhn Apress Contents About the Author Acknowledgments Introduction xvii xix xxi Chapter 1: Getting Started... 1 Connecting to Your Database 1 Establishing OS Variables

More information

Oracle Database 10g Migration to Automatic Storage Management. An Oracle White Paper August 2004

Oracle Database 10g Migration to Automatic Storage Management. An Oracle White Paper August 2004 Oracle Database 10g Migration to Automatic Storage Management An Oracle White Paper August 2004 Oracle Database 10g Migration to Automatic Storage Management Executive Overview... 3 Introduction... 3 Database

More information

White Paper. Using SVA SnapShot With Oracle June, 2001 TL-ENG-PRD-0477-A1 TL-ENG-PRD-0477-A01

White Paper. Using SVA SnapShot With Oracle June, 2001 TL-ENG-PRD-0477-A1 TL-ENG-PRD-0477-A01 White Paper Using SVA SnapShot With Oracle June, 2001 TL-ENG-PRD-0477-A1 TL-ENG-PRD-0477-A01 Table of Contents 1 Abstract... 5 2 Understanding SnapShot... 6 2.1 How Does SnapShot Work?...6 3 Architecture

More information

Implementation of Database Systems David Konopnicki Taub 715 Spring Sources

Implementation of Database Systems David Konopnicki Taub 715 Spring Sources Implementation of Database Systems 236510 David Konopnicki Taub 715 Spring 2000 1 2 Sources Oracle 7 Server Concepts - Oracle8i Server Concepts. Oracle Corp. Available on the course Web Site: http://www.cs.technion.ac.il/~cs236510

More information

ActiveImage Protector 2016R2SP1. Backup and Recovery of Oracle Database Second Edition - March 23, 2017

ActiveImage Protector 2016R2SP1. Backup and Recovery of Oracle Database Second Edition - March 23, 2017 ActiveImage Protector 2016R2SP1 Backup and Recovery of Oracle Database Second Edition - March 23, 2017 This user guide provides a description about backup and recovery procedures of Oracle database by

More information

Cloning an Oracle Database to the Same Server Using FlashCopy and VolumeCopy on DS3400, DS4000, and DS5000

Cloning an Oracle Database to the Same Server Using FlashCopy and VolumeCopy on DS3400, DS4000, and DS5000 Cloning an Oracle Database to the Same Server Using FlashCopy and VolumeCopy on DS3400, DS4000, and DS5000 Technical White Paper 40563-00 Rev B December 2009 Copyright 2009 by International Business Machines

More information

Explore the Oracle 10g database architecture. Install software with the Oracle Universal Installer (OUI)

Explore the Oracle 10g database architecture. Install software with the Oracle Universal Installer (OUI) Oracle DBA (10g, 11g) Training Course Content Introduction (Database Architecture) Describe course objectives Explore the Oracle 10g database architecture Installing the Oracle Database Software Explain

More information

Performing a 32 bit to 64 bit migration using the Transportable Database RMAN feature

Performing a 32 bit to 64 bit migration using the Transportable Database RMAN feature Performing a 32 bit to 64 bit migration using the Transportable Database RMAN feature This note describes the procedure used to perform a 32 bit to 64 bit conversion of an 11.2.0.3 database on the Linux

More information

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

Actual4Test.   Actual4test - actual test exam dumps-pass for IT exams Actual4Test http://www.actual4test.com Actual4test - actual test exam dumps-pass for IT exams Exam : 1z1-063 Title : Oracle Database 12c: Advanced Administration Vendor : Oracle Version : DEMO Get Latest

More information

TestsDumps. Latest Test Dumps for IT Exam Certification

TestsDumps.  Latest Test Dumps for IT Exam Certification TestsDumps http://www.testsdumps.com Latest Test Dumps for IT Exam Certification Exam : 1z1-067 Title : Upgrade Oracle9i/10g/11g OCA to Oracle Database 12c OCP Vendor : Oracle Version : DEMO 1 NO.1 Examine

More information

1-2 Copyright Ó Oracle Corporation, All rights reserved.

1-2 Copyright Ó Oracle Corporation, All rights reserved. 1-1 The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any

More information

Oracle 1Z0-053 Exam Questions & Answers

Oracle 1Z0-053 Exam Questions & Answers Oracle 1Z0-053 Exam Questions & Answers Number: 1Z0-053 Passing Score: 660 Time Limit: 120 min File Version: 38.8 http://www.gratisexam.com/ Oracle 1Z0-053 Exam Questions & Answers Exam Name: Oracle Database

More information

Basics of SQL Transactions

Basics of SQL Transactions www.dbtechnet.org Basics of SQL Transactions Big Picture for understanding COMMIT and ROLLBACK of SQL transactions Files, Buffers,, Service Threads, and Transactions (Flat) SQL Transaction [BEGIN TRANSACTION]

More information

Oracle 1Z Oracle Database 10g: Administration II. Download Full Version :

Oracle 1Z Oracle Database 10g: Administration II. Download Full Version : Oracle 1Z0-043 Oracle Database 10g: Administration II Download Full Version : https://killexams.com/pass4sure/exam-detail/1z0-043 QUESTION: 172 You lost the index tablespace in your database. You decided

More information

Imagination To Realization

Imagination To Realization Imagination To Realization Database Disaster Recovery and More Presented by: Stephen Rea University of Arkansas Cooperative Extension Service April 3, 2006 Monday 3:30 PM April 2-5 Orlando, Florida Session

More information

Oracle Database 11g: Administration I

Oracle Database 11g: Administration I Oracle 1z0-052 Oracle Database 11g: Administration I Version: 7.0 Topic 1, Volume A Oracle 1z0-052 Exam QUESTION NO: 1 You notice that the performance of the database has degraded because of frequent checkpoints.

More information

Managing an Oracle Instance

Managing an Oracle Instance Managing an Oracle Instance Date: 07.10.2009 Instructor: SL. Dr. Ing. Ciprian Dobre 1 Objectives After completing this lesson, you should be able to do the following: Create and manage initialization parameter

More information

NEC istorage Series Disk Array Guide for Oracle Storage Compatibility Program Snapshot Technologies

NEC istorage Series Disk Array Guide for Oracle Storage Compatibility Program Snapshot Technologies NEC istorage Series Disk Array Guide for Oracle Storage Compatibility Program Snapshot Technologies is-wp-01-002 Rev. 1.00 Aug. 2001 NEC Solutions NEC Corporation Copyright 2001 NEC Corporation. All rights

More information

ORACLE DBA TRAINING IN BANGALORE

ORACLE DBA TRAINING IN BANGALORE ORACLE DBA TRAINING IN BANGALORE TIB ACADEMY #5/3 BEML LAYOUT, VARATHUR MAIN ROAD KUNDALAHALLI GATE, BANGALORE 560066 PH: +91-9513332301/2302 WWW.TRAININGINBANGALORE.COM Oracle DBA Training Syllabus Introduction

More information

CHAPTER. Planning and Managing Tablespaces

CHAPTER. Planning and Managing Tablespaces CHAPTER 3 Planning and Managing Tablespaces 62 Oracle Database 12c DBA Handbook How a DBA configures the layout of the tablespaces in a database directly affects the performance and manageability of the

More information

ORACLE 11gR2 DBA. by Mr. Akal Singh ( Oracle Certified Master ) COURSE CONTENT. INTRODUCTION to ORACLE

ORACLE 11gR2 DBA. by Mr. Akal Singh ( Oracle Certified Master ) COURSE CONTENT. INTRODUCTION to ORACLE ORACLE 11gR2 DBA by Mr. Akal Singh ( Oracle Certified Master ) INTRODUCTION to ORACLE COURSE CONTENT Exploring the Oracle Database Architecture List the major architectural components of Oracle Database

More information

Data Guard: Setup and Administration. By Ashok Kapur Hawkeye Technology, Inc.

Data Guard: Setup and Administration. By Ashok Kapur Hawkeye Technology, Inc. Data Guard: Setup and Administration By Ashok Kapur. Agenda Introduction New Features Logical and Physical Standby Databases Setup Physical and Logical Standby Databases Administration including Switchover

More information

Recovery Manager Concepts

Recovery Manager Concepts Recovery Manager Concepts Joseph S Testa Data Management Consulting (64) 79-9000 Ohio Oracle Users Group Apr 2003 Introduction Who is using RMAN for backup/recovery? Have you tested your recovery scenarios?

More information

Oracle. Exam Questions 1Z Oracle Database 11g: Administration I. Version:Demo

Oracle. Exam Questions 1Z Oracle Database 11g: Administration I. Version:Demo Oracle Exam Questions 1Z0-052 Oracle Database 11g: Administration I Version:Demo 1. You notice that the performance of the database has degraded because of frequent checkpoints. Which two actions resolve

More information

DumpsKing. Latest exam dumps & reliable dumps VCE & valid certification king

DumpsKing.   Latest exam dumps & reliable dumps VCE & valid certification king DumpsKing http://www.dumpsking.com Latest exam dumps & reliable dumps VCE & valid certification king Exam : 1z1-062 Title : Oracle Database 12c: Installation and Administration Vendor : Oracle Version

More information

Lesson 2 RMAN Architecture

Lesson 2 RMAN Architecture RMAN Architecture 2.1 Lesson 2 RMAN Architecture An introduction to the architecture and components used by the RMAN utility. SKILLBUILDERS Author: Dave Anderson, SkillBuilders RMAN Architecture 2.2 2.2

More information

A. Automatic memory management is disabled because PGA_AGGREGATE_TARGET and SGA_TARGET are not set.

A. Automatic memory management is disabled because PGA_AGGREGATE_TARGET and SGA_TARGET are not set. Volume: 148 Questions Question No : 1 memory_target big integer 808M pga_aggregate_target big integer 0 sga_target big integer 0 SQL> SHOW PARAMETER SGA_MAX_SIZE NAME TYPE VALUE sga_max_size big integer

More information

Creating an Oracle Database

Creating an Oracle Database 2 Creating an Oracle Database This chapter discusses the process of creating an Oracle database, and contains the following topics: Considerations Before Creating a Database Using the Database Configuration

More information

A. connecting to the target database and a recovery catalog to execute the duplicate command

A. connecting to the target database and a recovery catalog to execute the duplicate command Volume: 175 Questions Question No : 1 Which two are prerequisites for creating a backup-based duplicate database? A. connecting to the target database and a recovery catalog to execute the duplicate command

More information

EVault InfoStage 5.6 Oracle Plug-In for Solaris and Windows. Installation & Configuration Guide

EVault InfoStage 5.6 Oracle Plug-In for Solaris and Windows. Installation & Configuration Guide EVault InfoStage 5.6 Oracle Plug-In for Solaris and Windows Installation & Configuration Guide August 2006 This manual describes the installation and configuration of the EVault InfoStage Oracle Plug-In

More information

Oracle Database 11g Data Guard

Oracle Database 11g Data Guard Oracle Database 11g Data Guard Overview This course introduces the delegate to the main architectural concepts of Data Guard. Delegates will learn how to use Oracle Data Guard to protect Oracle Databases

More information

Oracle Exam 11gocmu Oracle Database 11g Certified Master Upgrade Exam Version: 4.0 [ Total Questions: 671 ]

Oracle Exam 11gocmu Oracle Database 11g Certified Master Upgrade Exam Version: 4.0 [ Total Questions: 671 ] s@lm@n Oracle Exam 11gocmu Oracle Database 11g Certified Master Upgrade Exam Version: 4.0 [ Total Questions: 671 ] Topic break down Topic No. of Questions Topic 1: Pool 1 112 Topic 2: Pool 2 100 Topic

More information

Oracle 1Z0-052 Exam Questions and Answers (PDF) Oracle 1Z0-052 Exam Questions 1Z0-052 BrainDumps

Oracle 1Z0-052 Exam Questions and Answers (PDF) Oracle 1Z0-052 Exam Questions 1Z0-052 BrainDumps Oracle 1Z0-052 Dumps with Valid 1Z0-052 Exam Questions PDF [2018] The Oracle 1Z0-052 Oracle Database 11g: Administration Workshop I exam is an ultimate source for professionals to retain their credentials

More information

Exam 1Z0-061 Oracle Database 12c: SQL Fundamentals

Exam 1Z0-061 Oracle Database 12c: SQL Fundamentals Exam 1Z0-061 Oracle Database 12c: SQL Fundamentals Description The SQL Fundamentals exam is intended to verify that certification candidates have a basic understanding of the SQL language. It covers the

More information

Managing Oracle Real Application Clusters. An Oracle White Paper January 2002

Managing Oracle Real Application Clusters. An Oracle White Paper January 2002 Managing Oracle Real Application Clusters An Oracle White Paper January 2002 Managing Oracle Real Application Clusters Overview...3 Installation and Configuration...3 Oracle Software Installation on a

More information

Projects. Corporate Trainer s Profile. CMM (Capability Maturity Model) level Project Standard:- TECHNOLOGIES

Projects. Corporate Trainer s Profile. CMM (Capability Maturity Model) level Project Standard:- TECHNOLOGIES Corporate Trainer s Profile Corporate Trainers are having the experience of 4 to 12 years in development, working with TOP CMM level 5 comapnies (Project Leader /Project Manager ) qualified from NIT/IIT/IIM

More information

Oracle Database Administration

Oracle Database Administration A Active (Current) and Inactive Redo Log Files... 12:8 Alert and Trace Log Files... 1:34 Alert Log Files... 1:34 ALTER TABLE Statement - Reasons for using... 9:18 ALTER TABLESPACE... 7:23 Application Development...

More information

Chapter 14: Backing up the Oracle Database Tapies covered in this section. Backup Overview. How often should backups be performed?

Chapter 14: Backing up the Oracle Database Tapies covered in this section. Backup Overview. How often should backups be performed? Chapter 14: Backing up the Oracle Database Tapies covered in this section Backup Overview + Planning Database Backup + Causes of System Failure Backup Considerations Types of Backup + Hot Backup + Cold

More information

MySQL Architecture and Components Guide

MySQL Architecture and Components Guide Guide This book contains the following, MySQL Physical Architecture MySQL Logical Architecture Storage Engines overview SQL Query execution InnoDB Storage Engine MySQL 5.7 References: MySQL 5.7 Reference

More information

Introduction to Oracle

Introduction to Oracle Introduction to Oracle Architecture Client-server system Server: SERVEDB, Internal addess (from the lab) servedb.ing.man External address (from home with OpenVPN) 10.17.2.91 Client: Web interface: http://

More information

Introduction. Storage Failure Recovery Logging Undo Logging Redo Logging ARIES

Introduction. Storage Failure Recovery Logging Undo Logging Redo Logging ARIES Introduction Storage Failure Recovery Logging Undo Logging Redo Logging ARIES Volatile storage Main memory Cache memory Nonvolatile storage Stable storage Online (e.g. hard disk, solid state disk) Transaction

More information

Architecture. Architecture. Introduction to Oracle 10g Express Edition. Help

Architecture. Architecture. Introduction to Oracle 10g Express Edition. Help Architecture Introduction to Oracle 10g Express Edition Client-server system Server: SERVEDB, Internal addess (from the lab) 192.168.0.252 External address (from home with OpenVPN) 10.17.2.91 Client: Web

More information

SQL*Plus. Backup and Recovery Concepts. Release 2(9.2) March 2002 Part No. A

SQL*Plus. Backup and Recovery Concepts. Release 2(9.2) March 2002 Part No. A SQL*Plus Backup and Recovery Concepts Release 2(9.2) March 2002 Part No. A96519-01 Oracle9i Backup and Recovery Concepts, Release 2 (9.2) Part No. A96519-01 Copyright 2001, 2002 Oracle Corporation. All

More information

Lab4 - Managing Database Storage Structures Using Enterprise Manager Database Express

Lab4 - Managing Database Storage Structures Using Enterprise Manager Database Express Lab4 - Managing Database Storage Structures Using Enterprise Manager Database Express Contents Managing Database Storage Structures Using Enterprise Manager Database Express... 1 Overview... 2 Configuring

More information

Oracle Architectural Components

Oracle Architectural Components Oracle Architectural Components Date: 14.10.2009 Instructor: Sl. Dr. Ing. Ciprian Dobre 1 Overview of Primary Components User process Shared Pool Instance SGA Server process PGA Library Cache Data Dictionary

More information

Oracle 1Z Oracle 9i: New Features for Administrators. Download Full Version :

Oracle 1Z Oracle 9i: New Features for Administrators. Download Full Version : Oracle 1Z0-030 Oracle 9i: New Features for Administrators Download Full Version : https://killexams.com/pass4sure/exam-detail/1z0-030 QUESTION: 204 Which two statements regarding an external table are

More information

Technical White Paper August Migrating to Oracle 11g Using Data Replicator Software with Transportable Tablespaces

Technical White Paper August Migrating to Oracle 11g Using Data Replicator Software with Transportable Tablespaces Technical White Paper August 2010 Migrating to Oracle 11g Using Data Replicator Software with Transportable Tablespaces Migrating to Oracle 11g Using DRS with Transportable Tablespaces Contents Contents...

More information

Installing the Oracle Database Softwar

Installing the Oracle Database Softwar Contents chapter 1:Architecture Oracle Database Architecture Database Structures Oracle Memory Structures Process Structures Oracle Instance Management Server Process and Database Buffer Cache Physical

More information

How to Recover the lost current control file, or the current control file is inconsistent with files that you need to recover??

How to Recover the lost current control file, or the current control file is inconsistent with files that you need to recover?? How to Recover the lost current control file, or the current control file is inconsistent with files that you need to recover?? If it is multiplexed then replace the lost one with the available one else

More information

Electronic Presentation

Electronic Presentation Oracle9i DBA Fundamentals I Electronic Presentation D11321GC10 Production 1.0 May 2001 D32645 I-1 Copyright Oracle Corporation, 2001. All rights reserved. I Introduction Copyright Oracle Corporation, 2001.

More information

Tablespace Usage By Schema In Oracle 11g Query To Check Temp

Tablespace Usage By Schema In Oracle 11g Query To Check Temp Tablespace Usage By Schema In Oracle 11g Query To Check Temp The APPS schema has access to the complete Oracle E-Business Suite data model. E-Business Suite Release 12.2 requires an Oracle database block

More information

The Oracle DBMS Architecture: A Technical Introduction

The Oracle DBMS Architecture: A Technical Introduction BY DANIEL D. KITAY The Oracle DBMS Architecture: A Technical Introduction As more and more database and system administrators support multiple DBMSes, it s important to understand the architecture of the

More information

Question: 1 Identify three components of an Oracle instance for which you can change the size dynamically. (Choose three.)

Question: 1 Identify three components of an Oracle instance for which you can change the size dynamically. (Choose three.) Question: 1 Identify three components of an Oracle instance for which you can change the size dynamically. (Choose three.) A. Java Pool B. Large Pool C. Shared Pool D. Redo Log Buffer E. Database Buffer

More information

Exam : Oracle 1Z0 043

Exam : Oracle 1Z0 043 Exam : Oracle 1Z0 043 Title : oracle database 10g:administration ii Update : Demo http://www.killtest.com 1. You have set the value of the NLS_TIMESTAMP_TZ_FORMAT parameter in the parameter file to YYYY

More information

Index. ALLOCATE AUXILIARY CHANNEL command, Page numbers ending in f refer to figures. Page numbers ending in t refer to tables.

Index. ALLOCATE AUXILIARY CHANNEL command, Page numbers ending in f refer to figures. Page numbers ending in t refer to tables. Page numbers ending in f refer to figures. Page numbers ending in t refer to tables. A ALLOCATE AUXILIARY CHANNEL command, 154 ALLOCATE CHANNEL command, 108 ALLOCATE CHANNEL FOR MAINTENANCE command, 109

More information

"Charting the Course... Oracle 18c DBA I (5 Day) Course Summary

Charting the Course... Oracle 18c DBA I (5 Day) Course Summary Course Summary Description This course provides a complete, hands-on introduction to Oracle Database Administration including the use of Enterprise Manager Database Express (EMDE), SQL Developer and SQL*Plus.

More information

Insanity: doing the same thing over and over again and expecting different results. Nice Proverb

Insanity: doing the same thing over and over again and expecting different results. Nice Proverb Insanity: doing the same thing over and over again and expecting different results. Nice Proverb No back up was taken after reset logs. How to recover the database? Solution It s possible, I have tried

More information

Databases Clone using ACFS. Infrastructure at your Service.

Databases Clone using ACFS. Infrastructure at your Service. Infrastructure at your Service. About me Infrastructure at your Service. David Hueber COO Principal Consultant +41 79 963 43 68 david.hueber[at]dbi-services.com Page 2 Who we are dbi services Experts At

More information

Standby Database. Release 7.3. Sajjad Masud Jasmin Nakic Brian Quigley Lawrence To. Center of Expertise Worldwide Customer Support Oracle Corporation

Standby Database. Release 7.3. Sajjad Masud Jasmin Nakic Brian Quigley Lawrence To. Center of Expertise Worldwide Customer Support Oracle Corporation Technical Reports Compendium II, 1996 Technical Report Release 7.3 Sajjad Masud Jasmin Nakic Brian Quigley Lawrence To Center of Expertise Worldwide Customer Support Oracle Corporation August 1996 Oracle

More information

NTFS Recoverability. CS 537 Lecture 17 NTFS internals. NTFS On-Disk Structure

NTFS Recoverability. CS 537 Lecture 17 NTFS internals. NTFS On-Disk Structure NTFS Recoverability CS 537 Lecture 17 NTFS internals Michael Swift PC disk I/O in the old days: Speed was most important NTFS changes this view Reliability counts most: I/O operations that alter NTFS structure

More information

Arcserve Backup for Windows

Arcserve Backup for Windows Arcserve Backup for Windows Agent for Sybase Guide r17.0 This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation

More information

"Charting the Course... Oracle 18c DBA I (3 Day) Course Summary

Charting the Course... Oracle 18c DBA I (3 Day) Course Summary Oracle 18c DBA I (3 Day) Course Summary Description This course provides a complete, hands-on introduction to Oracle Database Administration including the use of Enterprise Manager (EMDE), SQL Developer

More information

CLIENT TRANSPORT USING R3TRANS

CLIENT TRANSPORT USING R3TRANS CLIENT TRANSPORT USING R3TRANS V 1.0 By Huseyin BILGEN Copyright 2001-2002. Page 1 of 15 Introduction In some special cases of SAP R/3 Projects, Production Client may need to be transferred into Test System

More information

1z z0-060 Upgrade to Oracle Database 12c

1z z0-060 Upgrade to Oracle Database 12c 1z0-060 Number: 1z0-060 Passing Score: 800 Time Limit: 120 min File Version: 7.1 1z0-060 Upgrade to Oracle Database 12c Exam A QUESTION 1 Your multitenant container (CDB) contains two pluggable databases

More information

Oracle Database Upgrade, Migration & Transformation Tips & Techniques Chapter 5

Oracle Database Upgrade, Migration & Transformation Tips & Techniques Chapter 5 Oracle Database Upgrade, Migration & Transformation Tips & Techniques Chapter 5 CHECKLIST 5-1 Migration Preparation Operations 1 Capture database file metadata 2 Verify COMPATIBLE setting 3 Create INCREMENTAL

More information

ROLLBACK SEGMENTS. In this chapter, you will learn about: Rollback Segment Management Page 272

ROLLBACK SEGMENTS. In this chapter, you will learn about: Rollback Segment Management Page 272 C H A P T E R 1 2 ROLLBACK SEGMENTS CHAPTER OBJECTIVES In this chapter, you will learn about: Rollback Segment Management Page 272 The information in a rollback segment is used for query read consistency,

More information

Backing up or Exporting Databases Using mysqldump

Backing up or Exporting Databases Using mysqldump Despite the steps you take to secure and protect your databases, events such as power failures, natural disasters, and equipment failure can lead to the corruption and loss of data. As a result, one of

More information

Internals of Active Dataguard. Saibabu Devabhaktuni

Internals of Active Dataguard. Saibabu Devabhaktuni Internals of Active Dataguard Saibabu Devabhaktuni PayPal DB Engineering team Sehmuz Bayhan Our visionary director Saibabu Devabhaktuni Sr manager of DB engineering team http://sai-oracle.blogspot.com

More information

Oracle 1Z Oracle Database 11g- Administrator I. Download Full Version :

Oracle 1Z Oracle Database 11g- Administrator I. Download Full Version : Oracle 1Z1-052 Oracle Database 11g- Administrator I Download Full Version : https://killexams.com/pass4sure/exam-detail/1z1-052 QUESTION: 153 User SCOTT executes the following command on the EMP table

More information

Oracle 1Z0-235 Exam Questions & Answers

Oracle 1Z0-235 Exam Questions & Answers Oracle 1Z0-235 Exam Questions & Answers Number: 1z0-235 Passing Score: 800 Time Limit: 120 min File Version: 26.5 http://www.gratisexam.com/ Oracle 1Z0-235 Exam Questions & Answers Exam Name: Oracle 11i

More information

Setting Up Oracle for Prime Fulfillment

Setting Up Oracle for Prime Fulfillment APPENDIXA This appendix describes how to set up an Oracle Database 11g, Enterprise Edition Release 11.2.0.1.0-64 bit Production server that works with Cisco Prime Fulfillment. This appendix is written

More information

LOGGING OR NOLOGGING THAT IS THE QUESTION. By: Francisco Munoz Alvarez

LOGGING OR NOLOGGING THAT IS THE QUESTION. By: Francisco Munoz Alvarez LOGGING OR NOLOGGING THAT IS THE QUESTION By: Francisco Munoz Alvarez LOGGING OR NOLOGGING : THAT IS THE QUESTION Francisco Munoz Alvarez Oracle ACE Director CLOUG (Chilean Oracle Users Group) President

More information

Create an Oracle8i Database in Windows

Create an Oracle8i Database in Windows The following instructions apply to Oracle 8i. This document assumes that you are familiar with the administration and use of Oracle and that you meet all Prerequisites. Please refer to the documentation

More information

EVault Software Oracle Plug-In 5.6 for Solaris 6.5 for Windows. Installation & Configuration Guide

EVault Software Oracle Plug-In 5.6 for Solaris 6.5 for Windows. Installation & Configuration Guide EVault Software Oracle Plug-In 5.6 for Solaris 6.5 for Windows Installation & Configuration Guide March 2009 This manual describes the installation and configuration of the EVault Software Oracle Plug-In

More information

DEBUNKING THE MYTHS ABOUT REDO, UNDO, COMMIT AND ROLLBACK

DEBUNKING THE MYTHS ABOUT REDO, UNDO, COMMIT AND ROLLBACK DEBUNKING THE MYTHS ABOUT REDO, UNDO, COMMIT AND ROLLBACK Introduction This paper is to explore various misconceptions about redo generation, undo generation, commit and rollback operations. Scripts are

More information

Oracle.ActualTests.1Z0-023.v by.Ramon.151q

Oracle.ActualTests.1Z0-023.v by.Ramon.151q Oracle.ActualTests.1Z0-023.v2009-03-18.by.Ramon.151q Number: 1Z0-023 Passing Score: 800 Time Limit: 120 min File Version: 33.4 http://www.gratisexam.com/ Oracle 1z0-023 Exam Exam Name: Architecture and

More information

Notice the oratab file doesn t contain the new database name (BDEV). Add it to the file by using below command;

Notice the oratab file doesn t contain the new database name (BDEV). Add it to the file by using below command; Task: Clone BPROD to BDEV SOURCE: BPROD Target: BDEV Part of the DBA task is to clone databases. Please don t get confused between cloning and refresh. They aren t similar. The simple fact is, during cloning,

More information

How To Apply Archive Logs Manually In Standby Database Using Rman

How To Apply Archive Logs Manually In Standby Database Using Rman How To Apply Archive Logs Manually In Standby Database Using Rman Using Rman Active Duplicate to create a Standby from a standby. Posted by RMAN_. Let's create some Archivelogs in Primary Database so that

More information

Data Guard Configuration And Operation

Data Guard Configuration And Operation Configuration And Operation Author: G S Chapman Date: 18 th December 2007 Version: 1.3 Location of Document: i DOCUMENT HISTORY Version Date Changed By: Remarks 1.0 14/02/06 G S Chapman Original Version

More information

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

PASS4TEST. IT Certification Guaranteed, The Easy Way!  We offer free update service for one year PASS4TEST IT Certification Guaranteed, The Easy Way! \ http://www.pass4test.com We offer free update service for one year Exam : 1Z0-235 Title : Oracle 11i applications DBA:Fundamentals I Vendors : Oracle

More information

DATABASE DESIGN I - 1DL300

DATABASE DESIGN I - 1DL300 DATABASE DESIGN I - 1DL300 Spring 2011 An introductory course on database systems http://www.it.uu.se/edu/course/homepage/dbastekn/vt10/ Manivasakan Sabesan Uppsala Database Laboratory Department of Information

More information

Agent for Oracle. Arcserve Backup for Windows r17.5

Agent for Oracle. Arcserve Backup for Windows r17.5 Agent for Oracle Arcserve Backup for Windows r17.5 Legal Notices This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter referred to as the Documentation

More information

Recovery without Backup. All Data Lost?

Recovery without Backup. All Data Lost? An Overview and Field Report Igor Romansky Peter Jensch Trivadis GmbH, Stuttgart DOAG Regio-Treffen Stuttgart, July 21th 2016 BASLE BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA HAMBURG COPENHAGEN

More information