Can we add a new column to a UNIQUE INDEX with out droping the same index?
Can one please let me know how to add a new column to the UNIQUE INDEX existing on the same fall.DB: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production 64-bit
Thank you.
Mahi.
TechMahi.com wrote:
Can one please let me know how to add a new column to the UNIQUE INDEX existing on the same fall.
DB: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production 64-bit
Thank you.
Mahi.
I think that its doable and I don't think that it should be feasible to all too since that would disrupt the structure of index completely. I think, you must delete the existing one to add a new column that is do a composite index.
Aman...
Tags: Database
Similar Questions
-
I have a site very large desk and a smaller mobile version. Now, I need to add pages to version more mobiles that are linked and redirected the parent office. I don't see a way to get where you will consider 'related pages '. Note: I is NOT need to create a mobile version of my site. I already have a mobile version. Now, I need to add new mobile pages that are matched with the office pages. Thanks for any help!
Unfortunately, there is no way where desktop content page could get copied to the mobile pages, you must do it manually by dragging the content of mobile pages and resize them.
Thank you
Sanjit
-
Hello
I have an emp_job_det with a, b, c columns table. Note that this TABLE ALREADY has DATA OF THESE COLUMNS
IAM now add a new column "D" with forced not null
Fistly I alter the table by adding the single column "D", if I do, the entire column would be created with alll of nulls for the column DEFAULT D
ALTER table emp_job_det Add number D; -do note not null CONSTRAINT is not added
Second... If I try to add the constraint not null, get an eoor as already conatained null values...
(GOLD)
In other words, if I put the query
ALTER table emp_job_det Add number D NOT NULL; -THROWS ERROR AS TABLE ALREADY CONTAINS DATA
So my question is how how can I add a new column with a constraint not null, table already has the data, without falling off the table
Please help me on this issue...
Add the column without constraint, then fill the column. Once all the rows in the table are given in the new column, and then add the constraint not null.
-
Hello
Previously in Windows XP and 2003, IColumnProvider is available using which it was possible to add a new column to Windows Explorer Details view, but with the removal of this API, the new columns are is not displayed in Windows Explorer on a Vista or Windows 2008 Server. It is said that there is a new concept of property system. So I would like to know if it is possible to implement something similar uses of property systems.These forums are for end users, rather than developers. You must use the MSDN Forums to get this kind of information.
-
I have a request to work and added a new column in the table.
How can I put this new field available to APEX and add it to a form of the APEX?
Kind regards.
-Wilfried
Hi Wilfried,.
Note the Source of the other elements on your form; they should be of the Type of Source - database column. Add your new column to the shape as a new point using the same Type of Source.
Jeff
-
Add a new column and update of records
I have the DW (OBAW) loaded at full load. Everything works fine.
Now, I add a new column in a dimension in the DW (and in the ETL, RPD, CAD, etc.).
I know that new (incremental) charges will take care of this column for the new/changed records... but
Question is how can I update records, already loaded into PS for values in this column...?
(a) I guess I can do this particular task of this dimension marked as 'full' DAC
I'm not sure it's a good solution... I guess new ROW_WIDs will be generated and I have the connection with the fact table will be broken... Right?
(b) I could blank the date of updating for this table W_ and/or refresher for this table S_ (from Siebel)
I guess this could affect more than one task... or in other words all tasks dealing with this tables W_ and S_ - it also seems that the issue with the new ROW_WIDs will continue...
Pls someone care to comment or offer a better solution?
TXS. A lot.
Antonio
Assume that the table is W_ASSET_D or any other dimension...
Yes, I plan to the OOB card personalization (in the folder custom, etc.).
So if I'm correct... the option for setting null date discount for the W_ASSET_D table... and the use of DAC pointing to the custom task will take care of him...
Just to be sure... It will not create new ROW_WIDs for W_ASSET_D?
I'm worried by the _F FKs to this dimension tables...
TXS for your help.
-
Alter a table to add 2 new columns
Hi gurus!
Am editing a table to add 2 new columns... The total number of records in the table RAILWAY is -103002
Here is the news columns to add to the IRON table.
ALTER TABLE ADD IRON
(DLD VARCHAR2 (5))
ID NUMBER (38),
VARCHAR2 (1)) READY.
the statement takes more than 6 minutes to run, so I canceled the performance.
can someone pelase I would like to know what is the reason here.
Please ask your dBA to unlock it for you.
Kill the session that locks the table.
To view the session which can be locked using the below stated:
Select c.owner, c.object_name, c.object_type, select, b.serial #, b.status, b.osuser, b.machine
v $ locked_object a, v$ session b, c dba_objects
where select = a.session_id
and a.object_id = c.object_id;
-
Hello
I try to add a new column not null in the emp default table exist. Initially, I created the column (like BONUS) and then I try to apply the constraint in this amended by order. But it does not happen I mean forced is not added to the column as already the column will have NULL values for records existing (or lines). Can someone help me how to solve the problem?
Thank you and best regards,
Vishnu.first disable constraint...
ALTER table dept change the ur_constraint_name disable constraint;
then insert the data can
ALTER table dept change the ur_constraint_name novalidate constraint;
then
ALTER table dept change enable NOVALIDATE constraint ur_constraint_name;
Try this we can help
-
Unable to add a new column to the table of the LCD? Option, just usually add it.
I have a form of LCD with a table in it. Im trying to simply add a new column to the table. The option is there, but the column appear just after clicking Add the column to the left. I selected a column, right click the space > insert > column to the left. But the habit intsert. The object table properties tab shows lines and colum numbers, but they are grey.
See screenshots:
http://www.emermed.NET/staging/forums...
http://www.emermed.NET/staging/forums...
It is a dynamic array, where a new line can be inserted using a button. Is that the dynamic nature of the question? ID hate to cancel all the flow dynamics and programming just to add a column, and then reapply them all.
Thank you!Hello
You do not add the columns in the object > palette (screenshot 2) of the Table. I suspect that the problem is that it is not enough on the page (in the content area) to add the column. In the screenshot 1, if you look at the width of the column highlighted from the space to the right of the table, you will see that a column can be added due to restrictions of space.
Reduce the width of the column highlighted (temporarily), and then add a column. Once added, you can resize the columns to match the width of the page.
Hope that helps,
Niall
-
Hi all
I have tab_trans of transactions table which has nearly 20 million records.
He has entries of all transactions. If any transaction is canceled or partially canceled it also stored there.
To know entirely cancelled transactions currently, we need calculate the sum of the amount of the transaction based on trans_date and trans_id.
To avoid this, I want to add a new column to the table. But it takes a lot of time hell.
This is the structure of the table.
IE > partially/fully cancelled transactions should refresh the rest_amount in the original transaction (where trans_id = 0).Trans_id Trans_date Ref_trans_id Ref_trans_date Trans_amount Trans_ind 10000 2/2/2010 13:12:10 100 0 10001 8/2/2010 12:43:55 300 0 10002 11/2/2010 09:23:24 10000 2/2/2010 13:12:10 -20 1 10003 22/2/2010 10:32:45 10000 2/2/2010 13:12:10 -40 1 10004 23/2/2010 09:45:23 10001 8/2/2010 12:43:55 -300 1 10005 24/2/2010 07:30:23 500 0 So I decided to create a temp_table using CTAS from tab_trans add the rest_amount column and update it with trans_amount in CTAS itself. create table temp_tab_trans as select Trans_id,Trans_date,Ref_trans_id,Ref_trans_date,Trans_amount,Trans_amount rest_amount from tab_trans ; Then I find out the rest_amount using correlated query. update temp_tab_trans a set rest_amount =nvl (select sum(trans_amount) from tab_trans b where b.ref_trans_date=a.trans_date and b.trans_id=a.trans_id),trans_amount) where trans_id=0; My intended result is : Trans_id Trans_date Ref_trans_id Ref_trans_date Trans_amount Trans_ind Rest_amount 10000 2/2/2010 13:12:10 100 0 40 10001 8/2/2010 12:43:55 300 0 0 10002 11/2/2010 09:23:24 10000 2/2/2010 13:12:10 -20 1 -20 10003 22/2/2010 10:32:45 10000 2/2/2010 13:12:10 -40 1 -40 10004 23/2/2010 09:45:23 10001 8/2/2010 12:43:55 -300 1 -300 10005 24/2/2010 07:30:23 500 0 500
After the temp_tab_trans, I create indexes as in tab_trans and deposit of tab_trans and rename temp_tab_trans to tab_trans.
Can I do the update in the ETG itself? Can someone help me...Hello
You can get the sum without a subquery using the analytical SUM function, like this:
CREATE TABLE temp_tab_trans AS SELECT t.* , CASE WHEN trans_ind = 0 THEN SUM (trans_amount) OVER ( PARTITION BY NVL (ref_trans_id, trans_id) , NVL (ref_trans_date, trans_date) ) ELSE trans_amount END AS rest_amount FROM tab_trans t ;
If you wish to post, CREATE TABLE and INSERT statements for your sample data, and then I could test it.
-
Add a new column in a report to rich TEXT format
I have a report to rich TEXT format and I want to add a new column that contains a formula of addition of let's say column A5 and A7. How do I get there? the A5 and A7 columns are the data loaded from the XML file. Thank youThe example given by Vetri is for the actual columns in the xml file only.
You can useMake sure that the values are not null. If so, convert or conditionally replaced by 0 number and use it.
-
Why don't I see "Bookmark this page" any longer? I can't add a new bookmark.
Is it possible to go back to the old way of adding and display of bookmarks? I can't add a new bookmark, and one of my "old" now appears in the 'most' visited bar (is no longer in my list of bookmarks). I tried to use the star to add bookmark, but the new URL does not appear in my list of bookmarks.
'Bookmark this page' has been removed from the menu drop down.
There are other ways to save a new bookmark.
1. right click on the page and use "bookmark this Page".
2 {Ctrl + D} from the keyboard.
3. When you click once on the 'Star', the new bookmark is saved in the unsorted bookmarks folder. If you click twice, slowly, you will get a screen that allows you to select the folder in which to save the bookmark in. -
I deleted my audio driver. How can I add a new?
I deleted my audio driver how can I add a new? It was on windows xp pro.
Download and install the Audio drivers:
Visit the computer manufacturer's website and select your model (this is usually done in the Support section). You should be able to download drivers for your model if they have drivers for your version of Windows. Download the driver and then follow the instructions to install.
-
How can I add a new RSS feed for sidebar gadgets?
I'm stuck with US new RSS on my sidebar gadget. How can I add a new RSS feed for sidebar gadgets?
I added a RSS FLOW for the BBC (news, sport, etc.) to my "Favorites" internet, but when you browse gadgets sidebar 'options' menu drop-down only pick up "microsoft standard" stuff that is of the United States. How the gadget captures the stream?
To use Firefox as your browser:
Firefox and Vista RSS platform
http://www.netcrucible.com/blog/2007/01/25/Firefox-and-Vista-RSS-platform/t-4-2
-
I don't know what happened, but I can't add a new folder more...
Hello
Glad to know that the problem has been resolved. Thanks for sharing the information. If you have additional questions about Windows, please post your questions in this forum.
Maybe you are looking for
-
Can I switch from Windows XP Pro to Windows XP Pro Corporate
I have a machine Windows XP Pro can I switch to Corporate?
-
PPP CHAP counterpart x 3000-authentication failed
Hello I just bought Linksys x 3000 a few days for my DSL to Jakarta. After that I configured my 3000 x, the internet connection could not go up if the PVC connection is in place. Here is some information of the device: Router informationFirmware vers
-
There are function keys on my laptop 20a20NR 2000 for brightness, but no buttons for contrast. How to adjust the contrast? (Windows 7)
-
win3\Alureon.H virus
Software Microsoft malware to partially remove the win3\Alureon.H virus, must be removed completely. DVD again for opening, closing and redirected when using Internet Explore. Hitman Pro told me running the server proxy, but who has not checked in pr
-
C COMPILERSI HAVE WINDOWS 7 HOME BASIC 64 - BIT OPERATING SYSTEM. ANY COMPILER C LIKE TURBO C/C++, BORLAND C/C++ DO NOT WORK WITH IT. WHAT WILL I DO?PLEASE SUGGEST ME...AND EMAIL ME AT * address email is removed from the privacy *.