This article summarizes mysql Data replication, migration, and conversion in various scenarios.
1. Import and Export
Use the mysqldump command to export data files into a text file, which provides higher security in different scenarios. For example,
Delete undo tablespace report ORA-01548
When exporting data with expdp, the following error occurs:
C: \ Documents ents and Settings \ TEMP> expdp scott/tiger DUMPFILE = scott. dmp DIRECTORY = du
Mp SCHEMAS = scott
Export: Release
Redo logs are generally set to convert logs to 10-20 minutes. Too frequent conversion may affect the performance. if the checkpoint incomplete in the AWR report is large, the switching between redo logs is too frequent. you can increase the redo log
-- The location where exceptions and exceptions are captured in Oracle can be used to debug stored procedures, especially for a long time.DECLAREV_RATE NUMBER; -- RatioV_RETINFO VARCHAR2 (2000); -- exception informationBEGINSELECT 120/0 INTO V_RATE
The mysql5.6 subquery is no longer a vase or a decoration.
Mysql subqueries have always been known for poor performance. Therefore, the solution is to replace subqueries with table connections.
In mysql, subqueries are only considered a function
During the previous installation, diskgroup used the external redundancy level. Now we want to change it to the normal redundancy level. However, since diskgroup Redundancy cannot be adjusted once it is created, it can only be rebuilt.
The procedure
Character Functions
This function generally receives characters as parameters and can return characters or numbers.
The following two functions are commonly used:
1. CONCAT Function
It is mainly used for string connection. The specific syntax is as
When I started the test database in the morning, I found the following problems:The database version is 11.2.0.3.SQL> startupOracle instance started.
Total System Global Area 1653518336 bytesFixed Size 2228904 bytesVariable Size 1140854104
Two features of Oracle role
1) role DelayDelayed
How to enable the role to take effect immediately:Set role name;For example:Set role resource;Delay recoveryThe following experiment demonstrates the delay recovery:Session (1) scott:Sys @ ORCL> conn
Batch update Optimization for Oracle 10g large tables. In fact, 7 million of the tables are not big tables and are enough for testing.
I. t table informationSQL> alter table t add is_del number (1 );SQL> alter table t modify is_del default 0;
SQL>
Today, the customer reported that the query was slow. Because the query was in a production environment, the test was not allowed. Therefore, refer to the following blog to export the statistics to the test server for SQL statement optimization. 1.
Problem:
After enabling SQL Server 2008, you do not need to manually add the local administrator group because it is added by default during installation. You only need to manually add the current user to the local administrator user. This means
From MySQL5.6, a new parameter innodb_page_size can be set to 8 K and 4 K for Innodb data pages. The default value is 16 K. This parameter must be added to my. cnf at the beginning of initialization. If a table has been created and modified, an
1. Consistentgets description
When we use autotrace to view execution plans and statistics, the following information is displayed:
0 recursive cballs: recursive call. General cause: dictionary cache miss; dynamic storage expansion; PL/SQL statement
The cache mechanism simply caches the SQL text and query results. If the same SQL statement is run, the server directly retrieves the results from the cache without parsing and executing the SQL statement. If the table is changed, all cache queries
Someone is looking for SQL Server to store Email data on the Internet. In fact, SQL Server provides OLE DB Provider to access Exchange.
Microsoft ole db Provider for Exchange publicly stores data in Microsoft Exchange 2000 Web Store in tabular form.
Dbca or manual script can be used to create a database in Oracle. Version: oracle10.2.1. The method for creating a database by manual script is summarized as follows:
Note: you must first create a directory and change it to your own directory;
Step 1
An Oracle error message ORA-28001: the password has expired was reported when an alert was received that the monitored user could not connect to the database. the script for getting the user's basic information was as follows:
Connect/as sysdba;
Col
1. Instructions for use:
1. After this script is used as a partition, partitions are automatically added at regular intervals. (For tables that are automatically partitioned, you must manually divide the partitions first)2. Every 15 days, the timer
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