ALTER table move online in an encrypted tablespace

Hello

Our DBA want to put all our data in encrypted storage.

Once they create encrypted tablespaces, we will have to do «alter table move online...» "orders for encrypted storage space around the tables.

Has anyone here done already?   Keeps the table moved really 'on-line' (available at query/insert/update) during the move?  Or will we have to wait some time stop/downtime while the tables are moved?
What about the tables with long or CRAFT?

Thank you!

KSandberg and to add to the recall of John that only ITO tables can be moved online, if the table needs to be moved offline the indexes would be invalid until rebuilt.  If the table is an IOT I suggest you rebuild the index online after the move because even if the indexes are always used the logical ROWID is more pointing to the correct location and access of the index will be less effective that will you rebuild the index.

- -

The dbms_redefinition package could be an alternative solution if you need to move the tables no - ITO online.

- -

HTH - Mark D Powell.

Tags: Database

Similar Questions

  • ALTER table move lob segment of a partition

    How I could move a LOB from a table segment partitioned (11.1 DB)?

    I have after the table script:
    CREATE TABLE COMMON.TEST_AAA2_ARH
    (
      ID           INTEGER,
      TEKST        VARCHAR2(200 CHAR),
      UPDATESTAMP  DATE,
      OBJEKAT      CLOB
    )
    LOB (OBJEKAT) STORE AS (
      TABLESPACE COMMON_ARCHIVE
      ENABLE       STORAGE IN ROW
      CHUNK       8192
      RETENTION
      NOCACHE
      LOGGING)
    TABLESPACE COMMON_ARCHIVE
    LOGGING
    PARTITION BY RANGE (UPDATESTAMP)
    (  
      PARTITION P_201012 VALUES LESS THAN (TO_DATE(' 2011-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        LOGGING
        NOCOMPRESS 
        TABLESPACE COMMON_DATA
        LOB (OBJEKAT) STORE AS (
          TABLESPACE USERS
          ENABLE       STORAGE IN ROW
          CHUNK       8192
          PCTVERSION  10
          NOCACHE
          LOGGING),  
      PARTITION P_201101 VALUES LESS THAN (TO_DATE(' 2011-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        LOGGING
        NOCOMPRESS 
        TABLESPACE COMMON_DATA
        LOB (OBJEKAT) STORE AS (
          TABLESPACE USERS
          ENABLE       STORAGE IN ROW
          CHUNK       8192
          PCTVERSION  10
          NOCACHE
          LOGGING),  
      PARTITION P_MAXVALUE VALUES LESS THAN (MAXVALUE)
        LOGGING
        NOCOMPRESS 
        TABLESPACE COMMON_ARCHIVE
        LOB (OBJEKAT) STORE AS (
          TABLESPACE COMMON_ARCHIVE
          ENABLE       STORAGE IN ROW
          CHUNK       8192
          PCTVERSION  10
          NOCACHE
          LOGGING)
    )
    NOCOMPRESS 
    NOCACHE
    NOPARALLEL
    MONITORING;
    and I would switch USERS tablespace lob segment to the other...

    TNX

    ALTER table move partition lob () store as (tablespace )

    SQL> CREATE TABLE WISSEM.TEST_AAA2_ARH
    (
      ID           INTEGER,
      TEKST        VARCHAR2(200 CHAR),
      UPDATESTAMP  DATE,
      OBJEKAT      CLOB
    )
    LOB (OBJEKAT) STORE AS (
      TABLESPACE EXAMPLE
      ENABLE       STORAGE IN ROW
      CHUNK       8192
      RETENTION
      NOCACHE
      LOGGING)
    TABLESPACE EXAMPLE
    LOGGING
    PARTITION BY RANGE (UPDATESTAMP)
    (
      PARTITION P_201012 VALUES LESS THAN (TO_DATE(' 2011-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        LOGGING
        NOCOMPRESS
        TABLESPACE EXAMPLE
        LOB (OBJEKAT) STORE AS (
          TABLESPACE USERS
          ENABLE       STORAGE IN ROW
          CHUNK       8192
          PCTVERSION  10
          NOCACHE
          LOGGING),
      PARTITION P_201101 VALUES LESS THAN (TO_DATE(' 2011-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        LOGGING
        NOCOMPRESS
        TABLESPACE EXAMPLE
        LOB (OBJEKAT) STORE AS (
          TABLESPACE USERS
          ENABLE       STORAGE IN ROW
          CHUNK       8192
          PCTVERSION  10
          NOCACHE
          LOGGING),
      PARTITION P_MAXVALUE VALUES LESS THAN (MAXVALUE)
        LOGGING
        NOCOMPRESS
        TABLESPACE EXAMPLE
        LOB (OBJEKAT) STORE AS (
          TABLESPACE EXAMPLE
          ENABLE       STORAGE IN ROW
          CHUNK       8192
          PCTVERSION  10
          NOCACHE
          LOGGING)
    )
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING;
      2    3    4    5    6    7    8    9   10   11   12   13   14   15   16   17   18   19   20   21   22   23   24   25   26   27   28   29   30   31   32   33   34   35   36   37   38   39   40   41   42   43   44   45   46   47   48   49   50   51   52   53   54   55   56
    Table created.
    
    SQL> ALTER TABLE WISSEM.TEST_AAA2_ARH MOVE LOB (OBJEKAT) STORE AS (TABLESPACE USERS);
    ALTER TABLE WISSEM.TEST_AAA2_ARH MOVE LOB (OBJEKAT) STORE AS (TABLESPACE USERS)
                       *
    ERROR at line 1:
    ORA-14511: cannot perform operation on a partitioned object
    
    SQL> ALTER TABLE WISSEM.TEST_AAA2_ARH MOVE PARTITION P_201101 LOB (OBJEKAT) STORE AS (TABLESPACE USERS);
    
    Table altered.
    
    SQL> 
    

    Published by: orawiss on May 5, 2011 14:03

  • in what version of oracle alter table move tablespace introduce

    Hello

    Can you please provide me with information to present including oracle realease oracle alter table move tablespace nom_tablespace; ...

    Thank you

    Actully had this... that first of all we create a table using DEC and then delete the old table and then re-create the table with the original name, this way we'll finally have table > with the same name and data.

    But he has disadvantanges that
    (1) there is no index, we recreate.
    (2) no constraint, we need to redefine tht.

    Please confirm to me... I am right or wrong here...

    Thanks a lot for your answers anantha all the... It's my last request... Please respond

    To avoid TELL-benefits mentioned above,

    -Export the table or the diagram.
    (create two discharges of export.
    1. with the owner or table with index = n lines = n - This will export all the objects without indexes, and lines. In other words, the metadata will be exported with regard to a table or schema.
    2. with the owner, or a table with index = lines y = y - this will export all the objects from a table or schema.

    -Remove the table
    -Recreate the Table (using export generated from option 1 above)
    -Import the data without indexes and constraints are imported. (use of export generated from option 2 mentioned above. use ignore = y,)
    constraints and indexes = n = n here.)
    -Import(re-Create) indexes and enable constraints (using export produced option 2 rows = n ignore = y)

    See the Oracle 7 here documentation

    -André

  • ALTER table move & shrink space

    Hello
    What is the difference between alter table move and alter table shrink space orders
    Two free blocks not used in the table so that the free space will be given to the tablespace. Can you explain mw in detail or provide some links

    Sekar_BLUE4EVER wrote:
    Hello
    What is the difference between alter table move and alter table shrink space orders
    Two free blocks not used in the table so that the free space will be given to the tablespace. Can you explain mw in detail or provide some links

    ALTER table move would make invalid indexes and would require so rebuild you the index. In addition to him, it requires extra space in the tablespace, even that would be used for the creation of the object in double. So if you have a table of 10 GB, you need additional 10 GB free todo table alter move. Whereas in the narrowing is a place, the online operation, does not make you go and rebuild the index because it doesn't make them not disabled, requires no additional space to have.

    HTH
    Aman...

  • ALTER table move partition in parallel

    Hello

    I wish that this command must be run in parallel. is this possible?

    ALTER TABLE xyz PARTITION MOVE xyz_p0608 TABLESPACE q208_ts

    Thank you
    parallel_clause
    
    Purpose
    
    The parallel_clause lets you parallelize the creation of a database object and set the default degree of parallelism for subsequent queries of and DML operations on the object.
    
    You can specify the parallel_clause in the following statements:
    
        * CREATE TABLE: to set parallelism for the table (see CREATE TABLE).
        * ALTER TABLE (see ALTER TABLE):
              o To change parallelism for the table
              o To parallelize the operations of adding, coalescing, exchanging, merging, splitting, truncating, dropping, or moving a table partition
    

    To parallelize append operations, coalescence, Exchange, merger, splitting, truncate, delete or move a partition table

  • ALTER table table_name move tablespace

    Hello

    IM using oracle 11.1.0.7.0 on aix 5.3, most of the users in my database is assigned to the SYSTEM tablespace, and their objects are also created in the SYSTEM tablespace.

    IM planning to run Alter table table_name move tablespace nom_tablespace;

    y at - it no need to run index rebuilding or the above command will automatically index rebulid.

    Thank you
    SQL> alter table table_name move tablespace users;
    Table altered.
    
    SQL> alter index index_name rebuild tablespace users;
    Index altered.
    
    SQL> select status from user_objects where object_name = 'INDEX_NAME';
    STATUS
    -------
    VALID
    

    Source: -.
    http://www.orafaq.com/Forum/t/21672/2/

  • ALTER TABLE RETRACTABLE is possible online?

    RDBMS Version: 11.2.0.4

    Platform: Oracle Linux 6.4

    We have a database of CARS of Production 2 nodes very critical. To recover the space, we want to cut some large tables. The first table we'll shrink is a 300 GB, which is not partitioned with no LOB table.

    Here are the steps that we'll run.

    Step1.alter mytable table allow the movement of the line;

    Step2.alter mytable table shrink space compact;

    Step3.alter mytable table shrink space;

    Step4.alter table mytable disable the movement of the line;

    STEP 5. COLLECT STATISTICS of the table (because the RETRACTABLE table will cancel all the sliders in the shared pool)

    The steps above will take at least 10 hours to complete a 300 GB table. We would like to know if all of these steps can be done online. That is to say. We do not want the SHRINK command to lock the table and prevents the table to be modified (any DML) by the application

    Doc below said this can be done online. But, MOS DOC 1357878.1 said that it is not and you must use the DBMS_REDEFINITION package if you want to do it online.

    https://docs.Oracle.com/CD/E18283_01/server.112/e17120/schema003.htm

    The MOS article you are talking about is not correct. Outside the DOF at the end of a SHRINK lock when the high tide is shifted, SHRINK the SPACE is an online operation. DBMS_REDEFNITION is actually worse because you have DDL locks at both the beginning and the end. However, in both cases, it is the DDL that is blocked by other operations DML (and not the other way around) so that your users will have no problem. If the narrowing or the redefinition is blocked, you can suspend the database for a few seconds. I described how to do here,

    Database Quiesce

    --

    John Watson

    Oracle Certified Master s/n

  • Mobile tables for Encrypted tablespace.

    Hello

    I use 11.2.0.3.0 version of oracle. We intend to move some ~ 40 tables/indexes again encrypted tablespace for transparent encryption of data (transparent data encryption). Currently three tables have the size ~ 30 GB and have a ~ 800 GB other have < 2 GB in size.  And tables/indexes are placed in different areas of storage.

    So my question is, if I should create no. areas table encrypted as it was before as tablespace unencrypted

    or

    I should create an encrypted tablespace that invade all tables/indexes and it does not affect the performance? Need Suggestion.

    A tablespace or forty tablespaces? You may want to tablespaces with a size different uniform measure if your objects have very different sizes and growth rates. Otherwise I wouldn't think that he would have no effect on performance. It is purely a matter of administrative convenience.

  • Online syntax to create Foreign key with Alter Table statement

    I am a pretty meticulous reader. That being said, from the 4 texts that I read to start to learn SQL, I do not remember and do more that probably not, find a syntax online for the creation of a CF with the statement alter table.

    Just something I thought while I was reading.

    Is there a such syntax?

    And if so someone can give me direction on my code?

    ALTER table emp4 change employee_id key foreign employees of references (employe_id);

    It gives me the option error invalid alter table.

    Any idea would be appreciated.

    Thank you.

    rp0428 wrote:

    A foreign key is a constraint, you must use ADD CONSTRAINT.

    Thare is more than one way to skin a cat:

    SQL > create table tbl (id number, name varchar2 (10))
    2.

    Table created.

    SQL > alter table tbl adds (foreign key references emp (empno))
    2.

    Modified table.

    SQL > select constraint_name,.
    2 constraint_type
    3 from user_constraints
    4 where table_name = 'TBL '.
    5.

    CONSTRAINT_NAME C
    ------------------------------ -
    SYS_C0021920 R

    SQL > drop table tbl purge
    2.

    Deleted table.

    SQL > create table tbl (id number, name varchar2 (10))
    2.

    Table created.

    SQL > alter table tbl change (foreign key references emp (empno))
    2.

    Modified table.

    SQL > select constraint_name,.
    2 constraint_type
    3 from user_constraints
    4 where table_name = 'TBL '.
    5.

    CONSTRAINT_NAME C
    ------------------------------ -
    SYS_C0021921 R

    SQL >

    SY.

  • ALTER table a enable row movement cause problem

    Hello

    I did allow the movement of the row in the table and then shrink the space. which causes the performance issue? If so, how? How to allow the movement of the line and shrink the work of space internally?

    can deposit in full table scan, then the idexes on this table is not used more?

    947721 wrote:

    can shrink space available internally to what extent?

    Use the following syntax in a google search: alter table shrink space site: docs.oracle.com

    Note, by the way: "allow the movement of the line" allows you to take advantage of the features of line-movement, but he made no movement.

    Concerning
    Jonathan Lewis

  • doubt in the creation of tables in different data in a tablespace files

    Hi good Eve everyone,

    in my scenario, I must create nearly 50 paintings with 3 data files in a table space.

    I have to save the top 15 in datafile 1 and 15 next in 2nd datafile and the rest in 3rd datafile.

    How do I create and tables in a data file of the group.

    looking for a helping hand in need...

    thanking you in advance

    Prakash

    You can do this, but it's awkward. Here is an example:

    ALTER session set deferred_segment_creation = true;

    create tablespace twofiles datafile 'c:\tmp\tf1.dbf' size 1m,'c:\tmp\tf2.dbf' size 1 m;

    create table infile1 (c1 date) tablespace twofiles;

    create table infile2 (c1 date) tablespace twofiles;

    ALTER table infile1 allocate extended (datafile 'c:\tmp\tf1.dbf');

    ALTER table infile2 allocate extended (datafile 'c:\tmp\tf2.dbf');

    Select nom_segment, file_id from dba_extents where nom_tablespace = 'TWOFILES ';

    However, it is simpler to let the Oracle uncle to decide how to distribute the scopes.

  • ALTER TABLE ADD CONSTRAINT

    Hi all
    I need to know if the instructions ALTER TABLE... ADD CONSTRAINT can specify the TABLENAME parameter where I want to create the score.
    Is this possible? If I can, could you please give me the syntax, please?
    If this is not the case, how can I create a table in a schema and for any other primary key?

    Thanks in advance

    Steven

    stesappo wrote:
    Hi all
    I need to know if the instructions ALTER TABLE... ADD CONSTRAINT can specify the TABLENAME parameter where I want to create the score.
    Is this possible? If I can, could you please give me the syntax, please?
    If this is not the case, how can I create a table in a schema and for any other primary key?

    Thanks in advance

    Steven

    What is a "score"? Do you mean the underlying unique index is created to enforce the primary key constraint?

    I guess you mean TABLESPACE, instead of TABLENAME?

    Yes you can.

    alter table ... add constraint ... primary key (...)
    using index tablespace ...
    /
    
  • alter table shrink space! ~ help!

    Hi guys,.

    (1) I have send a space of shrinking orders and it takes ages to complete.

    (2) generated Tons of redo and undo and I'm near my hard drive space max.

    T1) if I had to kill today's session.
    There will be a lot of back to?

    is not alter table a DDL statement, so the movement of the line be committed regularly or only after the entire statement over?

    which means that the decline in price if I kill the session will have to restore all the way at the time that I publish a retraction statement?

    Kind regards
    Noob

    grateful if you could offer some advice.

    My advice is to TEST DDL on dev. DB before launching the Production System; so that you know what to expect coming.

  • Reclaim space after ALTER TABLE DROP PARTITION

    Hello

    I have a partitioned table. My requirement is to reclaim the space by dropping a partition of the table.

    Is it possibe to recover space for the tablespace by dropping a partition of partition table?

    Thank you

    Hello

    ALTER TABLE DROP PARTITION will always return the space to the storage to be reused by other segments.

    It's the ALTER TABLE TRONQUER SCORE, where you can specify DROP STORAGE or of REUSE STORAGE clause (in case of re-use, the space is not released and can be used by the new lines inserted in the same partition). The DROP STORAGE should be the default option.

    But for the fall of the score, you don't have to worry.

    Kind regards
    Martin

  • ALTER Index Rebuild online

    My database is out 10 gr 2. Sometimes, I pass command ALTER INDEX < index name > REBUILD online on the indexes that are 500 MB in size. It takes about ten minutes to run the command. The database alert log shows no activity for the first six minutes, and DML is allowed on the associated table. At about minute seven journal alerts shows the first of a series of five online redo logs switches. They are each 100 MB.

    During the time that online redo logs, DML execution sessions cannot fill. When the new version of the index was created again online records switching station, the original copy of the index disappears, the ALTER INDEX command ends, and blocking for DML ceases.

    I read that the DML statements are not affected by executing ALTER INDEX REBUILD online, but experience shows that the blocking of the above sessions. Can someone explain to me what is happening in the different stages of the index rebuild? Is there something I can do to eliminate the blocking of the DML statements during the period when redo online record switch?

    Thank you
    Bill

    Bill,

    A useful reference for you:
    http://jonathanlewis.WordPress.com/2009/06/05/online-rebuild/

    Another very useful reference - of many articles:
    http://richardfoote.WordPress.com/category/index-rebuild/

    For what reason you rebuild the index?

    Charles Hooper
    Co-author of "Expert Oracle practices: Oracle Database Administration of the Oak Table.
    http://hoopercharles.WordPress.com/
    IT Manager/Oracle DBA
    K & M-making Machine, Inc.

Maybe you are looking for