MySQL InnoDB Storage engine count Acceleration

Select count (1) from table use index (unique key ); Faster than using primary key indexes. I tested million production environment data, at least faster3Times .....   EXPLAINSELECT COUNT(1)From'Order'UseINDEX(PRIMARY) \ G; *

DataGuard Role Switching

Step 1 Verify that the primary database can be switched to the standby role.Verify that the master database can switch to the slave role.SELECT SWITCHOVER_STATUS from v $ DATABASE;Idle>: wq SWITCHOVER_STATUS--------------------TO STANDBY Step 2

Questions about Oracle query statements

01. query all data in the employee table and describe the disadvantages of using * Select * from emp; 01. query the salaries of employees whose job is 'President' Select sal from emp where job = 'President '; 02. query the information of employees

Other Oracle Data Objects-Index

1. Introduction 1. Index: (1) A table-independent schema object that can be stored in a disk or tablespace different from the table (2) If an index is deleted or damaged, it does not affect the table. Only the query speed is affected. (3) once an

How to compile invalid objects in Oracle

During routine database maintenance, we need to check the invalid object information in the database in time and re-compile the abnormal object. For various object types, see the following compilation method: Check the name of the generated Invalid

Oracle Data Dictionary

1. user_source Process Code of the current user2. user_objects contains all database objects owned by the user3. user_segments4. user_tables tablespace and tablespace Information5. user_tab_partitions partition information6. user_views7.

Simple DG archiving log deletion script

Recently, I have been playing with DG. Due to the shortage of disk resources, a policy for archiving logs is required. I found several scripts on the Internet and found that writing is so troublesome. Mao, So I simply wrote one, and the actual path

Oracle default and non-default listeners

1. If the default port 1521 is used and the instance is automatically registered to the listener, you do not need to set local_listener. The listener. ora file can be configured as normal. 2. If a non-default port 1521 is used to enable the instance

Ubuntu 12.04 Server port MySQL Database

I used Ubuntu 10.04 LTS Server. The HDD was faulty a few days ago and the system was pregnant. I had to wait for an 80 GB HDD to be eliminated with IT. How can the company be so poor, I still use my computer as the server 7 or 8 years ago. Is IT

Auto-increment field in Oracle

Environment: PLSQL Developer 7.1.5 Oracle 11.2.0 Oracle does not specify an auto-increment column as MYSQL or MSSQLServer does. However, in Oracle, the SEQUENCE can be used to automatically increase fields. In Oracle, SEQUENCE is called a SEQUENCE.

SQL built-in functions

1. Create a table: Create table test (id int, name varchar (20), quarter int, profile int )) Insert into test values (1, 'A', 1,1000 );Insert into test values (1, 'A', 2,1000 );Insert into test values (1, 'A', 3,1000 );Insert into test values (1, 'A'

Oracle table partition: range Partition

Partitions by the range of values of one or more columns in a table.Syntax: PARTITIONBYRANGE (column_name) ( PARTITION part1 value less than (range1 ), PARTITION part2 value less than (range2 ), ... [PARTITION partN value less than (MAXVALUE)]

Oracle faults caused by Time Synchronization

On Friday, April 6, a server time was synchronized. Who could have neglected to write April 6 as June 6? After all the machine time synchronization, I found that I had corrected the mistake and made changes quickly, log on to the database and check

Oracle optimizer and SQL query execution sequence

Before executing an SQL statement, Oracle needs to first check the SQL Execution Plan and then execute the SQL statement according to the execution plan. The optimizer is responsible for analyzing the execution plan, under different conditions, an

Oracle EM Grid Control cannot connect to the agent

Oracle em grid control 10.2.0.2 is installed on a windows Server, and an existing database is used as the database. The oracle emgrid agent software is installed on various linux servers for monitoring the oracle database and rac system. The agent

Important Oracle SQL manual used at work

1. view the default tablespace of the current user: SQL> select username, default_tablespace from user_users; 2. view the role of the current user: SQL> select * from user_role_privs; 3. view the current user's system permissions and table-level

Debug Oracle stored procedures in SQL PLUS

In general, we use visual tools such as pl SQL DEVELOPER and TOAD to develop and debug Oracle stored procedures. No one is stupid enough to use vim for development and SQL plus for debugging. But in some cases, we know how to debug the stored

Expdp error ORA-39029

Source end hp-unix + Oracle10g-r204-rac, target end RedHat + oracle10g.When network_link is used for export on the target end, the following error is returned:Rm/opt/oradir/expdp. dmpExpdp \ "sys/oracle as sysdba \" directory = oradir network_link =

How to view the parameter of the Oracle database

How to view the parameter of the Oracle database Method 1-show parameter SQL> show parameter NAMETYPE VALUE ----------------------- Background_core_dump stringPartial Background_dump_dest string D: \ ORACLE \ PRODUCT \ 10.2.0 \ ADMIN \

How to create a new Oracle user (new schema)

Create a new user in Oracle, and create a new schema to distinguish other directories. At the same time, it also saves data objects of all related users and tables of users. How to create a new user? (Create a new db) First, use the system (default

Total Pages: 1013 1 .... 876 877 878 879 880 .... 1013 Go to: GO

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.