Personal tools
You are here: Home Forums DB2 request for a db2 querry
Navigation
Log in


Forgot your password?
 
Document Actions

request for a db2 querry

Up to DB2

request for a db2 querry

Posted by abcd at November 25. 2009

Can  any one share a direct db2 SQL to list out the all  table names of a given schema into single file




Regards


kanak


Re: request for a db2 querry

Posted by perallis at November 25. 2009

select rtrim(tabschema),rtrim(tabname) from syscat.tables where tabschema=<SCHEMA_NAME> 


Re: request for a db2 querry

Posted by abcd at November 26. 2009

THanks,




Can you pls give me the SQL to get the tablespace names and bufferpool names in for a given database




Regards


kanak


Re: request for a db2 querry

Posted by perallis at November 30. 2009

TABLESPACES

db2 list tablespaces show detail
or
db2 "select TBSPACE from syscat.tablespaces"
or
db2pd -d <dbname> -tablespaces
or
db2look -d <dbname> -l




BUFFERPOOLS

db2 "select BPNAME from syscat.bufferpools"
or
db2pd -d <dbname> -bufferpools
or

db2look -d <dbname> -l


Powered by Ploneboard
Security Awareness
Would you like your company to implement gamification into your security awareness program?





Polls