This section describes how to install, configure mysql-data1.mytest.com, and mysql-data2.mytest.com In Ubuntu.
Install MySQL
Install the MySQL server on both the mysql-data1 and the mysql-data2:
$ Sudo apt-get update install mysql-server
During
1. Required Software
The command line email tool in mutt Linux, which can be used to receive and send emails.
Sendmail/postfix on the mail server in Linux, all emails are sent from the Local Machine
MySQL database backup program
2. mutt parameter
Recently I wrote a database collection program. The process is to periodically collect data from the SQLSERVER database to the Oracle database. Data is generated once an hour, and each time the data volume is about 2 W. Sping3 + hibernate4 is used
Oracle 11G R2 RAC modify archive Mode
The non-archive mode is used by default after the database is created. You need to modify it.
Recommended reading:
Oracle 11g rac ocr and db_unique_name Configuration
Reconfigure and uninstall Oracle 11GR2 Grid
1. Data Guard master database archive deletion policy:
When we set:
RMAN> configure archivelog deletion policy to applied on standby;
In Maximum Availability and Maximum Performance, when RMAN backs up the archive file and adds delete input, the
Since Mysql5.1, the partition function has emerged. Table Partitioning is like dividing a large table into several small tables. You do not need to perform full table scanning when performing a query, you only need to query the table partitions that
In Oracle 11 g2, duplicating a database has two methods:
1. Active database duplication2. Backup-based duplication
The advantages of using duplicate for a database are:Test backup and recovery proceduresTest an upgrade to a new release of Oracle
Assume that no instance is created, no SCOTT user, and no EMP file are created when you create an Oracle database.
Execute the following script files:
Path: {ORACLE_HOME} \ RDBMS \ ADMIN
1. SQL> @ .. \ utlsampl. SQL (********)Used to create a SCOTT
1. Compare the size function SIGN
Sign (x) or Sign (x) is called a symbol function. Its function is to take a certain number of symbols (positive or negative ):When x> 0, sign (x) = 1;When x = 0, sign (x) = 0;When x X can be a function or computing
1. Configure the master database environment
Enable Archiving
SQL> alter system set log_archive_dest_1 = 'location =/Oracle/archive_log/arch _ % t _ % s _ % r. arc' scope = spfile;
The system has been changed.
SQL> ALTER SYSTEM SET
Key points about setting a reasonable log buffer size
1, default size MAX (0.5 M, (128 K * number of cpus ))
2, On most systems, sizing the log buffer larger than 1 M does not provide any
Performance benefit. It merely uses extra memory.
3. View
When multiple tables are joined in Hive, the Hive SQL Optimization engine is not powerful enough, and the Association Sequence of tables is different, which leads to different quantities of MapReduce jobs. In this case, you need to adjust the SQL
The file is as follows. Modify the file as needed:
#/Usr/share/mysql/my-huge.cnf# MariaDB configuration file sample template (huge, giant ).## This file applies to dedicated database servers with a memory of 1 GB to 2 GB.# Only large MariaDB systems
Oracle databases contain many duplicate items because they do not have any constraints. The question now is how to delete these repeated items. Repeat records only keep one of them. The following table creation statement
Create table message_student3
The Helper house has mentioned mysql installation many times, but these are basically installed through rmp or common binary format. This will introduce how to install mysql through source code.
MySQL authoritative guide (original book version 2nd)
Login connection errors are the most common problems we encounter during Environment configuration, changes, and new Client installation. The logon process involves the client network, operating system, TNS configuration, listener working status,
The Oracle RMAN tool has three source database objects: target, catalog, and auxiliary.
Target is the source database for backup operations. All the objects we perform backup and restoration are in this database. By default, backup set information
1. Basic hardware requirements for installing Oracle databases
1.1 Basic Requirements for memory
At least 1 GB of physical memory
Oracle officially recommends 2 GB memory or more
Here, we can meet the basic conditions in the experiment environment.
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