Tablespace and LOB

Hi all,
Is it possible to have a logging TABLESPACE with a nologging LOB?

The target tablespace must already exists: if it does not exist you need to create it with a user account having DBA role like SYSTEM or SYS.
This is just an example that you should adapt (path name and size):
SQL> create tablespace tnew datafile 'c:\oraclexe\oradata\xe\tnew01.dbf' size 100M;
Tablespace created.
SQL>Once target tablespace exists you can move LOB columns to new tablespace:
SQL> create table tl(x clob) tablespace users;
Table created.
SQL> alter table tl move lob(x) store as (tablespace tnew);
Table altered.
SQL>Edited by: P. Forstmann on 19 févr. 2011 09:43

Similar Messages

  • Separate tablespaces for indexes and LOBs

    I have modeled my db tables with jDeveloper. Now I would like to store my tables in default tables, my indexes in a separate tablespace, and LOBs in a 3rd tablespace.
    How can I best add the tablespace definitions to the table creation sql? I can't find such functionality in jDeveloper.
    If jDev does not support this, does Oracle have some other tools which could do this?
    Or can I set some ALTER SESSION parameter before creating the tables which would make my indexes and LOBs go to the correct tablespaces by default?

    I see jDeveloper 11g has a possibility for specifying tablespaces for the tables and LOBs.
    I cant figure out how to set tablespaces for indexes though. I can tell there is definately no way to set tablespace settings for primary key / foreign key indexes.
    So jDev 11g does not seem to solve my problem either.

  • Fastest and easiest way to drop a tablespace with LOB Segments

    When I try to drop a tablespace I get a message that I can't cause it still contains LOB Segments. I searched to see what objects like tables or indexes are in that tablespace and there are none.
    Any one run into this? Any way to get around this issue?

    Sorry,
    Version = 10.2.0.4
    OS = Win2003 32bit
    Command used = DROP TABLESPACE IWORKS_LARGE_TABLES INCLUDING CONTENTS AND DATAFILES;
    Error Message = ORA-22868: table with LOBs contains segments in different tablespaces
    Objects currently in this tablespace:
    SQL> select s.segment_name, s.segment_type
      2    from dba_segments s
      3   where tablespace_name = 'IWORKS_LARGE_TABLES'
      4  ;
    SEGMENT_NAME                                                                     SEGMENT_TYPE
    SYS_IL0000060885C00008$$                                                         LOBINDEX
    SYS_LOB0000060885C00008$$                                                        LOBSEGMENT
    SYS_IL0000060918C00048$$                                                         LOBINDEX
    SYS_LOB0000060918C00048$$                                                        LOBSEGMENTI basically want to drop the whole tablespace but these objects are not allowing me to.

  • Drop tablespace and recreate a new one!

    Hello All,
    One of my database(oracle 10g, aix server ) has a tablespace called tools for xample. its size is nearly 16g, but current usage is around 170 mb only. So i want to resize the tablespace size to 2G
    So what i did is, took export of tools tablespace and full database export backup separately. so in my hand i have, tools tablespace backup(export file) and whole database backup(took using again exp utility)
    Now i tried to drop the tools tablespace and got this error
    SQL> DROP TABLESPACE TOOLS INCLUDING CONTENTS AND DATAFILES;
    DROP TABLESPACE TOOLS INCLUDING CONTENTS AND DATAFILES
    ERROR at line 1:
    ORA-29857: domain indexes and/or secondary objects exist in the tablespace.
    so i also planned, instead of dropping the tablespace, i thought of removing objects in the tablespace and resize it and import using the backup what i have.
    when i query the tablespace, i got 4 object. index, tables, lobindex and lobsegment.
    i wrote script to drop indexes and tables.but dint execute yet.
    how to remove/move lobindex and lobsegment, so that i can resize the tools tablespace?
    anyone has come across this issue? or any other method is there to over come this issue?
    Please provide detailed step if you have so.
    Regards,
    Pradeep. V

    Hi Nicolas,
    Kindly explain this point
    Step 2 above, move lob... check USER_LOBS to get the corresponding table/column from your lob_Segment...
    what query i need to use to find user_lobs,
    is this the query you saying about?
    select * from user_lobs where tablespace_name='TOOLS';
    it dint return any rows

  • ORA-12815 while reorg/compression of tables without LONG and LOB with 11g

    Hello fellows,
    I am in the luxury situation that I got a copy of our production R/3 environment that was left over from a project and is no more required by any of our developers.
    As we are still on oracle 9.2.0.7 I upgraded this copy to 11.2 in a two step process (from 9i to 10g to 11g).
    I got myself the SAP dbatools 7.20(3) and the Note 1431296 - LOB conversion and table compression with BRSPACE 7.20.
    I started with some small tablespaces but after a while I thought I'd like to try to reorg/compress the worst of all tablespaces...PSAPPOOLD with ~15.000 tables.
    I first converted tables with LONG fields online that can be compressed, than the onse that can not be compressed, than I reorged the tables that contain old LOB fields online. With these different executions of the brspace commands that are also mentioned in the above note I managed to move ~ 3.000 tables without any issues.
    But now I started with the biggest bunch of tables, the compression of tables without LONG and LOB fields online.
    This is the command I used:
    brspace -u / -p reorgEXCL.tab -f tbreorg -a reorg -o sapr3 -s PSAPPOOLD -t allsel -n psapreorg -i psapreorgi -c ctab -SCT
    ...after a few checks that are performed by brspace, I end up in the screen
    Options for reorganization of tables (which is still nothing I wouldn't have expected)
    1 * Reorganization action (action) ............ [reorg]
    2 - Reorganization mode (mode) ................ [online]
    3 - Create DDL statements (ddl) ............... [yes]
    4 ~ New destination tablespace (newts) ........ [PSAPREORG]
    5 ~ Separate index tablespace (indts) ......... [PSAPREORGI]
    6 - Parallel threads (parallel) ............... [1]
    7 ~ Table/index parallel degree (degree) ...... []
    8 ~ Category of initial extent size (initial) . []
    9 ~ Sort by fields of index (sortind) ......... []
    10 # Index for IOT conversion (iotind) ......... [FIRST]
    11 - Compression action (compress) ............. [none]
    12 # LOB compression degree (lobcompr) ......... [medium]
    13 # Index compression method (indcompr) ....... [ora_proc]
    But independent of what I enter in point 6 and 7, I always end up with below erros during the reorg/compression of the outstanding tables:
    Just one sample, but the issue is always the same.
    BR0301E SQL error -12815 in thread 2 at location tab_onl_reorg-26, SQL statement:
    'CREATE UNIQUE INDEX "SAPR3"."RTXTF_____0#$" ON "SAPR3"."RTXTF#$" ("MANDT", "APPLCLASS", "TEXT_NAME", "TEXT_TYPE", "FROM_LINE",
    "FROM_POS")
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 1662976 NEXT 655360 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "PSAPREORGI" PARALLEL ( INSTANCES 0) '
    ORA-12815: value for INSTANCES must be greater than 0
    Just in case, here it the OBJECT DDL:
    CREATE UNIQUE INDEX "SAPR3"."RTXTF_____0"
        ON "SAPR3"."RTXTF"  ("MANDT", "APPLCLASS", "TEXT_NAME",
        "TEXT_TYPE", "FROM_LINE", "FROM_POS")
        TABLESPACE "PSAPPOOLI" PCTFREE 10 INITRANS 2 MAXTRANS 255
        STORAGE ( INITIAL 1624K NEXT 640K MINEXTENTS 1 MAXEXTENTS
        2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1)
        LOGGING
    Perhaps someone already gained some experience on the compression with brspace and can give me a hint.
    Many thanks
    Florian

    Hello Florian,
    > Perhaps someone already gained some experience on the compression with brspace and can give me a hint.
    I have not performed any compression operations on Oracle 11g R2 with brspace until yet .. but this error seems to be very obvious.
    It seems like SAP is still not using the procedure DBMS_REDEFINITION.COPY_TABLE_DEPENDENT to create the indexes (and NOT NULL constraints) on Oracle 11g R2. No idea why, i can only think of one case (create a DDL file before reorganisation to change the DDL parameters through the reorganisation in some kind of ways).
    So in your case it seems like SAP is creating a wrong SQL for creating the index on the interim table.
    You can try to create the DDL file first and correct the parameters and after that you can try to run the reorganisation again.
    Please check sapnote #646681 (Remark 5) for more information about the procedure for "creating the DDL first .. and then do the reorg with edited parameters).
    Regards
    Stefan

  • What are differences between the target tablespace and the source tablespac

    The IMPDP command create so manay errors. But the EXAMPLE tablespace is transported to the target database successfully. It seems that the transported tablespace is no difference with the source tablespace.
    Why create so many errors?
    How to avoid these errors?
    What are differences between the target tablespace and the source tablespace?
    Is this datapump action really successfull?
    Thw following is the log output:
    [oracle@hostp ~]$ impdp system/oracle dumpfile=user_dir:demo02.dmp tablespaces=example remap_tablespace=example:example
    Import: Release 10.2.0.1.0 - Production on Sunday, 28 September, 2008 18:08:31
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Master table "SYSTEM"."SYS_IMPORT_TABLESPACE_01" successfully loaded/unloaded
    Starting "SYSTEM"."SYS_IMPORT_TABLESPACE_01": system/******** dumpfile=user_dir:demo02.dmp tablespaces=example remap_tablespace=example:example
    Processing object type TABLE_EXPORT/TABLE/TABLE
    ORA-39117: Type needed to create table is not included in this operation. Failing sql is:
    CREATE TABLE "OE"."CUSTOMERS" ("CUSTOMER_ID" NUMBER(6,0), "CUST_FIRST_NAME" VARCHAR2(20) CONSTRAINT "CUST_FNAME_NN" NOT NULL ENABLE, "CUST_LAST_NAME" VARCHAR2(20) CONSTRAINT "CUST_LNAME_NN" NOT NULL ENABLE, "CUST_ADDRESS" "OE"."CUST_ADDRESS_TYP" , "PHONE_NUMBERS" "OE"."PHONE_LIST_TYP" , "NLS_LANGUAGE" VARCHAR2(3), "NLS_TERRITORY" VARCHAR2(30), "CREDIT_LIMIT" NUMBER(9,2), "CUST_EMAIL" VARCHAR2(30), "ACCOUNT_MGR_ID" NU
    ORA-39117: Type needed to create table is not included in this operation. Failing sql is:
    ORA-39117: Type needed to create table is not included in this operation. Failing sql is:
    CREATE TABLE "IX"."ORDERS_QUEUETABLE" ("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" VARCHAR2(30), "ENQ_TID" VARCHAR2(30), "DEQ_TIME" TIMESTAMP (6), "DEQ_UID" VARCHAR2(30), "DEQ_
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    . . imported "SH"."CUSTOMERS" 9.850 MB 55500 rows
    . . imported "SH"."SUPPLEMENTARY_DEMOGRAPHICS" 695.9 KB 4500 rows
    . . imported "OE"."PRODUCT_DESCRIPTIONS" 2.379 MB 8640 rows
    . . imported "SH"."SALES":"SALES_Q4_2001" 2.257 MB 69749 rows
    . . imported "SH"."SALES":"SALES_Q1_1999" 2.070 MB 64186 rows
    . . imported "SH"."SALES":"SALES_Q3_2001" 2.129 MB 65769 rows
    . . imported "SH"."SALES":"SALES_Q1_2000" 2.011 MB 62197 rows
    . . imported "SH"."SALES":"SALES_Q1_2001" 1.964 MB 60608 rows
    . . imported "SH"."SALES":"SALES_Q2_2001" 2.050 MB 63292 rows
    . . imported "SH"."SALES":"SALES_Q3_1999" 2.166 MB 67138 rows
    Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."REGIONS" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."REGIONS" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."COUNTRIES" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."COUNTRIES" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."LOCATIONS" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."LOCATIONS" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."DEPARTMENTS" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."DEPARTMENTS" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."JOBS" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."JOBS" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."EMPLOYEES" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."EMPLOYEES" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."JOB_HISTORY" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."JOB_HISTORY" TO "EXAM_03"
    ORA-39112: Dependent object type OBJECT_GRANT:"OE" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type OBJECT_GRANT:"OE" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    ORA-39112: Dependent object type INDEX:"OE"."CUSTOMERS_PK" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type INDEX:"OE"."CUST_ACCOUNT_MANAGER_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type INDEX:"OE"."CUST_LNAME_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type INDEX:"OE"."CUST_EMAIL_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type INDEX:"PM"."PRINTMEDIA_PK" skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    ORA-39112: Dependent object type CONSTRAINT:"OE"."CUSTOMER_CREDIT_LIMIT_MAX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type CONSTRAINT:"OE"."CUSTOMER_ID_MIN" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type CONSTRAINT:"OE"."CUSTOMERS_PK" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type CONSTRAINT:"PM"."PRINTMEDIA__PK" skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
    ORA-39112: Dependent object type CONSTRAINT:"IX"."SYS_C005192" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUSTOMERS_PK" creation failed
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_ACCOUNT_MANAGER_IX" creation failed
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_LNAME_IX" creation failed
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_EMAIL_IX" creation failed
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"PM"."PRINTMEDIA_PK" creation failed
    Processing object type TABLE_EXPORT/TABLE/COMMENT
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    ORA-39112: Dependent object type REF_CONSTRAINT:"OE"."CUSTOMERS_ACCOUNT_MANAGER_FK" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39083: Object type REF_CONSTRAINT failed to create with error:
    ORA-00942: table or view does not exist
    Failing sql is:
    ALTER TABLE "OE"."ORDERS" ADD CONSTRAINT "ORDERS_CUSTOMER_ID_FK" FOREIGN KEY ("CUSTOMER_ID") REFERENCES "OE"."CUSTOMERS" ("CUSTOMER_ID") ON DELETE SET NULL ENABLE
    ORA-39112: Dependent object type REF_CONSTRAINT:"PM"."PRINTMEDIA_FK" skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
    Processing object type TABLE_EXPORT/TABLE/TRIGGER
    ORA-39082: Object type TRIGGER:"HR"."SECURE_EMPLOYEES" created with compilation warnings
    ORA-39082: Object type TRIGGER:"HR"."SECURE_EMPLOYEES" created with compilation warnings
    ORA-39082: Object type TRIGGER:"HR"."UPDATE_JOB_HISTORY" created with compilation warnings
    ORA-39082: Object type TRIGGER:"HR"."UPDATE_JOB_HISTORY" created with compilation warnings
    Processing object type TABLE_EXPORT/TABLE/INDEX/FUNCTIONAL_AND_BITMAP/INDEX
    ORA-39112: Dependent object type INDEX:"OE"."CUST_UPPER_NAME_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/FUNCTIONAL_AND_BITMAP/INDEX_STATISTICS
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_UPPER_NAME_IX" creation failed
    Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
    ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
    ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    Processing object type TABLE_EXPORT/TABLE/INDEX/DOMAIN_INDEX/INDEX
    Processing object type TABLE_EXPORT/TABLE/POST_INSTANCE/PROCACT_INSTANCE
    ORA-39112: Dependent object type PROCACT_INSTANCE skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    ORA-39083: Object type PROCACT_INSTANCE failed to create with error:
    ORA-01403: no data found
    ORA-01403: no data found
    Failing sql is:
    BEGIN
    SYS.DBMS_AQ_IMP_INTERNAL.IMPORT_SIGNATURE_TABLE('AQ$_ORDERS_QUEUETABLE_G');COMMIT; END;
    Processing object type TABLE_EXPORT/TABLE/POST_INSTANCE/PROCDEPOBJ
    ORA-39112: Dependent object type PROCDEPOBJ:"IX"."AQ$_ORDERS_QUEUETABLE_V" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    ORA-39112: Dependent object type PROCDEPOBJ:"IX"."ORDERS_QUEUE_N" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    ORA-39112: Dependent object type PROCDEPOBJ:"IX"."ORDERS_QUEUE_R" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    ORA-39112: Dependent object type PROCDEPOBJ:"IX"."AQ$_ORDERS_QUEUETABLE_E" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    ORA-39112: Dependent object type PROCDEPOBJ:"IX"."ORDERS_QUEUE" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    Job "SYSTEM"."SYS_IMPORT_TABLESPACE_01" completed with 63 error(s) at 18:09:14

    Short of trying to then reverse-engineer the objects that are in the dump file (I believe Data Pump export files contain some XML representations of DDL in addition to various binary bits, making it potentially possible to try to scan the dump file for the object definitions), I would tend to assume that the export didn't include those type definitions.
    Since it looks like you're trying to set up the sample schemas, is there a reason that you wouldn't just run the sample schema setup scripts on the destination database? Why are you using Data Pump in the first place?
    Justin

  • To capture all the objects from an tablespace and restore.

    Hi All,
    I have a situation in the  Schema  refresh process where i may have  to delete a tablespace  and its datafiles.
    Then I have to recreate it as it was before and restore all it objects .
    Is there any way that i can capture all the objects of that tablespace before it is deleted  and then later restore it back as it was .
    Any Expert sugggestion is highly apprciated .
    The Platform is as below ..
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    Thanks In Advance .

    There are 2 methods you could use with Data Pump.
    1. tablespace mode export.  expdp user/password tablespaces=<your list here> ...
    2. transportable tablespace mode.  expdp user/password transport_tablespaces=<your tablespace list here> ...
      NOTE:  for #2, you need to have your tablespaces in read only mode, then you need to copy the data files, and the
                    tablespaces need to be self contained.
    Hope this helps.
    Dean

  • Tablespace and performance issue

    Hi,
    I have Tablespace X and tablespace Y.
    I have seven transaction tables in X, which has image tables in Y. X tablespace is my Online tablespace and Y my archive tablespace and I use the archive tablespace to store old data.
    I use the same algorithm, only wrapped up in two processes, with only the source and destination alternating. The code performs extremely well for moving data X->Y. And ridiculously slow for Y-> X.
    I have just started doing this process of archiving, so the data volume in both the sets of tables are the almost the same.
    Any clue on what I could check up for here ?? What should be the problem ??
    The trace file shows the similar plans both sides, only there are wait times in process Y->X.
    Thanks for your time on this.
    Ashok.

    ahhh ... you are talking now about "internal" (vs. "external"?) volume instances. This implies probably you have really to talk to the responsible dba, as Justin already proposed.
    One small correction, you always can do an "insert /*+ append */ ...". As Oracle will write into new datablocks then, you only would loose the last allocated free blocks. But in the case of the offline tables, this is not a problem as you only add data anyway therefore you'll not loose a lot. And disk space is not really a concern anymore these days.
    For the other way around, you only had to do an "alter table X move tablespace <online-tbs>" afterwards to clean up all the unused blocks.
    For the truncating, may be you can think about it again. You have a processing going on there ie there is some grouping/selecting criteria. Probably one of these criterias is a partitioning candidate? And with a partitioned table you would be back in the truncating game.
    For the "I'm not let to DDL on the objects from inside the code" seems a rather funny restriction, as this doesn't let you do a truncate and instead you need a lot of (probably unnecessary) undo-tablespace for a delete. But as some dba's don't really know, what the job of a good developer is, you can probably ask your dba for a packaged procedure, where this table/partition gets truncated.

  • Creating new TableSpace and shifting existing ....

    I created a database but it is using the default tablespace. I want to create a new tablespace and want to configure existing database to use new tablespace. How to do this? The database is having enough records.

    >>alter user scott default tablespace system;<br>
    <br>
    Assume the default tablespaces for users USER1 and<br>
    USER2 are TS1 and TS2 respectively, specified<br>
    explicitly during user creation. The current<br>
    default tablespace for the database is TS2, but<br>
    later, the database default tablespace is changed to<br>
    TS1. Even though USER2's default tablespace was<br>
    explicitly specified as TS2<br>
    <br>
    <br>
    sys@ORCL> create user user1 identified by user1 default tablespace system;
    User created.
    Elapsed: 00:00:00.06
    sys@ORCL> create user user2 identified by user2 default tablespace system;
    User created.
    Elapsed: 00:00:00.01
    sys@ORCL> select property_value
      2  from database_properties
      3  where property_name = 'DEFAULT_PERMANENT_TABLESPACE';
    PROPERTY_VALUE
    USERS
    Elapsed: 00:00:00.00
    sys@ORCL> select default_tablesapce
      2  from dba_users
      3  where username
      4
    sys@ORCL> select username, default_tablespace
      2  from dba_users
      3  where username in ('USER1', 'USER2');
    USERNAME                       DEFAULT_TABLESPACE
    USER1                          SYSTEM
    USER2                          SYSTEM
    Elapsed: 00:00:00.01
    sys@ORCL> alter database default tablespace example;
    Database altered.
    Elapsed: 00:00:00.01
    sys@ORCL> select username, default_tablespace
      2  from dba_users
      3  where username in ('USER1', 'USER2');
    USERNAME                       DEFAULT_TABLESPACE
    USER1                          SYSTEM
    USER2                          SYSTEM
    Elapsed: 00:00:00.01
    sys@ORCL> select property_value
      2  from database_properties
      3  where property_name = 'DEFAULT_PERMANENT_TABLESPACE';
    PROPERTY_VALUE
    EXAMPLE
    Elapsed: 00:00:00.00
    sys@ORCL>

  • Temporary Tablespace and transactions

    Hi.
    I have a query regarding temp tablespace ,
    I am on 10gR2 version. with ONE TEMP tablespace and having one tempfiles.
    temp Tablespace TEMP1 = temp01.dbf (1 GB)
    + Let say I have executed a query-1 from Scott user , its runs for 30 min and let assume its consumed 900MB of tempspace during its completion .
    + And another query -2 from scott or another user fired ( let say Query 1 started earlier than Query 2 ) . and it needs around 500MB of tempspace
    == MY Question is
    Q .1 ) Will the Second Query waits until Query 1 completion ? As we have only one Temp file over here . IF both started executing both Queries will hit unable o extend temp space error .
    - Please provide your inputs and corrections.
    -Thanks.

    TEMP Tablespace size : 1GB NO AutoExtend
    First Query uses 900MB
    Second Query starts using space and will eventually need 500MB space
    Both queries will concurrently be allowed to use Temp Space
    If the first query completes before the second query usage hits 100MB, it will release all 900MB for usage by the second query.
    If the first query hasn't completed and is at 900MB, the second query will error out when it attempts to go beyond 100MB.
    If the first query needs more than 900MB and the second query has used 100MB -- i.e. both are growing in usage -- any one of the two queries wil fail.
    NOTE : If Resumable Space Allocation has been enabled either by setting RESUMABLE_TIMEOUT or by ALTER SESSION ENABLE RESUMABLE, the queries will not fail if the TEMP Tablespace is resized within the timeout period. Else, beyond the timeout, either of the queries will fail.
    Hemant K Chitale
    Edited by: Hemant K Chitale on Feb 13, 2013 4:17 PM
    Added Note on Resumable Space Allocation

  • Import tablespace and index seperately

    dear gurus,
    i created two tablespace testtbs, and testtbs_idx. so when i try to import the dump file. so complete file is going to tablespace.
    can you suggest advised as starting or beginner level what best practice should i do. so that both goes seperately.
    there is user test/test@orcl. the file is also test.dump
    i am not using parameter file rather it is single file command line issue. i am using rhel 5.3 with 10.2.0.4 10gr2.
    confirm another thing, at the time of creation user i give user test to tablespace test permission already. but tablespce index i have not given any permission.
    look at below and confirm if i miss or wrong anything...advise accordingly
    CREATE USER test IDENTIFIED BY test DEFAULT TABLESPACE PREMIA QUOTA UNLIMITED ON test TEMPORARY TABLESPACE TEMP;
    GRANT CONNECT,RESOURCE,IMP_FULL_DATABASE,EXP_FULL_DATABASE TO test;
    REVOKE UNLIMITED TABLESPACE FROM test;
    ALTER USER test QUOTA UNLIMITED ON test_IDX;
    imp test/test@orcl file='D:/bkup_dump/test.dmp' log='D:/bkup_dump/test.log' ignore=y FULL=Y;
    regards
    salim

    hello,
    CREATE USER test IDENTIFIED BY test DEFAULT TABLESPACE PREMIA
    QUOTA UNLIMITED ON test TEMPORARY TABLESPACE TEMP;is it like that you are creating user test, default tablespace premia and quota on test???? you should allow quota to user on its default tablespace only so try
    CREATE USER test IDENTIFIED BY test DEFAULT TABLESPACE test
    QUOTA UNLIMITED ON test TEMPORARY TABLESPACE TEMP;before executing this
    ALTER USER test QUOTA UNLIMITED ON test_IDX;
    have you executed this???
    ALTER USER TEST DEFAULT TABLESPACE TEST;
    ?????? you should do that.
    and import complete dump in users default tablespace and then rebuild all indexes to index tablespace, that will be easiest way....experts please correct me...
    alter index <index_name> rebuild online tablespace <new_tablespace>;
    import command is looking fine
    imp test/test@orcl file='D:/bkup_dump/test.dmp' log='D:/bkup_dump/test.log' ignore=y FULL=Y;you might like to include fromuser and touser clause if the user exported is different...and why using full?? are you importing full database???
    HTH
    thanks and regards
    VD

  • Administer datafiles, tablespaces and free space

    Hi all,
    Firstly i want to apologize if my English is not very good, and secondly for if there is such topic already. I tried the "search" but didn't find something that suits my requirements...
    We are using Oracle9i.
    Here is the (potential) problem:
    I noticed that the some of the filesystems soon will run out of space.
    Example:
    /dev/vg07/lv_data7 71671808 68657701 2825782 96% /var/application/oracle/data07
    /dev/vg07/lv_data6 71671808 58102994 12720766 82% /var/application/oracle/data06
    /dev/vg07/lv_data5 71671808 69448894 2084034 97% /var/application/oracle/data05
    /dev/vg07/lv_data4 71671808 67765635 3662100 95% /var/application/oracle/data04
    /dev/vg06/lv_data3 71675904 65840498 5470722 92% /var/application/oracle/data03
    /dev/vg05/lv_data2 71675904 65730929 5573472 92% /var/application/oracle/data02
    /dev/vg03/lv_data1 70656000 65924095 4436216 94% /var/application/oracle/data01
    /dev/vg10/lv_data10 292929536 7301210 267776605 3% /var/application/oracle/data10
    /dev/vg10/lv_data11 292929536 0 292929536     0% /var/application/oracle/data11
    Lets for example take a look at data05:
    /var/application/oracle/data05 > ls -l
    There are many tablespaces and some of their datafiles there.
    -rw-r----- 1 oracle dba 367005696 Jul 21 13:19 e1_data_d_d_11.dbf
    -rw-r----- 1 oracle dba 209719296 Jul 21 13:20 e1_data_d_d_12.dbf
    -rw-r----- 1 oracle dba 1022365696 Jul 21 13:19 m_data_d_07.dbf
    -rw-r----- 1 oracle dba 812650496 Jul 21 13:19 m_data_d_08.dbf
    -rw-r----- 1 oracle dba 707792896 Jul 21 13:19 m_data_d_09.dbf
    -rw-r----- 1 oracle dba 2097156096 Jul 21 13:19 e_data_d_30.dbf
    -rw-r----- 1 oracle dba 734007296 Jul 21 13:20 e_data_d_38.dbf
    -rw-r----- 1 oracle dba 629149696 Jul 21 13:20 e_data_d_39.dbf
    -rw-r----- 1 oracle dba 419434496 Jul 21 13:20 e_data_d_40.dbf
    -rw-r----- 1 oracle dba 812650496 Jul 21 13:25 m1_data_d_03.dbf
    -rw-r----- 1 oracle dba 393220096 Jul 21 13:27 m1_data_d_04.dbf
    -rw-r----- 1 oracle dba 209719296 Jul 21 13:20 m1_data_d_05.dbf
    -rw-r----- 1 oracle dba 2097160192 Jul 21 13:19 m1_data__03.dbf
    -rw-r----- 1 oracle dba 2097160192 Jul 21 13:39 m1_data__04.dbf
    -rw-r----- 1 oracle dba 2097160192 Jul 21 13:19 m1_data__05.dbf
    -rw-r----- 1 oracle dba 2097160192 Jul 21 13:39 m1_data__06.dbf
    -rw-r----- 1 oracle dba 2097160192 Jul 21 13:19 m3_data_d_d_03.dbf
    -rw-r----- 1 oracle dba 2097160192 Jul 21 13:42 m3_data_d_d_04.dbf
    -rw-r----- 1 oracle dba 1572872192 Jul 21 13:20 m3_data_d_d_05.dbf
    drwxr-xr-x 2 root root 96 Nov 21 2006 lost+found
    -rw-r----- 1 oracle dba 942678016 Jul 21 13:19 system02.dbf
    -rw-r----- 1 oracle dba 72359936 Jul 21 13:20 system04.dbf
    The situation is similar in the other filesystems - various tablespaces and a lot of datafiles.
    Perhaps you've noticed that /data10 and /data11 are empty.
    What is the best approach in this situation so that we start using those two filesystems .
    Is moving datafiles from heavily used filesystems to the empty ones there is a good solution?
    My idea is to make Oracle to automatically extend the tabespaces over the empty volumes and start creating the new datafiles there, but i am not sure how exactly to do that.
    Any help will be appreciated.
    Regards.
    /R
    Message was edited by:
    user648100

    Thanks for the quick reply.
    MYH,
    Yes, the tablespaces are autoextend on. Here is the information about one of them from the GridControl:
    Name e1_data_d_d
    Status ReadWrite
    Type Permanent
    Extent Management local
    Storage
    Allocation Type Automatic
    Segment Space Management Automatic
    Enable logging Yes
    Block Size (B) 4096
    I did not understand the second question - about partition a datafile?!? I can move datafiles but i'm still learning... never heard of partitioning a file, sorry.
    Yas, i think the datafiles are Oracle Managed and oracle, after filling up a file, creates the new datafile automatically. I can create new file within the empty filesystems, but isn't it dangerous.
    And with regards to same question - if i create a new datafiles, or move old datafiles - will Oracle start to use the new filesystems automatically?

  • DEFAULT TABLESPACE and TEMPORARY TABLESPACE for eBusiness Suite database

    Hi:
    What is the
    DEFAULT TABLESPACE and TEMPORARY TABLESPACE
    for eBusiness Suite database.
    I want to create a new schema on the eBusiness Suite database.
    Please help

    DEFAULT TABLESPACE and TEMPORARY TABLESPACE
    for eBusiness Suite database.
    I want to create a new schema on the eBusiness Suite database.Create a new tablespace and temporary tablespace for your custom schema (you may use the existing temporary tablespace).
    Integrating Custom Applications with Oracle Applications Release 11i [ID 176852.1]
    Step By Step Guide to Creating a Custom Application in Applications 11i [ID 216589.1]
    Thanks,
    Hussein

  • EXPDP tablespace and IMPDP tablespace - who owns the tablespace data?

    Hi Gurus
    Sorry - new to this. Thank you for replies in advance.
    10.2.0.3 - Windows 2003. Done some googling but not got the answer.
    Have been asked by developer to export multiple tablespaces (on one server) into a new database (on another server) but import into just one tablespace.
    Unable to use transportable tablespaces because software owner says it doesn't work.
    However, developer says can use data-pump in 10g to do this.
    Have created the same repository on both databases under the system account and same path name on both servers.
    Have used expdp system/password tablespace=(tablespace_name1, tablespace_name2, etc) to create the dmp file and copied it over to the new database server.
    Now about to import it into the new database into just one tablespace.
    If I export all the multiple tablespaces and then import them into the one tablespace - under the system account - how does Oracle work out who owns the tables in the tablespace?
    The tables, themselves, are owned by multiple owners (not all these users are created in the new database as the developer's ultimate idea is that it is only one new schema is created for the multiple tablespace data).
    Before doing it I wonder - even though I've specified no schema etc - seems to me that system owns this data and all the data in the tablespace if I do import it successfully using remap tablespace=source: new tablespace.
    I saw the system tablespace increase (thought it would but not what is desired, I'm guessing as I can't identify it clearly when looking - so it maybe there unnecessarily forever.
    Seems to me I've put stuff into my system tablespace that will be there forever (unless I do something about it) on database1.
    But if I impdp to database2 to new tablespace - under the system owner - then it will still be in the system tablespace and still owned by the system schema.
    Is this correct thinking?
    Should I create the old owners of the schemas in order for the impdp to succeed?
    And if correct - is it possible to then allocate those tables in that tablespace to a new schema owner - and is there a way to do it at the time of import or do I have to then do some clever magical guru stuff to change it?
    Thanks Gurus.
    Please ask questions if I've not made myself clear.
    Thanks again.

    Thank you Guru for your reply.
    No, I am not trying to create the same database elsewhere.
    I am definitely not trying to not create a clone.
    I would like to understand that, as I have a dmp file created for multiple tablespaces via expdp - under the system user - as I now want to dmp that file under one user - and can do via impdp - who owns the data - and if I have transferred via system user - is it the system user who owns the data in the tablespace now - or can I transfer it to a new named user?
    Thanks Gurus.

  • Doubt with parameters creating a tablespace and a table

    I've created a tablespace and a table with these data:
    CREATE TABLESPACE "TAB_FILE"
    LOGGING
    DATAFILE 'C:\TAB_FILE.ora' SIZE 20M
    AUTOEXTEND ON NEXT 5M MAXSIZE 500M
    EXTENT MANAGEMENT LOCAL
    SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLE FILE
    IDFILE NUMBER(16),
    VERSION VARCHAR2(5) NOT NULL,
    NAME VARCHAR2(40) NOT NULL,
    TABLESPACE TAB_FILE,
    PCTFREE 20,
    PCTUSED 40,
    INITRANS 6,
    MAXTRANS 12,
    STORAGE (INITIAL 1024K NEXT 1024K PCTINCREASE 0 MAXEXTENTS 8);
    Is it useless (or not advisable) to write the parameters
    PCTFREE,
    PCTUSED,
    INITRANS,
    MAXTRANS and
    STORAGE (INITIAL 1024K NEXT 1024K PCTINCREASE 0 MAXEXTENTS 8)
    if I've written in the tablespace creation
    EXTENT MANAGEMENT LOCAL
    SEGMENT SPACE MANAGEMENT AUTO?
    Thanks a lot

    I've read that autoallocate parameter is worse than uniform size:
    "Note - there is an autoallocate option for LMTs that can be used instead of uniform size X. This still slices the file up into uniform chunks (in this case always at 64K), and uses one bit per chunk. However, instead of equating one chunk with one extent, Oracle will consider past history and available gaps to decide what size extent to allocate. The extent will be one of a limited set of sizes - 64K, 1MB, 8MB, 64MB. For relatively small, simple systems where there isn't much information available about proper sizing requirements, this can be a minimum fuss mechanism to adopt; but in general I believe you should stick with uniform sizing.......But why is it so convenient to force every extent in the tablespace to be the same size ? (And at this point, you may appreciate my earlier comment about avoiding autoallocate LMTs, which allow for half a dozen sizes of extents). First, ease of monitoring space; secondly, convenience of data packing, and third, reliability of object rebuilds. "
    Is it right? If yes, could anyone tell me with size could be correct? Does it depend on the size of the table, for example? Is there any formula to get the uniform size?
    Message was edited by:
    user573997

Maybe you are looking for

  • How do I retrieve elements in a xml document ?

    I would like to know how to retrieve elements from xml document ? I have created a document already, but how do I proceed from there ? Also, how do I access the values inside, the attributes and value ? Thank you.

  • Data not showing up on report

    Hi I have an Infocube that has data (ready for reporting) loaded from APO Livecache. I'm running a BEX report that gets data from that cube, and for some reason the value for one Key figure is not showing up. It's there in the infocube, but is not sh

  • Aperture 3.1 - White Balance Doesn't Update

    Since upgrading to 3.1 I have noticed a somewhat annoying behavior with the White Balance data. When I change from one selected image in a project to another image the White Balance data does not update. If I deselect so no image is displayed and the

  • Simple Sum Calculation in Forms

    I have a seriously simple situation, alas when I try to set it up, I am only able to select one field to calculate?  I am working in Adobe X.  I simply want to calculate the sum of 5 fields into a "Total" Text Field... 

  • Triggering and HP3458A connected through GPIB.

    I have two HP3458A connected through GPIB. As them to start simultaneously during one moment of time (for synchronous work)? Whether it is possible to make it with the help TRIGGER?