Using OPC CLI and Vagrant to Ease Access to Oracle Public Cloud


On your Mac or Windows machine, you can use brew or other package managers to manage different installations of scripting frameworks.  I have a customer who is using OPC (Oracle Public Cloud) pretty heavily and I wanted to simplify access to the environment.  I decided to take a look at the Oracle Compute CLI which was initially released in the Spring 2016.

This CLI rides on top of the REST API and is written using Python 2.6.  The REST API is below.

I can also add the Database CLI features which as well.  This is a java application and I will add this later.


The usability issue I had was that I didn’t want to deal with the REST API and the authentication with Postman.  I know, it is not that hard, but having the Compute CLI is much easier and I can format responses as needed.  There are some nice features in the CLI.

The downside to the Compute CLI is that it is certified on OL 6.7 and requires Python 2.6.6 or higher.  I have a Mac and I don’t plan on re-formatting my drive anytime soon.  This leaves me with Virtualbox, but I didn’t want to use the little window and do the complete ISO install and then configure. Quick, easy and agile is the way. This is where Vagrant comes in for Mac and Windows users.

The Database Cloud Service CLI is a Java 1.7 utility, so all I need to do is install Java on the OL 6.7 instance and run it from there.  I have quick gist on installing the jdk or you can download and install the jdk in a similar method that you install the rpm in this blog post.  It’s up to you.


Continue reading

Getting JDK from Oracle using curl

I forget stuff.  Found this on gist.

curl -L -b “oraclelicense=a” -O

Check the website for the correct url path, but this should get you the idk you always wanted.  This should work for other stuff on otn, but no promises.🙂



Oracle Public Cloud – Oracle Service Bus – Opening up a network port for the Service Proxy

This is a brief article on using the Oracle Service Bus capability of SOACS in the Oracle Public Cloud.  If you want to try it out, go ahead and ask for a public trial.  SOACS comes as part of the JCS Trial environment.

Continue reading

Oracle EBS 12.2.4 Single Node on VirtualBox – Getting the Binaries

Installing EBS 12.2.3 Vision on Virtualbox using pre-built VM appliance (on a Windows host) | Srini Chavali’s Blog

This is a great blog from Srini Chavali on the Oracle PM team on installing EBS on VirtualBox.  The issue that I have had is that it shows the old E-Delivery Site.😦

Here is a link to his blog.

My screen shots will show you the "new and improved" EDelivery site and then unpackng with the "Assembly" tool on my Mac

Oracle Software Delivery Cloud

Select the product.

You can de-select "Programs" and have only Linux/OVM/VMs

Click through

Click through

Accept Terms and Restrictions

Download the Binaries (16 Files Total)

This is not so obvious on which files to select.

Select the following:



Login into

You need to follow the MOS Notes from Srini’s Blog.

On MacOS EBS1224 — unzip ◂ — 80×53

On MacOS EBS1224 — unzip ◂ — 80×53

Oracle Java Cloud Service Make a MultiVM DataGrid with One Call – Run this from your Firefox REST Client or cURL

We have all read about AWS instance creation and saving steps….;-)
This single REST call makes a scale out datagrid in one call. (Well you do need a DB instance and storage container in place…ok. three calls and some patience).



Authorization:  {hash of username and password}

