2014-06-08 Baoxinjian1. usage
A materialized view is a database object that includes a query result, which is a local copy of the remote data, or is used to generate a summary table based on the sum of the data tables.materialized views store data based on remote tables and can also be referred to as snapshots. For replication, materialized views allow you
2014-06-08 Baoxinjian1. usage
A materialized view is a database object that includes a query result, which is a local copy of the remote data, or is used to generate a summary table based on the sum of the data tables.materialized views store data based on remote tables and can also be referred to as snapshots. For replication, materialized views allow you
I. IntroductionMaterialized View, as its name implies, is a physical view that is actually stored on the hard disk. query performance is better than normal views.
Ii. materialized view principle:1. generate dataTwo major options: build immediate build deferredBuild immediate: generate data based on the master table whi
))(LOAD_BALANCE = yes)(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = jscn)))
Test:
[Oracle @ testrac1 goldengate] $ sqlplus sys/sys @ testrac as sysdba
SQL> select count (*) from SYS. GV _ $ INSTANCE
4.2 create a dblink
Syntax:
Create public database link dblink_nameconnect to username identified by passwd using 'tns _ name'
Note:
Dblink_name: The name of dblink.
Username: a remote user name.
Passwd: a remote secret
'Tns _ name': the name of the connection string in tnsnames. ora.
E
Materialized view: A special view with physical storage, just like a Table object. Materialized views and tables can be queried directly. It is one of the effective methods to optimize the query performance and improve the efficiency of the system, which is the function of the distributed query through the read-write s
next ).AsSelect distinct user_noFrom cw_arrearage tWhere (T. Mon = dbms_tianjin.getlastmonth orT. Mon = add_months (dbms_tianjin.getlastmonth,-1 ))Delete Materialized View:Drop materialized view an_user_base_file_no_charge;These are common syntaxes used to create a materialized vi
Create | view | site
Objective: To create a materialized view site that refreshes periodically to obtain changes to the specified table in the main site, which can be used as a query server
Steps:
1. To create a materialized view Log
The materialized view log in 11.2 can specify the commit SCN, when materialized view refreshes do not require a timestamp, a simple description of how Oracle implements the refresh through the commit SCN.
Establish a test environment:
Sql> SELECT * from V$version;
BANNER
The materialized view aims to save some queries that take a long time to obtain results in advance, save the results of these queries to a local copy, and then query the results later, you can query data from the materialized view without querying some remote data tables. This improves the query performance.
Create
In-depth research on the materialized view (mview) of Oracle 4
Now, when you move a base table in the first article, you will find that you cannot refresh the table quickly. You must refresh all the tables as follows:
SQL> ALTER TABLE t_mvlog move;
Table altered.
SQL> exec dbms_mview.refresh ('mv _ t_mvlog', 'quick ');Begin dbms_mview.refresh ('mv _ t_mvlog', 'quick'); end;
*Error a
] explains that it is a bug.SymptomsCreating a Materialized view based on a view existing on the remote database results in the following errors:ORA-00942: table or view does not existORA-06512: at "SYS. DBMS_SNAPSHOT_UTL", line 1543ORA-02063: preceding 2 lines from remote db
Significantly, the database link on the loc
The new requirement for Oracle DBLinke + Materialized View to synchronize data projects of two databases is to synchronize some of the two Oracle databases. Several methods are available in the experiment environment, today, we will record how DbLink and the materialized view synchronize data. 1. Configure the tnsnames
Tags: des http io ar sp for data on artIn the previous article, the issue of renaming the database caused the materialized view to fail in the schema. On the surface, the materialized view is deleted and deleted, which of course cannot be rebuilt. The following are the experimental procedures:Oracle Database 11g Enterp
snap_query
Default tablespace users
Temporary tablespace temp;
Grant connect to snap_query;
Grant select on userb. test1 to snap_query;
Create a materialized view log for the table, requiring that these watchband have a PRIMARY KEY
CREATE MATERIALIZED VIEW
Today, someone asked me a materialized view query rewrite problem, finally found that the problem and materialized view of the function is not much relationship, but the implicit conversion caused by the problem.
Let's illustrate the problem by example:
Sql> CREATE TABLE T (
2 ID number,
3 time Date,
4 other VARCH
We used the Oracle materialized view incremental refresh mechanism to synchronize the data of a table on database A to another database B on a regular basis.
The simplest implementation step we often use is this. First, confirm on database A that the table has a primary key, and then build on this table to establish materialized
One of the in-depth studies of Oracle's Materialized View (mview)
One of the in-depth studies of Oracle's Materialized View (mview)
Go to anysql.net
A materialized view is provided from Oracle 8i to Improve the access speed of ap
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.