Sunday, December 11, 2022

How to install OCI Cloud backup module


1.       Download cloud backup module

Oracle cloud backup module can be downloaded from below link

https://www.oracle.com/database/technologies/oracle-cloud-backup-downloads.html

2.       Transfer it to corresponding OCI host using Winscp or any other utilities

Change the ownership of zip file like below

               Chown oracle:dba opc_installer.zip

3.       Unzip the installer

unzip opc_installer.zip

Above command will create following 2 directories under opc_installer directory

opc_installer

oci_installer

We need to focus on oci_installer directory which contain extracted jar file

4.       Pre-requiste before executing install command using jar

i)                    JDK 1.6 or higher must be installed in the server.We can check version like below

Java -version

ii)                  To install this we need to create an API signing keys and store under /home/oracle/.oci directory

If .oci directory is not present then create it like below

mkdir -p /home/oracle/.oci

 

Follow below procedure to create API signing key and config file

Click on the user who will be installing the cloud backup module.You can choose your user account also if you are installing.


Under resource tab click API keys link.Her you can see a key is already present which were created for this incident.



Click on add api key it will allow you to download they key in your local machine and then click on add button which will be shown in cloud console like above.Please make sure you select right region in the console for this request.



Now transfer this private key to oci host and copy under /home/oracle/.oci and rename like oci_api_keyfile.pem

Use the command chmod go-rwx /home/oracle/.oci/oci_api_keyfile.pem to set the permissions on the file so that no other user can read/write the file.

 Click on 3 dots for the API key you have created and you can see view configuration file.Copy the contents and create a file called config under /home/oracle/config and paste it.Change key_file parameter to locate right path of the key(in this case it will be /home/oracle/.oci/oci_api_key.pem).This information is required by the installer so that it can authenticate with private key we have created.

 

5.       Run the installer

 

Use below command to run the installer

It is recommended to create separate wallet directory as below highlighted directory holds wallet for TDE

oracle@phxwltdb09 oci_installer]$ java -jar oci_install.jar -host https://objectstorage.us-phoenix-1.oraclecloud.com \

-pvtKeyFile /home/oracle/.oci/oci_api_keyfile.pem \

 -pubFingerPrint **********  \

-uOCID ************************* \

 -tOCID **************************\

-walletDir /opt/oracle/dcs/commonstore/wallets \

-libDir /opt/oracle/dcs/commonstore/oss
Oracle Database Cloud Backup Module Install Tool, build 19.3.0.0.0DBBKPCSBP_2019-10-16
Oracle Database Cloud Backup Module credentials are valid.
Oracle Database Cloud Backup Module wallet created in directory /opt/oracle/dcs/commonstore/wallets
Oracle Database Cloud Backup Module initialization file /u01/app/oracle/product/19.0.0.0/dbhome_3/dbs/opc<DBNAME>.ora created.
Downloading Oracle Database Cloud Backup Module Software Library from Oracle Cloud Infrastructure.
Download complete.

 

 

 


No comments:

Post a Comment

When SQL plan baseline is not used

 Thank you very much for your interest. Problem Statement: Lets assume you are reported about an application query running slow in one envir...