Getting JDK from Oracle using curl

I forget stuff.  Found this on gist.

curl -L -b “oraclelicense=a” http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz -O

Check the java.oracle.com 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.

https://cloud.oracle.com/en_US/java?resolvetemplatefordevice=true

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.

http://chavalis.blogspot.com/2014/04/installing-ebs-1223-vision-on.html

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:

V54270-01_1of2.zip

V54270-01_2of2.zip

thru….

V54277-01_1of2.zip

V54277-01_2of2.zip

 

Login into support.oracle.com

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

On MacOS EBS1224 — unzip ◂ assemble_OSX.sh — 80×53

On MacOS EBS1224 — unzip ◂ assemble_OSX.sh — 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).

REST POST: 

https://jaas.oraclecloud.com/paas/service/jcs/api/v1.1/instances/YOUR_IDENTITY_DOMAIN

HEADER:

Authorization:  {hash of username and password}
X-ID-TENANT-NAME: YOUR_IDENTITY_DOMAIN
Content-Type:application/vnd.com.oracle.oracloud.provisioning.Service+json

BODY (You can also put this in a create.json file):
{
"serviceName" : "fmw02",
"level" : "PAAS",
"subscriptionType" : "MONTHLY",
"description" : "DevOps and Coherence Demo",
"provisionOTD" : false,
"cloudStorageContainer" : "Storage-YOUR_IDENTITY_DOMAIN/YOUR_STORAGE_CONTAINER",
"cloudStorageUser" : “YOUR_USER_ID",
"cloudStoragePassword" : “YOUR_IDENTITY_DOMAIN_PASSWORD",
"sampleAppDeploymentRequests" : false,
"parameters" : [
{
"type" : "weblogic",
"version" : "12.1.3.0.4",
"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/vnd.com.oracle.oracloud.provisioning.Service+json" -H "X-ID-TENANT-NAME:YOUR_IDENITY_DOMAIN" https://jaas.oraclecloud.com/paas/service/jcs/api/v1.1/instances/YOUR_IDENTITY_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.

ecegbjda

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

String PROXY = “ch3-opc-proxy.usdc2.oraclecloud.com:80″;
org.openqa.selenium.Proxy proxy = new org.openqa.selenium.Proxy();
proxy.setHttpProxy(PROXY)
.setFtpProxy(PROXY)
.setSslProxy(PROXY);
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability(CapabilityType.PROXY, proxy);

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

<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.45.0</version>
<scope>test</scope>
</dependency>

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:

https://www.eclipse.org/forums/index.php/t/834565/

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.

vagrant_oracle_database_12102_ee_on_linux--mdash--oracle-db12c-~--mdash--ssh--mdash--116-times-42

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:

NAME     TYPE VALUE

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

dispatchers     string (PROTOCOL=TCP) (SERVICE=db1210

2XDB)

max_dispatchers      integer

SQL> select dbms_xdb_config.gethttpsport () from dual;

Which should show:

DBMS_XDB_CONFIG.GETHTTPSPORT()

——————————

0

SQL> exec dbms_xdb_config.sethttpsport(5502);

PL/SQL procedure successfully completed.

SQL> commit;

SQL> select dbms_xdb_config.gethttpsport () from dual;

DBMS_XDB_CONFIG.GETHTTPSPORT()

——————————

5502

From your desktop https://10.10.10.9:5502/em

em-express---database-home

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

http://www.cyberciti.biz/faq/howto-linux-renew-dhcp-client-ip-address/

Answer from here:

https://github.com/mitchellh/vagrant/issues/391

Tagged

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

Lucas Jellema writes the following in August 2014.

https://technology.amis.nl/2014/08/04/quick-generation-of-a-virtualbox-vm-with-oracle-database-12-1-0-2-ee-on-oracle-linux-5-6/

Based upon Edwon Biemonds work:

https://github.com/biemond/biemond-oradb

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 ,

VirtualBox on Mac Nit with Cisco VPN

I have to use Cisco VPN to log into the corporate network.  This causes me to lose connectivity to my VBox guest via the host only adapter (vboxnet0).  This is expected.  However, once I logoff the VPN, I am unable to ping the adapter.  In my case, the adapter for this guest is assigned ip address 192.168.50.5. The simple solution is to Log into Terminal and refresh the interface…so you don’t have to reboot.

sudo ifconfig vboxnet0 down
sudo ifconfig vboxnet0 up

Probably should write an Automater script for that…something like

do shell script "sudo ifconfig vboxnet0 down" with administrator privileges

Ahh better.

Follow

Get every new post delivered to your Inbox.