Oracle view parallel SQL statement number of concurrent

Source: Internet
Author: User

1. Execute sql:select/*+ Parallel (a,4) * * from Tf_f_user a where rownum<100000;

2. How to view the parallel number of the SQL statement:

Select T.sql_text,t.sql_id,s.sid from V$sql t,v$session s where t.sql_id=s.sql_id and t.sql_text like '%rownum<100000% ‘;

Executing the above SQL statement found to be 4 articles.

3, if the execution sql:select/*+ parallel (a,4) * * from Tf_f_user a where rownum<100000;

To view the parallel number of SQL statements:

Select T.sql_text,t.sql_id,s.sid from V$sql t,v$session s where t.sql_id=s.sql_id and t.sql_text like '%rownum<100000% ‘;

Execute the above SQL statement to find that the parallel number becomes: 40, so default parallelism is 40

Oracle view parallel SQL statement number of concurrent

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.