DBAsupport.com Forums - Powered by vBulletin
Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Database links

  1. #11
    Join Date
    Jun 2001
    Location
    Helsinki. Finland
    Posts
    3,938

    Re: THANKS

    Pras: Replace below THE_NAME_OF_THE_TABLESPACE with the real name you use.

    On the master site run this:

    Code:
    CREATE SNAPSHOT LOG ON EMP
    TABLESPACE THE_NAME_OF_YOUR_TABLESPACE
    PCTFREE 60 PCTUSED 30 MAXTRANS 255 
    STORAGE (INITIAL 1024K NEXT 1024K MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0)
    WITH PRIMARY KEY, ROWID
    INCLUDING NEW VALUES;
    In the snapshot site run:

    Code:
    CREATE SNAPSHOT EMP_MV
    PCTFREE 10 PCTUSED 40 MAXTRANS 255 
    STORAGE (INITIAL 1024K NEXT 1024K MINEXTENTS 1 MAXEXTENTS 2147483645 
             PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1)
    TABLESPACE THE_NAME_OF_THE_TABLESPACE
    BUILD IMMEDIATE 
    USING INDEX TABLESPACE THE_NAME_OF_THE_TABLESPACE
    PCTFREE 10 INITRANS 2 MAXTRANS 255 
    STORAGE(INITIAL 256K NEXT 256K PCTINCREASE 0 MINEXTENTS 1 MAXEXTENTS 2147483645 
            FREELISTS 1 FREELIST GROUPS 1 )
    REFRESH FAST WITH PRIMARY KEY
    START WITH trunc(sysdate) + 4/24
    NEXT trunc(sysdate+1) + 4/24
    AS
    SELECT * FROM VEROKUNTA@AM;
    Your MV will be refreshed every morning at 4AM.
    Oracle Certified Master
    Oracle Certified Professional 6i,8i,9i,10g,11g,12c
    email: ocp_9i@yahoo.com

  2. #12
    Join Date
    Jul 2000
    Location
    india
    Posts
    213

    thanks again

    Hi Julian,

    Sorry my mistake...the only prob was i was giving the name of the db link in lower case..It should be in upper case..now i am able to create the materialized view also..Thanks again

    Good day..
    pras

  3. #13
    Join Date
    Jul 2000
    Location
    india
    Posts
    213

    Thanks

    Hi Julian,

    Thanks for the code...U made my day..

    pras

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width