Oracle Performance Optimization Operation V: Remove "<>" as much as possibleRemove the "<>" as much as possible, avoid full-table scans, and modify the "OR" if the data is an enumeration value with a fixed range of values.Cases:update serviceinfo
Indexes can still be used to improve efficiency when the selectivity of the index is low, but the value distribution of the data varies widely.A, the data distribution is not uniform in the special case, the selective index is also to be created.The
Use hint to force a specified index when the Oracle Optimizer is unable to use a reasonable index.To continue the example of Oracle performance optimization operation VII, Oracle defaults to the fact that the values of the columns in the table are
Continue with the example of Oracle performance optimization Operation eightBecause there are queries involving disposalcourseflag=6 in the actual query, it would be very unwise and inefficient to use the index on that field at this point.So in this
Today, when installing Oracle 10g, we encountered the "Oracle support installation on a system with DHCP assigned IP address" and searched for the solution, as follows:Win7 Right click on "My Computer" select "Device Manager"---action--add outdated
problem : Update cannot be updated Table table 19 record, in when updated occasionally update occasionally update no move Update Action Execution the time , it's not moving. , It's like. is dead off the same .about the database
Oracle's job, in fact, is a database built-in timing task, similar to the timer function in the code. The following are the use procedures:Here we simulate a scenario where the stored procedure is called periodically p_test_job insert data into
Dynamic SQL returns cursors:Create or Replace procedure Proc_validityduequery (P_regioncode in number, p_pscode in number, p_o Utputcode in number, p_pollutanttype in number, P_psclasscode in Varchar2, P_attencode in Varchar2, P_checkstatus
Increase the scope of the query to avoid a full range of searches.Example: The following query table record in time Actiontime less than March 1, 2001 of data:SELECT * FROM record where Actiontime The query plan indicates that the above query has a
Oracle MinuskeywordMinuskeyword in SQLThere is a minuskeyword in SQL that uses two SQL statements to find out the results of the first SQL statement, and then see if the results are in the results of the second SQL statement. If there is, then this
Previously written, and later did not write, since all forgotten. Here re-learning Oracle's stored procedures, want to see people do not laughed at.It is first known that the start statement of the stored procedure is create OR REPLACE PROCEDURE
Oracle gets a list of months between a time periodGet a list of months between a time period (example returns a list of months from 2009-03 to 2010-03) SELECTTO_CHAR(ADD_MONTHS(TO_DATE(‘2009-03‘,‘YYYY-MM‘),ROWNUM-1),‘YYYY-MM‘)
Character functions-(learning notes), character function learning notes
-- Character Functions-- Upper () converts the character to uppercase-- Lower () converts characters to lowercase lettersSelect upper ('cloud'), LOWER ('cloud ')FROM dual;--
Oracle performance optimization operation 4: Remove & quot; IN & quot;, & quot; OR & quot; whenever possible;
The Where clause containing "IN" and "OR" usually uses a worksheet to invalidate the index;
If a large number of duplicate values are not
Considerations for oracle Transaction Processing (notes) and oracle Transaction Processing
Transaction: An Independent logical unit of work. It has a specific series of SQL statements that must be successful or failed as a whole. It is a kind of
Oracle performance optimization operation 2: Avoid unnecessary type conversion
It should be noted that the potential data type conversion should be avoided as much as possible.
For example, if you compare the numeric data with the numeric data,
ORACLE-008: classification statistics
Classification statistics are usually used to count the number of items or the number of items under a certain item.
Simple, such as tab_test
Tab_test record
Id
Co
Name
Job
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