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 > Oracle > altering primary key length with child tables

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-17-12, 06:09
janik janik is offline
Registered User
 
Join Date: Jan 2012
Posts: 1
Lightbulb altering primary key length with child tables

Good morning
I’ve a small question for You. Maybe you could help please?
I have one task in which I have to change database (Oracle 11) It goes like this:

The primary key partner_id in PARTNERS table should be changed from number(15) to number(19).

There are many dependent tables, view and plsql routines, which refer to the primary key in PARTNERS. All these occurrences have to be changed using number(19).



Maybe you know some trick how to do it automatically not manually? executing few statements, rather than change every structure separately?

Could You please write an answer if it’s possible?

cheers,

Jan
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