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 > issue with current schema

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-31-10, 10:01
alanhome alanhome is offline
Registered User
 
Join Date: Mar 2010
Posts: 9
issue with current schema

Hello,

I want create some tables with schema "DB2ADMIN" in DB2 control center.

So I do "db2admin stop" and "db2admin setid db2admin"
and give current password and db2admin start

when I open db2 control center, but SQL-Authorization-ID is not "db2admin"

any one can help on this ?
Reply With Quote
  #2 (permalink)  
Old 03-31-10, 10:12
alanhome alanhome is offline
Registered User
 
Join Date: Mar 2010
Posts: 9
ok, I got it .


choose your database and choose query, and give the command "set current schema = db2admin" and run it
Reply With Quote
  #3 (permalink)  
Old 03-31-10, 16:54
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
I prefer to always qualify all objects with their schema name to make sure you don't run into problems if the SET CURRENT SCHEMA has been forgotten. Besides, there are other objects like UDFs, where different special registers (e.g. CURRENT FUNCTION PATH) are used for resolution.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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