Skip to content

Commit 88af29a

Browse files
Update Cyber-Recovery-Solution.md
1 parent b4fd901 commit 88af29a

File tree

1 file changed

+25
-18
lines changed

1 file changed

+25
-18
lines changed

cloud-architecture/oracle-apps-erp/cyber-recovery-solution/files/Cyber-Recovery-Solution.md

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,26 @@
22

33
Cyber security has become an increasingly critical topic as malware and ransomware attacks continue to occur around the world. For mission-critical databases, such attacks leading to lost data and system downtime can have far-ranging impacts throughout the business in terms of revenue, operations, reputation, and even penalties.
44

5-
The purpose of Oracle Cloud Database Backup Service is to provide a secure, reliable, and cost-effective way to backup and recover Oracle Database workloads that are running in the cloud or on-premises. With this service, you can create backups of your databases and store them in Oracle Cloud Infrastructure Object Storage, which provides highly durable and scalable object storage.
5+
The purpose of Oracle Cloud Database Backup Service is to provide a secure, reliable, and cost-effective way to back up and recover Oracle Database workloads that are running in the cloud or on-premises. With this service, you can create backups of your databases and store them in Oracle Cloud Infrastructure Object Storage, which provides highly durable and scalable object storage.
6+
67
The service offers several benefits, including automated backups, point-in-time recovery, and backup retention policies. It enables you to quickly recover your data in case of data loss or corruption, and can also be used to migrate your databases to the cloud. Additionally, the service helps you meet your regulatory and compliance requirements by providing data encryption and secure backups.
78

89
Owner: Bhaskar Ivaturi
910

10-
## Deployment:
11+
## Deployment
1112

1213
Download and install the Oracle Cloud Backup Module on the database server(s) where your Oracle Database resides. The installation process typically involves running the provided installation scripts and configuring the necessary parameters.
1314

14-
- Download the Oracle Database Cloud Backup Module for OCI from Oracle Technology Network (OTN).
15+
- Download the Oracle Database Cloud Backup Module for OCI from Oracle Technology Network (OTN).
1516
- Accept the license agreement, click All Supported Platforms, and provide your OTN username and password when prompted. Then download the ZIP file that contains the installer (opc_installer.zip) to your system.
16-
- Extract the contents of the zip file.
17-
- The file contains two directories, oci_installer (for Oracle Cloud Infrastructure) and opc_installer (for Oracle Cloud Infrastructure Classic), and a README file.
18-
- To use Oracle Database Backup Cloud Service for Oracle database backups, you'll need to install the appropriate backup module needed for cloud backups.
19-
- Run the installer, oci_install.jar, from the oci_installer directory. Provide the required parameters in one line, with each parameter preceded by a hyphen and followed by its value.
17+
- Extract the contents of the zip file.
18+
- The file contains two directories, oci_installer (for Oracle Cloud Infrastructure) and opc_installer (for Oracle Cloud Infrastructure Classic), and a README file.
19+
- To use Oracle Database Backup Cloud Service for Oracle database backups, you'll need to install the appropriate backup module needed for cloud backups.
20+
- Run the installer, oci_install.jar, from the oci_installer directory. Provide the required parameters in one line, with each parameter preceded by a hyphen and followed by its value.
2021

2122
The following is an example run of the installer. This example shows how the installer automatically downloads the Oracle Database Cloud Backup Module for OCI for your operating system, creates a wallet that contains Oracle Database Backup Cloud Service identifiers and credentials, creates the backup module configuration file, and downloads the library necessary for backups and restores to Oracle Cloud Infrastructure.
2223

24+
```
2325
%java -jar oci_install.jar -host https://objectstorage.<region>.oraclecloud.com
2426
-pvtKeyFile /oracle/dbs/oci_wallet/oci_pvt
2527
-pubFingerPrint xx:10:06:b1:fb:24:xx:xx:46:21:16:20:00:xx:xx:00
@@ -28,18 +30,19 @@ The following is an example run of the installer. This example shows how the ins
2830
-walletDir /oracle/dbs/oci_wallet
2931
-libDir /oracle/lib
3032
-bucket db_backups
31-
33+
```
3234

3335
After installing the backup module, you'll configure the settings that will be used for backup and recovery operations. When using Recovery Manager (RMAN) for backup and recovery operations with Oracle Database Backup Cloud Service, you must configure your RMAN environment.
3436

37+
```
3538
RMAN> CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
3639
RMAN> CONFIGURE CHANNEL DEVICE TYPE sbt PARMS='SBT_LIBRARY=location-of-the-SBT-library-for-the-backup-module, SBT_PARMS=(OPC_PFILE=location-of-the-configuration file)’;
3740
RMAN> CONFIGURE COMPRESSION ALGORITHM 'MEDIUM’;
3841
RMAN> CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 4 BACKUP TYPE TO COMPRESSED BACKUPSET;
3942
RMAN> CONFIGURE ENCRYPTION FOR DATABASE ON;
43+
```
4044

41-
42-
### Backup Destination:
45+
### Backup Destination
4346

4447
Create an Oracle Cloud Infrastructure Object Storage bucket to serve as the backup destination. This bucket will store the backup files securely in the Oracle Cloud.
4548

