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 > Quick Question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-17-11, 17:40
Gideon22 Gideon22 is offline
Registered User
 
Join Date: Jun 2011
Posts: 39
Quick Question

I just installed DB2 on a non-GUI Linux system

I have not used DB2 in years

1> Without installing a Windows client, what command can I invoke to create and configure a new table (or do I have to install the Windows client first)

2> What command do I execute to start an interactive SQL session ?
Reply With Quote
  #2 (permalink)  
Old 06-17-11, 22:00
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
You can use putty to ssh into the Linux and use the command line interface. Just begin each command with db2:

db2 "select * from syscat.bufferpools"
or
db2 -tvf create_table.sql > create_table.out (assuming SQL is in create_table.sql file)

If you want a GUI interface from Windows, you can install IBM Data Studio, a free download from IBM (free registration may be required). You can also use the Control Center if you install the DB2 client for Windows (also free download), but you will need to make sure the adminstrative server is running on Linux for some Control Center functions to work. The Control is officially "depricated" but still works for most things, and sometimes better than Data Studio.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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