Schema changes on on large tables

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • PR

    Schema changes on on large tables

    Hi,
    I have a basic question on schema changes performed on populated tables.
    Should I prepare for big roll back area and so on for both of these changes:
    ALTER TABLE ADD COLUMN
    ALTER TABLE ALTER COLUMN
    Table contain abt. 40 mill records

    Appriciate the help, as i am just DBA stand in in my project:-)
  • Yukonkid

    #2
    Re: Schema changes on on large tables

    priisberg@netsc ape.net (PR) wrote in message news:<d95b480f. 0409132303.291b 66f9@posting.go ogle.com>...
    Hi,
    I have a basic question on schema changes performed on populated tables.
    Should I prepare for big roll back area and so on for both of these changes:
    ALTER TABLE ADD COLUMN
    ALTER TABLE ALTER COLUMN
    Table contain abt. 40 mill records
    >
    Appriciate the help, as i am just DBA stand in in my project:-)


    ALTER TABLE ADD COLUMN

    As far this is only a change in Oracle's data repository there is
    nothing to concern about rbs sizing = fast.

    ALTER TABLE MODIFY COLUMN (you mean)

    generally, no overhead if you keep the sizes or extend them = fast
    if you shrink the sizes there's some validation that could take a
    while, but nothing to concern about regarding rbs.

    RBS will come into play when you have to update your new/changed
    column.
    I prefer several RBS split in one RBS per tablespace , enough data
    files with autoextend (but with max. size limit, say 2 Gb) so the
    system can choose ANY rbs to end the transaction successfully.

    hope that helps

    yk

    Comment

    • PR

      #3
      Re: Schema changes on on large tables

      Hi,
      Thanks a lot for your answer.
      I checked the details of the operations (traced up the transactions),
      and they are all "ALTER ADD" types. However the statements contain a
      default value setting of 0,00 (Datatype DEC 2,2). I belive this
      results in roll?

      Comment

      Working...