Solved

need help on dbms_redefinition package

Posted on 2014-09-30
3
288 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

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…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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 explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

724 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