Solved

need help on dbms_redefinition package

Posted on 2014-09-30
3
267 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

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 …
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now