If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > db2 help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-09-04, 08:35
ramakrishna ramakrishna is offline
Registered User
 
Join Date: Jan 2004
Location: hyderabad
Posts: 10
db2 help

hi all

i am new to db2 environment. I am currently working on oracle9i I like to know couple of things how to get info from db2 like

what is describle command alternative in db2 ---- to know the structure of the table and its datatypes which we use in oracle.

how to set editor i want the syntax and in which window to execute it.

plz help for these.


bye
ramakrishna
Reply With Quote
  #2 (permalink)  
Old 02-09-04, 09:48
dollar489 dollar489 is offline
Registered User
 
Join Date: Sep 2002
Posts: 456
Here is the link to DB2 technical library for V8, V7 and other documents..

http://www-3.ibm.com/cgi-bin/db2www/...bs.d2w/en_main

hope this helps.

dollar
Reply With Quote
  #3 (permalink)  
Old 02-09-04, 10:14
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
You should also visit www7b.boulder.ibm.com/dmdd

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 02-09-04, 10:22
dollar489 dollar489 is offline
Registered User
 
Join Date: Sep 2002
Posts: 456
Re: db2 help

another way to get help once you are in DB2 command window is:

db2 ? string

where string could be something like import or export or connect or list etc...

dollar
Quote:
Originally posted by ramakrishna
hi all

i am new to db2 environment. I am currently working on oracle9i I like to know couple of things how to get info from db2 like

what is describle command alternative in db2 ---- to know the structure of the table and its datatypes which we use in oracle.

how to set editor i want the syntax and in which window to execute it.

plz help for these.


bye
ramakrishna
Reply With Quote
  #5 (permalink)  
Old 02-09-04, 11:53
famudba famudba is offline
Registered User
 
Join Date: Jan 2004
Location: Tallahassee, FL, USA
Posts: 96
ramakrishana.


for describe structue

db2 describe table creator.tablename

db2 ? load
db2 ? export
db2 ? import

which version db2 are U using

for more info refer below link

for DB2 UDB V8

http://www-306.ibm.com/cgi-bin/db2ww...bs.d2w/en_main


for DB2 UDB V7.x

http://www-306.ibm.com/cgi-bin/db2ww...bs.d2w/en_main


let me know , if any questions


Lekharaju Ennam
Reply With Quote
  #6 (permalink)  
Old 02-10-04, 02:59
ramakrishna ramakrishna is offline
Registered User
 
Join Date: Jan 2004
Location: hyderabad
Posts: 10
how to set editor

hi ,

thanx for the solution u provided for describing a table. I am using db2 v8 . I also want to know how to set editor as notepad which environment variable i need to work and in which window i need to do it .

who is the super user in db2
bye
ramakrishna
Reply With Quote
  #7 (permalink)  
Old 02-10-04, 05:47
hanyheggy hanyheggy is offline
Registered User
 
Join Date: Jan 2004
Location: Egypt
Posts: 61
Re: how to set editor

Quote:
Originally posted by ramakrishna
hi ,

thanx for the solution u provided for describing a table. I am using db2 v8 . I also want to know how to set editor as notepad which environment variable i need to work and in which window i need to do it .

who is the super user in db2
bye
ramakrishna

if u install db2 documentation correctly, db2 help can be accessed by db2help on UNIX systems , this will provide a web browser with html help for all document and manuals

u still can use db2 ? xxxx

or download DB2 PDF manauls form ibm web site its free

the db2inst1 is the super user in db2, this can be defined when u create the instance or install db2
__________________
hany heggy,
IBM certified Professional, AIX system support
www.melodyhits.tv
Reply With Quote
  #8 (permalink)  
Old 02-10-04, 12:53
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
In Oracle SQL you talk to SQLPLUS processor which interphases your sql to the server; you can set up an editor to edit the current command in sqlplus. In db2, each sql is an OperatingSystem command. If you want, write a bunch of sql commands, all ending in ';' in a notepad
called xyz.txt; then db2 -tf xyz.txt will read from this file(like @xyz.sql in oracle)using -o option you can spool etc. Type db2 "? options" or db2 "? help" to get more details. " is needed in some UNIX environments for certain commands. You can edit xyz.txt and rerun it.
__________________
mota
Reply With Quote
  #9 (permalink)  
Old 02-11-04, 10:55
hanyheggy hanyheggy is offline
Registered User
 
Join Date: Jan 2004
Location: Egypt
Posts: 61
Quote:
Originally posted by dbamota
In Oracle SQL you talk to SQLPLUS processor which interphases your sql to the server; you can set up an editor to edit the current command in sqlplus. In db2, each sql is an OperatingSystem command. If you want, write a bunch of sql commands, all ending in ';' in a notepad
called xyz.txt; then db2 -tf xyz.txt will read from this file(like @xyz.sql in oracle)using -o option you can spool etc. Type db2 "? options" or db2 "? help" to get more details. " is needed in some UNIX environments for certain commands. You can edit xyz.txt and rerun it.
there are many ways to issue commads to db2

1. using db2 CLP
from command line > db2
u will get text interface (like ORACLE sqlplus) then issue whatever u wanna

2. using system call for single command
from command line > db2 " bla bla bla "

3. using system call with files
group all commands u wanna in a file xx.xx
db2 -stf xx.xx

4. using programs
embeded sql in any prog. lang.

5. using DB2 GUI tools like command center
__________________
hany heggy,
IBM certified Professional, AIX system support
www.melodyhits.tv

Last edited by hanyheggy; 02-11-04 at 11:18.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On