Eager to Code, Enjoy to Debug ~ Embark into Each Stage with Your Heart

Archive for the ‘DB2’ Category

Table Conversion from Oracle to DB2

Posted by: Chyne on: August 5, 2008

Oracle

Connect the Oracle database through Toad (Download from: http://www.toadsoft.com/, Toad for Oracle)
Save the result (data retrieval) based from the SQL statement in Fixed Field Spacing (Untick column headers, Tick ‘Include NULL text’)
• Save the result with the filename: testing.txt

DB2

Create a database
• Create a table
• Create the fields with the same attributes as the table in Oracle
Right click the [...]

DB2 Basic Commands

Posted by: Chyne on: July 30, 2008

Open command line
> db2cmd
Catalog the DB2 server node
> db2 catalog tcpip node [NODE_NAME] remote [HOST_NAME] server [PORT] remote_instance [db2inst1]
List the database
> db2 list database directory
List the command
> db2 ?

Procedures of Creating Database

Create a database
> db2 create database dbusr
Access to the location of the database
Connect to the new database
> connect to dbusr
Import the tables
> db2move [DATABASENAME] [...]

Tags:

Friday’s Java Snack


In Java, "thread" means:

  • An instance of class java.lang.Thread
  • A thread of execution


An instance of Thread is just an object that has variables and methods, and lives and dies on the heap.
 
A thread of execution is an individual process that has its own call stack (one thread per call stack).

 

November 2009
M T W T F S S
« Oct    
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Archives


StatCounter

free hit counters