Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 16
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: 1281
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 Cannot change DATACLAS on DFSMSdss re... Alan Playford JCL & VSAM 10 Tue May 01, 2018 6:43 pm
No new posts Repeat Sequence Number Until change i... rahulabvp DFSORT/ICETOOL 6 Thu Mar 29, 2018 12:51 pm
No new posts How to change the logon screen info o... sakthikumarT TSO/ISPF 4 Fri Dec 29, 2017 6:44 pm
No new posts Change NULL indicator in UNLOAD utility Khadhar Basha DB2 2 Fri Dec 15, 2017 3:01 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us