BODY (You can also put this in a create.json file):
"serviceName" : "fmw02",
"level" : "PAAS",
"subscriptionType" : "MONTHLY",
"description" : "DevOps and Coherence Demo",
"provisionOTD" : false,
"cloudStorageUser" : “YOUR_USER_ID",
"cloudStoragePassword" : “YOUR_IDENTITY_DOMAIN_PASSWORD",
"sampleAppDeploymentRequests" : false,
"parameters" : [
"type" : "weblogic",
"version" : "",
"edition" : "SUITE",
"domainMode" : "PRODUCTION",
"managedServerCount" : "2",
"adminPort" : "7001",
"deploymentChannelPort" : "9001",
"securedAdminPort" : "7002",
"contentPort" : "8001",
"securedContentPort" : "8002",
"domainName" : "fmw02",
"clusterName" : "FMW02_Cluster",
"adminUserName" : "weblogic",
"adminPassword" : "Welcome_111",
"nodeManagerPort" : "6555",
"nodeManagerUserName" : "nodeMangerAdmin",
"nodeManagerPassword" : "Welcome_111",
"dbServiceName" : “YOUR_DBSERVICE",
"dbaName" : "SYS",
"dbaPassword" : “YOUR_DBPASSWORD",
"shape" : "oc3",
"VMsPublicKey" : "ssh-rsa YOUR SSH KEY"
"type" : "datagrid",
"scalingUnitCount" : "1",
"clusterName" : "CoherenceDGCluster",
"scalingUnit" :
"shape" : "oc3",
"vmCount" : "1",
"heapSize" : "4G",
"jvmCount" : "1"

If you want to avoid the REST Client then do this:

curl -i -X POST -u YOU@ORACLE.COM:YOUR_ACCOUNT_PASSWORD -d @create.json -H "Content-Type:application/" -H "X-ID-TENANT-NAME:YOUR_IDENITY_DOMAIN"
Have fun..
Tagged ,

How to use Selenium with Oracle Developer Cloud Service

Colleague of mine wrote about how he used Oracle Developer Cloud Service configuring Selenium tests.

First he set the below screenshot variables in the hudson job configuration.


Next , in the selenium java test case , he set the proxy with below code.

String PROXY = “″;
org.openqa.selenium.Proxy proxy = new org.openqa.selenium.Proxy();
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability(CapabilityType.PROXY, proxy);

Last, executed the test with Maven 3 with the selenium dependencies included.


Tagged ,

Oracle OEPE 12.1.3 – Crashes with Oracle Linux 6.5

The error message is:
eclipse: cairo-misc.c:380: _cairo_operator_bounded_by_source: Assertion `NOT_REACHED’ failed.”

I found this also seems to be the case with Centos as well:

Found the solution here:

Work around is “-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false” to eclipse.ini.

Oracle Database 12c Modifications from Vagrant – Getting EM to work

I published a blog on installing a 12c database with vagrant a few weeks back. I just want to update some slight modifications that might be useful for you and help me remember as well.

As oracle user nano .bash_profile in the /home/oracle directory.


You can then source the .bash_profile and add the ORACLE_SID and then export ORACLE_SID.  Connect to the database:

sqlplus / as sysdba

Password = oracle

This allows you to run the following commands to get em working from your desktop machine.

SQL> show parameters dispatchers;

Which should show:


———————————— ———– ——————————

dispatchers     string (PROTOCOL=TCP) (SERVICE=db1210


max_dispatchers      integer

SQL> select dbms_xdb_config.gethttpsport () from dual;

Which should show:




SQL> exec dbms_xdb_config.sethttpsport(5502);

PL/SQL procedure successfully completed.

SQL> commit;

SQL> select dbms_xdb_config.gethttpsport () from dual;




From your desktop


Vagrant 1.7 in GUI Mode with VirtualBox

Came across a Vagrant issue where the VM boots up in GUI Mode ( vb.gui=true ) and the host wouldn’t connect via ssh.  Vagrant would retry until the connection failed.  The GUI would come-up of the box.

The answer I found was login into the GUI console

run as root “dhclient”

Man on dhclient

Answer from here:


Oracle Database install with Vagrant on Centos 6.5 (Jellema and Biemond)

Lucas Jellema writes the following in August 2014.

Based upon Edwon Biemonds work:

This leverages Edwin Biemonds repos’s so bug fixes might be there.  The only issue I had was taking out the X libraries in db.pp in the manifests directory.

===> ‘libXext’ and ‘libXtst’

These are not needed anymore.

Total install time after downloading binaries from Oracle.

==> db12102: Notice: Finished catalog run in 1376.77 seconds or 22 Minutes.

Not bad!

Tagged ,