Oracle learning notes 4 SQL commands (2): SQL operation language category, oracle learning notes
SQL is classified into the following language categories1. Data Definition Language (DDL)Create, Alter, Drop
2. Data manipulation language (DML)Insert, Select, Delete, Update
3. Transaction Control Language (TCL)Commit, Savepoint, and Rollback
151510 1450 Select Se.last_name,se.salary,se.dept_id,temp.avgsalFrom S_emp SE, (Select Dept_id,avg (Salary) AvgsalFrom S_empGROUP BY dept_id) Tempwhere se.dept_id = temp.dept_idand Se.salary > temp.avgsal; 1. Query for employee information2. For example, to find out the staff information in Sector 41st, which is higher than the average salary of department 41st (this department) Select AVG (Salary), dept_idFrom S_empGroup BY DEPT_ID; Select last_name,salary,dept_idFrom S_emp; Select S1.last_na
Oracle BASICS (4): Single Table query and oracle basic Single Table query
1. Basic Query(1) Basic Statement 1. Syntax
Select [distinct] * | {Column name...} from table name [where {condition }]
2. Note 1) distinct: Indicates whether duplicate data is excluded when the result is displayed.
Indicates that all the queried field data are consistent, so that it i
Oracle performance optimization operation 4: Remove "IN", "OR" whenever possible, oracle Performance Optimization
The Where clause containing "IN" and "OR" usually uses a worksheet to invalidate the index;
If a large number of duplicate values are not generated, consider splitting the sub-statement. The split sub-statement should contain the index.
Example:
S
This paper (howto) describes step-by-step installation of Oracle 9i database software on Fedora Core 2, 3, 4, 5 and 6.
This paper covers following steps:
Pre-instalation tasks
Download Install
Post-instalation tasks
Common installation errors
Pre-instalation tasks
1. Create Oracle user account
Login as root and create te user
4 scripts are required to perform RAC installation
1) $ORACLE _base/orainventory/orainstroot.sh (performed at end of Clusterware)
2) $CRS _home/root.sh (performed at end of Clusterware)
3) $CRS _home/bin/vipca.sh (the script is automatically invoked when the second node executes $crs_home/root.sh)
4) $ORACLE _home/
[Ora10, 4] oracle background process Introduction:, ora10oracle1. SMON (System MONitor) System monitoring process:
During database startup, SMON is placed after the CKPT process and in Oracle9i, it is placed at the sixth position:
PMON started with pid = 2
DBW0 started with pid = 3
LGWR started with pid = 4
CKPT started with pid = 5
SMON started with pid =
Oracle user name change is a rare requirement for Oracle user name modification in four steps, but it is still a required knowledge for beginners, here, we use four simple steps to change and replace the Oracle user name. AD: 2013 cloud computing architect Summit course materials download our Oracle management work oft
Setup Oracle 11gR2 for Redhat Linux as 4 Update 7 x64 1. Checking Linux version. [Email protected] ~]# uname-aLinux redhat4.7 2.6.9-78.el #1 Wed Jul 9 15:26:38 EDT-x86_64 x86_64 x86_64 Gnu/linux 2. Linking Oracle installing document. Http://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm#BHCGGJAB The following or later version of packages for
=65536
net.ipv4.ip_local_port_range=102465000
net.core.rmem_default=1048576
net.core.rmem_max=1048576
net.core.wmem_default=262144
net.core.wmem_max=262144
2:vi/etc/security/limits.conf limit the handle of the Oracle open page
oraclesoftnproc2047
oraclehardnproc16384
oraclesoftnofile1024
oraclehardnofile65536
3:vi/etc/pam.d/login the information set in the above takes effect here
Sessionrequired/lib/security/pam_limits.so
ASM instance. In a RDBMSInstance,v$asm_templatedisplays one row for every template presentIn every diskgroup mounted by the ASM instance with which the RDBMSInstance communicates
For example, the following views can be interviewed in RDBMS and ASM instancesSee P68SummaryASM Instance Management ASM metadata. ASM instances are similar to Oracle instances and also haveSGA and most of the background processes. ASM is able to run commands similar
PATH variable.Delete the contents of Oracle in this value. Note: A directory of operating systems is recorded in path, and semicolons are used between directories in Windows (; ) separated, note when deleting.Recommendation: When deleting the value of Oracle in the PATH environment variable, copy the value to a text editor, find the corresponding Oracle value, d
Tags: oracle linux 4-5-6-7 online yum MountManually connecting to the Oracle Linux Yum Server
Download and Install Oracle LinuxNote: The Oracle Linux Yum Server is already configured on Oracle Linux 5 update 7 and
optimizer considers it appropriate.
The number of unique values for the leading columns in the 2 index can meet certain criteria, such as a lot of duplicate values.
The 3 optimizer should know the value distribution of the leading columns (obtained by analysis/statistics).
4 Appropriate SQL statements
Wait
[Q] How to create a use virtual index
[A] You can use the nosegment option, such as
CREATE INDEX Virtual_index_name on table_name (col_name) noseg
Tags: length RAC program Location 5.4 Course sele Install Oracle replacementFirst, environmental installation1. Login: Log in as AdministratorSqlplus Login name/passwordAdministrator Login: Sqlplus system/1234562. After logging in, import the case. Download the Scott.sql file and execute the command on the following linesql>@ "e:\ brother even document \oracle\java 19\day01\script\scott.sql";At this point w
-max = 65536Net.ipv4.ip_local_port_range = 1024 65000Net.core.rmem_default = 1048576Net.core.rmem_max = 1048576Net.core.wmem_default = 262144Net.core.wmem_max = 2621442:vi/etc/security/limits.conf Restrict Oracle Open page handles and the likeOracle Soft Nproc 2047Oracle Hard Nproc 16384Oracle Soft Nofile 1024Oracle Hard Nofile 655363:vi/etc/pam.d/login the information set in the above takes effect hereSession required/lib/security/pam_limits.so4:vi/e
cannot be stored by VARCHAR2. BLOB large binary BLOB data type is used to store large binary objects, this TYPE can store up to 4 GB Data % TYPE data TYPE. When PL/SQL variables are defined to store values, make sure that the appropriate data TYPE and length are used for the variable. Otherwise, a PL/SQL running error may occur during running. To avoid this unnecessary error, you can use the % TYPE attribute to define the variable.
When the % TYPE at
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.