Alter  Table 's Tablespace

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 Moyed

A 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

Similar Messages

  • 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; ...
    Thanks

    user644122 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

  • 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 Kumar

    Hello 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?

  • ORA-1653: unable to extend table (but tablespace is not full!)

    Hi folks,
    I was navigating through the Alert Log file and I'm strangely noticing the error:
    ORA-1653: unable to extend table PROMO.DETAILS by 40973 in tablespace PROMO
    I'm defining it as strange because:
    (1) The tablespace is only 65% full (there are 750MB of freespace), and
    (2) There is ample space on the harddisk
    I then used TOAD to try to debug the problem and there is a tool which allows me to view a map of the tablespace. I could see that the tablespace "PROMO" had indeed freespace, but the table "DETAILS" looked like it had no space where to extend (there was a table both before, and after it in the map). Is there a way to solve this problem , or isn't a problem at all?

    this problem occurs because
    your table don't find one big free space for next extent in tablespace.
    solutions:-
    1st solution
    * alter tablespace <tablespace_name> add datafile ' path';
    OR
    2nd solution
    - coalesce your tablespace 'alter tablespace <tablespace name> coalesce'.
    OR
    3rd solution
    check u r pctincrease parameter if it is 50 then
    ALTER TABLE <tablename> STORAGE (NEXT 1M PCTINCREASE 0);
    kuljeet pal singh

  • 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?
    Peter

    Solomon 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.

  • Change table's tablespace

    hi
    is it possible to move a table from one tablespace to another?

    As an aside, with the alter table move command, I believe that the new tablespace can be the same tablespace that the table is currently in (i.e. you can move the table from tablespaceA to tablespaceA, which is a neat rebuild/modify table trick). The one small downside is that you need enough space for two copies of the table while the alter table move command is being executed.
    Daniel

  • 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?

  • 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 advance

    resize 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

  • 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

  • Alter Table Space Autoextend

    Hi,
    I got an Error like this
    "ORA-01630 max # extents (string) reached in temp segment in tablespace string
    Cause: A temporary segment tried to extend past MAXEXTENTS."
    Is it possible to alter table space to Auto Extend in Oracle 8i With out Shutting down the
    Database. What Exact Commands for this? Is this effect the performance of the database?
    Please reply
    With thanks Naseer

    user13098327 wrote:
    Hi,
    I got an Error like this
    "ORA-01630 max # extents (string) reached in temp segment in tablespace string
    Cause: A temporary segment tried to extend past MAXEXTENTS."
    Is it possible to alter table space to Auto Extend in Oracle 8i With out Shutting down the
    Database. What Exact Commands for this? Is this effect the performance of the database?
    Please reply
    With thanks NaseerThe error you hit and your request is something different:
    ORA-01630 - limitation of extents per object or per tablespace.
    Tablespace autoextend - May be you mean datafile autoextend option.
    Pls, specify.

  • Question about Alter table syntax

    Hi all,
    I have an issue I need help with. I have created a script for an automated partition create on a monthly basis. It creates a monthly partition containing all dates within the respective month. The script is essentially this:
    ALTER TABLE SCHEMA.TABLE
    ADD PARTITION &&1
    VALUES LESS THAN (to_number(to_char(to_date('&&2', 'DD-MON-YY'), 'YYYYMMDD')))
    TABLESPACE LARGE_DATA94 COMPRESS;
    I continually get this error message "ORA-14019: partition bound element must be one of: string, datetime or interval literal, number, or MAXVALUE"
    The variable &&2 is passing in character data for the first of the month (E.G. '01-SEP-12'). &&1 passes character data for the month in MONYY ('AUG12') I can run this query:
    select
    (to_number(to_char(to_date('&&2', 'DD-MON-YY'), 'YYYYMMDD')))
    from dual;
    With the output of 20120901. I cannot understand why I am able to run this partition create statement by hardcoding 20120901 but passing it in as a variable I receive the error. Note that I am not having problems with the &&1 variable. If anyone has any ideas please let me know. Thanks!
    Edited by: 962466 on Oct 1, 2012 8:42 AM
    Grammar

    962466 wrote:
    Hi all,
    I have an issue I need help with. I have created a script for an automated partition create on a monthly basis. It creates a monthly partition containing all dates within the respective month. The script is essentially this:
    ALTER TABLE SCHEMA.TABLE
    ADD PARTITION &&1
    VALUES LESS THAN (to_number(to_char(to_date('&&2', 'DD-MON-YY'), 'YYYYMMDD')))
    TABLESPACE LARGE_DATA94 COMPRESS;
    I continually get this error message "ORA-14019: partition bound element must be one of: string, datetime or interval literal, number, or MAXVALUE"
    The variable &&2 is passing in character data for the first of the month (E.G. '01-SEP-12'). &&1 passes character data for the month in MONYY (AUG12) I can run this query:
    select
    (to_number(to_char(to_date('&&2', 'DD-MON-YY'), 'YYYYMMDD')))
    from dual;
    With the output of 20120801. I cannot understand why I am able to run this partition create statement by hardcoding 20120901 but passing it in as a variable I receive the error. Note that I am not having problems with the &&1 variable. If anyone has any ideas please let me know. Thanks!I don't understand why you are taking a string, converting it to a date, then converting the date BACK TO a string ... then trying to convert that string to a number.
    What is the data type of the partitioning key? It appears that it is a NUMBER, but actually represents a DATE. If so, that is a fundamentally flawed design.

  • Create index partition in the table partition tablespace

    Hello,
    I am running a custom job that
    * Creates a tablespace daily
    * Creates the daily table partition in the tablespace created
    * Drops the tablepartition X days old
    * Drops the tablespace for that partition on X+1 day.
    The above job runs perfectly, but 'm having issues with managing the indexes for these partitioned tables. In the old database (10g - Single Node), all the partitions/indexes existed in one BIG tablespace and when I imported the table creation script into the new database, I modified all the table partitions & indexes to go into their respective tablespace.
    Eg:
    Table_name........Partition_name.....................Index_Part_name..........................Tablespace_name
    ============...================............====================...........=================
    TABL1...................TABL1_2012_07_16............TABL1_IDX_2012_07_16............TBS_2012_07_16
    TABL1...................TABL1_2012_07_15............TABL1_IDX_2012_07_15............TBS_2012_07_15
    But now when the job runs, it creates the index into the default tablespace TBS_DATA.
    Table_name........Partition_name.....................Index_Part_name..........................Tablespace_name
    ============...================.............====================...........=================
    TABL1...................TABL1_2012_08_16............TABL1_IDX_2012_08_16............TBS_DATA
    TABL1...................TABL1_2012_08_15............TABL1_IDX_2012_08_15............TBS_DATA
    I can issue alter index rebuild to move the indexes to its default tablespace, but how can I ensure that the index gets created in its designated tablespace?
    NOTE - the partition/tablespace management job that I run only creates the table partition and not the index.
    The new env is a 2-Node 11gR2 RAC cluster on Linux x86_64.
    Thanks in advance,
    aBBy.

    Excerpt from the job -
    This creates the partition into the new tablespace.
    v_sql_new_part := 'alter table '||tab_owner||'.'||tab_name||' add partition '||v_new_part_nm||'
    values less than (to_date('''||v_new_part_dt_formatted||''',''DD-MON-YYYY'')) tablespace '||part_tbs;
    execute immediate v_sql_new_part;New tablespace for new partition - because this is a 10T database and having multiple tablespaces helps with backup/recovery.
    Thanks,
    aBBy.

  • ORA-00977 Error When Moving Table Between Tablespaces

    I used the "Alter table <tablename> move tablespace <newtablespace>" command on tables that contain a LONG datatype, and get an ORA-00977 error. Was successful with other tables that did not contain a LONG. This was on a 8.1.7.0 database, running on Solaris 8. Any idea what the problem is?

    Like most other useful Oracle features, it is not supported on tables with long columns. In order to change tablespaces with this table, you will have to export it, drop it, recreate it in the new tablespace then import the data into the new table.
    Your other choice is to rebuild the table using clob instead of long.

  • 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-03297

    i 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

