High Availability of MySQL: Keepalived + MySQL (dual-master hot standby)
Environment Description:OS: CentOS6.5 _ X64MASTER: 192.168.0.202BACKUP: 192.168.0.203VIP: 192.168.0.204
1. Configure two Mysql master-master Synchronization[Root @ master ~] #
A bug about database restart in Oracle
The drop database operation is a fatal operation in Oracle. This operation has been experienced in the test environment and will completely delete data files. Therefore, this operation is very sensitive but not
Clear table data in SQL loop, SQL LoopSQL statement to clear table data
Recently, database clearance tests are often required for projects, but truncate is slow and time-consuming. Therefore, you have written an SQL statement to clear table data in
For troubleshooting of "Connected to an idle instance" in sqlplus, sqlplusinstance
Troubleshooting of "Connected to an idle instance" in sqlplus:
This issue is explained in the following article:How to Check the Environment Variables for an Oracle
Java. SQL. SQLException: The IN or OUT parameters are lost IN the index: x, and the outlook index is lost.
When using JDBC, the following error occurs: java. SQL. SQLException: The IN or OUT parameters are lost IN the index: x
As shown in the
Data cleansing Note: determines whether it is a date function or a note date
Original Works are from the blog of "Deep Blue blog". You are welcome to repost them. You must specify the source when you repost them. Otherwise, you have the right to
Table operations in oracle and table operations in oracle
The basic creation will not be mentioned. Here we will talk about some uncommon methods, which means they are easy to use.
Create a table using a subqueryCreate a new book table using a
Partition Table (2): Partition Table
alter table scales add partition (partition p2 values less than (2015));
alter table log drop partition p0;
show variables like '%partition%';
alter table user reorganize partition p0,p1,p2 into (partition p3
RecycleBin, oraclerecyclebinSQL> select * from v $ version where rownum = 1;BANNER--------------------------------------------------------------------------------Oracle Database 11g Enterprise Edition Release 11.2.0.1.0-ProductionSQL>!
A small problem encountered in oracle paging Query
Order table, which has the same order id as the order information table (Multiple order information columns)Find all orders and their information, and page them by order
select * from(select a. * ,
PreparedStatement and Statement, preparedstatement
PreparedStatement is one of the APIs used to execute SQL query statements. Java provides Statement, PreparedStatement, and CallableStatement to execute query statements. Statement is used for
Standard (important) for mysql Data Types
1. allowed value: the range and type of values in a field are allowed to determine which data type is the most direct factor to add to this field.
2. storage efficiency: it is also important to consider
The old mysql table is deduplicated and the new table is imported with a new value of the primary key id.
Business Requirements: Table A has the id, n1, n2, and n3 fields to create an empty table,
Table B has fields such as id, n1, n2, n3, n4,
Find the name, salary, Department name, salary level in the company and name of the leadership, salary of the leadership, level corresponding to the leadership, and employee name of each employee.
Example:
The employee's name, salary, Department
MongoDB introduction, installation, and setup of a simple mongoDB server (1 ).Related Websites
1. http://www.mongodb.org/official website, you can download the installation program, and doc, and driver. 2. http://www.mongoing.com/domestic
How many bytes does VARCHAR2 occupy? NLS_LENGTH_SEMANTICS, nls_language, nlslengthsemanticsORACLE initialization parameter: NLS_LENGTH_SEMANTICS
The initialization parameter NLS_LENGTH_SEMANTICS is used to specify the length definition method for
Mysql function 2
Iv. Conditional judgment functions 1. if (expr, v1, v2): returns the result v1. Otherwise, select id, if (grade> = 60, 'pass', 'fail ') from t; 2. IFNULL (V1, V2) function: If v2 is empty, otherwise v1 is displayed, for example:
Oracle Learning (13): Data Dictionary, oracle dictionaryThe data dictionary structure includes:-basic table: Description of database information, which can only be modified by the database server-User table: User-Defined tableData Dictionary naming
Static synchronization configuration process of OGG "Loading data from file to Replicat" table data, loadingreplicat
Static synchronization configuration process of OGG "Loading data from file to Replicat" table data
1. mgr Process
GGSCI (lei1) 3>
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