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 > How to change the schema name for a table?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-14-04, 06:34
dnlchou dnlchou is offline
Registered User
 
Join Date: Jul 2002
Posts: 10
How to change the schema name for a table?

Hello,

I have several questions :

1. How to change the schema name of all the tables in a database without using db2move?

2. How to change the table owner for a table?

3. If db2move should be used, can it support data types such as BLOB and identity?


Thanks a lot.
Reply With Quote
  #2 (permalink)  
Old 04-14-04, 07:16
Tank Tank is offline
Registered User
 
Join Date: Feb 2004
Location: Copenhagen
Posts: 220
Some options

I don't think you can change the qualifier for
a table. You can create a new table like the old
one with another qualifier. i.e.

create table <newschema>.<tablename> like
<oldschema>.<tablename>

And erase the original one.

The owner(creator) of a table is recorded as the qualifier
at creation time, in sysibm.systables.
You can specify a creator by explicitly qualifying the table,
but I don't think you can change it afterwards

BOW
__________________
Kristian K. Hansen
Project Supervisor
National Board of Health
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