I. Master-slave Replication
1. Master-slave replication is a simple cluster technology for Database Synchronization and backup.
1.1 In the database cluster, you must clearly know who is the master server. The master server has only one.
1.2 The
In the past few days, I will share and summarize some SQL experience optimized in the past few days. The first thing to share is to optimize the limit page for MyISAM. Background: A business system provided by the company to crawlers to capture data.
In recent years, with the increasing popularity of big data, the importance of non-relational databases has been recognized by more and more people, and more developers have gradually joined the NoSQL camp. We know that NoSQL means Not Only SQL. In
In database management, some historical data or basically unchanged data is put into the read-only tablespace. Because such tablespaces can only be read but not DML.
It can effectively prevent accidental modification or deletion, so it is suitable
We often use the exp/imp command for import and export, which is indeed convenient, but also limited. For example, the tablespace names to be imported and exported must be the same, and the schema names must be the same.
Recently I encountered such
1. set key
Add version 1.0.0.
Time Complexity: O (1 ).
Maps the key and value. If the key already exists, it will be overwritten, regardless of its type.Return Value
Status Code: Always OK, because SET will not fail.
2. get key
Add version 1.0.
SQL server 2005 has been installed on one server, and everything is normal. Recently, due to the use of table type parameters, sqlserver 2008 needs to be installed, but cannot be connected after installation. The local machine can be connected
Testing TPC is a serious task. It is just for entertainment. Don't confuse it with the TPC Committee's high-end reports.1. First find a less standard TPC-C Testing ToolIt seems that this thing of Percona MySQL is used more people:
Zookeeper
Linux commands for deleting files and folders
When using this rm-rf to delete files, you must be extremely careful that there is no recycle bin in linux.You can simply use rm, but add the parameter-f, that is, the rm-f file path.-F means
The partition index is a global partition index and a local partition index, and a global non-partition index (that is, a common index) is added. A total of three types of indexes are added. The organizational structure and application scenarios of
Use cursor)
1. Declare a cursor
Cursor for select_statementThis statement declares a cursor. You can also define multiple cursors in a subroutine, but each cursor in a block must have a unique name. A single operation is performed after the cursor
Let's explain with Lao Guo:Step 1: store the changed data to PGA
Step 2: copy the old data in the buffer cache to the private IMU buffer in the sharing pool.
Step 3: store the modified data in PGA to private redo
Step 4: modify data in the buffre
The storage outline can be used to fix the SQL Execution Plan. The storage outline consists of a series of optimizer hints related to SQL statements. When the storage outline is available, oracle automatically generates an execution plan for the
When installing Oracle RAC in Linux, It is very troublesome to get asm. To run with the kernel, Oracle Linux is better. It is available on the CD. Unlike other tasks that need to go to the Oracle official website to download asmlib. In addition,
Ms SQL database log Compression MethodMs SQL performance is very good, but the database has been used for a period of time, the database has become very large, the actual amount of data is not large. It is generally caused by database logs! The
How the replication server works
The operation of the SYBASE replication server product is as follows:
Data Replication in StandBy mode
Generally, the data on the replication node changes with the master node. Can I switch to the replication
When I first walked into the door of the company in the morning and walked to my desk, my development colleagues worried and said, "You can come!
Me: What happened?
Developer: XX database is dead!
Me: Very surprised! This database has been running
When adjusting Data Guard to maximum protection in the max PROTECTION mode), you encountered the following problem: end-of-file on communication channel.
The execution process is as follows:
SQL> alter database set standby database to maximize
Speaking of Java operations on databases, we will naturally think of Sun's well-known brand JDBC. For NoSQL databases such as MongoDB, there are currently no standards such as JDBC.
This article analyzes the current situation and looks forward to
Next, let's talk about an article.
Easy to understand
Use LIMIT to LIMIT the number of query results
Number of lines at the LIMIT position offset
Displays the first four rows of Table query results.
Mysql> SELECT * FROM fruits LIMIT 4;
+ ------ + -
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