SQL> select sid from v$mystat where rownum=1;
SID
----------
11
SQL> select sid from v$mystat where rownum=1;
SQL> create table test as select * from dba_objects;
SQL> alter session force parallel dml;
SQL> update /*+parallel(t,4)*/ test t set object_name=‘ggg‘ where object_type=‘TABLE‘;
session2:
SQL> select sid from v$mystat where rownum=1;
SID
----------
8
SQL> update test t set object_name=‘ggg‘ where object_type=‘INDEX‘;--hang住