In Oracle, there are two optional parsing processes for a submitted SQL statement: Hard parsing and soft parsing.
A hard parsing requires parsing, creating execution paths, optimizing access plans, and many other steps. hard explanation not only
4) process 1. Basic Concepts: Oracle allows you to create and store compiled PL/SQL statements in the database.
Program This type of program includes processes, functions, packages, and triggers. We can save the business logic, business rules, and
Select ename from
(
Select ename, rownum rn from
(Select * from EMP order by empno)
Where rownum
)
Where rn> = 4;
This is because in the CBO optimization mode, Oracle can push the outer query conditions to the inner query to
Oracle job introduction
Main scenarios
Perform related operations on the background at regular intervals. For example, save the data of one table to another at every night, and 2. Back up the database at regular intervals.
It is difficult to
Set serveroutput on;
Scalar:
Declare v_name mytable. name % type;
Begin
Select name into V _ name from mytable where id = & AAAAA;
Dbms_output.put_line ('name: '| V _Name );
Exception
When no_data_foundthen dbms_output.put_line ('no number ');
End;
The table has two fields: ID and name:Data available:1.;2. B;3. C;4, C;5. BSelect distinct name from table; --> name A B CSelect distinct name, ID from table --> ID name 1 A 2 B 3 C 4 C 5 B (only those with the same ID and name will be
Error: not a single-component group Function
Example: Select deptno, count (empno) from EMP;
Error: not a single-component group Function
Cause:
1,If the grouping function is used in the program, you can use the following two cases:
Program
We sometimes encounter errors when exporting data using expdp. In this way, some records are generated in dba_datapump_jobs. You can see the following command:
Select * From dba_datapump_jobs;
Now we can see the corresponding job_name. Follow
1) Overview: the programming language formed after procedural expansion of Oracle in the standard SQL language is a unique Oracle language that supports application development. 2) Syntax: 1. basic Structure declare -- declare some variables,
6) Package 1. basic concept package (Package) is used to organize logical PL/SQL blocks or elements (variables, constants, custom data types, exceptions, processes, functions, and cursors, the package is stored as a complete unit in the database and
7) trigger 1. Two basic concepts: implement the constraints of complex business rules that are difficult to complete due to database integrity constraints; monitor various database operations to implement audit functions. Triggers are divided into:
I. Basic Concepts1) physical structure data files, control files, log files, parameter files, and backup files constitute the physical storage structure of the Oracle database.
Control file management and control data files and log files 0. The
-- 1. Create a dedicated user under PLSQL-- Create the userCreate user user1Identified by \ "user1 \"Default tablespace usersTemporary tablespace tempProfile default;-- Grant/Revoke role privilegesGrant DBA to user1;-- Grant/Revoke SYSTEM
Quickly create a user to import data
Sqlplus/nolog
Conn/As sysdba;
Drop user Feiyang cascade;
Create user Feiyang identified by Feiyang;
Grant create session to Feiyang;
Grant resource, connect, DBA to Feiyang;
Conn Feiyang/Feiyang;
Select
Connect by is used in structured queries. Its basic syntax is:Select... from tablename start by cond1Connect by cond2Where cond3;Simply put, a tree structure is stored in a table. For example, a table has two fields:The ID and parentid indicate the
Implementation code example:Variable jobno number;BeginDbms_job.submit (: jobno, // set the job number'Procdemo; ', // set the content to be executed. Generally, it is a stored procedure and the write process name is,Note: if it is to call the
-- Partition by data volume in the table less than is smaller than the maximum value of 3, this partition can only store two data ---- 30000000 ---- 60000000 --Create Table dtf_test(Dtf_id number primary key,Item_id number (8) Not
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