0% found this document useful (0 votes)
24 views13 pages

4 Installing Backup Module

Uploaded by

Kishore Adikar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views13 pages

4 Installing Backup Module

Uploaded by

Kishore Adikar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Author – A.

Kishore
http://www.appsdba.info

CONTENTS

Installation of backup module...........................................................................................................................2


Create Object Storage Bucket...........................................................................................................................2
Download Cloud Backup Module......................................................................................................................4
Get the compartment ocid..........................................................................................................................12
Replace which are marked in yellow...........................................................................................................14
Author – A.Kishore
http://www.appsdba.info

INSTALLATION OF BACKUP MODULE

CREATE OBJECT STORAGE BUCKET

Tasks

1. Create a Storage Bucket. Log in to the OCI console, go to the main menu, and select

Object Storage.

2. Click Create Bucket and call the new bucket “BackupBucket”. Leave all other parameters as default.
Author – A.Kishore
http://www.appsdba.info

3. Initial preparations for installing Oracle Database Backup Module in On-Premises VM and

OCI VM:
Author – A.Kishore
http://www.appsdba.info

DOWNLOAD CLOUD BACKUP MODULE

a. Connect to On-Prem VM as the oracle user.

Cloud Backup Module from Oracle Technology Network (OTN) using the following link:

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

4. Copy Oracle Database Backup Module file from On-Prem VM to OCI VM and install the Backup
Module on the Cloud VM.

a. Connect to On-Prem VM as the oracle user and open the terminal.

b. Extract the contents of the opc_installer.zip file. This contains the installer file

oci_install.jar and a README file.

a. Copy the oci_install.jar installer file from On-Prem VM to OCI VM using this command.
Usually, the download path is $HOME/Downloads.

mkdir -p /home/oracle/backupmodule

cd /home/oracle/backupmodule

unzip opc_installer.zip

Archive: opc_installer.zip

creating: opc_installer/ inflating: opc_installer/.DS_Store


Author – A.Kishore
http://www.appsdba.info

creating: MACOSX/

creating: MACOSX/opc_installer/

ls -ltr

total 1776

drwx------. 4 oracle dba 83 Oct 18 2019 opc_installer

drwxrwxr-x. 3 oracle dba 50 Oct 18 2019 __MACOSX

-rw-r--r--. 1 oracle dba 1816114 Aug 18 10:54 opc_installer.zip

5. Now you need to collect some information from Oracle Cloud Infrastructure Console, which is
needed to perform the install:

User OCID (found in the user page – top right icon -> username )

Tenancy OCID (found in the user page – top right icon -> tenancy name )

Compartment OCID (found In the main menu, Identity -> Compartments

Next step is generating an API key. You can do that by executing these commands on On- Prem VM:

[oracle@edvmr1p0 .ssh]$

cd /home/oracle/backupmodule/opc_installer/oci_installer

mkdir -p /home/oracle/OCI/lib

mkdir -p /home/oracle/OCI/wallet

java -jar oci_install.jar -walletDir /home/oracle/OCI/wallet -newRSAKeyPair


Author – A.Kishore
http://www.appsdba.info

cat /home/oracle/OCI/wallet/oci_pub

-----BEGIN PUBLIC KEY-----

MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0o3dXS8B8TxDCPO0Gqvm

dLCfLqY+QqAWO/tSGrH3GixFRMRyTNpQj9d8DRFqbsaJLo0/AVSpsC3HWvEkltec

s5vnGPWfZbVEjmBraykNP8iPAGOsI+1Rew5vJoSpyx7XVlgefzEtbrMqK7VP5zS6

ftigOSWTxd3EPMO2OOqhch/9mRJn+UIGEDcjdVdZIetrso4Gyurw02DdQr/6F91m

GJOykEc1nuXnwZCZWVHsliZseE24piPlWNrSPUcAZvB9mXAQpJ52MYWvHkK3t3Cv

VRaHYOC1975WpTwe5DuFJFqeBu+usC1aDV8hPpq8WI6vHiWO5ygPxQsqd9zmo2R1

ewIDAQAB

-----END PUBLIC KEY-----

The last command will display the public key in text format. Please copy the text and upload the public key in
the OCI console. Now go to the console, enter your user page (top right icon -> username), select API Keys in
the left-side menu, and click Add Public Key.

Paste the key in text format we obtained in the previous step and then click Add.
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info
Author – A.Kishore
http://www.appsdba.info

[DEFAULT]

user=ocid1.user.oc1..aaaaaaaayvm7wawwrpfbswaguoenetxairqrmbknweslr24xzzn7wkxqum4a
Author – A.Kishore
http://www.appsdba.info

fingerprint=07:97:2f:c8:da:31:a3:e9:7b:79:8b:08:31:cd:22:d1

tenancy=ocid1.tenancy.oc1..aaaaaaaaukvw5677joefjfaygfjxcwjnbqbr4m3hmp2ytnln2fucluumedca

region=us-ashburn-1

key_file=<path to your private keyfile> # TODO


Author – A.Kishore
http://www.appsdba.info

GET THE COMPARTMENT OCID


Author – A.Kishore
http://www.appsdba.info

Compartment OCID

ocid1.compartment.oc1..aaaaaaaatmtxfycheen4trp574rbg2hbenwnjzjprj7pctpghzafvwem3cdq

[DEFAULT]

user=ocid1.user.oc1..aaaaaaaayvm7wawwrpfbswaguoenetxairqrmbknweslr24xzzn7wkxqum4a

fingerprint=07:97:2f:c8:da:31:a3:e9:7b:79:8b:08:31:cd:22:d1

tenancy=ocid1.tenancy.oc1..aaaaaaaaukvw5677joefjfaygfjxcwjnbqbr4m3hmp2ytnln2fucluumedca

region=us-ashburn-1

key_file=<path to your private keyfile> # TODO

REPLACE WHICH ARE MARKED IN YELLOW


cd /home/oracle/backupmodule/opc_installer/oci_installer

java -jar oci_install.jar -host https://objectstorage.us-ashburn-1.oraclecloud.com -pvtKeyFile


$HOME/OCI/wallet/oci_pvt -pubFingerPrint 07:97:2f:c8:da:31:a3:e9:7b:79:8b:08:31:cd:22:d1 -uOCID
ocid1.user.oc1..aaaaaaaayvm7wawwrpfbswaguoenetxairqrmbknweslr24xzzn7wkxqum4a -tOCID
ocid1.tenancy.oc1..aaaaaaaaukvw5677joefjfaygfjxcwjnbqbr4m3hmp2ytnln2fucluumedca -cOCID
ocid1.compartment.oc1..aaaaaaaatmtxfycheen4trp574rbg2hbenwnjzjprj7pctpghzafvwem3cdq -bucket
BackupBucket -configFile /home/oracle/OCI/backup.cfg -walletDir /home/oracle/OCI/wallet -libDir
/home/oracle/OCI/lib
Author – A.Kishore
http://www.appsdba.info

You might also like