Move the LOB to a new tablespace

I want the users tablespace LOB to some other tablespace. But when I tried I got the error set-aside. I moved all the objects corresponding to the particular schema, but not the LOB. Can you please explain why Cant I move the LOB. And if you can explain that I want to know the importance of the lob indexex. Thank you in advance.

SQL > select TABLE_NAME, INDEX_NAME, TABLESPACE_NAME from dba_lobs where owner = 'PC_DOM ';

TABLESPACE_NAME INDEX_NAME TABLE_NAME
------------------------------ ------------------------------ ------------------------------
PCSF_DOMAIN SYS_IL0000077924C00002$ $ USERS
PCSF_CPU_USAGE_SUMMARY SYS_IL0000077933C00006$ $ USERS
PCSF_REPO_USAGE_SUMMARY SYS_IL0000077936C00005$ $ USERS
PCSF_USER SYS_IL0000077940C00002$ $ USERS
PCSF_GROUP SYS_IL0000077944C00002$ $ USERS
PCSF_ROLE SYS_IL0000077948C00002$ $ USERS
PCSF_DOMAIN_USER_PRIVILEGE SYS_IL0000077952C00002$ $ USERS
PCSF_DOMAIN_GROUP_PRIVILEGE SYS_IL0000077956C00002$ $ USERS

8 selected lines.

SQL > alter table PCSF_DOMAIN move lob (SYS_IL0000077924C00002$) store as (tablespace TS_PC_DOM);
ALTER table PCSF_DOMAIN move lob (SYS_IL0000077924C00002$) store as (tablespace TS_PC_DOM)
*
ERROR on line 1:
ORA-00942: table or view does not exist

Do not use segment name of LOB but about the name of the column in the table and qualify the name of the table with the owner of the table if you are not logged in as owner of the table:

Try:

alter table PC_DOM.PCSF_DOMAIN move lob () store as ( tablespace TS_PC_DOM );

Each LOB column is materialized with 2 segments:
-a LOB segment containing LOB data
-a LOB index that is a structure designed to facilitate access to the LOB data in the LOB segment.

Edited by: P. Forstmann on 22 July. 2011 20:48

Edited by: P. Forstmann on 22 July. 2011 20:52

Tags: Database

