Posts

Showing posts with the label Oracle Cloud

Using OCI CLI to generate report for all the Boot Volumes Backup Policy Assigned and Not Assigned

This bash script needs the tenancy ID to be updated. It loops through all the compartments and then it all availability-domain,  then fetches the boot volume details. From the boot volume, it fetches the asset-id and then validates block volume policy assignment. If there is no policy assigned then the policy status is marked as NOT ASSIGNED. If you intend to have backups enabled, create a new backup policy of your choice or assign an already existing one. You can use the Not Assigned Policy file to assign a backup policy in one go. The script for the same will be published in the next Blog. Stay tuned.. ==========================================================  ociCompartmentList=$(oci iam compartment list --compartment-id ocid1.tenancy.oc1..aaaaaaaaaaaaaa) for c in $(echo "$ociCompartmentList" | jq '.data | keys | .[]') do         compartment_ocid=$(echo "$ociCompartmentList" | jq -r ".data[$c].\"id\"")         ociadList=$(oci iam av...

FTMCLI setup for Oracle Storage Cloud Service

1. Install Java on Linux VM: apt install openjdk-8-jre-headless 2.Set Java Home: export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin export JAVA_HOME=/usr/lib/jvm/jre-openjdk/bin 3. Check the Java Jome Path: echo $JAVA_HOME 4. Download ftmcli from : https://www.oracle.com/technetwork/topics/cloud/downloads/index.html#FTMCLI 5. Upload to Cloud VM (/u01/ftmcli) using WINSCP and change permission to root/oracle user. 6. Update the ftmcli.properties file in the Folder /u01/ftmcli/ftmcli-v2.4.3 Set >>>> user=vikash.kumar@example.com Set >>>  rest-endpoint=https://acme.storage.oraclecloud.com/v1/Storage-acme 7. Navigate to the Folder where ftmcli is installed and run the below command to Check the files in a container: java -jar ftmcli.jar describe <BackupFolderName> 8. Download file with time stamp: time java -jar ftmcli.jar download --directory /u01/ftmcli/download <FileNameWithinBackupContainer> Reference: http...

Creating Oracle Java Cloud Service Virtual Image with Oracle Database Cloud Service Virtual Image

Note: This procedure only applies in the case where you want to use an Oracle Database Cloud - Virtual Image database deployment, when creating an Oracle Java Cloud Service instance (Virtual Image). First setup Database Cloud service environment: ===================================== To set up the Oracle Database Cloud - Database Cloud Service environment: 1. Use a secure shell (SSH) tool to access a compute node associated with your Database Cloud Service - Virtual Image database deployment. 2. Switch to user oracle. $ sudo -s # su - oracle $ cd 3. Edit the .bashrc file and add the following entries: export ORACLE_HOME="/u01/app/oracle/product/12.1.0/dbhome_1" export PATH="$ORACLE_HOME/bin:$PATH" Note: Ensure that you add these entries to the .bashrc file, not the bash_profile file. 4. Ensure that your user has SYSDBA administrator privileges. 5. Do not set the $ORACLE_SID=ORCL variable in the .bashrc file. Do not set the variable to .bash...