The writing of this article has been greatly helped by the withered flourish elders, and I would like to express my thanks.The Oracle DB version that this article applies to is Oracle 10g or later.This view is important because there is a column in
1. Dual is indeed a table. is a table that has only one field and a single row of records .2. In practice, we call it ' pseudo-table '. Because he doesn't store subject data.3. His presence is for the convenience of operation. Because select is
When diagnosing a performance problem with SQL, we sometimes need to get the actual value of its bound variable, and then bring the actual value into the SQL statement, make a SELECT statement with the original SQL (with the Where condition),
1.decode function (small version of case)Selectdecode (Pd.discount_id,null, ', ' Buy ' | | Pd.product_count| | ' A, ' | | pd.product_discount_rate| | ' Discount ') as Discount From b2b_product D right join b2b_product_hot ph in d.product_id =
Whether the Oracle database object is locked query SQL and the unlock process SQL are described below:--Query the object being locked under the current userSELECT B.object_name, B.owner, C.sid,c.serial#,c.osuser, C.machine, c.terminalFrom
SELECT * from Dba_users; View all users in the database, provided that you are an account with DBA authority, such as Sys,systemSELECT * from All_users; See all the users you can manageSELECT * from User_users; View Current User InformationTo query
From Tan Huaiyuan--Database NavigatorBackground processFirst, System Monitor (Smon)Instance recovery (after an abnormal shutdown)Second, Process Monitor (Pmon)Rolling back a transactionRelease locks and other resourcesRestart the dead scheduler. (in
I. Table-ParagraphTable partitioning: Easy to delete operations, etc.You can delete the partition table directly (quickly).High efficiency when using conditions such as while.Second, the indexImprove query speedaffect DML (update, INSERT, delete)
See Tan Huaiyuan-Database pilotage was hit by the business of the Heart O (╯-╰) oI. Environment variablesoracle_home--Database Base directory: Oracle's Product catalog. Additional Oracle products can be installed here.oracle_base--database software
It is sometimes necessary to modify the data in large areas, this time with a circular statement efficiency is not high. The cursor seems like a good choice when the temporal table doesn't meet the point-to-point modifications (PS: It's like 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
In the development of the report, it is unavoidable to encounter the problem of row to column.For example, in the case of Scott's EMP in Oracle, you can use "Row to column" to count the number of people in each position in each department:The
What situation?
Ningbo _ Air 15:17:40
Ningbo _ Wind 15:17:49 default configuration path
Ningbo _ Air 15:18:09
Ningbo _ Yi Feng 15:19:13 i used to be in the sample file configuration and
A project requires a view to build a primary key, here's an exampleCREATE or replace VIEW sme_v_a .... (Agentid,agentname,busynum,restnum,resttime,devicenonum,devicenosum,CONSTRAINT agentstatic_pk PRIMARY KEY (agentid) RELY DISABLE
oracle11g new Feature SPMhelps keep SQL statement attributes, allowing only performance-enhancing execution plans to be performed.Unlike the stored outlines, the SPM is designed to stabilize SQL performance while the store outlines freezes the SQL
Standard blocks are used for temporal and system tablespaces, and are also the default values for a tablespace data block. The size of the standard data block is determined by the parameter db_block_size when the database is created. To change this
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