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

Similar Messages

  • Can we change the default tablespace of a table?

    Hi All,
    Can we change the default tablespace for any TABLE while it contains any data? If yes, how it works? If no, any workaround?
    Thanx,
    Zaaf

    instead of moving your table after the import you could:
    1)execute an import with the parameter ROWS = N
    2)move the empty tables to the correct tablespace
    3)execute an impot with ROWS = Y and IGNORE = Y
    This way you will only have to move empty tables which will probably be much faster also there is no need to rebuild the indexes.

  • How to define tablespaces in Oracle 10g and how put tables on tablespaces

    Hello,
    I'm having trouble to define the structure of tablespaces and how to distribute the tables/indexes/lobs on these tablespaces.
    Do you know some rules on how to define this?
    What I have until now:
    1) Put table indexes in separate tablespace
    2) Put lobs in separate tablespace and use storage clause when defining the lob column. Not sure how many tablespaces to use, I have tables with millions of lobs and tables with just one lob (with row containing the lob).
    3) Please fill more rules here ...
    Thank you, Alex.

    Long story: I received database and schema creation scripts defined in Oracle 9i. I want to redesign the tablespaces number/storage and also to change the distribution of tables into tablespaces.
    As an example I will show how tablespaces are created now. There is one tablespace for indexes BLUE_AUTO_INDX and one for each EXTENT MANAGEMENT of:
    - 64K for BLOB , name BLUE_K064_BLOB
    - 64K for tables , name K064_NTAB
    - 128K for tables, name BLUE_K128_NTAB
    - 512K for CLOB , name BLUE_K512_CLOB
    - 4M for BLOB , name BLUE_M004_BLOB
    - 64M for CLOB , name BLUE_M064_CLOB
    - 8M for tables , name BLUE_M008_NTAB
    - 1M for tables , name BLUE_M001_NTAB
    - 256M for tables, name BLUE_M256_NTAB
    Definition of each tablespace is like:
    CREATE TABLESPACE BLUE_AUTO_INDX DATAFILE 'BLUE_AUTO_INDX01.DBF' SIZE 200M REUSE AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64M SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_K064_BLOB DATAFILE 'BLUE_K064_BLOB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64K SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_K064_NTAB DATAFILE 'BLUE_K064_NTAB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64K SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_K128_NTAB DATAFILE 'BLUE_K128_NTAB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_K512_CLOB DATAFILE 'BLUE_K512_CLOB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 512K SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_M004_BLOB DATAFILE 'BLUE_M004_BLOB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 4M SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_M064_CLOB DATAFILE 'BLUE_M064_CLOB01.DBF' SIZE 400M REUSE AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64M SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_M008_NTAB DATAFILE 'BLUE_M008_NTAB01.DBF' SIZE 200M REUSE AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 8M SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_M001_NTAB DATAFILE 'BLUE_M001_NTAB01.DBF' SIZE 100M REUSE AUTOEXTEND ON NEXT 50M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_M256_NTAB DATAFILE 'BLUE_M256_NTAB01.DBF' SIZE 512M REUSE AUTOEXTEND ON NEXT 256M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 256M SEGMENT SPACE MANAGEMENT AUTO;
    Does this structure of tablespaces ok? I mean if the logic of one tablespace for different EXTENT SIZEs looks ok?

  • Change table'owner

    Good afternoon,
    I would like to change table's owner without moving data (alter table move or export/import) in oracle 8i
    does it exist a solution for that ?
    thanks for your help
    Fabrice

    new table will be created in DEFAULT TABLESPACE of user2 <<if you do not add a tabelspace clause. You can also specify table parameters such as pctfree and storage information if desired.
    You will have to manually add (if needed) indexes, triggers, and table level constraints using this method.
    If this process will need to re-done on a regular basis you might want to consider running the DDL once and using a truncate followed by an insert/select to repopulate the table.
    -- Mark D Powell --

  • Error while creating publisher change tables in CDC

    Hi,
    I am implementing Change Data Capture. I got getting following error while creating publisher change tables in Staging database. My database version is 10.2.0.2.0 .
    I appreciate your help.
    ERROR at line 1:
    ORA-29540: class oracle/CDC/PublishApi does not exist
    ORA-06512: at "SYS.DBMS_CDC_PUBLISH", line 611
    ORA-06512: at line 2
    Thanks,
    Venkat.

    This problem got fixed when I ran below script!!
    @$ORACLE_HOME/rdbms/admin/initcdc.sql;

  • How to find Fragmentation of tables and tablespaces in oracle 8i

    Hi,
    How can i measure the fragmentation of Tables and Tablespaces in oracle 8i.
    Do any one have any handy script to find the same.
    What are the attributes to be determined to do health checkup of a database.

    how many such empty blocks are there in the table and of what size.Again Tom Kyte reference :
    http://asktom.oracle.com/pls/ask/f?p=4950:8:7760471022221195640::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:231414051079
    For tablespace, fragmentation is the regular termAbout tablespace, the link from post above can help.
    Nicolas.

  • Change Table control Column Header text dynamically

    Hi,
    I have an requirement to change table control column header text dynamically.
    i.e. I have about 10 columns in table control, out that need to change 5 columns header text. These header texts are stored in an internal table.
    I had looked into the below link but could not get exactly how to do it.
    Dynamic headers in table control
    Could you please tell me how to do that.
    Thanks in Advance.

    Hi Saba,
    What you will need to do is this.....
    1. First replace the column Header Text box by I/O Fields and name them accordingly.
    Say for example we will consider the same example which i had explained in the link.
    there in the column header we want the header to change when some dates and entered into two fields which are out of table control say
    Start Date: 01.01.2010 to End Date: 06.01.2010
    Now we want the header to look like this,
    Column  No.    -        1               2             3                  4               5               6
    Header label   -    01/FRI       02/SAT     03/SUN       04/MON     05/TUE      06/WED
    Header name -    SPOTS1   SPOTS2    SPOTS3      SPOTS4     SPOTS5    SPOTS6
    then you go as per the instructions in the link......
    Let me know if you need further help,
    Hope this solves your problem....
    Regards,
    Abhijit G. Borkar

  • Physical Model - Propagate table property "Tablespace" doesn't seem to be working in 4.0EA2

    I'm to switching from v3.3.0.747 to 4.0EA2 but experiencing some issues.
    In the physical model when I try to propagate the table property "Tablespace" for the remaining tables a silent error happens and as result the value is not propagated.
    The error appears in the log file:
    2013-09-24 16:31:31,776 [AWT-EventQueue-0] WARN  PropertyWrapper - oracle.dbtools.crest.model.design.storage.oracle.v11g.TableProxyOraclev11g.setTableSpace(oracle.dbtools.crest.model.design.storage.oracle.TableSpaceOracle)
    java.lang.NoSuchMethodException: oracle.dbtools.crest.model.design.storage.oracle.v11g.TableProxyOraclev11g.setTableSpace(oracle.dbtools.crest.model.design.storage.oracle.TableSpaceOracle)
      at java.lang.Class.getMethod(Class.java:1624)
      at oracle.dbtools.crest.util.propertymap.PropertyWrapper.setValue(PropertyWrapper.java:65)
      at oracle.dbtools.crest.swingui.editor.storage.PropertiesPropagationDialog.applyTo(PropertiesPropagationDialog.java:353)
      at oracle.dbtools.crest.swingui.editor.storage.PropertiesPropagationDialog.setProperties(PropertiesPropagationDialog.java:337)
      at oracle.dbtools.crest.swingui.editor.storage.PropertiesPropagationDialog.access$400(PropertiesPropagationDialog.java:46)
      at oracle.dbtools.crest.swingui.editor.storage.PropertiesPropagationDialog$11.actionPerformed(PropertiesPropagationDialog.java:300)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
      at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
      at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
      at java.awt.Component.processMouseEvent(Component.java:6505)
    However if I try to propagate the tablespace value for indexes this  works fine.
    Some ideas?
    Thanks.

    Hi,
    Thanks for reporting this.  I've logged a bug.
    I'm afraid you won't be able to propagate Tablespaces on Tables until it's fixed.
    David

  • How to change table of content font in captivate 6

    Hi There,
    Can somebody please suggest me how to change table of Content Text font English to Arabic in Captivate 6 and which font supports Arabic language.
    Please refer below image, highlighted text font should be changed.
    Looking forward for help.
    Thanks,
    Srikanth

    The weird sliding navigation is Apples pride and joy!
    That TOC allows you to slide between chapters, sections and pages.
    iBooks Authjor was designed to do what it does and what Apple wanted it to do.
    Some things can be changed during the books production,  but the " weird navigation"  is not something you can change to do what you want.
    iBooks Author is does not produce ePubs.. at least not as "ePub" is known from Pages, inDesign etc,.
    If you want what is available in ePubs.. then iBooks Author is not the application to produce it.
    You could drag a section page above chapter on and create an index type page using book marks for links - but whats the point? 
    People using iPads and familiar with iBooksAuthors special way of book presentation.. are quite happy its so easy to use.

  • Can i change table in query as per user given data

    hi master
    sir,
    can i change table in query as per user given data
    see
    select * from @variable
    i need use in lov
    please give me idea
    thankingyou
    Aamir

    You cant directly use in sql instead you can write an anonymous block and frame the query as per the input table name and then use execute immediate to execute the query.
    Something like this
    declare
    qry_table varchar2(30);
    qry_stmt varchar2(1000);
    type typ_sample is table of VARCHAR2(100) index by binary_integer;
    tab_sample typ_sample ;
    begin
    qry_table := &Table_name
    qry_stmt := 'select a from '||qry_table;
    execute immediate qry_stmt bulk collect into tab_sample ;
    end;
    Message was edited by:
    Shasi

  • Change table entries in production

    Is it possible to have authorizations so that specific users can change table entries through se16 in production even though the system is locked for changes?
    Thanks,
    - Prakash

    You will need to create the Maintenance view for the table you want to maintain and then make a authorization group using se54 for this maintenace view. This authorization group needs to be defined in the role of the persons to whom you want to give acess.  Now only these persons can maintain this table entries.
    Award points.
    Thanks,
    Barjinder Singh.

  • CDC - How to configure when to insert changed data in Change Tables

    Hi!
    I have the following situation: I need to capture changes from some source tables only when some columns of interest changed, not when any data from those tables changed.
    Is there a way to confidure that in CDC? I use Synchronous Publishing.
    Thank you in advance!

    What you can do is set up CDC to record both the before (UO) en after (UN) image of the updated row and then filter out the rows that have different before and after values for the columns that you want to check on.
    See e.g. http://download.oracle.com/docs/cd/B19306_01/server.102/b14223/cdc.htm#i1025616, step 4, capture_values=>both. You can even delete rows from the change table directly, before consuming the change set result from the subscriber view.
    Best regards, Erik Ykema

  • Change Data Capture,Change Tables

    Hi,
    We installed Change Data Capture in our DB (10gR2),however there is a problem with change tables.Change tables are being cleaned somehow.According to text quoted below,the job which is cleaning change tables is cdc$_default_purge_job.However
    select log_date
    +, job_name+
    +, status+
    from dba_scheduler_job_log
    where job_name='CDC$_DEFAULT_PURGE_JOB';
    results no data. Also this morning i came across that data cleansing again, and run the query below.And again no result.
    select job_name
    +, session_id+
    +, running_instance+
    +, elapsed_time+
    +, cpu_used+
    from dba_scheduler_running_jobs;
    /*We didn't even use DBMS_SCHEDULER.SET_ATTRIBUTE procedure so far*/
    What is cleaning change tables and how can i control it?
    Tnx in advance
    Quotation:
    Change Data Capture creates a purge job using the
    DBMS_SCHEDULER package (which runs under the account of the publisher who created the first change table). This purge job calls the
    DBMS_CDC_PUBLISH.PURGE procedure to remove data that subscribers are no longer using from the change tables. This job has the name
    cdc$_default_purge_job. By default, this job runs every 24 hours. You can change the schedule of this job using
    DBMS_SCHEDULER.SET_ATTRIBUTE and set the
    repeat_interval attribute. You can verify or modify any other attributes with the
    DBMS_SCHEDULER package.

    Setting up CDC is a fairly complex process with different options. Setting just the filter in OWB is only a very small part.
    There is a blog post below on how to use code templates to do CDC which gives some insight;
    http://www.rittmanmead.com/2009/10/changed-data-capture-and-owb11gr2/
    Plus and older one illustrating how to use Oracle logs;
    http://www.rittmanmead.com/2006/04/asynchronous-hotlog-distributed-change-data-capture-and-owb-paris/
    Cheers
    David

  • Oracle CDC - Incorrect data in change tables

    We are using Asynchronous autolog online CDC and the performance has been pretty good so far.
    However, recently we have encountered an issue where there are a couple of invalid records in one of the change tables.
    The change table seems to have update transactions on a record that had no updates made to it. In fact the updated records in the change table indicate a primary key that does not exist on the source table. Has anyone encountered a similar issue ? the data that has been brought over on one of the number columns is something like
    xm<<1123.
    gk

    Thanks Justin. On digging further into metalink I found another bug 6454634 which appears to be similar. Both this and the bug mentioned by you are fixed in 10.2.0.4 patch 14. I will follow up further.

  • CHANGING TABLE NAME

    What is the SQL command for changing table name? OR is there any sequence of commands for it.
    Thanks
    null

    ALTER TABLE name_A RENAME TO name_B ;
    (Oracle 8 SQL Reference, p. 4-131)
    null

