Oracle Management 7

Source: Internet
Author: User
Tags local time

Revocation Management

What is undo data:

1. Transaction fallback: No transaction submitted can be rollback

2. Transaction recovery: When the database crashes, the incorrect data of the disk is restored to the pre-transaction

3. Read consistency: The queried record has a transaction occupation, to the rollback segment to find the pre-change mirror

4. Flashback data: Constructing historical data from a rollback segment

Transaction and Revocation data:

Redo and Undo:

AUM:

3 parameters, two table space properties

Undo_management=auto the Segment management mode of the rollback table space segment, the administrator only needs to have sufficient tablespace capacity, and Oracle automatically manages the number of extended rollback segments. Only one undo table space can be used.

Undo_tablespace: can only be used in automatic management mode. Indicates which undo table space to use

undo_retention=900: The unit is: seconds

The time that the old mirror remains in the rollback segment after the commit. Extra time to be retained after submission

The non-mandatory fallback hold time. (The old image will be overwritten if the rollback space is not enough)

Autoextend: Table Space Auto-expansion

Mandatory maintenance: But the space requirements are large, should be used with caution. (10g start support)

Alter Tablespace UNDOTABS1 RETENTION GUARANTEE;

Select Tablespace_name,retention from Dba_tablespaces;

Undo_retention specifies (in seconds) how long already committed undo information was to be retained. The only time of must set this parameter are when:

? The undo Tablespace has the autoextend option enabled

? You want to set undo retention for LOBs

? You want to guarantee retention

Undo Advisor:

Scheduling jobs

$ PS-EF | grep CJQ

Sql> Show Parameter job_queue_processes

Background pre-set automation management jobs:

Custom job:

Sql> CREATE TABLE Session_history (snap_time timestamp with local time zone, num_session number);

Create Job in EM:

Using Plsql blocks:

Declare

Session_count number;

Begin

Select COUNT (*) into Session_count from V$session;

INSERT into session_history values (Systimestamp, session_count);

Commit

End

Global support

$ VI. bash_profile

#export Nls_lang=american_america. Al32utf8

#export nls_date_format= ' Yyyy-mm-dd hh24:mi:ss '

$ unset Nls_lang

$ unset Nls_date_format

Sql> select Sysdate from dual;

Oracle Management 7

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.