Alter table move in 8.1.7
I did a alter table move on one of the tables in 8.1.7 database
before alter table move..
TABLE_NAME ACTUAL_SIZE_MB CUR_SIZE_MB FRAGMENTATION PROJECTED_SAVINGS_MB
UDA_ITEM_FF 36.07 328 89 291.93
after the alter table move..
TABLE_NAME ACTUAL_SIZE_MB CUR_SIZE_MB FRAGMENTATION PROJECTED_SAVINGS_MB
UDA_ITEM_FF 57
why after the alter table move, I am only able to see the current size and not the actual size?
any inputs welcome
Handle: dee
Status Level: Newbie (5)
Registered: Jun 14, 2010
Total Posts: 61
Total Questions: 30 (30 unresolved)
If its working , Please mark thread as answered why you leave your thread in Open Status
Similar Messages
-
Reg alter table move statement
Hi friends,
I am having a table with 10GB. i moved the table to the same tablespace using "alter table move" statement.
previously my tablespace had 6 GB freespace. To move the table i resized datafile to increase freespace in tablespace.
after moving, my table size reduced to 8GB. now i want to reduce the datafile size to 6GB again. but its throwing error
ORA-03297: file contains used data beyond requested RESIZE value
Can't i reduce the datafile size to 6GB again?
thanks in advanceresize will not released space below the high water mark.
The simpliest way how to proceed in this case is to move all tables to the new tablespace and drop the original including datafiles. And rename new tablespace back to the old ones name if You want.
You can read some more discussions here:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:766625833673 -
In which oracle release alter table move tablespace introduce
Hi,
Can you please provide me one information that from which oracle realease oracle introduce alter table move tablespace tablespace_name; ...
Thanksuser644122 wrote:
Hi,
Can you please provide me one information that from which oracle realease oracle introduce alter table move tablespace tablespace_name; ...
ThanksDon't know whether it was in Oracle 7, but documentation says that it was in Oracle 8i
Look at this link:
http://www.oracle.com/pls/db102/print_hit_summary?search_string=move+tablespace
By the way, why you need this information?
Edited by: Kamran Agayev A. on Oct 2, 2009 11:54 PM -
Options for resize datafile lower than high watermark besid alter table mov
hello all,
I have an issue where i am getting ORA-03297 error when trying to resize the datafile. Its becuase of high watermarks. I know i have couple of options...either resize it till the high watermark or Drop or move segments containing extents in this region prior to
resizing the file....but the situation is this....this a test env...and we have couple of chained rows and doing that(alter table move) will get rid of our chained rows and we do not want that....as we are testing the removal of chained row from our prod systems....as i mentioned we cant do alter table move
what other options do we have in order to shrink datafile below highwater mark besides moving or droping the segment into a different tablespace as we want to preserve the chianed rows for our testing and making the DB smaller in size (space issue on the server ) ??? any ideas or any thoughts ??
we are on 10.2.0.3 on AIX system
i have already went thru these metalink doc .... on that error
Note 1029252.6 - How to Resize a Datafile
Note 130866.1 - How to Resolve ORA-03297 When Resizing a Datafile by Finding the Table Highwatermark
Note 237654.1 - Resizing a Datafile Returns Error ORA-03297i am sorry not able to get your question ??
I want to shrink the space of the Datafile without removing the chaned rows for testing the removal of chianed row for prod. The reason why is becoz of rman backup space issue. If we shrink the datafile our DB will be down to 150GB....and if we cant its about 450GB...which is big difference...and the reason for backup for this dev env is because once we have tested teh removal of chained rows...we will restore it again and re-test it and its a very mission critial system...we need to test this min of 3 times to get teh change approved...thats why...if we have a backup now...we can remove chain rows and then restore it back to this point and test it again...if you know wat i mean -
hi
This is the scenerio
a,b,c: distinct blocks
f:free blocks
Assume the extent is like:
aaafffccccbbfb
after shrink does it become like
aaabbbccccffff
or
aaafffccccbbbfRicardo,
Both the things are same.They both are used to remove the fragmentation.The way they work may be different but the output of either will be the same.Free space will be on one side only ie after the hight water mark.You do it by move or by shrink,you will end up with the same thing.You put free space anywhere in the scenerio,it will come up to one end only.If it wont than I guess we are back from where we started.
That said,check back the Oracle doc for both the commands.Also search for the same topic in http://hemantoracledba.blogspot.com/2008/03/alter-table-shrink-space.html
HTH
Aman.... -
The base table was created in a DMT and all the partitions were created in LMT.
Now i want the table also to be in LMT.
When attempted a move with alter table tablename move tablespace it's giving an error.
SQL> ALTER TABLE HOLDINGDBO.POSITION_STAGE MOVE TABLESPACE HOLDING_GEN;
ALTER TABLE HOLDINGDBO.POSITION_STAGE MOVE TABLESPACE HOLDING_GEN
ERROR at line 1:
ORA-14511: cannot perform operation on a partitioned object.ORA-14511: cannot perform operation on a partitioned object.Of course it can't. The move clause targets a segment. Alas, the top level object (table) here, does not have any segment. Hence you can't move a partitionned table as a whole.
Instead just look at the alter table move partition statement in TFM.
e.g.:ALTER TABLE HOLDINGDBO.POSITION_STAGE MOVE PARTITION POS_OLD TABLESPACE HOLDING_PTS_OLD;Regards,
Yoann. -
Will alter table table_name move statement change the storage parammeter
Hi there,
I have a question about table reorgnization. Will alter table
table_name move SQL statment change the table's storage parameter
or keep the same as the original one? If I want to use alter
table statement to do table defragmentation and change the
initial and next storage parameter, how will I write this SQL
statement?
Thanks in advance.Thanks. My table has 5000 extents each of which is 64k, so I
think I need to do table defragmentation to improve performance.
If I use alter table table_name move without storage parameter
and tablespace name, I will relocate this table in current
tablespace and adopt the current tablespace's storage parameter
as my table's new storage paramater which is still 64k. After
that, if I issue alter
table table_name storage (initial 50M next=50M) command, will it
change this table's storage parameter and decrease the totoal
extents number? I ask this question because I use OEM2.2 tuning
pack reorg wizard to generate the job script to do table
defragmentation, but in the job script there is no new storage
parameter. It only generate alter table table_name move
statement, so I wonder if I don't need to modify this job scripts
and after it executes this job script, I issue alter table
table_name storage parameter command manaully. Will this solve
my problem or I must modify the job script and add new storage
parameter in the job script? -
Alter table tablename drop column col
I tried to drop a column from a table created by sys user. Being a sys user I am unable to drop the column. Please explain.
SQL> alter table test move tablespace users;
Table altered.
SQL> alter table test drop column two;
alter table test drop column two
ERROR at line 1:
ORA-12988: cannot drop column from table owned by SYS
Here two is the column name.
Regards
Vijay KumarHello Gasparotto
It is amazing to me. Being a sys user I created a table and then I tried to alter the table by dropping a column but it is giving me error as I have already stated. Please explain over this issue.
Regards
Vijay Kumar -
(oracle 8i)Alter Table table coalesce partition
Hi all,
Need assistance in solving a problem. I have a possibly large fragemented table. I tried to run a coalese command ALTER TABLE EMPTY_COPY COALESCE PARTITION
got an error: 'ora -14501 - object is not partitioned'
NOt sure how to proceed, I am working in oracle 8i environment.
Should I do :
ALTER TABLESPACE MY_DATA COALESCE
ALTER INDEX EMPTY_COPY_PK COALESCE
ALTER INDEX EMPTY_COPY_PK REBUILD
ALTER TABLE MY_DATA.EMPTY_COPY MOVE TABLESPACE NEW_DATA
Not sure if the syntax is correct or which to use, are there any redundancies in the commands above.
Thanks kindly for any input you may provide.thanks.
My real problem is an ora 1653 'UNABLE TO EXTEND TABLE' error where I could not insert into a table. The PCT_INCREASE was at 25 and the next_extext was at 160mb. Way too large. There still looks to be l plenty of space available for an another extent but it is not being allocated.
Would this apply? -
ALTER TABLE command with owner does not work
I performed the following statement in a SQLplus script where the variables were filled some lines before:
alter table '&ownername||'.'||&tablename' move online tablespace '&tablespacename';
However this does not work. I am getting:
ERROR at line 1:
ORA-00903: invalid table name
The variables are replace correctly by SQLplus and everything owner, table, tablespace exist.
Can I (as SYSDBA) not alter the table of another user?
PeterSolomon Yakobson wrote:
EdStevens wrote:
Ok, you removed the mis-placed quotes, but why the double "." ??
If you wish to append characters immediately after a substitution variable, use a <font color=red size=3>period</font> to separate the variable from the character.
SY.Ah, I had simply never done it that way nor seen it done that way. -
Dear All ,
I have 10g database on rehl5 .I move table's(T_TRANSACTION_TABLE) tablespace(USERS) to tablespace (IMAGES) .
It completed successfully
MY command is
ALTER TABLE USERS MOVE TABLESPACE IMAGES
and
ALTER INDEX USERS REBUILD TABLESPACE IMAGES
Problem is transaction_images table show using table space IMAGES but store data in USERS table space .
I check this using em->administrator->schema->Table
and i also check DBA_SEGMENT,DBA_EXTENTS both are show tablespace USERS
Note :- 1) This table contain BLOB column for save image .
2) I am also rebuild index also.
Thanks in advance
Shaikh Abdul MoyedA LOB (CLOB or BLOB) can be stored in a different tablespace than the rest of the table. Are you certain that you're looking at the tablespace for the table segment rather than the LOB segment?
If you want to move the LOB segment to a different tablespace
ALTER TABLE <<table name>>
MOVE LOB( <<name of BLOB column>> )
STORE AS( TABLESPACE <<new tablespace>> )Additionally, I'm a bit confused by the DDL you posted
ALTER TABLE USERS MOVE TABLESPACE IMAGES
ALTER INDEX USERS REBUILD TABLESPACE IMAGESYou use USERS as a table name and as an index name in these DDL statements. But then you later talk about the USERS tablespace. I'm guessing that you really put the table name (TRANSACTION_IMAGES) in the ALTER TABLE command and that you used the correct index name in your ALTER INDEX.
Justin -
Move_table_clause of the alter table command
Oracle Workspace Manager: 10.2.0.4.3
Database version: 10.2.0.4.0
Can one use the following technique to relocate a version enabled table from one tablespace to another? Is this supported?
exec dbms_wm.beginDDL(tablename)
alter table tablename_lts move tablespace ...
exec dbms_wm.commitDDL
I tried this in a development environment; the lt table moved, but the lck table remained behind. This history seems to be all there.Hi,
Yes, that is the supported method to move the LT table into a new tabelspace. It will also move the AUX table and the _VT table(if it exists).
Regards,
Ben -
hi everybody !
I have a table which also has data in it. Now, before i add some more data to this table i want to create a partition with all the existing data. Following is the error message i get when executing the altertable command.
ALTER TABLE address_header_temp
add PARTITION add_head_temp
VALUES LESS THAN (MAXVALUE);
error :-
ORA-14501: object is not partitioned
Please help me in solving this problem.
Thanks in advance
MoloyIf you wanna do it online, then, use dbms_redine package to redifine objects online. I believe this is one time process. Once you add partitions and you can drop and create partions accordingly. At least you get out of heap table to meet your requirements.
Otherwise, create another table with required partions and move data from heap (non partitoned) table to partitioned table, drop the old one and rename the new one to old one.
Jaffar -
Hi,
We are using oracle 11.2.0.3 on aix.
while move the table,it got hang.The table size only 2gb.Eventhough we down the database and started it.
We checked in v$session_longops.nothing there.Noone use the db.
Thanks>
We did alter table SPMGR.JOMON move;
alter index SPMGR.JOMON_PK rebuild;
then stats gathering.
>
Did you check that you have sufficient space in the tablespace the table is using? -
Table compression and alter table statement
Friends
I am trying to add columns to a table which is compressed. Since Oracle treats compressed tables as Object tables, I cannot add columns directly so I tried to uncompress table first and then add columns. This doesnt seems to work.
What could be issue.
Thanks
Vishal V.
Script to test is here and results are below.
-- Test1 => add columns to uncompressed table -> Success
DROP TABLE TAB_COMP;
CREATE TABLE TAB_COMP(ID NUMBER) NOCOMPRESS;
ALTER TABLE TAB_COMP ADD (NAME VARCHAR2(10));
-- Test2 =. try adding columns to compressed tables, uncompress it and then try again -> Fails
DROP TABLE TAB_COMP;
CREATE TABLE TAB_COMP(ID NUMBER) COMPRESS;
ALTER TABLE TAB_COMP ADD (NAME VARCHAR2(10));
ALTER TABLE TAB_COMP move NOCOMPRESS;
ALTER TABLE TAB_COMP ADD (NAME VARCHAR2(10));
SQL> -- Test1 => add columns to uncompressed table -> Success
SQL> DROP TABLE TAB_COMP;
Table dropped.
SQL> CREATE TABLE TAB_COMP(ID NUMBER) NOCOMPRESS;
Table created.
SQL> ALTER TABLE TAB_COMP ADD (NAME VARCHAR2(10));
Table altered.
SQL>
SQL> -- Test2 =. try adding columns to compressed tables, uncompress it and then try again -> Fails
SQL> DROP TABLE TAB_COMP;
Table dropped.
SQL> CREATE TABLE TAB_COMP(ID NUMBER) COMPRESS;
Table created.
SQL> ALTER TABLE TAB_COMP ADD (NAME VARCHAR2(10));
ALTER TABLE TAB_COMP ADD (NAME VARCHAR2(10))
ERROR at line 1:
ORA-22856: cannot add columns to object tables
SQL> ALTER TABLE TAB_COMP move NOCOMPRESS;
Table altered.
SQL> ALTER TABLE TAB_COMP ADD (NAME VARCHAR2(10));
ALTER TABLE TAB_COMP ADD (NAME VARCHAR2(10))
ERROR at line 1:
ORA-22856: cannot add columns to object tablesWhich version of oracle you are using?
1* create table test1234(a number) compress
SQL> /
Table created.
Elapsed: 00:00:00.02
SQL> alter table test1234 add(b varchar2(200));
Table altered.
Elapsed: 00:00:00.02
Maybe you are looking for
-
Unable to update and run photoshop on Windows 8.1
I have been unable to update to the most current version of photoshop, nor can I run the application. I recieve the message 'Dowload error. Please retry or contact customer support.(49)' each time.
-
Hp c6380 all-in-one unable to print from ipad
I do not know if this printer is able to print from a ipad . If it is , how ?
-
Which Color Would You Pick??
I have a Pink Mini, I call her, Lauren. Yes! I name my iPods. Anyway, I am getting an iPod Nano 2nd Generation, which color would you get??? (Remember I am a girl!!!) But still, I am asking you what color would you get and If you have one, tell me ho
-
Where do I install the after_effects_cs5_help.pdf so it will function in help within the program? CS5 Master Collection on a Mac with OS X 10.6.4 (Offline Only! The registration was done by our IT Dept. while breifly online for that purpose). Thanks
-
/SAPAPO/PROMOTION_REPORTING
Hello All, Has anybosy used this report /SAPAPO/PROMOTION_REPORTING in SCM 5.1. I tried to use the Promotion reporting tool in SCM 5.1, but is there a separate report which only gives a list of promotions? The only way to see individual promotions th