Oracle Remote materialized view

Source: Internet
Author: User

I. Creating a remote materialized view log

SOURCE side:

CREATE materialized VIEW LOG on Tozwdb.test tablespace tozwdb_data with ROWID;

Ii. Rights of payment

Target Library

Create user tozwdb identified by Tozwdb_dev;
Grant create session to TOZWDB;
Grant resource to tozwdb;
Grant Connect to tozwdb;
Grant Unlimited tablespace to tozwdb;
Grant CREATE database link to tozwdb;
Grant Create public database link to tozwdb;
Grant create materialized view to tozwdb;
Grant Select any table to tozwdb;
Grant CREATE table to tozwdb;

Query permissions:

SELECT * from User_sys_privs t where T.privilege like Upper ('%link% ');

Iii. creation of Db_link

Create Public Database link Db_pay connect to pay identified by pay
Using ' (Description= (address_list= (ADDRESS = (PROTOCOL = TCP) (HOST =172.16.13.25) (port=1521)))
(Connect_data = (service_name= account))) ';

Iv. creating a remote materialized view

Create materialized view tozwdb. T_IF_TOZWDB tablespace to Pay_data
Refresh fast on DEMAND with rowID START with To_date (' 08-02-2017 15:50:00 ', ' dd-mm-yyyy HH24:MI:SS ')
NEXT sysdate + 1/1440 as SELECT * from [email protected]_pay;

Oracle Remote materialized view

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.