Java Versions
Sometimes you read JDK 6.0 or JDK 1.6. So where is the difference?
JDK 6.0 is the product version whereas JDK 1.6 is the developer version.
Source: http://java.sun.com/javase/6/webnotes/version-6.html
Inheritance and Interface in Java
Here are some possibilities of how to use and mix inheritances and interfaces in Java.
implements: implements an interface to the class
extends: extends the subclass from the superclass
interface Ione {}
interface Itwo {}
interface Ithree extends Ione {}
interface Ifour extends Ione, Itwo {}
class Cone {}
class Ctwo extends Cone {}
class Cthree implements Ione {}
class Cfour extends Cone implements Ione {}
class Cfive extends Cone implements Ione, Itwo {}
Eclipse with Oracle JDBC
Follow this steps to use Eclipse with an Oracle JDBC Driver.
- Download the Oracle JDBC Driver (Interoperability Matrix)
- Classpath must include the location of the Driver (.jar file)
OR
Save it in:JAVA_HOME/jre/lib/ext/ - Now let’s code… example
- Rename to DBconnect.java and adapt the parameters for DriverManager.getConnection
C:\>javac DBconnect.java C:\>java DBconnect Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi PL/SQL Release 10.2.0.3.0 - Production CORE 10.2.0.3.0 Production TNS for HPUX: Version 10.2.0.3.0 - Production NLSRTL Version 10.2.0.3.0 - Production
Useful One-line Scripts for sed
Handy sed oneliners:
Update:
Return 1st Line
sed -n ‘1p’ file
Return all except 1st line
sed ‘1d’ file
Interactive Linux Kernel
The Linux kernel contains over 5 mio lines of code spread over hundreds of files. Lets say if you want find the sys_fork function, you can easily navigate sys_fork link and you got it.
You can navigate with the mouse:
- wheel-zoom
- drag-move
- keywords-links
Have fun with the interactive linux kernel map!
Oracle Instance Menu depend on oratab
This ksh script creates a menu with the content of the oratab. Hence you can select an Oracle instance, and the script login as sysdba.

Written and tested for:
- HPUX
- Oracle 10gR2 Instances
- ASM non RAC
Enjoy and have fun!

