20 December 2010

ORA-12162

The error message ORA-12162 "TNS:net service name is incorrectly specified" is not exactly what it meant.

It suggests that there is a problem with the tnsnames.ora file contents, but in reality the message ORA-12162 "TNS:net service name is incorrectly specified" results from improperly setting your ORACLE_SID value.

To fix this error in Windows, set your $ORACLE_HOME:
c:> set ORACLE_SID=fred

In Linux, these commands sets ORACLE_HOME and $ORACLE_SID as follows:
ORACLE_HOME=/u01/oracle; export ORACLE_HOME
ORACLE_SID=asdb; export ORACLE_SID


update: instead of asdb you need to specify the DB name you wanna use.

Putty Colors

These are the meanings of different putty terminal colors.
* Normal file : Normal
* Directory: Blue
* Symbolic link : Cyan
* Pipe: Yellow
* Socket: Magenta
* Block device driver: Bold yellow foreground, with black background
* Character device driver: Bold yellow foreground, with black background
* Orphaned syminks : Blinking Bold white with red background
* Missing links ( and the files they point to) : Blinking Bold white
with red background
* Archives or compressed : Red (.tar, .gz, .zip, .rpm)
* Image files : Magenta (.jpg, gif, bmp, png, tif)

16 December 2010

Database TSN in Oracle

If you are working with Oracle and is a beginner with Oracle, you will find lots of new protocols defined by Oracle to be used. One of them is TSN. TSN is short for Transparent Network Substrate. As Wikipedia says it is:
The Transparent Network Substrate (TNS) allows peer-to-peer connectivity where no machine-level connectivity can occur. It provides a user-transparent layer that enables a heterogeneous network consisting of different protocols to function as a homogeneous network. TNS forms a transparent layer to which different network protocols can connect. It provides a network of applications above the existing networks of computers.
Oracle Corporation typically relies on TNS to provide generic network connectivity to and between Oracle databases, regardless of underlying protocols.

14 December 2010

Remote Desktop Shortcuts

  • CTRL+ALT+END: Open the Microsoft Windows NT Security dialog box (CTRL+ALT+DEL)
  • ALT+PAGE UP: Switch between programs from left to right (CTRL+PAGE UP)
  • ALT+PAGE DOWN: Switch between programs from right to left (CTRL+PAGE DOWN)
  • ALT+INSERT: Cycle through the programs in most recently used order (ALT+TAB)
  • ALT+HOME: Display the Start menu (CTRL+ESC)
  • CTRL+ALT+BREAK: Switch the client computer between a window and a full screen
  • ALT+DELETE: Display the Windows menu
  • CTRL+ALT+Minus sign (-): Place a snapshot of the entire client window area on the Terminal server clipboard and provide the same functionality as pressing ALT+PRINT SCREEN on a local computer (ALT+PRT SC)
  • CTRL+ALT+Plus sign (+): Place a snapshot of the active window in the client on the Terminal server clipboard and provide the same functionality as pressing PRINT SCREEN on a local computer (PRT SC)

JPA - Java Persistence API

JPA seems to be another generation of Hibernate. It seems that even SUN has problem defining the difference between them.
Sun Says:
Sun Microsystems has stated that ideas came from several frameworks, including Hibernate and JDO.
But what is JPA ? it seems it is a persistence entity is a lightweight Java class whose state is typically persisted to a table in a relational database.
So what it does, it does what Hibernate was doing plus some more extra features. What are those features ? I am not sure yet, whenever I have hands on experience I will write here.
How to use it ?
Thanks to developers of EclipseLink, you can easily use that tool utilizing JPA within Eclipse for your project. For more information about EclipseLink, please visit their website.

7 December 2010

Google Chrome OS

Do you prefer to be fast or your data to be secure ? That’s the question you want to ask. Google chrome OS is so fast. It is not even comparable with the previous used to Operating Systems. But remember, everything is on the cloud. You are not loosing any data at the price of having someone else taking care of your data. This one is Google. Your choice, how much you want Google to know about you ? That’s the question you need to answer before switching to it.
I myself can see myself using Chrome OS in its guest user mode. Which don’t store anything and you can go online and do your things.
This is a video about Google Chrome OS and how to use it.