Introduction to common Oracle performance scripts and oracle performance scripts
In the absence of visual tools to monitor database performance, common scripts come in handy. Below are a few scripts related to Oracle performance for your reference.
The background of the problem: in the actual use of MySQL, if the traffic is relatively large, it is likely to have a large number of locked state of the process, but it is not convenient to identify which SQL caused the problem, many people
Excerpt from the SQL Server Help documentFor everyone excellent query speed help!It is recommended that you use sp_executesql instead of executing the string using the EXECUTE statement. Supporting parameter substitution not only makes sp_executesql
reproducedhttp://blog.csdn.net/cyzero/article/details/8620909What is a precompiled statementThe precompiled statement PreparedStatement is an interface in java.sql, which is a statement sub-interface. When executing SQL statements through the
Original address:http://blog.csdn.net/lne818/article/details/3042250 PL/SQL Table---table () function usage/*PL/SQL Table---table () function usage:Using the table () function, we can replace the result set returned by PL/SQL with the table.The
I did this with spring and mybatis, and I managed the SqlHelper tool class through spring.1: Build a SqlHelper tool class,2: The class must have an attribute sqlsessionfactory.3: In your business class, directly into the SqlHelper class, so you can
here is the main introduction of the use of SQL BULK INSERT, let us first look at the bulk of the removal of the general how to do. 1. Bulk deletion is simple , you may have used:DELETE from TestTable WHERE ID in (1, 3, si,--sql2005) run
3. database cache size We talked about how to share execution plans from the programmer's perspective. Next let's take a look at what DBA can do for the shared execution plan. First, we need to know that the execution plan of each statement is saved
Debugging PL/SQL with dbms_debug
It is possible to debug PL/SQL code in Oracle with dbms_debug. This article tries to show how to do that. Firstly,PL/SQL package(Called adp_debug) is created that acts as a wrapper around
In the absence of visual tools to monitor database performance, common scripts come in handy. Below are a few scripts related to Oracle performance for your reference. The following scripts are successfully tested in Oracle 10 Gb, and Oracle 11 GB
Problem description: How can I find the remaining inventory of all products in the store based on the store ID? Business Description: remaining inventory of the product the total inventory records of the product andProblem description: How can I
In a web app, all data, including user information, published logs, comments, and so on, are stored in the Database. In awesome-python3-webapp, we chose MySQL as the Database.There are many places in the Web app to access the Database. Accessing the
An engineer uses a nested subquery to perform a delete operation and throws a ORA-00600 error. It is caused by this bug that the error is displayed on the MoS Lookup tool:
Bug 16347248 ORA-600 [kkqjpdgetcontext:1] parsing SQL with subquery
The
In the absence of visual tools to monitor database performance, common scripts come in handy, and here are a few scripts related to Oracle performance for your reference. The following scripts are passed in Oracle 10g testing and Oracle 11g may have
1.A, Operation effect Chart
1.B, source code/app_data/sql-basic.sql
Copy Code code as follows:
Use master
Go
if exists (SELECT * from sysdatabases where name= ' db1 ')
Begin
Drop Database DB1
End
Go
Create DATABASE DB1
Go
Use
First, SQL optimization
1. Optimizing SQL General Steps
1.1 Viewing SQL Execution frequency
SHOW STATUS like ' com_% ';
Com_select: The number of times the select operation was performed, with one query accumulating 1. Other similar
The following
Usually SQL database needs optimization analysis, and there are some techniques, SQL optimization of several methods here do not do a detailed introduction, this article will be summarized in SQL statement optimization, followed by an optimization
Write stored procedures, SQL function statementsEach of the team is very likely to has the following tables in the existing model. Use the Excel data provided with this phase link:PATIENT (some teams called it EMPLOYEE or CUSTOMER)-if needed, alter
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.