Friday 31 January 2014

Want to waste some time?

So today I was browsing the interwebs and I found a few awesome links, that I think everyone should take a look at.

They are not so much read based websites, but rather something to give you visual stimulation.

I think everyone should spend some time looking at them. They are really awesome, and if you are into web development I think you should also take some time and look at the code.

I really like fish, thus one of the sites that really got my attention was  an Aquarium it has a really awesome feeling to it, where you can control things like how many fish there are, I must have spent a good 5 – 10 Minutes watching the fish go by. Something I thought you may find interesting about Fish and watching fish.
Watching fish is thought to stimulate serotonin neurotransmitters in the brain leading to increasing production of endorphins. Endorphins are our body's natural ‘feel good' hormones and produce a feeling of happiness. These hormones also reduce anxiety, having a calming effect on the body and a range of other health benefits such as lowering blood pressure, and reducing hyperactivity.

Hope you enjoy.


Wednesday 29 January 2014

Learning - I think every Linux user should know these three commands


I was doing some downloading on a remote linux machine that I did not have a GUI for, I was only able to access the system through SSH. The problem with this was that I did not want to risk the download stopping if my connection to the server was lost. So my first problem, was learning screen.
After that I ran into another issue, how was I going to copy this file from the remote server to my local machine.

The Process

My First problem was how do I get a "extra" screen or terminal. The Solution was quite literally screen.
There are a number of really good tutorials out there, that can help one get to become a master with this application. I don't really want to become a master, but I wanted to know how to use this.
So firstly I installed it using yum.
yum install screen
wow ok, that was deceptively simple.
How do I use this,
screen -?
we want to create a new screen/ R seems to be ok.
screen -R
ok well, looks like nothing has changed. Lets test.
Opens another SSH Session and run
screen -list
Ok cool, there was a result and looks good.

So lets go, download that file. (Making sure I was in the correct SSH Session, I closed the session that I used to check.) wget my file, the command is pretty simple wget -O '<From>' <to>
Not to sure if this was the best way to do this, but was the way I used and seemed to work.

Downloaded the file, completed, wanted to make sure the md5 was the same, md5sum the file. Once that was completed I got an output of the md5 and the file name.

Next problem, I need to get that file from the server. SCP to the rescue! Quick google search provided me with a solution, scp the file from server to my machine.

No problems, scp <user>@<computer>:<file> <toFile>.


To Long, Short Version

Basically the commands I think everyone should know are how to scp from one machine to another, md5 a file and screen.


scp <user>@<computer>:<file> <toFile>


md5sum <file>


screen -R, either creates or resumes a screen session.
while in screen
ctrl + a
ctrl + d
"Closes" screen and resumes with normal terminal.

#bearMan saving mySelf.

Friday 24 January 2014

Windows: Terminal

Customizing your Windows Command Prompt

Hate it when you go into terminal and you have this?

Or worse of f

How to make your cmd a little more “customized” and get your Friends to go wow.

All you need to do is type

Prompt  $A
Or My Favorite

Prompt $G

$H is also nice

Something easy to do J

& (Ampersand)
| (pipe)
( (Left parenthesis)
Current date
Escape code (ASCII code 27)
) (Right parenthesis)
> (greater-than sign)
Backspace (erases previous character)
< (less-than sign)
Current drive
Current drive and path
Current Time
Windows version number
Carriage return and linefeed
$ (dollar sign)


Wednesday 22 January 2014

Oracle XEr2 Enable HR Schema

Oracle XEr2 Enable HR Schema

So now that we have the XE installed lets enable your HR Schema.

Log into the sqlplus and execute this:

Alter user hr identified by hr account unlock;

Then you can log into the Schema


Friday 17 January 2014

Oracle XEr2 Check Database


Now that we have out Oracle XEr2 Database Installed Lets use our Main “DBA” tool, sqlplus.

What you can do is run Command Prompt or Terminal

Sqlplus / as sysdba

You should log in. If you don’t

You will need to go into the File the contains SQLPLUS.
Mine was:

Cd C:\oraclexe\app\oracle\product\11.2.0\server\bin

Once there you can run that command.

Selext * from dual;

If you get this command it means your database is running.

Have fun selecting J


