Solved

need help on dbms_redefinition package

Posted on 2014-09-30
3
280 Views
Last Modified: 2014-10-01
This is in reference to my previous question on changing an varchar2 column to CLOB.
http://www.experts-exchange.com/Database/Oracle/Q_28524807.html

The requirement has changed a bit and i have been asked to make the change without
adding the new column . They have asked to use dbms_redifinition package to do so.
Iam not too sure about it , any help in this regard is really appreciated.

I need to modify the column comments to clob. currently it is in users_tab tablespace , I need to move it to
user_lob tablespace. This needs to be done using DBMS_REDEFINITION package.

Any help is really appreciated.
0
Comment
Question by:sam_2012
3 Comments
 
LVL 16

Assisted Solution

by:Wasim Akram Shaik
Wasim Akram Shaik earned 150 total points
ID: 40351947
This should work,but unable to perform a test case to confirm

create an interim table which suits your data type needs(even specify the storage clause if you want the interim table to point different tablespace)  and use the  col_mapping mapping parameter in dbms_redefinition.start_redef_table

ie., you will not do any changes in the main table, you will modify the data types in your interim table and use column mappings with interim table

After this, sync the interim table with main table

An illustration of dbms_redefinition can be found here.
http://www.orafaq.com/node/4
0
 
LVL 29

Accepted Solution

by:
MikeOM_DBA earned 350 total points
ID: 40352194
0
 

Author Closing Comment

by:sam_2012
ID: 40355297
awesome.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question