Home » RDBMS Server » Performance Tuning » parallel hint/execution
parallel hint/execution [message #162535] Fri, 10 March 2006 21:03 Go to next message
a_developer
Messages: 194
Registered: January 2006
Senior Member
If I have:

create table Mytable
parallel (degree 4)
as 
select /*+ parallel (tab, 4) */
  tab.start_dt,
  tab.end_dt
FROM 
  invoice tab;


How many processors does this use? How does this actually execute??
Re: parallel hint/execution [message #162558 is a reply to message #162535] Sat, 11 March 2006 04:26 Go to previous messageGo to next message
tarundua
Messages: 1080
Registered: June 2005
Location: India
Senior Member
a_developer wrote on Sat, 11 March 2006 08:33


How many processors does this use? How does this actually execute??




Do you really mean processors or processes??

Read the following thread....

http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96524/c20paral.htm#365
Re: parallel hint/execution [message #162645 is a reply to message #162558] Sun, 12 March 2006 16:16 Go to previous message
a_developer
Messages: 194
Registered: January 2006
Senior Member
I guess, now, I mean 'processes'...
I've gone through the link. But there was nothing there that somehow discusses a kind of code wherein there are hints both in CREATE and SELECT, does it call for 8 processes or 4?

create table Mytable
parallel (degree 4)
as 
select /*+ parallel (tab, 4) */
  tab.start_dt,
  tab.end_dt
FROM 
  invoice tab;


or how about:

INSERT /*+ parallel (a, 3) */
  INTO tabA a
SELECT /*+ parallel (b, 3) */
       *
  FROM tabB b;


Previous Topic: Oracle 8 rebuild index
Next Topic: Partitioned to Composite Partitioned
Goto Forum:
  


Current Time: Fri Apr 19 06:15:43 CDT 2024