X

Oracle Customer Engineering & Advocacy Lab (CEAL) Blog covers Oracle Analytics Cloud, Oracle Analytics Server and...

How to create an OAC Instance using OCI Command Line Interface (CLI)

Veera Raghavendra Koka
Principal BI Cloud Security Specialist

REF: How To Create An Oracle Analytics Cloud (OCI Gen2) Instance Using The Command Line Interface (CLI) (Doc ID 2608099.1)

Install OCI CLI

To Install OCI CLI, follow the cli install steps for all OS: Linux, MacOS, Windows

Here we cover for Linux and Windows.

Install OCI CLI on Oracle Linux:

  1. Open a terminal
  2. Run below command

bash -c "$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)"

  1. Respond to the Prompts accordingly

Install OCI CLI on Windows:

  1. Open the PowerShell console using the Run as Administrator option.
  1. The installer enables auto-complete by installing and running a script. To allow this script to run, you must enable the RemoteSigned execution policy.
    To configure the remote execution policy for PowerShell, run the following command.
    Set-ExecutionPolicy RemoteSigned
                
  1. To run the installer script, run the following command.
    powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.ps1'))"

     
  2. Respond to the Prompts accordingly