How to add the column to the compressed table
Hi gurus,Can someone help me how to add a column to compressed tables
Thanks in advance
The only difference is if added column has a default value. In this case:
SQL> create table tbl(id number,val varchar2(10))
2 /
Table created.
SQL> insert into tbl
2 select level,lpad('X',10,'X')
3 from dual
4 connect by level <= 100000
5 /
100000 rows created.
SQL> select bytes
2 from user_segments
3 where segment_name = 'TBL'
4 /
BYTES
----------
3145728
SQL> alter table tbl move compress
2 /
Table altered.
SQL> select bytes
2 from user_segments
3 where segment_name = 'TBL'
4 /
BYTES
----------
2097152
SQL> alter table tbl add name varchar2(5) default 'NONE'
2 /
alter table tbl add name varchar2(5) default 'NONE'
*
ERROR at line 1:
ORA-39726: unsupported add/drop column operation on compressed tables
SQL> alter table tbl add name varchar2(5)
2 /
Table altered.
SQL> update tbl set name = 'NONE'
2 /
100000 rows updated.
SQL> commit
2 /
Commit complete.
SQL> select bytes
2 from user_segments
3 where segment_name = 'TBL'
4 /
BYTES
----------
7340032
SQL> select compression from user_tables where table_name = 'TBL'
2 /
COMPRESS
--------
ENABLED
SQL> alter table tbl move compress
2 /
Table altered.
SQL> select bytes
2 from user_segments
3 where segment_name = 'TBL'
4 /
BYTES
----------
2097152
SQL>
SY.
Tags: Database
Similar Questions
-
How to add the attachments table
Hello
We have a requirement to indicate attachments of invoice (i.e. the scanned image of the invoice) in the requisition/PO iProc details page.
for example. I want to show all attachments of invoice in the Details of the '' page (i.e. detached from all the bills related to the PO)
If someone has worked on adding a new area of attachments to the OA page, please let me know the details on how to do the same thing or any pointer would be really useful.
Rgds,
-KamalKamal,
I understand that you want to add a table of attachments to a Standard page where you can view the existing bindings.
Check that your page data comes from a VO EO of base, so it's very easy to get attachments.
To check that your VO is based EO, goto this page and the details of the VO.You must add a Velcro type element (there is table 3 types, links, region) with SEO to your OT and its primary key.
Here you can mention also, attached properties (read-only, lets delete... etc).Let me know if you are not able to achieve the same thing.
More details,
http://apps2fusion.com/apps-training/apps-functional-documents/75-AME-sshr/433-attachments-self-service-Oracle-Apps
http://apps2fusion.com/apps-training/apps-functional-documents/75-AME-sshr/434-OA-framework-document-upload-attachmentsThank you
With respect,
Kali.
OSSI. -
How to add the new column in existing table to our desired location?
How to add the new column in existing table to our desired location?
For example, I have to add the new column 'course' before the salary column in the emp table.
I think the best way is to add the column at the end of the table and create a new view with the order of the columns...
Another option...
places the data into a temporary table and recreate the table with the correct order of the columns, and then insert data to the table from the temporary table
Refer
Add column (from table) in the desired position
Example:
CREATE TABLE temp_my_user LIKE)
SELECT * FROM password);
DROP TABLE password;
(Password) CREATE TABLE
userID NUMBER
, first name VARCAHR2 (25)
, middleInitial VARCHAR2 (1)
(, name VARCHAR2 (25));
INSERT INTO password (userID, firstName, lastName)
(SELECT username
first name
lastName
OF temp_my_user);
DROP TABLE temp_user;
-
How to add the new column in the tabular layout editor in Oracle Forms
Hello
I need to add the new column to a datablock and display the newly added column in the form. What are the steps I need to follow.
1. I chose the new column from the view to the datablock.
2. Add the text element in the layout editor. But this position is not correct. It overlaps with another column. How to add the new column to the layout editor?
Thank you
HCIn the layout editor, you can simply drag the fields so that they do not overlap.
See http://www.youtube.com/watch?v=7emNa7THMLgSandeep Gandhi
-
How to add the column to Adobe flex mxml or actionsctpt mx:DataGrid?
I have the simple mxml code
<mx:DataGrid id="DGG"
editable="true">
<mx:dataProvider>
<mx:Object scheduledDate="4/1/2006"/>
</mx:dataProvider>
</mx:DataGrid>
<mx:Button id="SetBut"
label="Set Array as Data Provider"
click="SetDP(); AddBut.visible = true;"
x="100.5"
y="164"
width="211"/>
<mx:Button id="AddBut"
label="Add a column!"
click="AddCol();"
x="100.5"
y="194"
width="211"
visible="false"/>
<mx:Script>
<![CDATA[
import mx.controls.dataGridClasses.DataGridColumn;
import mx.collections.ArrayCollection;
[Bindable]
public var MyAC:ArrayCollection=new ArrayCollection([{scheduledDate: "4/1/2006", homeTeam: "Chester Bucks"}]);
public function SetDP():void
{
DGG.dataProvider=MyAC
}
public function AddCol():void
{
MyAC.addItem({scheduledDate: "4/5/2007", homeTeam: "Long Valley Hitters", Umpire: "Amanda Hugenkis"});
DGG.columns.push(new DataGridColumn("Umpire"));
}
]]>
</mx:Script>I want to add lines to my datagrid table how do such thing?
How to add the column to Adobe flex mxml or actionsctpt mx:DataGrid?
(You can place this code in a Flash or AIR application - it compiles without error, but will not add any columns =)
Change this:
public void SetDP (): void
{
DGG.dataProvider = MyAC
MyAC.addItem ({scheduledDate: "05/04/2007", homeTeam: "long hitters Valley", umpire: "Amanda Hugenkis"});
}
public void AddCol (): void
{
var dgc:DataGridColumn = new DataGridColumn ("Umpire");
var ca:Array = DGG.columns;
CA.push (DGC);
DGG.columns = ca;
}Dany
-
Remove the column from the compressed tables
NLSRTL 11.2.0.3.0 Production Oracle Database 11g Enterprise Edition 11.2.0.3.0 64 bit Production PL/SQL 11.2.0.3.0 Production AMT for Linux: 11.2.0.3.0 Production Hello
I read on how to do to remove a compressed table column - first set unused and then drop unused columns. However, in the example below on the basis of data, I ran it, it does not work. Please, can you tell me WHEN this approach does not work. What is dependent on - settings or something else. Why can't I drop unused columns?
And the example and errors:
create table tcompressed compress in select * from all_users;
> TCOMPRESSED table created.
ALTER table tcompressed add x number;
> table TCOMPRESSED altered.
ALTER table tcompressed drop the x column;
>
Error report:
SQL error: ORA-39726: unsupported operation column add/drag on compressed tables
39726 00000 - "operation column add/drop not supported on compressed tables. ''
* Cause: Not support add/column operation move compressed tables
elapse.
* Action: When adding a column, do not specify a default value.
DELETE column is only supported in a column SET UNUSED
(remove the column metadata).
ALTER table tcompressed unused column of the set x;
> table TCOMPRESSED altered.
ALTER table tcompressed drop unused columns;
>
Error report:
SQL error: ORA-39726: unsupported operation column add/drag on compressed tables
39726 00000 - "operation column add/drop not supported on compressed tables. ''
* Cause: Not support add/column operation move compressed tables
elapse.
* Action: When adding a column, do not specify a default value.
DELETE column is only supported in a column SET UNUSED
(remove the column metadata).
As you can see even after changing the table defining the column as unused X I still can't drop by DROP UNUSED COLUMNS.
Thank you.
If you enable compression for all operations on a table, you can delete the columns in the table. If you enable compression for the only direct-path inserts, you can't remove columns.
-
How to add the primary key for the table with the existing data?
The table is already busy data. There was no primary key before, so for each column, there are some duplicate values.
I want to add a new column, which should be of the integer data type and can automatically incremented, from 001. I tried with Oracle SQL Developer, but it says "ORA-01758: table must be empty to add mandatory (NOT NULL) column. How can I do? Thank you!Hello
Look for the [ALTER TABLE | http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_3001.htm#sthref4803] command to find out how to add a column (step (1)) and a (step (3)) constraint to an existing table.
For the step (2):
CREATE SEQUENCE employee_id_seq START WITH 1 ; UPDATE employee SET id = employee_id_seq.NEXTVAL;
When you create a sequence, START WITH 1 is the default value, so that the line is not really necessary above... I've included just to show how you could start with any number you have chosen.
-
How to add the name of the title of graph in Excel
Dear friends
I'm using LabVIEW 8.0.I need how to add the name of the title of graph in Excel.
You have the report generation tool? If so, the VI of graph Easy Excel has an entry for this.
If you don't have the Toolbox, then you need to use ActiveX. Please do a search on the use of the ActiveX (there are examples provided with LabVIEW) to control Excel. Also, there are many examples in the thread Excel. NOTE: DON'T POST QUESTIONS IN THIS THREAD.
In the end, you will need to search for information contained in MSDN.
-
How to add the full value of two buttons?
How to add the full value of two buttons (any key) VI and display it in the output text box? I am attaching a sample program, but I know that his evil... Help, please
Try this
-
How to add the quick launch of the desktop icon bar
How to add the toolbar launch quick icon on the desktop. I can't find a desktop icon that will drag on
The following Microsoft KB article
http://support.Microsoft.com/kb/190355/en-us
will help you.
Good bye.
-
How to add the translation application to my email add FB?
Original title: translation
I need to know how to ADD the TRANSLATION software to my email add FB? Any help?
Try here: https://www.facebook.com/help/100117036792266
Translate the updated Facebook application on the road
-
Hi, I want to try to use Quazip. Since I read, I have to add the library before use.
I downloaded from http://quazip.sourceforge.net/
How to add the Quazip library? Please explain the step, never add lib before.
Thank you
I have change the .pro file
Like this:
http://StackOverflow.com/questions/13341234/unzip-files-downloaded-from-Server
-
How to add the profile of lenses?
How to add the profile of lenses?
At the bottom of the link, you will find a link for the lens profile downloader. With this tool, you can download the profiles shared by other users.
Work with lenses profiles in Adobe Photoshop, Lightroom and Camera Raw
-
Mr President.
How to add a transient attribute of a table values in the new attribute group wise transient that is to say wise customer?
as below
Concerning
Hello world
for an overview in the following form
This is the sql query that reach this format
SELECT c.name customer_name, p.name product_name, sl.sal_qty, sl.unit_sal_price, sl.sal_qty*sl.unit_sal_price AS salesvalue, CASE WHEN ROW_NUMBER () OVER (partition by c.cust_id order by p.prod_id desc,sl.sal_id desc) = 1 THEN SUM (sl.sal_qty*sl.unit_sal_price) OVER (PARTITION BY c.cust_id) END totals FROM customer c INNER JOIN sales s ON s.cust_id = c.cust_id INNER JOIN salesline sl ON sl.sal_id = s.sal_id INNER JOIN product p ON p.prod_id = sl.prod_id ORDER BY c.cust_id,p.prod_id,sl.sal_id
Cheers and enjoy
Respect of
-
How to add the bar at the bottom of the page [Dreamweaver]
Hello!
How to add the bar at the bottom of the page that helps me to make changes in my creation page?
Not sure I understand. Looking for the properties panel? Press Ctrl + F3 or go to window > properties.
Nancy O.
Maybe you are looking for
-
Deletion of albums in the section shared photos
I have an iMac with OS X El Capitan 10.11.6 version and Photos version 1.5. I also have an iPhone and an iCloud account. Most of my problems deals with "Photos". How to remove an album from the list of shared albums? Can I remove photos from the
-
Is there a songsmith creative commons license link so that I can use created songs for YouTube videos monetized Songsmith? original title: songsmith creative commons license
-
I need a very simple database system. I am the end user to allend users!
Original title: database access I need a very simple database system. I am the end user to allend users!
-
All my data is lost when updating? So lost what data would be lost?
Original title: update windows 10 All my data is lost when updating? So lost what data would be lost?
-
Support TLS 1.2 SQL 2008 R2
To the right: I have read a document (https://support.microsoft.com/en-us/kb/3135244#bookmark-clientdl) to discuss support TLS 1.2 on SQL server 2008 R2. I followed the steps described in the document to download and install a hotfix for SQL server s