Maybe you are looking for

  • Error message about default email client

    Whenever Reader XI loads this error message appears: "Either there is no default email client or the current mail client cannot fulfill the messaging request. Please run Microsoft Outlook and set it as the default mail client." I have no idea how to

  • XSL Mapper JDeveloper plugin fails to launch from App Engine

    XSL Mapper JDeveloper plugin fails to launch from App Engine ONLY WHEN THE TARGET LOCATION OF THE SERVICE CONFIGURATION POINTS TO AN HTTPS URL. If I make the target location field of the service configuration point to an HTTP url, the plugin launches

  • NTSC versus PAL in HD DVD

    In order to create an HD DVD in NTSC and then another version in PAL, would you have to recreate menus the way you would if it was a regular DVD in NTSC and then PAL? Thanks Alex

  • Vendor Stock - MRP availability check

    Hello, in my current project, we would like to see the vendor stock in SAP. We would like to modelize it with purchase requisition or consignment stock on a specific storage location. The problem is that we do not want to take in account this stock f

  • Delta cache Refresh shows error

    Hi, In SXI_CACHE I did Delta cache Refresh In XI RunTime Cache Status shows : 1. cache contants are up-to-date (Green light) 2. Error during last attempt to refresh cache(red error) Adapter Engine Connect Data Cache shows the following error 04D3344F