You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cloud-architecture/oracle-apps-erp/cyber-recovery-solution/files/Cyber-Recovery-Solution.md
+25-18Lines changed: 25 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,24 +2,26 @@
2
2
3
3
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.
4
4
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
+
6
7
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.
7
8
8
9
Owner: Bhaskar Ivaturi
9
10
10
-
## Deployment:
11
+
## Deployment
11
12
12
13
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.
13
14
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).
15
16
- 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.
20
21
21
22
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.
@@ -28,18 +30,19 @@ The following is an example run of the installer. This example shows how the ins
28
30
-walletDir /oracle/dbs/oci_wallet
29
31
-libDir /oracle/lib
30
32
-bucket db_backups
31
-
33
+
```
32
34
33
35
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.
34
36
37
+
```
35
38
RMAN> CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
36
39
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)’;
37
40
RMAN> CONFIGURE COMPRESSION ALGORITHM 'MEDIUM’;
38
41
RMAN> CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 4 BACKUP TYPE TO COMPRESSED BACKUPSET;
39
42
RMAN> CONFIGURE ENCRYPTION FOR DATABASE ON;
43
+
```
40
44
41
-
42
-
### Backup Destination:
45
+
### Backup Destination
43
46
44
47
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.
45
48
@@ -52,12 +55,13 @@ Define backup schedules and retention policies based on your requirements. You c
52
55
Initiate backups using OCBM commands or integrated RMAN (Recovery Manager) commands. OCBM seamlessly integrates with RMAN, providing familiar commands and workflows.
53
56
Monitor the progress and status of backup operations to ensure successful completion.
54
57
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.
56
59
57
60
##### Use Case 1: Implement a cyber recovery solution on Oracle Cloud Infrastructure
58
61
###### RMAN Scripts for backup and restore
59
62
###### Sample Backup script:
60
63
64
+
```
61
65
#!/bin/bash
62
66
#
63
67
W_SID=$1
@@ -74,10 +78,11 @@ Perform restore and recovery operations as needed. OCBM allows you to restore th
74
78
BACKUP AS COMPRESSED BACKUPSET ARCHIVELOG FROM TIME 'SYSDATE-1' FORCE FORMAT '%U-%d-OSS-DB-19-%I-%T';
##### Use Case 2: Create DR Using backup from Object Storage
161
+
156
162
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:
157
163
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.
159
165
- Please note that this bug is fixed starting from Oracle RDBMS version 19.1 onwards.
160
166
2) Create an XML file with backup information:
161
167
- 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
odbsrmt.py: ALL outputs have been written to [/u01/install/APPS/backup/duplicate.xml]
173
179
174
-
175
-
176
-
177
180
###### Script to duplicate standby database.
178
181
182
+
```
179
183
connect auxiliary /
180
184
set DECRYPTION identified by "<password>";
181
185
run {
@@ -185,15 +189,17 @@ By following these steps, the targetless duplication process can be performed su
185
189
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)';
186
190
duplicate target database for standby backup location from file '/u01/install/APPS/backup/duplicate.xml' nofilenamecheck;
187
191
}
192
+
```
188
193
189
194
*Reference doc: Perform RMAN Targetless Duplication Using Cloud (Oracle Database Backup Cloud Service) Backups (Doc ID 2454290.1)*
190
195
191
196
#### Validation/Testing
192
197
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.
194
199
195
200
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.
0 commit comments