Advertisement

12.21.2007 at 08:26AM PST, ID: 23038461
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

Performance Tuning probleem

Asked by COANetwork in Oracle 10.x, Databases Miscellaneous, Oracle Database

Tags: , , ,

I have query wihich is taking very less time in oracle 8i with 50GB data.I have tried to run the same query in 10g with 30GB is taking more time than 8i.
I have also tuned the query to utilize the indexes But there is no improvement.
One thing i observed here is in oracle10g there is a cost based optimizer and in 8i rule based and cost based is available.I have tuned the query in different ways but the cost is showing same before tuning and after tuning.
I am pasting the query here

Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
SELECT prty.prty_key_txt      party_num,
  2              prty.prty_sptt_cde      party_type,
  3              clie.clie_sys_clie_num  client_number,
  4              ptcr.ptcr_establish_dte  party_establish_dte,
  5              ptcr.ptcr_terminate_dte  party_terminate_dte,
  6              ptcr.ptcr_sprl_cde      party_role
  7      from vw_acti acti,ai_clie clie,ai_ptcr ptcr,ai_prty prty
  8   where prty.prty_key_txt=ptcr.ptcr_prty_key_txt
  9   and ptcr.ptcr_terminate_dte is null
 10   and ptcr.ptcr_clie_key_txt=clie.clie_key_txt
 11   and ptcr.ptcr_sprl_cde=decode(clie.clie_sclt_cde,1,2,3,1,0)
 12   and clie.clie_sclt_cde      <> 2
 13   and clie.clie_deceased_ind  = 0
 14   AND clie.clie_ssts_cde      = 1
 15   AND clie.clie_key_txt       = acti.acti_clie_key_txt
 16   AND acti.acti_sys_acct_num  = :p_acti_sys_acct_num;
 
please respond to my query.I have tried all the options.There is no use of my options
I am also pasting the explain plan of the query.
PLAN_TABLE_OUTPUT                                                               
--------------------------------------------------------------------------------
                                                                                
--------------------------------------------------------------------------------
------------                                                                    
                                                                                
| Id  | Operation                          | Name                  | Rows  | Bytes | Cost  |                                                                    
                                                                                
--------------------------------------------------------------------------------------------                                                                    
                                                                                
|   0 | SELECT STATEMENT                   |                       | 31303 |  3576K| 40790 |                                                                    
                                                                                
|   1 |  NESTED LOOPS                      |                       | 31303 |  3576K| 40790 |                                                                    
                                                                                
|   2 |   NESTED LOOPS                     |                       | 31408 |  3036K| 31359 |                                                                    
                                                                                
|   3 |    NESTED LOOPS                    |                       | 31409 |  1717K| 21927 |                                                                    
                                                                                
|   4 |     VIEW                           | VW_ACTI               | 32414 |   759K| 12194 |                                                                    
                                                                                
|   5 |      UNION-ALL                     |                       |       |       |       |                                                                    
                                                                                
|   6 |       NESTED LOOPS                 |                       |     1 |    73 |     3 |                                                                    
                                                                                
|   7 |        NESTED LOOPS                |                       |     1 |    58 |     2 |                                                                    
 
                                                                                
|   8 |         TABLE ACCESS BY INDEX ROWID| AI_BPRM               |     1 |    19 |     1 |                                                                    
                                                                                
|   9 |          INDEX UNIQUE SCAN         | PK_BPRM               |     1 |       |     1 |                                                                    
                                                                                
|  10 |         TABLE ACCESS BY INDEX ROWID| AI_ACTI               |     1 |    39 |     1 |                                                                    
                                                                                
|  11 |          INDEX RANGE SCAN          | XIE_ACTI_SYS_ACCT_NUM |     1 |       |     1 |                                                                    
                                                                                
|  12 |        INDEX UNIQUE SCAN           | PK_ASUM_ODS_1         |     1 |    15 |     1 |                                                                    
                                                                                
|  13 |       NESTED LOOPS                 |                       |     1 |    73 |     3 |                                                                    
                                                                                
|  14 |        NESTED LOOPS                |                       |     1 |    58 |     2 |                                                                    
                                                                                
|  15 |         TABLE ACCESS BY INDEX ROWID| AI_BPRM               |     1 |    19 |     1 |                                                                    
                                                                                