@@ -52,12 +55,13 @@ Define backup schedules and retention policies based on your requirements. You c
5255
Initiate backups using OCBM commands or integrated RMAN (Recovery Manager) commands. OCBM seamlessly integrates with RMAN, providing familiar commands and workflows.
5356
Monitor the progress and status of backup operations to ensure successful completion.
5457

55-
Perform restore and recovery operations as needed. OCBM allows you to restore the database to a specific point in time using backups stored in OCI Object Storage. Use the RMAN shell scripts for the seamless restore operations.
58+
Perform restore and recovery operations as needed. OCBM allows you to restore the database to a specific point in time using backups stored in OCI Object Storage. Use the RMAN shell scripts for seamless restore operations.
5659

5760
##### Use Case 1: Implement a cyber recovery solution on Oracle Cloud Infrastructure
5861
###### RMAN Scripts for backup and restore
5962
###### Sample Backup script:
6063

64+
```
6165
#!/bin/bash
6266
#
6367
W_SID=$1
@@ -74,10 +78,11 @@ Perform restore and recovery operations as needed. OCBM allows you to restore th
7478
BACKUP AS COMPRESSED BACKUPSET ARCHIVELOG FROM TIME 'SYSDATE-1' FORCE FORMAT '%U-%d-OSS-DB-19-%I-%T';
7579
}
7680
EOF
77-
81+
```
7882

7983
###### Sample Restore script:
8084

85+
```
8186
#!/bin/bash
8287
###############################################################################
8388
# $Header: db_restore.sh v0.1 - DB Restore $
@@ -150,12 +155,13 @@ Perform restore and recovery operations as needed. OCBM allows you to restore th
150155
srvctl stop database -d $ORACLE_UNQNAME
151156
srvctl start database -d $ORACLE_UNQNAME -o "read only"
152157
srvctl status database -d $ORACLE_UNQNAME -v
153-
158+
```
154159

155160
##### Use Case 2: Create DR Using backup from Object Storage
161+
156162
To perform targetless duplication in RMAN without connecting to the source database or catalog, the BACKUP LOCATION clause is used. However, this method is only applicable when the source database backups are stored in a DISK location. If the source database utilizes Oracle Database Backup Cloud Service (e.g., ZDM or EBS Cloud Manager) for cloud backups, the following steps need to be followed:
157163
1) Apply one-off patch 26082402:
158-
- For Oracle RDBMS versions 12c and later, it is necessary to apply the patch 26082402.
164+
- For Oracle RDBMS versions 12c and later, it is necessary to apply patch 26082402.
159165
- Please note that this bug is fixed starting from Oracle RDBMS version 19.1 onwards.
160166
2) Create an XML file with backup information:
161167
- On the destination database server, execute the odbsrmt.py script (bundled along with the libopc.so library file).
@@ -171,11 +177,9 @@ By following these steps, the targetless duplication process can be performed su
171177
cloud_slave_processors: Thread Thread_0 successfully done
172178
odbsrmt.py: ALL outputs have been written to [/u01/install/APPS/backup/duplicate.xml]
173179

174-
175-
176-
177180
###### Script to duplicate standby database.
178181

182+
```
179183
connect auxiliary /
180184
set DECRYPTION identified by "<password>";
181185
run {
@@ -185,15 +189,17 @@ By following these steps, the targetless duplication process can be performed su
185189
ALLOCATE AUXILIARY CHANNEL aux4 DEVICE TYPE SBT parms='SBT_LIBRARY=/u01/install/APPS/backup/lib/libopc.so, ENV=(OPC_PFILE=/u01/install/APPS/backup/opcdbbkp.ora)';
186190
duplicate target database for standby backup location from file '/u01/install/APPS/backup/duplicate.xml' nofilenamecheck;
187191
}
192+
```
188193

189194
*Reference doc: Perform RMAN Targetless Duplication Using Cloud (Oracle Database Backup Cloud Service) Backups (Doc ID 2454290.1)*
190195

191196
#### Validation/Testing
192197

193-
Test Scenario – This script, named validation.sql, runs the validation queries while connected as sysdba. It provides a comprehensive validation report for the target database after the restore process. The script sets various SQL*Plus settings to control output formatting and executes the necessary queries. The results include information such as the PDB name, current date, database name, open mode, database status, logins, and status of distinct datafiles, tablespaces, tempfiles, and datafiles. It also reports the number of invalid objects and the count of recoverable files.
198+
Test Scenario – This script, named validation.sql, runs the validation queries while connected as sysdba. It provides a comprehensive validation report for the target database after the restore process. The script sets various SQL*Plus settings to control output formatting and executes the necessary queries. The results include information such as the PDB name, current date, database name, open mode, database status, logins, and status of distinct datafiles, tablespaces, temp files, and data files. It also reports the number of invalid objects and the count of recoverable files.
194199

195200
Executing this script ensures a thorough validation of the restored database, enabling confirmation of a successful restore operation and providing critical information for further testing and analysis.
196201

202+
```
197203
#!/bin/bash
198204
###############################################################################
199205
# $Header: validation.sql - DB Restore $
@@ -244,6 +250,7 @@ Executing this script ensures a thorough validation of the restored database, en
244250
select 'Recover_Files:'||count(*) from v\$recover_file;
245251
246252
EOF
253+
```
247254

248255

249256

0 commit comments

Comments
 (0)