The Oracle database uses a variety of system locks to protect internal databases and memory structures that are transparent to the user.Latch (latches)A latch is a simple, low-level serialization mechanism that coordinates multiple users using
1. Create a directory directory (role System/sys)Create directory hello_file as ' D:\dupmfile ';--View all the created directory--select * from Dba_directories;--drop directory is used to delete paths.--drop directory Exp_dir;2. Create a tablespace (
One: Generate the View permission information that the department user ownsCreate or replace procedure refreshuseridofcity asCursor c_job is select Id,dept_code,dept_name from Ram_department order by dept_code;--defining cursorsC_row C_job%rowtype;--
Operators and expressionsRelational operations= equals<>,!= Not equal to> Greater than>= greater than or equal to general operation + Plus-Minus* Multiply/except: = Assignment Number= = Relationship Number.. Range|| The use of the character
There are two simple examples to illustrate the efficiency issues of "exists" and "in"1) SELECT * from T1 where exists (select 1 from T2 where t1.a=t2.a);When the T1 data volume is small and the T2 data is very large, the query efficiency of T12)
The Oracle Wm_concat (column) function allows us to use it frequently, and below teaches you how to use the Oraclewm_concat (column) function to implement a field merge if you have an Oracle Wm_concat (column) If you are interested in the use of
Dbms_random is a package that can generate random numbers or strings. There are two ways to use value () in a packageThe first without parameter returns a numeric value with a 38-bit precision ranging from 0.0 to 1.0, excluding 1.0:The second value
Working principle of ORACLE10G, oracle10g64-bit download
Internal execution of database query statements
Select * from xxx
Procedure
Analysis phase (parse)
1. Does the Shared Pool cache have this statement. If any, directly return results.
2.
Oracle memory problems
In Oracle, the memory structure mainly includes two categories: SGA and PGA. SGA represents the system global zone, and PGA represents the program global zone.
Oracle memory mainly stores the execution program code (PL/SQL,
Oracle segmented Query
You can view the segmented query examples on the Internet. The LAG and LEAD statistical functions are the most used, the Lag and Lead functions can retrieve the data of the first N rows and the value of the last N rows of the
Performance Comparison of Oracle Database date filtering methods
When developing SQL statements, filtering date segments is a common problem. How can we efficiently filter out date segments? This article demonstrates through experiments:
Method 1:
Method R)
R indicates the response time ). The specific definition is as follows:
1. Target the tasks that are critical to the business.
2. Collect properly scoped, un-aggregated profile data for each task while the task is exhibiting the behavior
Eight learning points to help you fully understand Oracle databases
TableSpace
Tablespace:
One tablespace corresponds to multiple data files (physical dbf Files)
Create a tablespace using the syntax and log on to the table using sysdba:
-- Create a
Oracle physical storage structure
The architecture of the Oracle database analyzes the composition, working process, and how the database manages and organizes data from a certain perspective, including the physical storage structure and logical
Oracle11g remote database Login
Oracle11g remote database login is simpler than any previous version,Nothing to do
1. OEM Login
Enter the remote database oem url in the browser, and change the localhost or host name to the IP address https
Oracle11gOEM unable to connect to the database instance Solution
My computer is 32-bitWin7 family EditionSystem, can such a system be installed with oracle? Yes! An error may occur. When installing oracle, everyone encounters different problems.
How to Use the Oracle optimizer to get twice the result with half the effort
1. select an appropriate Oracle optimizer
There are three optimizer types in Oracle:
A. RULE (RULE-based) B. COST (COST-based) c. CHOOSE (selectivity ).
Set the default
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