Today, a friend asked me if I could query the physical files that were actually stored in the table or index.
Tables, indexes all have corresponding segment. Segment is the concept of physical storage, and tables and indexes are logical concepts.
A
This paper describes the method of Oracle cross-database query through the creation database link
1. Configure the local database server's Tnsnames.ora file
$vi $ORACLE _home/network/admin/tnsnames.ora
Add the following line, where Dblink is the
In the background of a news web site monitoring process, often the database began to use the swap partition, and in turn, the entire application system response is very slow, can not provide services. The server's memory is set to 4G,PGA set to 1G
Table joins in three different ways: sort merge joins (sort merge join), nested loops joins (Nested Loops join), Hash joins (hash join). 1. Sort merge joins (sort merge Join)
The execution of the sort merge join IS as follows:
* Sort the rows of
when the query to the results of a more complex processing, you can use the joint query, subqueries and so on to get the desired results. The following is a detailed list of the classic questions, hoping to enlighten the reader. 1. Title
(1) OracleservicesidDatabase service, which automatically starts and stops the database. If a database is installed, its default startup type is automatic. The service process is ORACLE.EXE, parameter file initsid.ora, log file SIDALRT.log, console
If I hadn't used the Oracle lead this time, I wouldn't have found anything so useful.
Oracle statistical analysis function lead
Syntax structure:
Leads (value_expr [, Offset][,default]) over ([Query_partition_clause] ORDER by
Definition and operation of Oracle transaction, process, and function transactions 1. The characteristics of the transaction acid:2. Atomicity (atomicity): The statement that makes up a transaction forms a logical single
Yuan, you cannot only
exists execution Process SELECT * from t1 where exists (select null from t2 where y = x)Can be understood as:For x in (SELECT * from T1)Loopif (exists (select null from t2 where y = x.x)ThenOUTPUT the RecordEnd IfEnd LoopPerformance differences for
Download the installation package from the following website and choose your own version
Http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html
Download the client and Sqlplus programs from the Oracle official website.
Take 11g as an
--Start LONG
Long is actually a string, and Oracle does not recommend that we use long, which is designed for backward compatibility, using CLOB, NCLOB, or blobs if necessary.
LONG RAW
Long Raw is used to store binary data, and Oracle does
There are two ways to implement a conditional loopA, for variable in start value ... Ends the value loop end loop;Two, while conditions loop end loop;How loop is used:One, X: = 100;LOOPX: = x + 10;IF X > 1000 THENEXIT;End IF LOOP;Y: = X;Two, X: = 100
Oracle rownum pseudo fields are used more frequently, especially in pagination, but because of its particularity many people may not understand its actual behavior, the network has many articles to introduce this rownum usage, but many are speaking
First, the same version number is guaranteed. Then know the administrative user and password of the system.1, import the same way as exported.EXP username/Password @ instance name File=d:\815.dmp full=yPauseExp Ecology/[email protected]
Oracle's MySQL repository encounters a pit summaryRecently in the project of Oracle to MySQL, the pit is really much, especially the storage process, has not touched the type of knowledge, and recently almost finished the summary. Hope to help some
Export and Export user objects:1. Plsql log in to the database2. Query the default tablespace for the current user (take DEMO1 account as an example)With DEMO1 user login plsql, in the window of the users branch to find the current user name DEMO1,
(a) What is a constraintConstraint is a mandatory requirement at the table levelThere are five types of constraints:
NOT null: Non-empty
Unique: the only
PRIMARY Key: Primary key
FOREIGN Key: Foreign key
Check: Checking
Oracle optimizes or replaces several words in, exists, and union. Test No problem!Select the appropriate statement according to the actual situation. Assume exponential, or full table scan, in and not in should be used with caution. Doing so will
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