|  16 |          INDEX UNIQUE SCAN         | PK_BPRM               |     1 |       |     1 |                                                                    
                                                                                
|  17 |         TABLE ACCESS BY INDEX ROWID| AI_ACTI               |     1 |    39 |     1 |                                                                    
                                                                                
|  18 |          INDEX RANGE SCAN          | XIE_ACTI_SYS_ACCT_NUM |     1 |       |     1 |                                                                    
 
                                                                              
|  19 |        INDEX UNIQUE SCAN           | PK_ASUM_ODS_2         |     1 |    15 |     1 |                                                                    
                                                                                
|  20 |       NESTED LOOPS                 |                       |     1 |    73 |     3 |                                                                    
                                                                                
|  21 |        NESTED LOOPS                |                       |     1 |    58 |     2 |                                                                    
                                                                                
|  22 |         TABLE ACCESS BY INDEX ROWID| AI_BPRM               |     1 |    19 |     1 |                                                                    
                                                                                
|  23 |          INDEX UNIQUE SCAN         | PK_BPRM               |     1 |       |     1 |                                                                    
                                                                                
|  24 |         TABLE ACCESS BY INDEX ROWID| AI_ACTI               |     1 |    39 |     1 |                                                                    
                                                                                
|  25 |          INDEX RANGE SCAN          | XIE_ACTI_SYS_ACCT_NUM |     1 |       |     1 |                                                                    
                                                                                
|  26 |        INDEX UNIQUE SCAN           | PK_ASUM_IGSI_1        |     1 |    15 |     1 |                                                                    
                                                                                
|  27 |       NESTED LOOPS                 |                       |     1 |    73 |     3 |                                                                    
                                                                                
|  28 |        NESTED LOOPS                |                       |     1 |    58 |     2 |                                                                    
                                                                                
|  29 |         TABLE ACCESS BY INDEX ROWID| AI_BPRM               |     1 |    19 |     1 |                                                                    
 
                                                                               
|  30 |          INDEX UNIQUE SCAN         | PK_BPRM               |     1 |       |     1 |                                                                    
                                                                                
|  31 |         TABLE ACCESS BY INDEX ROWID| AI_ACTI               |     1 |    39 |     1 |                                                                    
                                                                                
|  32 |          INDEX RANGE SCAN          | XIE_ACTI_SYS_ACCT_NUM |     1 |       |     1 |                                                                    
                                                                                
|  33 |        INDEX UNIQUE SCAN           | PK_ASUM_IGSI_2        |     1 |    15 |     1 |                                                                    
                                                                                
|  34 |     TABLE ACCESS BY INDEX ROWID    | AI_CLIE               |     1 |    32 |     1 |                                                                    
                                                                                
|  35 |      INDEX UNIQUE SCAN             | PK_CLIE               |     1 |       |     1 |                                                                    
                                                                                
|  36 |    TABLE ACCESS BY INDEX ROWID     | AI_PTCR               |     1 |    43 |     1 |                                                                    
                                                                                
|  37 |     INDEX RANGE SCAN               | XIE_PTCR_CLIE_KEY_TXT |     1 |       |     1 |                                                                    
                                                                                
|  38 |   TABLE ACCESS BY INDEX ROWID      | AI_PRTY               |     1 |    18 |     1 |                                                                    
                                                                                
|  39 |    INDEX UNIQUE SCAN               | PK_PRTY               |     1 |       |     1 |                                                                    
                                                                                
--------------------------------------------------------------------------------------------
[+][-]12.21.2007 at 08:46AM PST, ID: 20514744

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Oracle 10.x, Databases Miscellaneous, Oracle Database
Tags: Oracle, Oracle10g, 10.2.0.2, Installed on AIX plat form
Sign Up Now!
Solution Provided By: schwertner
Participating Experts: 4
Solution Grade: A
 
 
[+][-]12.21.2007 at 08:50AM PST, ID: 20514780

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12.21.2007 at 09:51AM PST, ID: 20515162

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12.27.2007 at 02:42AM PST, ID: 20533267

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.21.2008 at 06:14PM PST, ID: 20711406

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.25.2008 at 07:22PM PDT, ID: 22576050

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09.29.2008 at 03:04PM PDT, ID: 22601233

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628