Oracle SQL statements are fast and slow, while oraclesql statements are fast and slow.
Today, I encountered a very strange problem. One SQL statement is very slow in PL/SQL developer and takes 9 s. The problem SQL:
SELECT * FROM GG_function_location f WHERE f. parent_id = '0
Operating Environment: AIX + 11g + PLSQL
Includes the following content:
1. SQL statement execution process
2. optimizer and execution plan
3. Properly apply Hints
4. Indexes and Application Instances
5. Other optimization technologies and applications1. SQL statement execution process 1.1 SQL statement execution steps
1) analyze the syntax and analyze whether th
create a new SQL window, and the file list below has the system and the database you created, which you can view.PL/SQL can also perform visual operations on Oracle.So the first time I installed PL/SQL, I said no listener, think about it. There should be no new folders and configuration of these two files, because the
test table: 1 public class Tb_people
2 {
3 public Guid Uid {get; set;}
4 public string Name {get; set;}
5 public int Age {get; set;}
6 Public int ClassId {get; set;}
7 } After filling in the connection string and assigning a value to the Connstring_default property of the Db_helper_dg class, we call the method directly to perform the query operation. Call the static method executelist to map directly to the entity class: 1
Oracle is a large database with a C/SClient/Server structure. It is mainly used in the 4GLSQL language and has the advantages of being powerful, simple, and easy to learn. The working process of the C/S structure is: when the client c end) inputs and sends an SQL statement, it will be sent to the server S end through the network ), the result is analyzed and executed, and then returned to the client through
One, source-side (Oracle) configuration1. Create a synchronization test tableCREATE TABLE gg_user.t01 (name varchar (primary key));CREATE TABLE gg_user.t02 (ID int primary key,name varchar (20));2. Add the definition file (is the transfer between heterogeneous, need to convert the field type and other processing needs to Defgen tool generation definition file)Ggsci (kermart) 4> edit params DefgenDefsfile D:\ggate\dirdef\t01.defUserID Gg_user,password
My main database used for oracle10g and SqlServer2008, through the actual use and access to data collated as follows:
Theme
Oracle 10g
SQL Server 2008
Stored Procedure Format
Create Or Replace Procedure stored procedure name (parameter list)IsBegin---stored procedure contentEnd stored procedure name;
Create Procedur
Tags: Oracle plsql table PartitioningPL/SQL Basic Entry table partitioningPL/sql:Process Language(Procedure Language)and structured language(StructuredQuery Language)The combination of the programming language, is theSQLextensions that support multiple data types, such as large objects and collection types, can use control statements such as conditions and loops to create stored procedures, packages, trigge
When using ODP.. Net for Oracle programming, sometimes the SQL statements are very complex and need to be dynamically constructed query statements. There are two ways to construct dynamic SQL statements and execute the returned result set.
1. Construct SQL statements at the data access layer
For example, in the fol
principle of dynamic SQL compilation is understood, and the basic development idea is mastered. Since dynamic SQL is an "indeterminate" SQL, its execution has its own characteristics. The Execute immediate statement is provided in Oracle to execute dynamic SQL, as follows:
The SQL statement is too long and needs to be stored through the array dbms_ SQL .varchar2s. Before execution.
DeclareRochelle stmt dbms_ SQL .varchar2s;Rochelle cursor integer default dbms_ SQL .open_cursor;Rows number default 0;Rochelle length number: = 0;BeginRochelle stmt (1): = 'select 1 c1 ';For I in 2 .. 15000
Oracle
Learn the use of Oracle SQL Loader
One: Features of SQL loader
Oracle has a number of tools that can be used to migrate, backup, and restore data. But each tool has its own characteristics.
For example, exp and IMP can export and export data in the database, which is
-- start the database with startup mount
Archive log list
Alter database archivelog
ALTER DATABASE OPENView commands supported by sqlplus
Help INDEXUnlock user lock
Log On with the user password set in step 1 during oracle Installation (for example, sqlplus "sys/zhb126 as sysdba") and run
Alter user scott account unlock;
Then execute sqlplus scott/tiger and you will be asked to modify scott's new password.
Label:Previously wrote an article about SQL Server access to the MySQL database, and recently just encountered the need to access Oracle, the configuration process is recorded for your reference.Preparatory workDo the following on the host that requires access to the Oracle database: 1. Installing the SQL Server databa
This article will discuss and share with you some common classic queries of oracle SQL. You are welcome to add them. You can also share some classic queries. In this article, if you think there is any better solution to every problem, you are welcome to raise it in time. Communication and sharing can make progress together. Thank you!
Next four articles:
[Recommended] o
Tags: blog http io ar os using SP for fileOriginal: Linked server for SQL Server (MySQL, Oracle, Ms_sql, Access, SYBASE)One, using Microsoft OLE DB Provider for ODBC link MySQLInstalling MySQL's ODBC driver MYODBC1, for MySQL to establish an ODBC system data source, for example: Select the database as test, the data source name is MyDSN2. Establish a linked databaseEXEC sp_addlinkedserver @server = ' mysqlt
As a development/ tester , more or less have to deal with the database, and the operation of the database is ultimately SQL statements, all operations to the end are operational data, then the control of SQL performance has become a very important task in our work. Here are some practical ways to look at Oracle performance:1. Query the number of connections per
to this DB buffer block in the dirty list (a convenient dbwr process can find the DB buffer data block of dirty list and Write to the data file). The server process then continues to read the second block of data from the data file, repeating the previous block's actions, reading the data block, logging, setting up the rollback segment, modifying the data block, and placing the dirty
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.