Basic knowledge of Oracle

Source: Internet
Author: User

Basic knowledge of Oracle

Table space and schema)

Objects in the same solution can be stored in different tablespaces.

The same tablespace can store objects in different solutions.

Ø each tablespace is composed of one or more data files.

The total size of each data file is the storage capacity of the tablespace.

The sum of all tablespaces in the database is the storage capacity of the database.

A database consists of several tablespaces, which are logical objects such as tables, indexes, views, and stored procedures. A table consists of various segments. Each segment is divided into several data blocks, and each partition is divided into several data blocks.

Oracle wildcard

%: Any string

_: Any single character

? : Any single character

#: Table 0 ~ Any number of 9

[]: Specifies any single character in a range, for example, [2-6]

 

Connection query: If a query requires operations on multiple tables, that is, connection query.

Subquery: select statement nesting

Oracle stored procedure:

Is a set of precompiled PL/SQL statements. These statements are stored in a name and processed as a unit. A stored procedure consists of parameters, programming statements, and return values. A stored procedure can have only one return value. It is usually used to indicate whether the result of calling the stored procedure is successful or failed.

Oracle provides three types of stored procedures: procedures, functions, and packages.

Trigger:

When a specified event occurs, the PL/SQL statement defined in the trigger is executed.

The trigger contains four main parts:

Ø trigger name

Ø trigger statement

Ø trigger Constraints

Ø trigger operation

Five Oracle triggers: Statement triggers, row triggers, insteaof triggers, user event triggers, and system event triggers

Cursor: It is an entity that maps the result set and creates a position on a single row in the result set. With a cursor, you can access any row of data in the result set. The cursor has an explicit cursor and an implicit cursor. The result set obtained by executing the SELECT statement isCursor result setThe pointer to a record in the result set isCursor Position.

The main functions of a cursor:

1. Allow locating specific rows in the result set

2. retrieve one or more rows from the current position of the result set

3. Supports data modification to the row at the current position in the resultset.

4. provides SQL statements for accessing data in the resultset using scripts, stored procedures, and triggers.

 

 

 

 

 

 

 

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.