Wednesday 15 January 2014

Windows: Setting Up Oracle XEr2 Windows 8.1

Step by step Guide to install Oracle XE on Windows 8.

I Will be assuming you have the installer and have Extracted it.

Note this is a fairly Standard Install,

Step 1:
Run the install, it will extract, decompress the install Files and then prepare for the install

Step 2:
Welcome Page, Click Next

Step 3:
Accept License Agreement

Browse where you want to install Oracle XE.
If you want you can change the install Path.

Step 4:
Enter SYSDBA password

I usually Make this “sys” as I don’t use the Database for anything other than Dev.

Click Next

Step 5:
Summary and Click Install.

The Biggest things to take note of are the ports:
Port for 'Oracle Database Listener': 1521
Port for 'Oracle Services for Microsoft Transaction Server': 2030
Port for 'Oracle HTTP Listener': 8080

The two Most Important are Port 1521 and 8080.

Step 6:
Installing Process:

Note there may be errors if they are:


You can ignore them. They will not affect any part of the database.        

Well Done, the database will be configuring itself. (This may take a while)

Enjoy your new install of Oracle XE


Monday 13 January 2014

OIM Design Console: java.lang.NoClassDefFoundError: javax/ejb/CreateException

java.lang.NoClassDefFoundError: javax/ejb/CreateException

Exception in thread "main" java.lang.NoClassDefFoundError: javax/ejb/CreateException
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(
        at java.lang.Class.getDeclaredMethod(
        at java.awt.Component.isCoalesceEventsOverriden(
        at java.awt.Component.access$500(
        at java.awt.Component$
        at java.awt.Component$
        at Method)
        at java.awt.Component.checkCoalescing(
        at java.awt.Component.<init>(
        at java.awt.Container.<init>(
        at java.awt.Window.<init>(
        at java.awt.Frame.<init>(
        at java.awt.Frame.<init>(
        at javax.swing.JFrame.<init>(
        at com.thortech.xl.gui.base.tcFrame.<init>(
        at com.thortech.xl.client.base.tcAppWindow.<init>(
        at com.thortech.xl.client.base.tcAppWindow.main(
Caused by: java.lang.ClassNotFoundException: javax.ejb.CreateException
        at Method)
        at java.lang.ClassLoader.loadClass(
        at sun.misc.Launcher$AppClassLoader.loadClass(
        at java.lang.ClassLoader.loadClass(
        ... 18 more

This Error is caused by not having the “wlfullclient.jar” file in order to generate this, you need to cd to
And run:
java -jar wljarbuilder.jar

This takes a while depending on how good the server is, but also outputs a lot, so don’t be afraid of this. Copy that file to your OIM Home /designconsole/ext
If you need to, you must FTP that to your local machine.


Friday 10 January 2014

How To: Install Multiple JDevelopers on One Machine

Having multiple JDevelopers

How To Make the Most of your computer

As a Developer we are often required to work with multiple JDeveloper versions at any one time.

Installing them may be tricky if you are doing it for the first time.

You can do this by creating a new MiddleWare home

I will be demonstrating some of the things I do when I am installing a new JDev Version.

I will be working with JDeveloper 11g (

Step 1:

Step 2:
As you can see I have two other versions, and
I create a new Middleware home 11124 (

That is the trickiest step in the process.

Step 3:

Using the typical Install.

Step 4:

If the Installer did not find a Java Version, If you have Java, you will need to find the Home:
Mine was :
C:\Program Files\Java\jdk1.7.0_45
Otherwise you can get it from here:

Step 5:
Notice the Path:

Step 6:

Step 7: 
The Install and completion.

Congratulations you are done!


Wednesday 8 January 2014

JDeveloper: Making the most of your IDE, Database Date

JDeveloper Database Date

Using JDeveloper and making a user Friendly date

When I install JDeveloper or SQLDeveloper the first thing I do it I change how the dates are displayed.

You need to got o Tools -> Preferences

Click on Database -> NLS

Change your Date Format to:

This will display the dates like:
01-OCT-2013 12.00.00 AM


Monday 6 January 2014

Welcome to 2014

Welcome to 2014

Hope you all have a wonderful time.

Here are a few Images I liked.

#bearMan welcomes 2014