The cloud is more than a portal: oracle-dbcs-cli

The cloud is more than a portal: oracle-dbcs-cli

A common misconception is that “The Cloud” is only accessible through the portal which is provided to you. In this post I will show that Oracle has some utilities ready for you to manage the cloud using the command line (cli). One way to do it, and which is very useful when you only use one-time commands, is Curl. The REST API is well documented with curl examples as well.
This time we will focus on oracle-dbcs-cli utility and the oracle traditional cloud.

The start of your journey to the Cloud Line interface is as always the oracle documentation. It’s self-explanatory. Yes good documentation exists! The utility itself can be downloaded here: After that it’s just as simple as unpacking the zipfile and running the utility. Simple isn’t it? The documentation says

You must download it to your Linux computer and install it“.

Well, I use a Mac and I can confirm it works on mac too. What it does is just calling a java jar file (the orchestrator) and tell it what to do. Which basically comes down to a rest-call being performed. I won’t copy paste all the possibilities of this utility, it can be found here: But there are some things I find remarkable.

To run the utility, a template/dat/configfile is required. There is a sample file bundled with the download which you can adapt to your needs and also that is documented here:

So, no need to blog you would think? Well, there are a few things to mention.


I am located in EMEA and we have a subscription to an EMEA based datacenter. When you copy paste the sm_url from the oracle documentation it will not work. I summarise it like this:

North America:

The first part of the file looks like this then.

vm size

I left most of the config default and started with a config as basic as possible. I will highlight the problematic rules only here.

In the template there is for storage requirements this line:

It’s best to crosscheck to the documentation again because apparently it has changed over time. A small adaption gives the following line which is actually usable:

What is very interesting in the document: “25 GB volume completely allocated to /u04 on the virtual machine. (If the data volume is 25 GB, then the redo volume is allocated 26 DB instead.)”. Definitely something to take into account.

The bad thing about this is, that the message in the activity log from the portal is not showing exactly what’s wrong:

When you look this error up you hit this bug: Bug 26254417 – CREATE DBAAS INSTANCE FAILS WITH EXPECTED ONE ORCHESTRATION FROM DBORCH BUT GOT 0.

The thing is … that bug refers to the password but the password used was a strong one, so this one could not be applicable. When digging further, it turned out that also not specifying the correct size of the volumes gave this error.

Another thing worth mentioning is the size of the vm boot volume as documented in the documentation.

When using it this way, you will end up with an error telling you that the boot volume is too small.

Oracle versions

In my opinion, Oracle 12.2 is the way to go. So whilst preparing the configfile, you must specify the version. Unfortunately the oracle-dbcs-cli does not offer you that choice. You have to stick with (default in the template) or

When you try to specify the newer version:

This means you really have to stick with these versions. In my next blog-post about the psm utility you will see that you can specify a json-file as the payload in the rest call and that one does support 12.2.


For the project I am preparing I wanted to see if we can use the VM which comes with DBaas also as a web server. Then I saw in the configfile that you could also specify glassfish. Well … guess twice …

So … no glassfish available. The reason is actually simple. Glassfish was used for Apex. This has been changed with the standalone ORDS which is available out of the box and does the job nicely.


In short, the oracle-dbcs-cli is a usable tool to interact with your traditional Oracle cloud account. It has some limitations, but when you create a nice standard, it can be perfectly usable.


As always, questions, remarks? find me on twitter @vanpupi

Leave a Reply

Your email address will not be published. Required fields are marked *

11 − three =

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: