Issue with Materialized View ORA-08103: object no longer exists

I have a materialized view which gets refreshed(COMPLETE Refresh) every 2 minutes. However there are few scheduled programs which queries this materialized view, some of the queries in the scheduled program take longer to run. When the materialized view refresh time overlaps with this query executing from the program i get this error: ORA-08103: object no longer exists.
I know that COMPLETE refresh doing TRUNCATE + INSERT is causing the issue, could someone suggest a workaround for this. But i need to do a COMPLETE refresh.

Why would a TRUNCATE cause an "object no longer exists" ?
Which job encounters this error ? The MV Refresh job or the programs that are querying the MV ? How does it resolve ? Automatically -- meaning that the next refresh/query does not raise the error ?

Similar Messages

  • ORA-08103: object no longer exists

    Dear Experts,
    I have a very tricky situation here.
    A background job runs daily on our Production, which kinds of populates a lot of tables in another database (warehouse).
    This morning, the job failed with an error: ORA-08103: object no longer exists
    This error came while populating a table through a procedure.
    I checked that the procedure and table both are in valid state and there are proper grants in place.
    Also, we had faced the same problem few days back for the same table. We did not change anything. Simply re-ran the job and it went fine. Now also, we are re-running teh job and waiting to check if it goes fine.
    Any ideaas why this error would come?
    Thanks.

    Leo, Thanks very much for your inputs. The proceudre does not use any views.
    Here is the code:
    PROCEDURE GS_SKILLS_SP
    IS
    err_num NUMBER:=0;
    err_msg VARCHAR2(100):=null;
    status  VARCHAR2(1):='Y';
    proc_name VARCHAR2(60):='GS_SKILLS_SP';
    table_name VARCHAR2(100):='GS_SKILLS_DIM';
    BEGIN
    RPT_GS.Z_PRO_TRUNCATE_TABLE('GS_SKILLS_DIM');
    INSERT INTO GS.GS_SKILLS_DIM
           (SKILL_ID,
        SKILL_CODE,
        SKILL_NAME,
        DESCRIPTION,
        PARENT_SKILL_ID,
        SKILL_PATH,
        IS_ACTIVE,
        PARENT_SKILL_PATH,
        PC_ID,
        PC_NAME,
        DIS_ID,
        DIS_NAME,
        LEVEL_ID,
        LEVEL_NAME)
    SELECT  SK.SKILL_ID,
        SK.SKILL_CODE,
        SK.SKILL_NAME,
        SK.DESCRIPTION,
        SK.PARENT_SKILL_ID,
        SK.SKILL_PATH,
        SK.IS_ACTIVE,
        SK.PARENT_SKILL_PATH,
        null,
        null,
        null,
        null,
        null,
        null
    FROM    SKILLS_DIM    SK
    WHERE UPPER(SK.SKILL_CODE) LIKE 'GS%'
    AND SK.IS_ACTIVE = 'Y'
    UNION
    SELECT  SK.SKILL_ID,
        SK.SKILL_CODE,
        SK.SKILL_NAME,
        SK.DESCRIPTION,
        SK.PARENT_SKILL_ID,
        SK.SKILL_PATH,
        SK.IS_ACTIVE,
        SK.PARENT_SKILL_PATH,
        SK_ASSOC.PC_ID,
        SK_ASSOC.PC_NAME,
        SK_ASSOC.DIS_ID,
        SK_ASSOC.DIS_NAME,
        SK_ASSOC.LEVEL_ID,
            SK_ASSOC.LEVEL_NAME
    FROM    SKILLS_DIM        SK,
        SKILLS_OBS_ASSOC_DIM SK_ASSOC
    WHERE SK.SKILL_ID=SK_ASSOC.SKILL_ID
    AND UPPER(SK.SKILL_CODE) LIKE 'GS%'
    and sk.is_active='Y'
    AND SK_ASSOC.LOB_NAME = 'Global Services' ;
    COMMIT;
    INSERT INTO GS.GS_SKILLS_DIM
           (SKILL_ID,
        SKILL_CODE,
        SKILL_NAME,
        DESCRIPTION,
        PARENT_SKILL_ID,
        SKILL_PATH,
        IS_ACTIVE,
        PARENT_SKILL_PATH,
        PC_ID,
        PC_NAME,
        DIS_ID,
        DIS_NAME,
        LEVEL_ID,
        LEVEL_NAME)
    SELECT  SK.SKILL_ID,
        SK.SKILL_CODE,
        SK.SKILL_NAME,
        SK.DESCRIPTION,
        SK.PARENT_SKILL_ID,
        SK.SKILL_PATH,
        SK.IS_ACTIVE,
        SK.PARENT_SKILL_PATH,
        null,
        null,
        null,
        null,
        null,
        null
    FROM    SKILLS_DIM    SK
    /*WHERE UPPER(SK.SKILL_CODE) LIKE 'GS%'
    AND SK.IS_ACTIVE = 'Y'*/
    /*changed on 16/04/2008 for RQ34634(PRIME168) */
    where sk.is_active='Y'
    and exists(select 1 from GS.GS_RES_PROFICIENCY_DIM gs_sk where gs_sk.skill_code=sk.skill_code)
    and not exists(select 1 from gs.gs_skills_dim rpt_sk where rpt_sk.skill_code=sk.skill_code)
    UNION
    SELECT  SK.SKILL_ID,
        SK.SKILL_CODE,
        SK.SKILL_NAME,
        SK.DESCRIPTION,
        SK.PARENT_SKILL_ID,
        SK.SKILL_PATH,
        SK.IS_ACTIVE,
        SK.PARENT_SKILL_PATH,
        SK_ASSOC.PC_ID,
        SK_ASSOC.PC_NAME,
        SK_ASSOC.DIS_ID,
        SK_ASSOC.DIS_NAME,
        SK_ASSOC.LEVEL_ID,
            SK_ASSOC.LEVEL_NAME
    FROM    SKILLS_DIM        SK,
        SKILLS_OBS_ASSOC_DIM SK_ASSOC
    WHERE SK.SKILL_ID=SK_ASSOC.SKILL_ID
    /*changed on 16/04/2008 for RQ34634(PRIME168) */
    and sk.is_active='Y'
    and exists(select 1 from GS.GS_RES_PROFICIENCY_DIM gs_sk where gs_sk.skill_code=sk.skill_code)
    and not exists(select 1 from gs.gs_skills_dim rpt_sk where rpt_sk.skill_code=sk.skill_code)
    AND SK_ASSOC.LOB_NAME = 'Global' ;
    COMMIT;
    IF (err_num = 0) then
       INSERT INTO GS_ERROR
                 (PROC_NAME,
              TABLE_NAME,
                  ERR_CODE,
                  ERR_MSG,
                  CREATED_DATE,
                  STATUS)
                  VALUES(proc_name,table_name,err_num,err_msg,SYSDATE,status);
        COMMIT;
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
          err_num:=SQLCODE;
          err_msg:=SUBSTR(SQLERRM,1,100);
          status:='N';
          ROLLBACK;
          INSERT INTO GS_ERROR
                 (PROC_NAME,
              TABLE_NAME,
                  ERR_CODE,
                  ERR_MSG,
                  CREATED_DATE,
                  STATUS)
                  VALUES(proc_name,table_name,err_num,err_msg,SYSDATE,status);
          COMMIT;
    END GS_SKILLS_SP;

  • ORA-08103: object no longer exists during APEX 2.2 to 3.0 upgrade

    I am trying to upgrade an APEX 2.2 installation on 10.2.0.2 Enterprise Edition on SLES-10 with 400MB shared_pool and 1 GB sga_target. During the upgrade, the session crashes due to ORA-00600: internal error code, arguments: [ktspgfb-1]. I cannot drop the FLOWS_030000 user and 523 corrupt blocks in sys7.dbf including objects source$, argument$ and obj$. So far, I have restored the database and corrupted it 3 times. Each time, I redownloaded apex.zip from technet.oracle.com.
    Here are the errors:
    ...PAGE 1300: Application Comparison
    ...PAGE 1301: Application Comparison Counts
    ...PAGE 1400: Report Layouts
    ...PAGE 1401: Create Report Layout
    ...PAGE 1402: Create Report Layout
    ...PAGE 1405: Edit Report Layout
    ...PAGE 1406: Create Report Query
    ...PAGE 1500: Application Builder
    ...PAGE 1550: User Interface Defaults
    ...PAGE 1552: UI Defaults - Column Defaults LOV
    ...PAGE 1553: UI Defaults - Column Defaults
    ...PAGE 1555: UI Defaults - Table Defaults
    begin
    ERROR at line 1:
    ORA-08103: object no longer exists
    ORA-06512: at "FLOWS_030000.WWV_FLOW_API", line 7733
    ORA-06512: at line 18
    ERROR:
    ORA-00603: ORACLE server session terminated by fatal error
    ERROR:
    ORA-03114: not connected to ORACLE
    SP2-0359: memory exhausted
    Mon Apr 30 11:31:46 2007
    Incremental checkpoint up to RBA [0x175.153ac.0], current log tail at RBA [0x175.2e77b.0]
    Mon Apr 30 11:32:05 2007
    Beginning log switch checkpoint up to RBA [0x176.2.10], SCN: 8173962186001
    Thread 1 advanced to log sequence 374
    Current log# 1 seq# 374 mem# 0: /lv01/oracle/dev10data/log01.dbf
    Mon Apr 30 11:34:24 2007
    Errors in file /lv01/oracle/dev10db/10.2.0/admin/dev10_plato/udump/dev10_ora_11590.trc:
    ORA-00600: internal error code, arguments: [ktspgfb-1], [], [], [], [], [], [], []
    Mon Apr 30 11:34:49 2007
    Errors in file /lv01/oracle/dev10db/10.2.0/admin/dev10_plato/udump/dev10_ora_11590.trc:
    ORA-00603: ORACLE server session terminated by fatal error
    ORA-00600: internal error code, arguments: [ktspgfb-1], [], [], [], [], [], [], []
    Mon Apr 30 11:35:02 2007
    Errors in file /lv01/oracle/dev10db/10.2.0/admin/dev10_plato/bdump/dev10_pmon_7541.trc:
    ORA-00600: internal error code, arguments: [ktspgfb-1], [], [], [], [], [], [], []
    Mon Apr 30 11:35:15 2007
    Errors in file /lv01/oracle/dev10db/10.2.0/admin/dev10_plato/bdump/dev10_pmon_7541.trc:
    ORA-00600: internal error code, arguments: [ktspgfb-1], [], [], [], [], [], [], []
    Mon Apr 30 11:37:18 2007
    Completed checkpoint up to RBA [0x176.2.10], SCN: 8173962186001
    Mon Apr 30 11:37:43 2007
    Errors in file /lv01/oracle/dev10db/10.2.0/admin/dev10_plato/bdump/dev10_p000_12471.trc:
    ORA-00600: internal error code, arguments: [ktspgfb-1], [], [], [], [], [], [], []
    Mon Apr 30 11:37:54 2007
    SMON: Parallel transaction recovery slave got internal error
    SMON: Downgrading transaction recovery to serial
    I now have 523 corrupt blocks in sys7.dbf:
    DBVERIFY: Release 10.2.0.2.0 - Production on Mon Apr 30 11:50:21 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    DBVERIFY - Verification starting : FILE = /lv01/oracle/dev10data/sys7.dbf
    Page 188161 is marked corrupt
    Corrupt block relative dba: 0x01c2df01 (file 7, block 188161)
    Completely zero block found during dbv:
    Page 188162 is marked corrupt
    Corrupt block relative dba: 0x01c2df02 (file 7, block 188162)
    Completely zero block found during dbv:
    Page 188163 is marked corrupt
    Corrupt block relative dba: 0x01c2df03 (file 7, block 188163)
    Completely zero block found during dbv:
    Page 188164 is marked corrupt
    Corrupt block relative dba: 0x01c2df04 (file 7, block 188164)
    Completely zero block found during dbv:
    Any ideas why this is happening? I see a number of current bugs for ORA-00600: ktspgfb-1, but most knowledge base articles refer to 9.0.1 or 9.2.

    After upgrading to 10.2.0.3 and doubling the shared_pool_size and sga_target, I was able to upgrade to APEX 3.0 without errors.

  • Java.sql.SQLException: ORA-08103: object no longer exists

    hi, Everyone:
    i want to insert one colume to a temp table,
    so i did the following
    1: drop the table
    2: recreate the table with the new colume in it.
    we i run my application, there is a
    "java sql exception ORA-08103: object no
    longer exists ". looks like the table
    doesn't exist in database any more. but
    it is really still there.
    thanks
    hongjie
    null

    I was able to resolve this error by using on commit preserve rows, instead of on commit delete.

  • Error -- ORA-08103: object no longer exists

    Hi all,
    i am getting this error during calling procedure from .Net code.
    procedure is in the database.
    any help appriciated

    Connect directly to the DB where your procedure is located with the same user you use in .net to connect to DB
    Create a temp table.
    Instead of calling the procedure try selecting from the temp table.
    If you can reach that temp table you should be able to see the procedure.
    Make sure the procedure is compiled succesfully.It should be in valid state.
    Cheers!!!
    Bhushan

  • Issue with materialized view and fast refresh between Oracle 10g and 11g

    Hi all,
    I've hit a problem when trying to create a fast-refreshable materialized view.
    I've got two databases, one 10.2.0.10, another 11.2.0.1.0, running on 32-bit Windows. Both are enterprise edition, and I'm trying to pull data from the 10g one into the 11g one. I can happily query across the database link from 11g to 10g, and can use complete refresh with no problem except the time it takes.
    On the 10g side, I've got tables with primary keys and m.v. logs created, the logs being of this form ...
    CREATE MATERIALIZED VIEW LOG ON table WITH PRIMARY KEY INCLUDING NEW VALUES
    On the 11g side, when I try to create an m.v. against that ...
    CREATE MATERIALIZED VIEW mv_table REFRESH FAST WITH PRIMARY KEY AS SELECT col1, col2 FROM table@dblink;
    ... I get an ORA-12028 error (materialized view type is not supported by master site).
    After running the EXPLAIN_MVIEW procedure it shows this;
    REFRESH_FAST_AFTER_INSERT not supported for this type mv by Oracle version at master site
    A colleague has managed to build a fast-refresh m.v. from the same source database, but pulling to a different one than I'm using; his target is also 10g, like the (common) source, so I've no idea why I'm getting the 'not supported' message whilst he isn't.
    I've been able, on previous projects, to do exactly what I'm trying to achieve but on those someone with more knowledge than me has configured the database!
    I'm now stumped. I'm also no DBA but despite that it's been left to me to install the new 11g database on the 32-bit Windows server from scratch, so there are probably a couple of things I'm missing. It's probably something really obvious but I don't really know where to look now.
    If anyone can give me any pointers at all, I'd be really grateful. This question is also duplicated in the Replication forum but hasn't had any replies as yet, so I'm reproducing it here in hope!
    Thanks in advance,
    Steve

    Hi Steve,
    You should have a look at metalink, Doc ID 1059547.1
    If that does not help, there may be something else in Mater note ID 1353040.1
    Best regards
    Peter

  • MATERIALIZED VIEW ORA-12006 and ORA-08103

    We have an old 9.2.0.6 database which uses materialized views to access information from other systems via database links. One of these views though will no longer refresh, the others are OK including ones using the same database link and source system.
    When we try to refresh get:
    CREATE MATERIALIZED VIEW <user>.<materialized view>
    REFRESH FORCE
    AS SELECT *
    FROM <source user>.<source table>@<database link>
    AS SELECT *
    ERROR at line 3:
    ORA-12006: a materialized view with the same user.name already exists
    drop MATERIALIZED VIEW <user>.<materialized view>
    ERROR at line 1:
    ORA-08103: object no longer exists
    Obviously we can't rename the view and because of various restrictions I can't upgrade the database, we are in the process of migrating it to 11g.
    Does anyone have a magic bullet to resolve this as I have been looking around and haven't found an answer as yet.

    Sorry you think the results are confusing but they are the results, obviously I have to protect exact names etc...
    Materialized View system:
    Shows other views for other source systems but not the ones for this source system.
    It shows these ones as an object_type of TABLE in dba_objects even though they were created as materilized views.
    Source system select:
    OBJECT_NAME OBJECT_TYPE OWNER
    <table name> TABLE <table owner>
    <table name> SYNONYM PUBLIC
    If I use a new name yes it does resolve the issue but I don't want to use a different name if possible as either the application guys have to change some code or I will have to build in another level of synonyms to translate the new name. At the end of the day if this is the only solution!

  • Object no longer exist

    Hi All,
    I am using select a query.
    For eg.
    select columns from a,b
    where a.col1=b.col1
    and a.col2=b.col2
    and a.col3=b.col3
    it throws "*ORA-08103: object no longer exists*" error for the first time.
    But when i comment a join condition a.col2=b.col2 the query works fine.
    When i run the same query again it throws "*ORA-00600: internal error code, arguments: [kcbgtcr_12], [1]* "
    Please give some suggestion to solve this problem.
    My DB version is -- Release 9.2.0.8.0

    user13144724 wrote:
    Please give some suggestion to solve this problem.a) Upgrade your database to a supported version (i.e. at least 10.2.0.4)
    b) Post more information, like table structures, otherwise we won't have a clue
    c) Raise your issue with Oracle via metalink as it's showing an internal error (although they'll probably tell you to upgrade first)

  • Bogus Object No Longer Exists error

    I have a package which is reporting the error "ORA-08103: object no longer exists" on one of the SQL statements. I cannot figure out why though, because i checked all the objects which the SQL statement references and they are all still there, so i thought maybe it was a permissions error as some of the objects are cross-schema, so i tried logging in as the user who runs the job, and ran it myself interactively, and it worked fine.
    Has anyone found this before, or know a fix? Thanks in advance,
    Aaron.
    (sorry if answered, i keep getting the error about an ESI error when i try to search).

    Make sure that the privileges on all objects are granted EXPILICITLY to the user who is running the job (NOT thru a role). Privileges granted thru roles DO NOT cascade into a procedure. Each select, update, delete & insert required to execute the procedure must be granted explicitly. That could explain why it worked by running each step interactively.

  • ORA-23401: materialized view ""SYS"".""MV_OPTIONS"" does not exist

    Oracle 11gR1
    Linux Red Hat 6.3
    I have never seem this object SYS.MV_OPTIONS before much less know why it would be missing. Any ideas?
    I can no longer refresh my materialized views.

    Process worked fine until the addition on new MVs.
    What causes error?
    Running SP that calls DBMS_MVIEW.refresh. Here is the error in more detail...
    "ORA-23401: materialized view ""SYS"".""MV_OPTIONS"" does not exist
    ORA-06512: at ""SYS.DBMS_SNAPSHOT"", line 2545
    ORA-06512: at ""SYS.DBMS_SNAPSHOT"", line 2751
    ORA-06512: at ""SYS.DBMS_SNAPSHOT"", line 2720
    What has been changed?
    Added new materialized views to my instance that need periodic refreshing.
    Note: Running the block below works fine ....
    begin
    DBMS_MVIEW.refresh('MV_MINE');
    end;
    I suspect something in the process that calls this function is the issue (of course). But I still wonder what the object SYS.MV_OPTIONS is/does?

  • Issue with Tree view

    Hello experts,
    I am facing a very strange issue with tree view.
    I have created a custom component with a tree view. All data are coming in the tree view. But the strange thing is that the data is not getting displayed on the screen.
    I am sure about the data because, when I am selecting a line from the tree, the data from that line is coming to the main screen.
    Please help!!
    Regards
    Debolina

    Hi experts...
    Any pointers to this issue???
    Please help!
    Regards,
    Debolina

  • Performace issue on MATERIALIZED view

    Hi Gurus,
    Need help to understand perfoamance issue on MATERIALIZED view. I have created mat view on some big table of 76GB. Mat view is of 25 GB.
    I have refreshed mat view before running report. In OEM it ish showng going for full table scan and estimated time is of 2 hrs where full tablescan on base table on which mat view is created is of 20 Mins . I am using fast refresh on demand .
    We are using Oracle 10.2.0.4 on Sun Sprac 64bit 10 platform and version.
    Could you please let me know what could be the reason why mat views are performing poor ?
    Thanks & Regards

    You have MLOG created on your master table, right?
    OK, then check DBA_MVIEWS. Look for LAST_REFRESH_TYPE, If everything is OK, i should be FAST.
    If everything is OK by now, the problem can be the nature of master table. If there is great amount of changes in master table, set periodic job which will do refresh often (since 'often' is fuzzy word, it can be every 5, 10, 30 minutes...). Incremental refresh will perform beter if there is small amount of changes in MLOG table!
    You can check your MLOG table. If it is huge (size in MB) and there is only few records in it, try to realocate the space issuing "ALTER TABLE MLOG$_table_name;"
    Hope something will be helpfull...
    Best regards

  • Problem with Materialized Views after an export

    Hi @ everybody,
    At an Oracle 11g R2 (11.2.0.3.0) instance, all actual CPU's/SPU's are installed, on a Red Hat 6 Machine i have a problem with Materialized Views from a schema, which i have exportet from an old database machine on Oracle 10g (10.2.0.1.0) to the new machine.
    I've exportet with the old exp and imported with imp, because i know, that i get some strange errors because of the materialized views when i'm using the new expdp and impdp tools.
    At the old machine the materialized views are so programmed, that they get an update of data at a defined time like this:
    START WITH TRUNC(SYSDATE) + 21/24
          NEXT SYSDATE+1
    ...But after the export this "update function" of the materialized view is not available. So i have deleted that views and recreated them with the START WITH parameters. So now they are running.
    But why do i have this problem?
    Is this "START WITH" somewhere written as a job or so in, for example, DBMS_SCHEDULER or something else? So i had forgotten to export these jobs or where is that defined?
    Is this a bug?
    Thanks for answers and help!
    Best regards,
    David

    I can't remember the error of expdp/impdp. That is some days ago, i have to rebuild this.
    I think in my scenario for the import i don't need the TABLE_EXISTS_ACTION, because by importing at the new server i've just createt the naked tablespace for the data and the users, not more. So he didn't has something to overwrite.
    And i have to tell you: i'm just the dbA. The desining of the tables and materialized views is many years ago by installing the old server. I'm just to young in my company to know about the design of the instance and why it was designed so.
    Anyway: my problem is, that after the import of the schemas to a new server the "START WITH" option in the materialized views is not there anymore and i just want to why so i can think about a solution for that and create it with the database designers of my company.
    EDIT: And here are the SQL Statements for creating the Materialized Views:
    First, at the OLD Server (Oracle 10g 10.2.0.1.0)
      CREATE MATERIALIZED VIEW "DUPONT_CCG2_P"."PR_PRODUCT_ITEMS"
      ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "DUPONT_14523"
      BUILD IMMEDIATE
      USING INDEX
      REFRESH COMPLETE ON DEMAND START WITH sysdate+0 NEXT SYSDATE+1
      USING DEFAULT LOCAL ROLLBACK SEGMENT
      DISABLE QUERY REWRITE
      AS (SELECT DISTINCT
          PR_CUSTOMER_MASTER_DATA.CLIENT_ID,
          PR_CUSTOMER_MASTER_DATA.ILN_USER,
          PR_ARTICLE.EAN,
          PR_ARTICLE.CODE,
          PR_USED_ARTICLE_TEXT.ARTICLE_TEXT,
          PR_USED_ARTICLE_TEXT.LANG_CODE,
          PR_ARTICLE.SUP_ITEM_NO,
          PR_ARTICLE.OLD_ITEM_NO,
          PR_COMPANY_ITEM_MATCH.ITEM_BY_NO,
          PR_COMPANY_ITEM_MATCH.UOM_UNIT,
          PR_COMPANY_ITEM_MATCH.PRICE_UOM,
          PR_COMPANY_ITEM_MATCH.PRICE,
          PR_COMPANY_ITEM_MATCH.CURRENCY,
          PR_COMPANY_ITEM_MATCH.PRICE_QTY,
          PR_COMPANY_ITEM_MATCH.SALES_UNIT,
          PR_COMPANY_ITEM_MATCH.START_DATE,
          PR_COMPANY_ITEM_MATCH.END_DATE,
          PR_ARTICLE.UPDATED_AT
            FROM PR_ARTICLE, PR_COMPANY_ITEM_MATCH, PR_USED_ARTICLE_TEXT, PR_CUSTOMER_MASTER_DATA, PR_ADDRESS
            WHERE PR_ADDRESS.ORDER_TYPE='REP'
          AND PR_CUSTOMER_MASTER_DATA.ILN_USER=PR_ADDRESS.ILN_USER
          AND PR_COMPANY_ITEM_MATCH.ILN_USER=PR_ADDRESS.ILN_LINK
          AND PR_CUSTOMER_MASTER_DATA.SALES_ORG=PR_COMPANY_ITEM_MATCH.SALES_ORG
          AND PR_CUSTOMER_MASTER_DATA.CLIENT_ID=PR_COMPANY_ITEM_MATCH.CLIENT_ID
          AND PR_CUSTOMER_MASTER_DATA.CLIENT_ID=PR_ADDRESS.CLIENT_ID
          AND PR_ARTICLE.SUP_ITEM_NO=PR_COMPANY_ITEM_MATCH.SUP_ITEM_NO
          AND PR_COMPANY_ITEM_MATCH.SALES_ORG=PR_USED_ARTICLE_TEXT.SALES_ORG
          AND PR_ARTICLE.SUP_ITEM_NO=PR_USED_ARTICLE_TEXT.SUP_ITEM_NO
          AND PR_CUSTOMER_MASTER_DATA.LANG_CODE=PR_USED_ARTICLE_TEXT.LANG_CODE
          AND ( PR_COMPANY_ITEM_MATCH.END_DATE IS NULL OR to_date(PR_COMPANY_ITEM_MATCH.END_DATE,'YYYYMMDD') - sysdate > 0)
          AND ( PR_COMPANY_ITEM_MATCH.START_DATE IS NULL OR sysdate - to_date(PR_COMPANY_ITEM_MATCH.START_DATE,'YYYYMMDD') > 0)
    )And here the at the NEW Server (Oracle 11g R2 11.2.0.3.0)
      CREATE MATERIALIZED VIEW "DUPONT_CCG2_P"."PR_PRODUCT_ITEMS" ("CLIENT_ID", "ILN_USER", "EAN", "CODE", "ARTICLE_TEXT", "LANG_CODE", "LANR", "OLD_LANR", "ITEM_BY_NO", "UOM_UNIT", "PRICE_UOM", "PRICE", "CURRENCY", "PRICE_QTY", "SALES_UNIT", "START_DATE", "END_DATE", "UPDATED_AT")
      ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
    NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
      BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "DUPONT_14523"
      BUILD IMMEDIATE
      USING INDEX
      REFRESH COMPLETE ON DEMAND START WITH sysdate+0 NEXT SYSDATE+1
      USING DEFAULT LOCAL ROLLBACK SEGMENT
      USING ENFORCED CONSTRAINTS DISABLE QUERY REWRITE
      AS (SELECT DISTINCT
          PR_CUSTOMER_MASTER_DATA.CLIENT_ID,
          PR_CUSTOMER_MASTER_DATA.ILN_USER,
          PR_ARTICLE.EAN,
          PR_ARTICLE.CODE,
          PR_USED_ARTICLE_TEXT.ARTICLE_TEXT,
          PR_USED_ARTICLE_TEXT.LANG_CODE,
          PR_ARTICLE.SUP_ITEM_NO,
          PR_ARTICLE.OLD_ITEM_NO,
          PR_COMPANY_ITEM_MATCH.ITEM_BY_NO,
          PR_COMPANY_ITEM_MATCH.UOM_UNIT,
          PR_COMPANY_ITEM_MATCH.PRICE_UOM,
          PR_COMPANY_ITEM_MATCH.PRICE,
          PR_COMPANY_ITEM_MATCH.CURRENCY,
          PR_COMPANY_ITEM_MATCH.PRICE_QTY,
          PR_COMPANY_ITEM_MATCH.SALES_UNIT,
          PR_COMPANY_ITEM_MATCH.START_DATE,
          PR_COMPANY_ITEM_MATCH.END_DATE,
          PR_ARTICLE.UPDATED_AT
            FROM PR_ARTICLE, PR_COMPANY_ITEM_MATCH, PR_USED_ARTICLE_TEXT, PR_CUSTOMER_MASTER_DATA, PR_ADDRESS
            WHERE PR_ADDRESS.ORDER_TYPE='REP'
          AND PR_CUSTOMER_MASTER_DATA.ILN_USER=PR_ADDRESS.ILN_USER
          AND PR_COMPANY_ITEM_MATCH.ILN_USER=PR_ADDRESS.ILN_LINK
          AND PR_CUSTOMER_MASTER_DATA.SALES_ORG=PR_COMPANY_ITEM_MATCH.SALES_ORG
          AND PR_CUSTOMER_MASTER_DATA.CLIENT_ID=PR_COMPANY_ITEM_MATCH.CLIENT_ID
          AND PR_CUSTOMER_MASTER_DATA.CLIENT_ID=PR_ADDRESS.CLIENT_ID
          AND PR_ARTICLE.SUP_ITEM_NO=PR_COMPANY_ITEM_MATCH.SUP_ITEM_NO
          AND PR_COMPANY_ITEM_MATCH.SALES_ORG=PR_USED_ARTICLE_TEXT.SALES_ORG
          AND PR_ARTICLE.SUP_ITEM_NO=PR_USED_ARTICLE_TEXT.SUP_ITEM_NO
          AND PR_CUSTOMER_MASTER_DATA.LANG_CODE=PR_USED_ARTICLE_TEXT.LANG_CODE
          AND ( PR_COMPANY_ITEM_MATCH.END_DATE IS NULL OR to_date(PR_COMPANY_ITEM_MATCH.END_DATE,'YYYYMMDD') - sysdate > 0)
          AND ( PR_COMPANY_ITEM_MATCH.START_DATE IS NULL OR sysdate - to_date(PR_COMPANY_ITEM_MATCH.START_DATE,'YYYYMMDD') > 0)
    )The own differences i can see is at the "header". In the new one is the NOCOMPRESS LOGGING Option and in the first line the code has the columns diretcly defined.
    But, i think, for my problem this line is determining:
      REFRESH COMPLETE ON DEMAND START WITH sysdate+0 NEXT SYSDATE+1And this line is the same at both server.
    Edited by: David_Pasternak on 12.04.2013 00:06

  • Performance issue accessing Materialized Views

    Hi All
    I am extracting source data from Materialized View through DBLink which is having record count of 1500000 rows.
    But its taking lot of time(Approx. 30-45 min) during loading.
    Is there any other way to load the data in a faster way??
    regards
    Gourisankar

    Hi,
    I take it the simple 'Select from "materialized view' doesn't take this long. This could be down to the issue when issuing an 'INSERT' statement using a database link, even if you use the Optimizer hint 'DRIVING_SITE' does not help. The problem is that when issuing an INSERT statement using a DB LINK the filtering of records does not happen on the far side of the link. All the data is moved across the link to the target db, and then filtered etc.
    One way to get round this is to use a pipelined function to run your select to get your values, then call the pipeline function via ODI.
    Still use the DIRVING_SITE optimizer hint in the pipelined function when selecting your data.
    Cheers
    Bos

  • "ORA-21700: object does not exist or is marked for delete" select from ADT

    Posted this in OLAP section as well, but since this is Object technology, I thought I would repeat it here. Sorry about the duplication.
    BTW, I'm using Oracle9i 9.2.0.4.1.
    I'm trying to create a script that can automate the process of generating abstract data types for use in an OLAP_TABLE function. I'm following the examples in the documentation. Everything runs great the FIRST time I run my script, but when I drop my types and re-create them, when I run the next SELECT statement against the OLAP_TABLE function, I get:
    ERROR at line 1:
    ORA-21700: object does not exist or is marked for delete
    My script drops the ADTs before creating, but somehow they are not REALLY being dropped.
    SET ECHO ON
    SET SERVEROUT ON
    DROP TYPE ts_table_6;
    DROP TYPE ts_row6;
    CREATE TYPE ts_row6 AS OBJECT(
    CONJ2002 VARCHAR2(400),
    CONJ2002_DATA number(16),
    PERIOD VARCHAR2(10),
    PERIOD_NAME VARCHAR2(20));
    CREATE TYPE ts_table_6 AS TABLE OF ts_row6;
    SELECT CONJ2002, period, period_name, conj2002_data FROM TABLE(OLAP_TABLE(
    'REFVLMTA DURATION QUERY',
    'ts_table_6',
    'limit CONJ2002 to first 3',
    'MEASURE CONJ2002_DATA from CONJ2002.DATA
    DIMENSION CONJ2002 from CONJ2002
    DIMENSION PERIOD from PERIOD WITH
    ATTRIBUTE PERIOD_NAME from period.name'));
    Again, it works the first time, but not the second time. I need to bump up the ADT names to ts_row7 and ts_table_7. SQL Plus says the types are being dropped.
    Any ideas?
    Dan Vlamis [email protected]

    Hi Dan
    What append if you do a connect between the DROP and the CREATE statements?
    Chris

Maybe you are looking for

  • How to generate a .pdf output for a BLOB column?

    Hi friends, (Forms 6i) I have a .pdf into a blob column and I want to show that .pdf as my report output... Example-> The report only have this query: select myblob_ column from mytable the column in database has the .pdf ... but when I execute the r

  • IPad Air "Photos" will not start?

    When "Photos" icon is tapped, the Home a Page blinks, then nothing. Any solutions? Much thanks.

  • ORA-279 signalled during: ALTER DATABASE RECOVER  automatic standby databas

    Hi, oracle server:8.1.7.0.0 os:solaris 5.9 we created standby server by taking coldbackup of primary server and we are using rsync to syschronize the archive log files between production and standby servers but every over we recover the standby serve

  • Safari autofill on ipad not working after update

    After activating the latest update, the autofill feature in Safari no longer works.  Doublechecked that private browsing turned off, checked my contact info.  Any other ideas or is this a glitch with this update?

  • Moving AW to a new Intel MacBook

    Hello I say, I say, I say, I've just helped my mother-in-law buy a new MacBook. Sadly, as yet there's no punch-line. In the Apple Store we were able to read her existing Appleworks 6 documents on a new intel machine. When I got back to her place I co