Similar Questions

  • move the lob segment fails with invalid identifier

    Why this fails:

    SQL > desc APPLSYS. WF_INBOUND_TABLE
    Name Null? Type
    ----------------------------------------- -------- ----------------------------
    Q_NAME VARCHAR2 (30)
    MSGID NOT NULL RAW (16)
    CORRID'ART VARCHAR2 (128)
    PRIORITY NUMBER
    NUMBER OF THE STATE
    TIMESTAMP DELAY (6)
    NUMBER OF EXPIRY
    TIME_MANAGER_INFO TIMESTAMP (6)
    NUMBER OF LOCAL_ORDER_NO
    NUMBER OF CHAIN_NO
    NUMBER OF THE CSCN
    DSCN NUMBER
    ENQ_TIME TIMESTAMP (6)
    NUMBER OF ENQ_UID
    ENQ_TID VARCHAR2 (30)
    DEQ_TIME TIMESTAMP (6)
    NUMBER OF DEQ_UID
    DEQ_TID VARCHAR2 (30)
    NUMBER OF RETRY_COUNT
    EXCEPTION_QSCHEMA VARCHAR2 (30)
    EXCEPTION_QUEUE VARCHAR2 (30)
    NUMBER OF STEP_NO
    NUMBER OF RECIPIENT_KEY
    DEQUEUE_MSGID RAW (16)
    USER_DATA SYSTEM. WF_PAYLOAD_T
    SENDER_NAME VARCHAR2 (30)
    SENDER_ADDRESS VARCHAR2 (1024)
    NUMBER OF SENDER_PROTOCOL
    ANYDATA USER_PROP


    SQL > alter table APPLSYS. WF_INBOUND_TABLE move TABLESPACE APPS_TS_TX_DATA;

    Modified table.

    SQL > ALTER TABLE APPLSYS. WF_INBOUND_TABLE MOVE LOB (USER_PROP) STORE DID (TABLESPACE APPS_TS_TX_DATA);
    *
    ERROR on line 1:
    ORA-00904: "USER_PROP": invalid identifier

    user600570 wrote:
    Well, no matter what the type is be, how to move to this segment?

    The segment does not move when the corresponding table is moved to new tablespace?
    At least that's what I see.

    SQL> select * from v$version ;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE     10.2.0.4.0     Production
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    
    SQL> create table t nologging as select * from applsys.wf_inbound_table where 1 = 2 ;
    
    Table created.
    
    SQL> select dbms_metadata.get_ddl('TABLE','T') from dual ;
    
    DBMS_METADATA.GET_DDL('TABLE','T')
    --------------------------------------------------------------------------------
    
      CREATE TABLE "APPS"."T"
       (     "Q_NAME" VARCHAR2(30),
         "MSGID" RAW(16),
         "CORRID" VARCHAR2(128),
         "PRIORITY" NUMBER,
         "STATE" NUMBER,
         "DELAY" TIMESTAMP (6),
         "EXPIRATION" NUMBER,
         "TIME_MANAGER_INFO" TIMESTAMP (6),
         "LOCAL_ORDER_NO" NUMBER,
         "CHAIN_NO" NUMBER,
         "CSCN" NUMBER,
         "DSCN" NUMBER,
         "ENQ_TIME" TIMESTAMP (6),
         "ENQ_UID" NUMBER,
         "ENQ_TID" VARCHAR2(30),
         "DEQ_TIME" TIMESTAMP (6),
         "DEQ_UID" NUMBER,
         "DEQ_TID" VARCHAR2(30),
         "RETRY_COUNT" NUMBER,
         "EXCEPTION_QSCHEMA" VARCHAR2(30),
         "EXCEPTION_QUEUE" VARCHAR2(30),
         "STEP_NO" NUMBER,
         "RECIPIENT_KEY" NUMBER,
         "DEQUEUE_MSGID" RAW(16),
         "USER_DATA" "SYSTEM"."WF_PAYLOAD_T" ,
         "SENDER_NAME" VARCHAR2(30),
         "SENDER_ADDRESS" VARCHAR2(1024),
         "SENDER_PROTOCOL" NUMBER,
         "USER_PROP" "SYS"."ANYDATA"
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS NOLOGGING
      STORAGE(INITIAL 40960 NEXT 40960 MINEXTENTS 1 MAXEXTENTS 505
      PCTINCREASE 50 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "APPLSYSD"
     OPAQUE TYPE "USER_PROP" STORE AS LOB (
      ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
      CACHE
      STORAGE(INITIAL 40960 NEXT 40960 MINEXTENTS 1 MAXEXTENTS 505
      PCTINCREASE 50 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT))
    
    SQL> select owner, table_name, column_name, segment_name, tablespace_name from dba_lobs
      2  where table_name = 'T' ;
    
    OWNER                          TABLE_NAME
    ------------------------------ ------------------------------
    COLUMN_NAME
    -----------------------------------------------------------------------------------------------------------------------------------
    SEGMENT_NAME                   TABLESPACE_NAME
    ------------------------------ ------------------------------
    APPS                           T
    USER_PROP
    SYS_LOB0000365381C00035$$      APPLSYSD
    
    SQL> alter table t move tablespace APPLSYSX ;
    
    Table altered.
    
    SQL> select dbms_metadata.get_ddl('TABLE','T') from dual ;
    
    DBMS_METADATA.GET_DDL('TABLE','T')
    --------------------------------------------------------------------------------
    
      CREATE TABLE "APPS"."T"
       (     "Q_NAME" VARCHAR2(30),
         "MSGID" RAW(16),
         "CORRID" VARCHAR2(128),
         "PRIORITY" NUMBER,
         "STATE" NUMBER,
         "DELAY" TIMESTAMP (6),
         "EXPIRATION" NUMBER,
         "TIME_MANAGER_INFO" TIMESTAMP (6),
         "LOCAL_ORDER_NO" NUMBER,
         "CHAIN_NO" NUMBER,
         "CSCN" NUMBER,
         "DSCN" NUMBER,
         "ENQ_TIME" TIMESTAMP (6),
         "ENQ_UID" NUMBER,
         "ENQ_TID" VARCHAR2(30),
         "DEQ_TIME" TIMESTAMP (6),
         "DEQ_UID" NUMBER,
         "DEQ_TID" VARCHAR2(30),
         "RETRY_COUNT" NUMBER,
         "EXCEPTION_QSCHEMA" VARCHAR2(30),
         "EXCEPTION_QUEUE" VARCHAR2(30),
         "STEP_NO" NUMBER,
         "RECIPIENT_KEY" NUMBER,
         "DEQUEUE_MSGID" RAW(16),
         "USER_DATA" "SYSTEM"."WF_PAYLOAD_T" ,
         "SENDER_NAME" VARCHAR2(30),
         "SENDER_ADDRESS" VARCHAR2(1024),
         "SENDER_PROTOCOL" NUMBER,
         "USER_PROP" "SYS"."ANYDATA"
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS NOLOGGING
      STORAGE(INITIAL 40960 NEXT 40960 MINEXTENTS 1 MAXEXTENTS 505
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "APPLSYSX"
     OPAQUE TYPE "USER_PROP" STORE AS LOB (
      ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
      CACHE
      STORAGE(INITIAL 40960 NEXT 40960 MINEXTENTS 1 MAXEXTENTS 505
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT))
    
    SQL> select owner, table_name, column_name, segment_name, tablespace_name from dba_lobs
      2  where table_name = 'T' ;
    
    OWNER                          TABLE_NAME
    ------------------------------ ------------------------------
    COLUMN_NAME
    -----------------------------------------------------------------------------------------------------------------------------------
    SEGMENT_NAME                   TABLESPACE_NAME
    ------------------------------ ------------------------------
    APPS                           T
    USER_PROP
    SYS_LOB0000365381C00035$$      APPLSYSX
    
    SQL> drop table t purge ;
    
    Table dropped.
    

    If you want to be able to move the segment to a different tablespace to the table, I guess that's not possible. Oracle only allows LOB to be stored in a separate tablespace as the corresponding table provided that they are defined as the LOBs explicitly during the creation of the table, unlike the LOB created by oracle internally because of the column datatype being ANYDATA as in this case.

  • How to move a LOB to a different tablespace

    Hello
    I have a PRODUCT table where one of its fields is a LOB.
    The table has been created the TBL1 tablespace and Lob his field to a tablespace dedicad TBL_LB1
    I have to move the table to a different tablespace.
    The statement that I would use is

    ALTER TABLE PRODUCT MOVE TABLESPACE storage TBL2 (initial then the 4M 4 M);

    Can you tell me how to write the statement to move the Lob field to the new tablespace TBL_LB2?
    I don't know what syntax to use to move the Lob of TBL_LB1 to TBL_LB2 field

    Thank you

    Published by: user12180597 on 14-Dec-2009 6.20

    Hello

    Something like that

    ALTER TABLE Product
        MOVE LOB() STORE AS (
            TABLESPACE TBL_LB2
        )
    

    Concerning
    Anurag

  • Move the tables to a different tablespace

    Hello
    I created 6 tables with my account in the USERS tablespace. If users wish to access (and he has privileges), it can be accessed as - username.nameoftb.
    Now, I would like to create new tablespace, move there all the USERS tablespace tables and if someone (who has permissions) to have access, it can, but only with the table name. Without using the username who created them.

    Could you please help me, how to proceed?
    -move the tables to a different tablespace
    -users can access without using the name of the creator

    Thank you!

    1. change the SMSC table. ERSUSERWISESUMMARY move tablespace ERST_01 nologging;

    Can also rebuild the indexes as well.

    ALTER Index SMSC. INDX_ERSDATA_STRTTIME reconstruction tablespace ERSX_01 nologging;

    2 create a synonym for this object

    create public synonym mrbt_activation for owner_name.object_name;

    Concerning
    Asif Kabir

  • We have installed Office 2010 on a system that died & want to move the software for my new system. How to reactivate my product key Code

    We have installed Office 2010 on a system that died & want to move the software for my new system.  How to reactivate my product key Code

    Assuming that you had bought a copy of the sale at retail of Office 2010 (i.e., it not was not preinstalled by the manufacturer of the computer or downloaded and installed using a "product key card"), just install it on the new system and turn on normally.  In some cases, you may use telephone activation and explain the circumstances (i.e., the old computer is dead).

    Microsoft Office is not a step "off authorizes" as some other apps (Adobe comes to mind).

  • How can I move the software to a new computer?

    How can I move the software to a new computer?

    Simply install you it correctly as on your old computer. If you have specific questions, you must tell us at least what programs you're talking about and what system...

    Mylenium

  • How to move the lob segment in a partitioned table

    My Oracle 11.2, I have a partitioned table that I want to switch to a different tablespace

    After invoking the script, there are still inside for the insensitive lob segment table
    CREATE TABLE BONGO.AAA_3
    (
      ID       NUMBER,
      DATUM    DATE,
      OBJEKAT  BLOB
    )
    TABLESPACE BONGODATA_HUGE
    PCTUSED    40
    PCTFREE    10
    INITRANS   1
    MAXTRANS   255
    LOGGING
    PARTITION BY RANGE (DATUM)
    (  
      PARTITION P_MAXVALUE VALUES LESS THAN (MAXVALUE)
        LOGGING
        NOCOMPRESS
        TABLESPACE BONGODATA_HUGE
    LOB (OBJEKAT) STORE AS 
            (   TABLESPACE  BONGODATA 
              ENABLE        STORAGE IN ROW
              CHUNK       8192
              RETENTION
              NOCACHE
              STORAGE    (
                          INITIAL          64K
                          NEXT             1M
                          MINEXTENTS       1
                          MAXEXTENTS       UNLIMITED
                          PCTINCREASE      0
                          FREELISTS        1
                          FREELIST GROUPS  1
                          BUFFER_POOL      DEFAULT
                         )
            )
        PCTUSED    40
        PCTFREE    10
        INITRANS   1
        MAXTRANS   255
        STORAGE    (
                    INITIAL          64K
                    NEXT             1M
                    MINEXTENTS       1
                    MAXEXTENTS       UNLIMITED
                    FREELISTS        1
                    FREELIST GROUPS  1
                    BUFFER_POOL      DEFAULT
                   )
    )
    NOCOMPRESS 
    NOCACHE
    NOPARALLEL
    MONITORING;
    How to move this lob segment in a partitioned table?

    or, is there a package for data move in storage?

    concerning

    ALTER TABLE current_table MOVE PARTITION nom_partition
    TABLESPACE destination_table_space
    LOB (column_name) STORE AS (TABLESPACE current_tablespace);

  • Move the library file to new mac, as well as metadata

    If I had to move my library of Photos to another mac, all the metadata (faces, keywords, etc.) will come with it? Not in terms of the timing, but the library of faces real itself, etc. Is it as simple as move the photo library file to the new location or is there an official way to do this?

    Thanks as always!

    Just drag it to the new computer or transfer using a hard drive in Mac OS extended (journaled) format

    LN

  • Can I upgrade OLD computers XP Pro 32-bit to W7 Pro and later move the license to a new computer and 64-bit?

    I have a gob of old machines (5 years and more) running XP Pro 32-bit.  I don't want to buy new hardware when the XP support ends, so I'd just like the upgrade to windows 7 pro (probably 32 bit for some of them).  I think many of my computers will die in the next 12 to 18 months.  I would like to move the Windows 7 Pro license on new machines AND change to 64-bit at the same time without having to buy a new license of W7.

    Can someone tell me if this is possible?  Most of the machines will be 2013 Office installed.

    Thank you

    Wayne

    The key will activate one or the other (32-bit or 64-bit), but not at the same time. You get 2 DVD (s) with a version of "Retail" of Windows 7, but only 1 product key. If you want to use that key on your new machine, you must first uninstall Windows machine which has the 32-bit version of Windows installed.

    After that, you will need enable the new machine (64-bit) by phone from your key was already used to activate the PC 32 Bit.

    Also be aware that an 'Upgrade' of Windows 7 version requires that a previous version of Windows is installed and enabled. So if your new machine does not come with an earlier version of Windows pre-installed, you should consider the purchase of a 'Full' (not an ' Upgrade') of Windows 7 version.

    ========================================================

    How to activate Windows 7 or Vista manually (activate by phone)
    http://support.Microsoft.com/kb/950929/en-us

    1) click Start and in the search for box type: slui.exe 4
    (2) press the ENTER"" key.
    (3) select your "country" in the list.
    (4) choose the option "activate phone".
    (5) stay on the phone * do not select/press any option * and wait for a person to help you.
    (6) explain your problem clearly to the support person.
    (7) the person must give you a confirmation ID, copy it down on paper,
    (8) check that the ID is correct in reading the support person.
    (9) to enter the ID number, then click 'Next' to complete the activation process.

    Activation and registration of a Microsoft product
    http://support.Microsoft.com/?kbid=326851
    Windows activation: (888) 571-2048
    (888) 725-1047 or 800-936-5700

    What's the relationship between activation and genuine Windows?
    http://Windows.Microsoft.com/en-in/Windows7/what-s-the-relationship-between-activation-and-genuine-Windows

    What is the validation, and how does it work?
    Windows 7: http://windows.microsoft.com/en-us/windows/help/genuine/what-is-validation?os=win7
    Vista: http://windows.microsoft.com/en-us/windows/help/genuine/what-is-validation?os=winvista

    Authentic Microsoft software program privacy statement
    What data is collected?
    http://Windows.Microsoft.com/en-us/Windows/genuine/privacy-statement

    J W Stuart: http://www.pagestart.com

  • Move the VM to a new reservation/storage

    Hello

    I use a NetApp FAS2552 storage, vCAC 6.1

    I have 2 x storage paths in my booking

    I want to move the VM from StoragePathA to StoragePathB

    I tried to change the reservation, Infrastructure - Machines - Machines and changing storage at StoragePathB. This does not seem to do something good.

    Is this the right method? have you so need to wait? or then manually migrate the virtual machine in vSphere?

    I did not do anything in vSphere yet as I thought it break the link with vCAC and that vCAC would only recognize the VM has moved?

    Any help would be appreciated

    Thank you

    Jon

    If you move the machine, the inventory service will come back through and pick up in the new location (based on any scale you have set up).  In my view, that reservations don't come into play when you try to provision. Nothing do you the booking will be * moving machines.  The machine can exist in a storage location that is not part of the reserve of the Group of companies.  You can also have more than one storage assigned to a reserve location. (as you noted)

    VCAC look in vcenter for the ID of the computer (don't remember which).  We can all (more or less) to the virtual machine and the inventory service will update the virtual machine with the new values (e.g. vm data store location, put on the page of the virtual storage, memory, CPU, etc changes).  You will not "break" the link.

    Make a storage vmotion any VCAC (vRA) managed vSphere machine and run the inventory service (Infrastructure/resources/calculation calculation resources"and click on the collection of data for your endpoint to compute resources), and you'll see what I mean...

  • How to move the license to a new computer

    Can someone tell me how to move my license of Acrobat Pro 11 to a new computer

    Hi Dave,.

    Please visit the following link to move the license.

    https://helpx.Adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html

    Concerning

    Sukrit diallo

  • move the creative after a new hard drive

    I used to move the system with Augsburg suite cs3 to a new disk (ssd) (with Acronis True Image 2011). Disable the following devices before or not?

    Yes, disable (help > deactivate) your cs3 that was on your old hd.

    and you can expect to one (or more) of the problems if you clone your adobe programs.  You must install the adobe programs correctly using the installation files and your serial number.  Make sure that your serial number is correct and secure prior to disable.

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

  • move the creative cloud on new computer

    Currently installed Creative cloud on a Mac or a PC. I need to move program from the PC to your desktop to a new laptop computer.  I need help to do it properly.  I would be grateful with the community on this issue.

    Penguins2 please use the same process you used to install the creative cloud on your original computer.  You don't not want to transfer/migration/copy your existing applications to the new computer.  On the contrary, please install the applications on your new computer.  You can find more information about how to install applications Adobe Creative provided with your membership to install and update the apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html.

  • Move the virtual machines to new storage device

    I recently added a storage IBM DS3200 SAS device to my VMware ESX 3.5 server.  I am running 6 VMs locally on the server and I would like to move the virtual machines to the new storage device.  I have formatted disks and the ESX Server sees.  What is the best way to move the virtual machines that currently reside locally on the external storage device?

    Thanking you in advance,

    Al

    I guess you could also try using converter

  • How to move the FLASH_RECOVERY_ARE file to new drive?

    Thank you for taking my questions!

    Does anyone know how to move the files from e:\oracle\flash_recovery_area\* to a new disk?

    Thank you
    Kathie

    THE OPERATION HAS FAILED:
    I created a new pfile.
    Edition pfile changing old drive to the new drive letter letter.
    immediate stop
    to the E:oracle\flash_recovery_area\ S:\oracle\flash_recovery_area\* *.
    startup nomount;
    Create spfile from pfile;
    stop immediately;
    startup

    Now I get ORA = 38760 - this database instance could not turn on the flashback database;

    Kathie,

    Try this by first editing the database

    1) First Turn off Flashback:
    
    SQL> alter database flashback off;
    
    Monitor alert log for messages regadring flashback:
    
    Then s turn the flashback on again.
    
    SQL> alter database flashback on;
    
    SQL> Alter database open;
    

    Concerning

Maybe you are looking for

  • Easiest way to do this calculation

    If (phase > 180.0F) phase phase = - 360.0F;If (phase< -180.0f)="" phase="">Phase = phase; I keep ending up with a nested case or case structures or serialized structure selects trying to do the math above. Is there a way I can calculate phase in a mo

  • Why sony sells is no longer Cyber Shot WX150?

    I bought my camera not so long. To my surprise the reductions kept after my purchase, and now they do not sell it. It makes me really curious as to why. PS I wanted to put cela under products Cyber Shot, but he wouldn't let me select it.

  • Excel crashing, freezing when using the spreadsheet

    Original title: Excel 2013 file size. Hello. I'm having a problem with Excel crashing, freezing when using the spreadsheet. I work on a PC with WINDOWS 7 SP1 64-bit, through a server that is running Microsoft SERVER 2013, WINDOWS 7 PRO 64 BIT SP1. We

  • App World lifted tax until...?

    Hello I noticed that the App World tax is eliminated, for a limited time. Does anyone know when this "little time" ends? Thanks for your time. Kind regards Pat Segoe

  • How can I install a system on a separate partition image to boot from?

    I created an image of the system when my computer has completed the installation on Windows 7 and have backed it up on an external drive.  Now, I want to install it on another partition on my computer so I'm able to boot or my current system.  I have