Maybe you are looking for

  • HT204266 can I migrate two apple accounts  into one?

    I have an old Itunes account  and when the icloud came out   i got a new one  for some reason ,  anyway   having two is a real  pain Is it possible to  migratemy olsd one  into  the new one   and if so,  what is the process to acheive this ?

  • Link to APEX app

    DB: Oracle 10.2.0.4.0 APEX: 3.2.1.00.10 My APEX app will be accessed from a non-APEX app, which already has authenticated the user. Since the user doesn't need to be presented with a login page again, I'm assuming that I need to create a Public page

  • External edit with PSE 12? I get an empty window.

    I am running Aperture 3.5.1 in current version of Mavericks on a MAcBook Pro. I am trying to use PSE 12 as an external editor to resize, merge and some other stuff I want to do prior to printing on an Epson 3880. When I try to send a file to PSE by P

  • Why not launch a Apple satelite and offer Apple Tv.  Could also offer satelite cell phone.  Would be a real game changer.

    Why not launch a Apple satelite and offer Apple Tv.  Could also offer satelite cell phone.  Would be a real game changer.

  • Password trouble with time capsule

    Hello, i just decided to replace my base station and external had with a new (refurb) time capsule and have run into a little problem.  1st, go ahead a point and laugh if the answer is in front of my face.  Ok, here goes.  I set up everything to repl