Oracle database Objects

Source: Internet
Author: User

The most basic of Oracle database data objects are tables and views, and others are constraints, sequences, functions, stored procedures, packages, triggers, and so on. The operation of the database can be basically attributed to the operation of the data objects, understanding and mastering the Oracle database objects is the shortest way to learn Oracle.

Schema:

    • A collection of objects in a database is called the schema, and its name is the same as the user name that owns the objects.

---such as the SYS user and the table below it are collectively referred to as a schema

Table-Segment (segment):

  • as long as the object that occupies the actual space is the segment object
  • A segment is the name of the storage method, and the table is the logical name, and the segment is the physical property hidden behind the table
  • Segment→extend→block→data file

Table-Partition (partition):

    • Multiple partitioning of table data does not make database processing faster
    • Create a partitioned table
1 Create TableK_part<Idint>2Partition byRange<Id>3 <
Partition P1ValuesLess than<5>,4Partition P2ValuesLess than<Ten>,5Partiton PmaxValuesLess than<MaxValue>6 >

Index

    • Purpose----to speed up access to data
    • Disadvantage----occupy additional space, affecting DML operational efficiency
    • By the way data is organized into
    1. B-tree B-Tree index (uniqueness, less repetitive data is more efficient)
    2. Bitmap Bitmap Index
    • Text Full-text index
      Select *  from  like ' %kik% '

View:

    • The view allows DML operations, but requires specific conditions to be met
    • Materialized view: Save the result set of the query for subsequent queries, improve the query efficiency, and the normal view is different, materialized view is a segment object, occupies only the physical space
    1. Improve query efficiency
    2. Data replication

Package-package:

    • managing functions, placing stored procedures

Sequence

    • Provide a serial number for your business
    • Features: Uniqueness, no guarantee of continuity;

Synonyms:

    • Provides an alias for an object
    • Makes it easy to make references to objects under different users

Database Link:

    • For data access and operations between databases
    • Transactional access and operation of databases guaranteed by Oracle

Tablespace-The Logical storage object:

    • Logically: You can place an object (table: Index, Partition ...). )
    • Physically: Table space-segment--extent--block--data file

Oracle database Objects

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.