Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Is schema change for database Possible???

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
srilata83

New User


Joined: 02 Apr 2009
Posts: 15
Location: chennai

PostPosted: Tue Sep 11, 2012 7:19 pm    Post subject: Is schema change for database Possible???
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

Site Director


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

PostPosted: Tue Sep 11, 2012 7:42 pm    Post subject:
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: 1278
Location: Belgium

PostPosted: Tue Sep 11, 2012 7:53 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS Database backup info ashek15 IMS DB/DC 14 Wed Nov 16, 2016 5:29 am
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts Getting list of tables defined under ... kishpra DB2 2 Wed Aug 24, 2016 10:36 am
No new posts How to change dataset attributes of m... ignich7 JCL & VSAM 3 Thu Jul 21, 2016 9:17 pm
No new posts GDG vsersion number change Raghu navaikulam JCL & VSAM 5 Fri May 27, 2016 4:49 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us