Vous êtes sur la page 1sur 4

Cold Backup and Recovery From Archivelog - ORACLE-HELP 08/05/2019 17*52

Home / ARTICLES ∠ / ORACLE CLOUD ∠ / SCRIPTS / About

Have a question? Ask or enter a search term. " SEARCH

Categories
$ Cold Backup and Recovery
From Archivelog 51 ARTICLES

Autonomous Database
# / BACKUP AND RECOVERY / Cold Backup and
11
Recovery From Archivelog
BACKUP AND RECOVERY
79
August 26, 2018 ! Anuradha Mudgal 72 DATAGUARD

31 GOLDENGATE

Let’s have look on the steps used for Cold Backup and 24 MongoDB

Recovery From Archivelog. 29 Multitenant


Check the archive log status
23 ORA-ERRORS

1 SQL> archive log list; 31 ORACLE 11G


2 Database log mode No Archive Mode
3 Automatic archival Disabled 37 ORACLE 12C
4 Archive destination USE_DB_RECOVERY_FILE_DEST
5 Oldest online log sequence 6 66 ORACLE 12CR2
6 Current log sequence 8
45 Oracle 18c
Enable the archive logs 16 Oracle 19c

5 ORACLE APPS DBA


1 SQL> shutdown immediate;
2 Database closed.
35 ORACLE CLOUD
3 Database dismounted.
4 ORACLE instance shut down.
ORACLE DATABASE
5
6 SQL> startup mount; 95
7 ORACLE instance started. 38 ORACLE DBAAS
8 Total System Global Area 167772160 bytes
9 Fixed Size 1247876 bytes ORACLE HCM CLOUD
10 Variable Size 83887484 bytes
1
11 Database Buffers 75497472 bytes

http://oracle-help.com/backup-and-recovery/cold-backup-and-recovery-from-archivelog/ Página 1 de 8
Cold Backup and Recovery From Archivelog - ORACLE-HELP 08/05/2019 17*52

12 Redo Buffers 7139328 bytes 113 ORACLE RAC


13 Database mounted.
14 39 SCRIPTS
15 SQL> alter database archivelog;
16 Database altered.
17
18 SQL> alter database open;
19 Database altered. Oracle OCM 12C
20
21 SQL> archive log list;
22 Database log mode Archive Mode
23 Automatic archival Enabled
24 Archive destination USE_DB_RECOVERY_FILE_DEST
25 Oldest online log sequence 6
26 Next log sequence to archive 8
27 Current log sequence 8

create a table for the testing purpose Oracle Database 12c


