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 > Regarding dba_constraints,all_constraints,user_constraints

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-15-10, 07:40
ashwinjoshi ashwinjoshi is offline
Registered User
 
Join Date: Oct 2010
Posts: 18
Regarding dba_constraints,all_constraints,user_constraints

Hi,

I need dba_constraints,all_constraints,user_constraints equivalent in db2...

My requirement is I need to check all the constraints from user level for particular table...

From Admin side I know the syscat.constname,but cant find out the constraints at user level.
Reply With Quote
  #2 (permalink)  
Old 12-15-10, 14:05
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
The DB2 catalog contains all those details. You can query the catalog also by a regular user if that user has the necessary privileges to access the catalog tables/views. If you don't have those privileges, you may be able to address this via static SQL or so.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 12-16-10, 06:39
ashwinjoshi ashwinjoshi is offline
Registered User
 
Join Date: Oct 2010
Posts: 18
Hi,

can U please tell me what are the privileges needed to access at user level.

And please post me the query to find the constraints at user level...

Thanks in advance...
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