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 > Database schema

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-23-10, 11:11
Rajesh11 Rajesh11 is offline
Registered User
 
Join Date: Feb 2010
Posts: 1
Database schema

Hi Guys
We have problem to get the information about the Database schema,I am a beginner in DB2.
AIX 6.1, DB2 9.7.0
We have following application specific tablespace:
PVTXTPS
PVTXTGIS
PVTXSVC
PVTXTJOU
PVTXRPT

We need following info:
1.Server Name: DB server being used by the Servlet Configuration DB.
2.Port: Listening port of the DB server being used by the Servlet Configuration DB.
3.Database Name: The name of the DB being used by the Servlet Configuration DB.
4.Database Username: The username for the Servlet Configuration DB.
5.Database Password: The password for the Servlet Configuration DB.
6.Database Schema: schema used by the Servlet Configuration DB.

Note: In the IBM DB2 Database Management System, the database schema is the user name under which
tables are created.


1.I believe server name would be the hostname/IP of the server where db2 is installed
2.Port no :50000
3.For Database name: I ran command: "db2 list db directory" and i got "VTX" as database name
4.Database Username: i think that would be db2dv1
5.DB Password: i think that would be password for db2dv1
6.Database schema:
for database schema, I ran command : db2 describe table <schema>.<tablename>
Ex: db2 describe table db2dv1.PVTXTPS
Ex: db2 describe table db2dv1.PVTXTGIS // i thought db2dv1 is the schema name

But when i tried to use: db2 select * from db2dv1.PVTXTGIS or db2 select * from db2dv1.PVTXTPS
Error: SQL0204N "DB2DV1.PVTXTGIS" is undefined name. SQLSTATE=42704

Please assist me to fill the entries/schema name for database to proceed further in application installation.

Regards,
Rajesh
Reply With Quote
  #2 (permalink)  
Old 02-23-10, 11:43
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
You can check the catalog view syscat.tables to verify your assumptions about the schema name.
Reply With Quote
  #3 (permalink)  
Old 02-23-10, 16:47
db2pro db2pro is offline
Banned
 
Join Date: Mar 2009
Posts: 36
db2 "select tabname, tabschema from syscat.tables where tabname = 'PVTXTPS'"
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