Administrat…
Issuer: Oracle
1 SQL> create table Cold0_Backup(name varchar(100)) tablespace
Provided by
2 Table created.
3 Acclaim
4 SQL> insert into Cold0_Backup values('****** INSERTED BEFORE BACKUP *******'
5 1 row created.
6
7 SQL> commit;
8 Commit complete.

Shutdown the database and make of necessary files


ORANA

1 SQL> shutdown immediate;


2 Database closed.
3 Database dismounted.
4 ORACLE instance shut down.
5
6 D:\>mkdir D:\Cold0_Backup Top 60 Oracle
7 D:\>copy D:\oracle\product\10.2.0\oradata\OracleHelp\*
8 D:\oracle\product\10.2.0\oradata\OracleHelp\SYSAUX01.DBF Blogs
9 D:\oracle\product\10.2.0\oradata\OracleHelp\UNDOTBS01.DBF
10 D:\oracle\product\10.2.0\oradata\OracleHelp\CONTROL01.CTL
11 D:\oracle\product\10.2.0\oradata\OracleHelp\CONTROL02.CTL
12 D:\oracle\product\10.2.0\oradata\OracleHelp\CONTROL03.CTL
13 D:\oracle\product\10.2.0\oradata\OracleHelp\REDO01.LOG
14 D:\oracle\product\10.2.0\oradata\OracleHelp\REDO02.LOG
15 D:\oracle\product\10.2.0\oradata\OracleHelp\REDO03.LOG
16 D:\oracle\product\10.2.0\oradata\OracleHelp\TEMP01.DBF
17 D:\oracle\product\10.2.0\oradata\OracleHelp\SYSTEM01.DBF
18 D:\oracle\product\10.2.0\oradata\OracleHelp\TEST01.DBF
19 D:\oracle\product\10.2.0\oradata\OracleHelp\USERS01.DBF
20 12 file(s) copied.

Start the database and insert some records

1 SQL> startup;
2 ORACLE instance started.
3 Total System Global Area 167772160 bytes
4 Fixed Size 1247876 bytes
Latest Posts
5 Variable Size 83887484 bytes

http://oracle-help.com/backup-and-recovery/cold-backup-and-recovery-from-archivelog/ Página 2 de 8
Cold Backup and Recovery From Archivelog - ORACLE-HELP 08/05/2019 17*52

6 Database Buffers 75497472 bytes ∠ Upgrade Oracle DBA


7 Redo Buffers 7139328 bytes
8 Database mounted. 11g or 12c to 12c R2
9 Database opened. (1Z0-074)
10
11 SQL> insert into Cold0_Backup values('****** INSERTED AFTER BACKUP
∠ *******'
Password Based
12 1 row created.
13 Encryption in RMAN
14 SQL> commit; Backup
15 Commit complete.
∠ Oracle 19C Active
Shut down the database and remove user tablespace
Data Guard DML
Redirection Feature
1 SQL> shutdown immediate;
2 Database closed. ∠ Steps to Create,Drop
3 Database dismounted.
4 ORACLE instance shut down. and Flashback
5 Guaranteed restore
6 D:\>del D:\oracle\product\10.2.0\oradata\OracleHelp\USERS01
point in Dataguard
Start the database and make particular datafile offline
∠ Steps to recover
WebLogic Credential
1 SQL> startup;
2 ORACLE instance started. [OEM 12cR5]
3 Total System Global Area 167772160 bytes
4 Fixed Size 1247876 bytes
5 Variable Size 83887484 bytes
6 Database Buffers 75497472 bytes Archives
7 Redo Buffers 7139328 bytes
8 Database mounted.
9 ∠ May 2019 (2)
10 ORA-01157: cannot identify/lock data file 4 - see DBWR
11 ∠ April 2019 (10)
ORA-01110: data file 4: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORACLEHELP\USERS01.DBF'
12
13 SQL> alter database datafile 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORACLEHELP\USERS01.DBF'
∠ March 2019 (55)
14 Database altered.
15 ∠ February 2019 (26)
16 SQL> alter database open;
17 Database altered. ∠ January 2019 (3)
18
19 SQL> select * from Cold0_Backup;
∠ December 2018 (1)
20 select * from Cold0_Backup
21 ERROR at line 1:
22 ORA-00376: file 4 cannot be read at this time
∠ October 2018 (1)
23 ORA-01110: data file 4: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORACLEHELP\USERS01.DBF'
24 ∠ September 2018 (8)
25 D:\>copy D:\Cold0_Backup\USERS01.DBF D:\oracle\product\
26 1 file(s) copied. ∠ August 2018 (48)

Recover the datafile ∠ July 2018 (67)

∠ June 2018 (12)


1 SQL> recover datafile 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORACLEHELP\USERS01.DBF'
2 Media recovery complete. ∠ May 2018 (48)
3
4 SQL> alter database datafile 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORACLEHELP\USERS01.DBF'
∠ April 2018 (46)
5 Database altered.
6
∠ March 2018 (43)
7 SQL> select * from Cold0_Backup;

http://oracle-help.com/backup-and-recovery/cold-backup-and-recovery-from-archivelog/ Página 3 de 8
Cold Backup and Recovery From Archivelog - ORACLE-HELP 08/05/2019 17*52

8 NAME ∠ February 2018 (32)


9 --------------------------------------------------------
10 ****** INSERTED AFTER BACKUP ******* ∠ January 2018 (35)
11 ****** INSERTED BEFORE BACKUP *******
∠ December 2017 (27)
Today’s thought
∠ November 2017 (47)

Our goal is very simple to become the desktop for e- ∠ October 2017 (64)
businesses. Larry Ellison
∠ September 2017 (56)

Thank you for giving your valuable time to read the above ∠ August 2017 (55)

information. ∠ July 2017 (66)

∠ June 2017 (7)


If you want to be updated with all our articles send us the
Invitation or Follow us: ∠ May 2017 (8)

∠ March 2017 (34)


Telegram Channel: https://t.me/helporacle
∠ February 2017 (13)

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

Translate
Joel Perez’s LinkedIn: Joel Perez’s Profile
Selecione o idioma

LinkedIn Group: Oracle Cloud DBAAS Powered by Tradutor

Facebook Page: OracleHelp


Author

Share this:
Anuradha
  
Mudgal

Like this: More New Features in


Oracle Database 19c
Like
New Features of
Be the first to like this.
Performance Tuning in
Oracle Database 19c
Basic of RMAN Rolling Forward Hot Backup with
Backup and Standby Database RMAN in Oracle Arun Gupta
Recovery Scenario When Archives August 26, 2018
August 14, 2018 Missing In Primary In “BACKUP AND
In “BACKUP AND In 12c RECOVERY” MUST_RENAME_THIS_DATAFILE

RECOVERY” July 26, 2017 on RAC Standby


In “DATAGUARD”

http://oracle-help.com/backup-and-recovery/cold-backup-and-recovery-from-archivelog/ Página 4 de 8

Vous aimerez peut-être aussi