DBAsupport.com Forums - Powered by vBulletin
Results 1 to 7 of 7

Thread: rename column name in sys.col$

  1. #1
    Join Date
    Mar 2001
    Posts
    29
    i am going to rename my column name in sys.col$
    any concerns?

    update sys.col$
    set name = 'NEWNAME'
    where name = 'OLDNAME';

    commit;

    alter system flush shared_pool;
    dino

  2. #2
    Join Date
    Jan 2001
    Posts
    3,134
    Mind if I ask why?

    MH
    I remember when this place was cool.

  3. #3
    Join Date
    Feb 2001
    Posts
    389
    Any Dependent code using the old column name , like SP,truggers etc.
    Old backups would be useless for the table.
    and i think if i rememeber correctly , re running of catblock and catproc after this screws up the data dictionary.

  4. #4
    Join Date
    Jan 2001
    Posts
    3,134
    I would do an emport of that table before altering it, just as a precaution.

    MH
    I remember when this place was cool.

  5. #5
    Join Date
    Sep 2001
    Location
    NJ, USA
    Posts
    1,287
    Do u sure that not exists any dependenses to this column?
    ---------------------------------------
    More safety (if Oracle 8i):

    1. add column to this table with new name.
    2. update table (set new_col = old_col)
    3. drop old column from table.
    4. reset all constraints
    5. recompile all packages, triggers ...

  6. #6
    Join Date
    Mar 2001
    Posts
    29
    coz of adding a new column with incorrect name...
    i think after renaming it, do an export and import will be more safe... agree?
    dino

  7. #7
    Join Date
    Feb 2000
    Location
    Singapore
    Posts
    1,758
    I would recommend not to mess-up with dictionary tables/views. Or be prepared for consequences. It is not at all recommended to modify data dictionary.

    Sanjay

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width