Enable the logical STANDBY write function

Source: Internet
Author: User
Case: to reduce the burden on the core database, we use the logical STANDBY technology to separate the impact of physical reading on the core database. However, a report application uses a large number of intermediate tables.

Case: to reduce the burden on the core database, we use the logical STANDBY technology to separate the impact of physical reading on the core database. However, a report application uses a large number of intermediate tables.

Case: to reduce the burden on the core database, we use the logical STANDBY technology to separate the impact of physical reading on the core database. However, a report application uses a large number of intermediate tables. On a VM, the basic data computation is usually stored in the intermediate table, and then the report is read to the intermediate table for presentation. Obviously, the best way to completely solve this problem is to push the computing process forward, that is, when the application inserts basic data, it actively inserts the computing data required by the report, or at least close to the report data. Otherwise, even if the intermediate table is used later, it will not be able to solve the massive IO overhead caused by temporary operations. However, the application is forced by manpower and time constraints and apparently does not dare to perform thorough Optimization in a short period of time. In the end, only the DBA opens the knife and starts the write function for the logical STANDBY, that is, the new table is used to write data. Obviously, this increases the maintainability of the logical STANDBY, but compared with reducing the pressure on the master database, our DBA would rather sacrifice some personal time.


Implementation Method: To improve maintainability and server space as much as possible to avoid confusion with the master database, we use completely independent users, tablespaces, tables

1. Create a user

2. Create a tablespace

3. Create a table

Key points: Modify parameters

1 stop logical applyalter database stop logical standby apply;
2. Define the table for skip (tables that can be not synchronized)

Exec dbms_logstdby.skip ('schema _ ddls', 'test', 'test1', NULL );

Exec dbms_logstdby.skip ('yml', 'test', 'test1', NULL );


3 start logical applyalter database start logical standby apply immediate;

Alter database guard standby;

This article is from the "docker" blog. Please keep this source

, Hong Kong VM

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.