Discover bind variables in oracle, include the articles, news, trends, analysis and practical advice about bind variables in oracle on alibabacloud.com
In Oracle, for a committed SQL statement, there are two alternative parsing processes, one called hard parsing and one called soft parsing.
A hard parsing requires many steps, such as parsing, developing execution paths, and optimizing access plans.
I have previously compiled an article about variable binding, which is not very detailed. Please try again.
Oracle variable binding
Http://blog.csdn.net/tianlesoftware/archive/2009/10/17/4678335.aspx
I. bind variables
Bind Variable: a variable
When writing SQL statements in the Java source program, Oracle-bound variables are used for compiling SQL statements in Java. Oracle-bound variables are not used, which greatly reduces the database performance, it is manifested in two aspects: 1.
Compare the resource consumption of bind variables and unbind variables first initialize data Createtabletstsasselectlevelascol1, rdbms_random.string (p, 10) ascol2fromdualconnectbylevel10000; %% rowtype; beginforiin1. 100
Compare the resource
Using the Bind Variable can reduce SQL PARSE, but using the Bind Variable has a bad point: Incorrect execution plan may be used for a column with skew. Before Oracle 9i, if the WHERE condition contains all When binding variables, you can only use
Oracle's architecture is broadly divided into two parts: Instance (instance) and database.
Instance (example) : The SGA is mainly included in Oracle Instance and some processes (for example: Pmon, Smon, Dbwn, LGWR, CKPT, etc.). If a user's
Optimizing the configuration of Oracle is very important. An appropriate Optimization Configuration can improve the system performance several times. However, an improper configuration will cause your system problems constantly. By default, Oracle
2014-09-25 BaoxinjianI. Binding variable usage and usage scenarios
The importance of using bound variables: If you use constants without binding variables, you can cause a lot of hard parsing. Not using binding variables is often the biggest
I. Oracle case
1. Oracle instancesSystem global area (SGA) and background process are used as database instances.
2. Oracle DatabaseA collection of physical files (data files, control files, online logs, parameter files, etc)
3. system global area
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.