Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
51Activity
0 of .
Results for:
No results containing your search query
P. 1
Oracle DBA

Oracle DBA

Ratings: (0)|Views: 539 |Likes:
Published by muku_ndan
1 ORACLE 8 OPTIMIZER HINTS.................................................................................3 1.1 USING HINTS.................................................................................................................3 1.2 ALL_ROWS..............................................................................................................3 1.3 AND-EQUAL............................................................................................................4 1.4 APPEND AND
1 ORACLE 8 OPTIMIZER HINTS.................................................................................3 1.1 USING HINTS.................................................................................................................3 1.2 ALL_ROWS..............................................................................................................3 1.3 AND-EQUAL............................................................................................................4 1.4 APPEND AND

More info:

Categories:Types, Brochures
Published by: muku_ndan on Feb 19, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

08/03/2013

pdf

text

original

 
H
NOAPPEND ....................................................................................... 41.5 CACHE ...................................................................................................................... 41.6 CHOOSE ....................................................................................................................51.7 CLUSTER .................................................................................................................. 51.8 FIRST_ROWS ........................................................................................................... 51.9 FULL ..........................................................................................................................51.10 HASH .......................................................................................................................61.11 HASH_AJ ................................................................................................................ 61.12 INDEX ..................................................................................................................... 61.13 INDEX_ASC ........................................................................................................... 71.14 INDEX_COMBINE .................................................................................................71.15 INDEX_DESC .........................................................................................................71.16 INDEX_FFS ............................................................................................................ 71.17 MERGE_AJ ............................................................................................................. 71.18 NO_MERGE ............................................................................................................ 81.19 NOCACHE .............................................................................................................. 81.20 NOPARALLEL ....................................................................................................... 81.21 ORDERED ...............................................................................................................81.22 PARALLEL ............................................................................................................. 81.23 PUSH_SUBQ ...........................................................................................................91.24 ROWID .................................................................................................................... 91.25 RULE ....................................................................................................................... 91.26 STAR ....................................................................................................................... 91.27 USE_CONCAT ........................................................................................................91.28 USE_HASH ............................................................................................................. 91.29 USE_MERGE ........................................................................................................ 101.30 USE_NL .................................................................................................................10
O
T
U
F
T
S
A
F
T
S
I
S
U
M
S
A
Q
C
U
I
E
W
C
I
O
S
I
I
S
A
L
C
A
C
I
M
J
S
S
I
S
I
S
 
D
A
T
T
I
D
T
A
I
J
P
H
W
Y
S
N
C
H
W
Y
A
M
T
J
I
T
M
-
J
I
H
J
J
C
V
I
V
Q
V
S
S
S
A
S
T
M
V
C
S
P
E
C
C
Q
C
A
S
S
S
S
T
E
P
C
A
S
Q
E
P
I
S
Q
I
T
A
V
L
T
A
P
D
P
U
I
S
F
I
T
H
C
F
E
Q
A
U
F
T
I
S
N
O
W
E
P
F
S
A
I
S
N
A
P
P
T
P
O
U
C
U
B
V
T
P
 
1Oracle 8 Optimizer Hints
1.1 Using Hints
You can use hints to alter the execution path chosen by the cost-based optimizer. Hintsare embedded within SQL statements, and only modify the execution path for thestatements in which they appear. The start of a hint is indicated by the string.Following a SELECT, DELETE, or UPDATE. A hint’s text is terminated byThe syntax for hints is almost identical to that of comments within SQL – the onlydifference is the addition of the “+” sign to indicate the start of the hint. The “+” cannot be preceded by a space.
NOTE
If a hint is specified incorrectly, the optimizer will ignore it and will not report an error.In the following sections, you’ll see descriptions of the available hints and examples of their usage. Many of the hints shown in the following sections are referenced in Chapter 11. The operations referenced by the hints are described in the “Operations” sectionearlier in this chapter.
NOTE
Many of the hints allow you to list specific table names. If you use table aliases in your query, refer to the tables by their aliases within the hints.
1.2 ALL_ROWS
The ALL_ROWS hint tells Oracle to optimize the query for the best throughput-that is, tominimize the time it takes for all rows to be returned by the query. This is the defaultaction of the Oracle optimizer, and is appropriate for batch operations. An example isshown in the following listing.The example show in the previouslisting would normally use a NESTED LOOPS operation during
select /*+ ALL_ROWS */COMPANY.Namefrom COMPANY, SALESwhere COMPANY.Company_ID = SALES.Company_IDand SALES.Period_ID =3and SALES.Sales_Tctal>1000;

Activity (51)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
irukulapati liked this
Gurumurthy Deva liked this
kalim_dba1 liked this
sivaram4u512 liked this
bhaaswanthy liked this
srinu_itg liked this
s.sreeraj07 liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->