Enable and view the tracking file at ORACLE11g

Source: Internet
Author: User
Today, I did an experiment to test oracle11g data deletion and check what the tracking file has performed. Step 1: Prepare the environment, insert the data SQLcreatetablet2asselectobject_id, object_namefromdba_objectswhererownum100; Step 2: Enable the trail of the current session-Add the following to the session name

Today, I did an experiment to test oracle's 11 GB Data deletion and check what the tracking file has executed. Step 1: Prepare the environment, insert the data SQL create table t2 as select object_id, object_name from dba_objects where rownum100; Step 2: Enable the tracking of the current session-Add the following on the session name

Today, I did an experiment to test oracle's 11 GB Data deletion and check what the tracking file has executed.


Step 1: Prepare the environment and insert data

SQL> create table t2 as select object_id,object_name from dba_objects where rownum<100;

Step 2: Enable the tracking of the current session
-- Add a trace mark to the session name to facilitate searching for the trace file SQL> alter session set tracefile_identifier = 'my _ session_trace '; -- enable the current session trace SQL> alter session set SQL _trace = true; -- view the trace directory SQL> show parameter user_dump;



SETP: delete data and view the trace file:
SQL> delete from t2;99 rows deleted.SQL> commit;Commit complete.


Is the trace content of the truncated delete and commit:


OK. Now let's take a look at the information tracked by the delete statement. We can analyze the trace file.

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.