I. ORACLE Physical Architecture
Principle Structure diagram
Each part explains:PGA: Private memory area for use by the current initiating user only.Three effects
The session information after the user logs in will be saved in
Source: http://www.2cto.com/database/201208/145611.html Today, just take the month and the number of days, if 0 in front of the month to get rid of 0. For example, 2010-01-08, the required result is 1-8. Leads to a series of SQL statements first:
Group by multiple table multi-field Association queryOneself encounter a problem, is the beginning of the time need a field name and number, but the same table.The database code is as follows:Select L.batchnum,count (l.batchnum) Batcount from
First, Oracle has an optimizer (Optimizer), and Oracle's optimization mechanism starts with Optimizer. Clear two concepts: there are two ways to optimize Oracle Optimizer, one is rule-based, we call RBO (rule-based optimization), One is the
Oracle query optimization using exists can be more speed than using in, of course, this can only be in the case of only one in, generally there are multiple in the case, can not be all in the exists, I am not clear, I just based on the actual
One: First query the database whether to open the archive mode:sql> archive Log list; ----Archive mode is turned onDatabase Log Mode Archive modeAutomatic Archival EnabledArchive Destination Use_db_recovery_file_dest----Modify this archive
Pmon:process Monitor uses automatic registration for dynamic monitoring to handle abnormal processes.Smon:system Monitor is used for instance recovery.LCKN: Use only the RAC database for blocking between instance.RECO: For the recovery of
How to open Oracle rac--archive log 2011-10-07 15:53:04Category: OracleOracle rac--Archive Logging Method ================================== 10g R1 To modify the cluster_database parameters, 10G R2 and later versions will not be required1. Example (1
1. Modify the Oracle System configuration file::/etc/oratabVi/etc/oratabOrcl:/opt/oracle/product/10.2.0/db_1:Y2. Create the file Oracle startup script under/etc/init.d/, with the following content:
#!/bin/sh# chkconfig:35 80 10#
--- ProblemSelect owner, index_name, DEGREE from DBA_INDEXES where DEGREE> 1*ERROR at line 1:ORA-01722: invalid number.-- 1 get execution trace informationSQL> set autotrace traceonlySQL> select owner, index_name, DEGREE from DBA_INDEXES where
Background:
A table suddenly experienced slow queries, with a cost of more than 100 seconds, seriously affecting production.
Original SQL:
explain plan for select * from (select ID id,RET_NO retNo, FROM_SYS fromSy, TO_SYS toSys, COMMAND_CODE
An example is provided below:
First, connect to Oracle as a guest (sysdba)
Then create two users, "lisi" and "zhangsan"
Then authorize lisi and grantCreate a tablePermissions
Lisi connects to the database and creates a table named
After the data in the table is deleted, it does not actually delete the data. Instead, it is marked with a delete mark and can be restored as long as it is not overwritten.
The experiment process is as follows:
SYS @ ORCL> create table bbed_test (x
Oracle11g RAC construction in linux (9)8. Create an ASM warehouse
Perform operations on the GUI
[Root @ node1 ~] #Su-grid
[Grid @ node1 ~] $Asmca
// Create two disk groups: Data File disk groups and fast recovery disk groups
[Grid @ node1 ~] $Cd/u01/
Select a. FILE_NAME, a. AUTOEXTENSIBLE, a. MAXBYTES, a. INCREMENT_BY from dba_data_files;
-- AUTOEXTENSIBLE auto Scaling-- MAXBYTES maximum
-- INCREMENT_BY: automatically scales the number of blocks.
SQL> show parameter db_blockNAME TYPE VALUE
------
1. ASCII (C)
Returns the corresponding decimal number of the first character of C in the ASCII code.
Example:
SQL> select ascii ('A') A, ASCII ('A') B, ASCII ('0') C, ASCII ('') D FROM DUAL;
A B C D
----------------------------------------
65 97 48 3
Whether it is a project or SQL, we usually use IN. It is easy to understand. However, IN the face of multi-layer query nesting, or the number of result sets IN the IN keyword is huge, the query efficiency will decrease linearly. In this case, we
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