Wednesday, November 18, 2015

Proxy Oracle Maven repository using Artifactory

Oracle have a Maven repository that hosts artifacts and maven plugins for ADF, WebLogic, SOA composites, Toplink, Coherence and other technologies. Repository is at http://maven.oracle.com. A short registration is required for use the repository. You need to login with your OTN account, read and accept the terms of use. Documentation for how to use the repository with JDeveloper and Hudson/Jenkins Continuous Integration (CI) you can find here:
http://docs.oracle.com/middleware/1213/core/MAVEN/introduction.htm#MAVEN8755

As many developers and CI servers use the repository you download from Oracle repository the same artifacts several times. This is a slow process and can bottleneck the external lines. A more effective solution is to use a repository manager and proxy the Oracle Maven repository on the internal network. This way you will download only 1 time each artifact from Oracle Maven repository and speed up the build process on developer machine or on Continuous Integration Servers.


Monday, November 9, 2015

Using Ansible to install WebLogic 12c R2 (12.2.1) and Fusion Middleware Infastructure on Oracle Linux 7.1

Before a couple of days Oracle release WebLogic 12c R2 (12.2.1). There are a lot of cool features like Java EE 7 support and Multitenancy Support for WebLogic domains. Installation of WebLogic server along with ADF runtime (Fusion Middleware Infrastructure) are not hard but requires a lot of parameters to be configured and a significant time when you need to repeat the actions in multiple virtual machines. Also Infrastructure updates are time consuming. Ansible is a great tool that help us automate this things. This article will demonstrate the creation of a WebLogic domain using Ansible. You can download code in my git hub account:




Fusion Middleware needs a Database repository for storing the required schemas. If you don't have a database already you can use an Ansible playbook i have create to install an Oracle Database 12c automatically. You can download the code here:

https://github.com/cvezalis/oracledb-ansible

You can configure your infrastructure variables in infa-vars.yml

You can test the playbook from the extracted folder using:

vagrant up

a virtual machine will be ready in a few minutes with no other interaction. You can access the Enterprise Manager at http://192.168.56.14:7001/em if you use the default settings.

Thursday, October 22, 2015

Using Ansible to configure an Oracle Linux 7.1 server with Oracle 12c R1 Enterprise Edition Database


Ansible is the leading tool for configuring software and various parameters on servers. It does not require agents and other software installed on nodes like other popular tools (puppet or chef). Its also modular and already have hundreds of modules that help us configure our servers in several ways. In this article I will show how we can install an Oracle 12c R1 Database (12.1.0.2) in Oracle Linux 7.1 server. The same Ansible playbook can be used with Redhat Enterprise Linux 7.1 and CentOS 7.1. You can download the code in Github at:

https://github.com/cvezalis/oracledb-ansible




Source code also includes configuration for provision automatically a virtual machine using Vagrant.

Download from Oracle support the Oracle installation files:

- linuxamd64_12102_database_1of2.zip

- linuxamd64_12102_database_1of2.zip

and put them to folder roles/oracle-install/files inside checkout folder

After go into checkout folder and execute :

$ vagrant up 


After a few minutes a virtual machine with Oracle Database will be ready for you without any further configuration. You can access the Enterprise Manager Express using sys/sysdba and “oracle” as password.

https://oradb3.private:5500/em

You can shutdown the virtual machine using:

$ vagrant halt


You can destroy it (delete from disk) using:

$ vagrant destroy

more details at my article here : http://www.nodalpoint.com/devops-ansible-oracle-database-oraclelinux-7-vagrant/

Tuesday, October 13, 2015

Deploy JAX-RS 2.0 REST Webservice on WebLogic 12c

Creating a JAX-RS 2.0 (REST) style web service and deploy it to a WebLogic 12.1.3 server deployment will fail. The reference implementation of JAX-RS 2.0 library is missing from server. WebLogic 12c comes with Jersey 2.5.1 jar installed on filesystem but not deployed by default on WebLogic.

Wednesday, October 7, 2015

VMware workstation 11 on Ubuntu 15.04 high cpu utilization solved

VMware 11 workstation on Ubuntu with windows guests freezes from time to time with very high cpu utilization. The process vmware-vmx and khugepaged get 100% cpu time for a couple of seconds. The khugepaged is the process that configures the transparent hugepages. When i disable the transparent hugepages windows guest run without freezes again. To disable it on every operating system start up i put in /etc/rc.local

Friday, October 2, 2015

Ansible playbook to provision a WebLogic Fusion Middleware Domain on RHEL/CentOS 7

I created a playbook for Ansible to provision a WebLogic server, install Fusion Middleware Infrastructure software and create a Domain with a managed server in a RHEL 7 Linux System. (CentOS 7 and Oracle Linux 7 are supported too)

Monday, September 14, 2015

Error accesing EM 12c Cloud Control weak ephemeral Diffie-Hellman public key

After Chrome and Firefox browsers get some security updates i cannot access the Oracle Enterprise Manager 12c console. The browser (Chrome 45.0.2454.85 on Ubuntu 15.04)  reported that:

Server has a weak ephemeral Diffie-Hellman public key

ERR_SSL_WEAK_SERVER_EPHEMERAL_DH_KEY