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 > changing schema db2 9.5 for windows

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-02-08, 15:47
dbansal dbansal is offline
Registered User
 
Join Date: Sep 2008
Posts: 16
changing schema db2 9.5 for windows

Hello,

I am a n00b here. So, question how do I change the schema of a database? Currently, I login to windows as administrator and I want to change the schema to admin. I have also added the admin user to my windows users group. I beleive admin also belongs to the db2admin group..

Thanks!
Reply With Quote
  #2 (permalink)  
Old 10-02-08, 17:00
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
What do you mean to change the schema of a database?

Andy
Reply With Quote
  #3 (permalink)  
Old 10-02-08, 17:02
dbansal dbansal is offline
Registered User
 
Join Date: Sep 2008
Posts: 16
owner/creator?
Reply With Quote
  #4 (permalink)  
Old 10-02-08, 17:32
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
There are two new system supplied stored procs to do this

ADMIN_COPY_SCHEMA
ADMIN_DROP_SCHEMA

You can search the doc or google to get input parms. The only problem I found is that it does not reset the sequences or identity columns to the same value as the old schema.
__________________
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