Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Query to check the degree of parallelism on a table

How does one query an Oracle 10g database to determine the degree of parallelism for a table? My searches have proved fruitless. I would anticipate it is something like this:

select degree   
from table_metadata

where table_metadata is metadata about my table.

Since parallelism seems to be unknown consider the following statement:

create table  foo  
...  
parallel (8);  

Here parallel (8) sets the degree of parallelism to 8

like image 396
Woot4Moo Avatar asked Sep 15 '25 23:09

Woot4Moo


1 Answers

SELECT degree
  FROM user_tables
 WHERE table_name = <<some table name>>

will work assuming that you own the table. Otherwise, depending on your privileges, either use ALL_TABLES or DBA_TABLES rather than USER_TABLES and add a predicate on the OWNER column.

like image 158
Justin Cave Avatar answered Sep 17 '25 13:09

Justin Cave