1. In Oracle, the data table alias cannot be added as.
Such as:
Select A.appname from AppInfo a;--correct
Select A.appname from appinfo as a;--error
Perhaps, is afraid and Oracle in the stored procedure in the key word as conflict problem bar
2.
First, related testing
(1) Create a test table
Sql> CREATE TABLE TT (ID number);
Table created.
At this point, the table is not parsed, it is the original data, that is, 8 blocks of data.
Sql>select segment_name,segment_type,blocks from
First, view the user index in the system table
In Oracle, the system table is created automatically when the database is installed, containing all of the database's data dictionaries, the definitions of stored procedures, packages, functions, and
As we all know, the quality of database design is directly related to the efficiency of database operation. According to the author's experience, to enhance the database performance, reasonable database design, than upgrade the server hardware
HINT is often used in SQL statement optimization, so let's take a look at the 30 uses of "HINT" in Oracle during the SQL optimization process:
1./*+all_rows*/
It is shown that the cost-based optimization method is chosen for the statement block,
Oracle Tablespace Transfer is a new addition to 8i, a fast way to move data between databases, by putting a number
The format data file on the library is attached to another database, rather than exporting the data as a DMP file, which
In some
I/O includes two parts, read and write, to introduce the generation of write operations in Oracle databases first.
2.1. Write
Before introducing write operations, simply look at the physical structure of Oracle: Oracle's physical files include the
The Oracle physical structure is a collection of physical operating system files.
Control file (parameter file Init.ora records the location of the control file)
Binary file, the control file is specified by the parameter control_files, the format
A stored procedure is a program block stored in a data dictionary that can be shared among different users and applications, and enables optimization and reuse of programs.
First, the creation and execution of stored procedures
1. Create stored
When we look up the Chinese dictionary, we can quickly find the word we are looking for because the dictionary is indexed. Similarly, in order to get data efficiently, we need to index a column in a table when the volume of data is large.
The role
1. Definition
Triggers: associated with a table or database event, a trigger defined on a table triggers execution when a trigger event occurs.
Trigger Trigger Order
1 execute BEFORE statement level trigger;
2 for each row affected by the
Oracle Partial Recovery method
We sometimes need to do a recovery test, however, because the target database is too large, if the full recovery of data files, then need a lot of storage space, but if not to do the recovery test, and how the
1. Parameterized cursors
Function: Open the same cursor multiple times, returning a different result set. The parameters of the cursor Declarations section must correspond to the arguments provided in the Open statement (quantity and data type).
Locking guarantees that when a user is updating a row of data in a table, other users cannot update the same row of data at the same time, and they cannot delete or modify the tables that are updated.
Locking is divided into two levels: Row level
Application Scenario: Large data
--1), create a partition table
CREATE Table A
(Statis_date varchar2 (8),
ID number,
Name VARCHAR2 (50),
Salary number
)
Partition by list (statis_date)
(Partition day_20121130 values (' 20121130 '),
Starting with Oracle9i, index and uniqueness constraints when primary key creation can be defined independently when the table is being built.
Subsequently, the constraint can be individually drop, and the index can be preserved. This is one of
1. RAID definition
RAID, full name Redundant array of inexpensive disks, Chinese name is redundant array of inexpensive disks. RAID can be divided into soft raid and hard raid, soft raid is the software to achieve multiple hard disk redundancy.
1 indexes in SQL Server
An index is a disk structure that is associated with a table or view to speed up the retrieval of rows from a table or view. An index contains keys that are generated by one or more columns in a table or view. These keys are
The Rman Page command allows users to determine the current recoverable state of the database and to provide specific information about the database backup.
1. Specify data files that have not been backed up recently
The query does not have a
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