Get Public IP from OCI Instance using OCI CLI

How do I get public IP from an OCI instance with OCI CLI? There is a command from the docs - oci network public-ip get but this expects parameters like --private-ip-id and -public-ip-id which also...

OCI CLI create_backup_from_onprem script error

I am an encountered an issue while creating database backup using create_backup_from_onprem script in OCI CLI. i noticed that object storage namespace is not correct while executing backup...

Run OCI CLI command from dockerfile

I have a question about Oracle OCI CLI. I create an image (LINK) that contain all necessary to start working with oracle cloud. You have to modify config file just to start using all from Oracle...

OCI CLI fails to load default profile from config file even if I have proper default profile

When I run any oci cli command I'm getting below error: ERROR: Profile '<DEFAULT>' not found in config file C:\Users\user1\.oci\config Below is my config file for OCI...

"No such file or directory" when installing OCI CLI client

we are installing the OCI CLI client (v 2.6.8) into a Docker image using a Dockerfile. The command is: curl -L -o /tmp/install.sh...

How to write complex type in json format using OCI CLI?

I try to update a compute instance in oci cli but the command below: oci compute instance update --instance-id=ocid1.instance.oc1.eu-frankfurt-1.aaaaaa... --defined-tags...

Can we derive service limits for Oracle OCI using CLI or API

My requirement is to derive service limits like network limits, storage limits for a tenancy on Oracle cloud infrastructure(OCI). Is it possible to fetch the same using OCI CLI or API

OCI: CLI json string complains of incorrect json despite copying example format

I am having trouble supplying nsg ids in an oci cli instance launch command. Can you advise what is wrong with my json here. The example seems to be similar to what im...

OCI CLI delete oldest file from object storage

We are uploading our SQL Server backups to the OCI object storage because of DR reasons. Whenever a new backup is uploaded the oldest one is supposed to be deleted. Is it possilbe to somehow just...

Unable to get response using oci-cli

OCI commands such as oci os ns get doesn't work I've tried several other commands like oci iam compartment list -c $T but none of them works oci iam compartment list -c $T I expect the output to...

How to upload a file to OCI Object storage

I am trying to use UploadObjectExample.java code to upload a file to OCI object storage. I am running into connection timeout error while connecting to the object storage URL. The same config file...

terminate oci instance using instance_action

I am trying to find the best way to terminate an oci instance using the oci python library. I know that I can stop an instance with base_compute.instance_action(instance_id,...

Bulk upload and download using OCI Java SDK

I've gone through example here for single file upload and download. https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/UploadObjectExample.java However, I'm not finding...

OCI RestAPI to list VNIC Attachement to a compute instance

On Oracle cloud infrastructure, I am trying to get the details of the VNICs attached to a compute instance. I can see there is an option available in oci-cli to pass the OCID of a compute instance...

Ansbile OCI collection- Inventory Plugin

Greats from Brazil !! I 'm using ansible 2.10 and OCI collection installed from ansible-galaxy. When I run ansible-inventory -i inventory.oci.yml --list -vvvvvvvv I get this error * Failed to...

Deploying Resources on OCI using terraform/Linux

I essentially want to work to being able to create a Kubernetes cluster in my compartment within OCI. I am a beginner to cloud technology in general so many of my questions en route to this goal...

OCI compute instance failed to start

I have a oci node which I am stopping using oci cli commandoci compute instance action --action STOP --instance-id <instanceid> After few hours I am starting the node using command oci...

unable to get status code of oci-cli command

i need to get the response code to use in scripts like i run a command oci compute instance update --instance-id ocid.of.instance --shape-config '{"OCPU":"2"}'...

Do pure java jdbc drivers (Type 4 ) call native database API functions such as OCI and DB2/CLI?

Do pure java jdbc drivers (Type 4 ) call native database API functions such as OCI and DB2/CLI?<br> If not do databases expose custom API for Java programs?<br> For example reading this intro to...

Cannot list content from public buckets

I created a bucket with public visibility but I cannot find the correct syntax for the oci CLI to list the content of this bucket.

How can I delete a pod via a Oracle Function?

I have a cluster with some deployments / services / etc... inside an OKE, which I usually connect to via kubectl from my pc. The question is: is it possible to delete a pod inside that cluster...

x509: certificate signed by unknown authority err

I am attempting to create simple vcn but i am getting this error: Post https://iaas.us-ashburn-1.oraclecloud.com/20160918/vcns: x509: certificate signed by unknown authority details of vcn...

Getting an unexplained error from a simple SQL query in Oracle NoSQL Database cloud service

Here's a super basic question. I am trying to get the total row count for my table. I tried the following super simple query: Select count(*) from myTable in Oracle NoSQL Database cloud service...

Connecting an app in ArgoCD to use a Helm OCI repository

I can see the Argo seems to support OCI repositories but I can't seem to get this to work. First I can only seem to add repositories through the CLI because there is no option for enabling...

OCI runtime exec failed: exec failed: container_linux.go:348 : starting container process caused "no such file or directory": unknown

I am trying to bringup my fabric network. I got my orderers organization started. I got my peer organizations started. I got my cli started. after that request is failing with OCI runtime...

Enabling PDO OCI

I've tried to install OCI, so I can use new PDO("oci:dbname... After 1,5h of fight I've installed oracle instantclient (basic and sdk) and then oci for php (as described here...

How do I configure group access using OCI IAM and Kubernetes RBAC

Based on this documentation - https://docs.cloud.oracle.com/en-us/iaas/Content/ContEng/Concepts/contengaboutaccesscontrol.htm I am trying to configure access to Kubernetes for an Oracle Cloud IAM...

Retrieve the credentials.zip file from GenerateAutonomousDataWarehouseWalletDetails

We are trying to download the wallet credentials.zip file for Autonomous Datawarehouse via Python SDK. We have an option called --file when we do the same operation using oci cli. oci db...

Jarvis instalation issue " OCI runtime create failed: container_linux.go:367 "

I am trying to install Jarvis using this instructions: https://ngc.nvidia.com/catalog/collections/nvidia:jarvis . Unfortunately when I run jarvis_init.sh I get following error: >docker: Error...

OCI8 working with the command line but not on apache

My server is centos7, I managed to setup apache,php7.1,oracle-instantclient18.3-basic and oci8 on it. OCI8 is working fine now when I run the code on CLI, it connects the db and fetches data,...