Solved

need help on dbms_redefinition package

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Migrating an SQL 2008 database to Oracle 12c 3 100
dates - loop 12 65
Oracle SQL Select unique values from two columns 4 52
Oracle - SQL Query with Function 3 34
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  â€¦
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

785 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