IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Is schema change for database Possible???


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
srilata83

New User


Joined: 02 Apr 2009
Posts: 16
Location: chennai

PostPosted: Tue Sep 11, 2012 7:19 pm
Reply with quote

Hi ALL,
I am aMainframe DB2 DBA having database admin rights.I am using DB2 V9 z/os.I created a database under a schema and then I created some tables under that.After some days, I figured out that I wrongly set the ownership of database(And so the tablespaces) but the tables are having the right schema that we wanted.

Now I wanted to reset the schema name for the database(as well as the tablespaces), I am using BMC tool to change the ownership of the database.But it seems its failing .May be the tool is not supporting .

Is there anyway to acheive this with minimal impact??

Your valuable suggestions are highly appreciated !!
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Sep 11, 2012 7:42 pm
Reply with quote

Hello,

One safe thing to do would be to drop and re-create the entire structure. Then all will be as it should with no risk of anything incorrect remaining.

If there is data to be retained, back up everything first.

Make sure you have all of the DDL to re-create everything.

If you have a "sandbox" for dba experiments, suggest you re-build everything in the sandbox first, check it out, and then re-do the one with the problem.
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Tue Sep 11, 2012 7:53 pm
Reply with quote

there is no such thing as a database "schema" or a tablespace "schema".
There is a creator which has no significant value besides implied authority.
Or a storage group which is important for the high-level qualifier of the VSAMs.

tables schema or creator is important but have no relation to anything on database or tablespace level.

So it is pretty unclear what you are asking here.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts What database does Jobtrac use CA Products 4
No new posts 3270 personal communications. Can't c... TSO/ISPF 2
No new posts SELECT from data change table DB2 5
No new posts Trying to change copybook in online c... CICS 4
No new posts Change Default Scroll Setting TSO/ISPF 1
Search our Forums:

Back to Top