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.