An index can not being used and still afect a query performance?
Hi i have a query with a high cost so i created two indexes, A and B, to improve its performance.
After the creation of the indexes when i reviewed the execution plan of the query the cost had been reduced, but i noticed that the index B is not being used,
and if i try to force the query to use index B with a HINT the cost increases, so i decided to drop the index B.
Once i droped the index B i checked the execution plan again and then i noticed that the cost of the query increased, if i recreate the index B the explain plan
shows a lower cost even though its not being used by the execution plan.
Does anyone know why is this happening?
An index can, not being used by the execution plan and still affect a query performance?
user11173393 wrote:
Hi i have a query with a high cost so i created two indexes, A and B, to improve its performance.
After the creation of the indexes when i reviewed the execution plan of the query the cost had been reduced, but i noticed that the index B is not being used,
and if i try to force the query to use index B with a HINT the cost increases, so i decided to drop the index B.
Once i droped the index B i checked the execution plan again and then i noticed that the cost of the query increased, if i recreate the index B the explain plan
shows a lower cost even though its not being used by the execution plan.
Does anyone know why is this happening?
An index can, not being used by the execution plan and still affect a query performance?You said that is what is happening, & I believe you.
Similar Messages
-
How to tell which Indexes are not being used?
We are a large development shop and have many customers. Our database design is very generic so that it works for all of our customers. Each night we use an SSIS ETL process to bring down large amounts of data from the iSeries into SQL. One
particularily large customer takes a very long time and we are looking for ways to speed up thier data import and transformation. I would like to see which indexes he does not use and possibly remove them. Each night we fully repopulate hundreds of staging
and ods tables and incrementally delete and repopulate the days work for a handful of history type tables. Removing some indexes off of the large tables could make a big impact.
How can i tell which indexes the customer does not use?> IDENTIFYING UNUSED INDEXES IN A SQL SERVER DATABASE
Just because an index is not being used does not necessarily mean it should be removed.
> Index This: All About SQL Server Indexes
sp_BlitzIndex
José Diz Belo Horizonte, MG - Brasil -
my battery drains even when iphone is not being used. It is a relatively new phone and this battery draining just started and I can't figure out why????
Yes, thank you. My apologies, I was typing one handed and did not add that.
Anyway, I have tried deleting the cache, deleting my pics and then re-syncing, etc. and nothing is working This is very frustrating, as I had no problems up until about 2 weeks ago, and now all of a sudden, I have this issue......UGH! -
I have the opportunity to buy CS3, but there is no serial number with it. Is there a way to find the serial number or get one for the software?
LOL well thank you for that detailed answer to my question.
Guess I'll give it a miss then -
Index not being used in access path
Hi,
I have been trying to rewrite a query which currently is taking almost 1min and 25 secs to execute. The database version is 11.1.0.7.
The query is -
SELECT COUNT(1)
FROM TAB1 p
WHERE p.ACODE = 24377
AND NOT EXISTS (SELECT 1 FROM TAB2 ph where ph.PKey = p.AKey )
AND NOT EXISTS (SELECT 1 FROM TAB3 phs where phs.PKey = p.AKey )
AND p.rflag = 'Y';
The table originally didn't have an index on p.ACODE. So, I created this index and set it to visible and set the optimizer_use_invisible_indexes parameter also to TRUE. I set the monitoring on this index too. Even though I have created the index on the ACODE column, the access path doesn't use it. Can someone please tell me why this is not being used.
Below is the explain plan for the sql stmt and the usage of the index -
I have changed the actual table and column names -
SQL> SELECT COUNT(1)
2 FROM TAB1 p
3 WHERE p.ACODE = 24377
4 AND NOT EXISTS (SELECT 1 FROM TAB2 ph where ph.PKey = p.AKey )
5 AND NOT EXISTS (SELECT 1 FROM TAB3 phs where phs.PKey = p.AKey )
6 AND p.rflag = 'Y';
COUNT(1)
1
SQL> explain plan for
2 SELECT COUNT(1)
3 FROM TAB1 p
4 WHERE p.ACODE = 24377
5 AND NOT EXISTS (SELECT 1 FROM TAB2 ph where ph.PKey = p.AKey )
6 AND NOT EXISTS (SELECT 1 FROM TAB3 phs where phs.PKey = p.AKey )
7 AND p.rflag = 'Y';
Explained.
Elapsed: 00:00:00.02
SQL> @$ORACLE_HOME/rdbms/admin/utlxpls.sql
PLAN_TABLE_OUTPUT
Plan hash value: 3942424611
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 87 | 214K (2)| 00:42:57 |
| 1 | SORT AGGREGATE | | 1 | 87 | | |
|* 2 | HASH JOIN ANTI | | 1 | 87 | 214K (2)| 00:42:57 |
|* 3 | HASH JOIN ANTI | | 1 | 60 | 209K (2)| 00:41:56 |
|* 4 | TABLE ACCESS FULL | TAB1 | 1 | 32 | 209K (2)| 00:41:55 |
| 5 | INDEX FAST FULL SCAN| PK_TAB3 | 29918 | 818K| 53 (0)| 00:00:01 |
| 6 | INDEX FAST FULL SCAN | PK_TAB2 | 3199K| 82M| 5059 (1)| 00:01:01 |
Predicate Information (identified by operation id):
2 - access("PH"."PKey"="P"."AKey")
3 - access("PHS"."PKey"="P"."AKey")
4 - filter(TO_NUMBER("P"."ACODE")=24377 AND "P"."rflag"='Y')
20 rows selected.
Elapsed: 00:00:00.03
SQL> select index_name,VISIBILITY from user_indexes where index_name='IDX_TAB1_ACODE';
INDEX_NAME VISIBILIT
IDX_TAB1_ACODE VISIBLE
Elapsed: 00:00:00.01
SQL> show parameter visible
NAME TYPE VALUE
optimizer_use_invisible_indexes boolean TRUE
SQL>
SQL> SELECT v.index_name, v.table_name,
v.monitoring, v.used,
start_monitoring, end_monitoring
FROM v$object_usage v, dba_indexes u
WHERE v.index_name = u.index_name
AND v.index_name = 'IDX_TAB1_ACODE';
INDEX_NAME TABLE_NAME MON USE START_MONITORING END_MONITORING
IDX_TAB1_ACODE TAB1 YES NO 05/26/2010 14:13:41
Elapsed: 00:00:00.10
Edited by: user12158503 on May 26, 2010 1:24 PMThanks Centinul.
I apologize for posting in both sections. I put it in the Database General too because I thought I originally posted it in the wrong section.
The index was not being used because it was doing the implicit type conversion. When I enclosed it in quotes, it returns the result within a second and it uses the index.(whereas without the index it takes around 1min 25 sec)
Here is the explain plan and execution time after enclosing it in quotes -
SQL> explain plan for
2 SELECT COUNT(1)
3 FROM TAB1 p
4 WHERE p.AKey = '24377'
5 AND NOT EXISTS (SELECT 1 FROM TAB2 ph where ph.PKey = p.AgilityKey )
6 AND NOT EXISTS (SELECT 1 FROM TAB3 phs where phs.PKey = p.AgilityKey )
7 AND p.rflag = 'Y';
Explained.
Elapsed: 00:00:00.02
SQL> @$ORACLE_HOME/rdbms/admin/utlxpls.sql
PLAN_TABLE_OUTPUT
Plan hash value: 2008452282
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 87 | 5134 (1)| 00:01:02 |
| 1 | SORT AGGREGATE | | 1 | 87 | | |
|* 2 | HASH JOIN ANTI | | 1 | 87 | 5134 (1)| 00:01:02 |
|* 3 | HASH JOIN ANTI | | 1 | 60 | 60 (2)| 00:00:01 |
|* 4 | TABLE ACCESS BY INDEX ROWID| TAB1 | 1 | 32 | 6 (0)| 00:00:01 |
|* 5 | INDEX RANGE SCAN | IDX_TAB1_AKey | 4 | | 1 (0)| 00:00:01 |
| 6 | INDEX FAST FULL SCAN | PK_TAB3 | 29918 | 818K| 53 (0)| 00:00:01 |
| 7 | INDEX FAST FULL SCAN | PK_TAB2 | 3199K| 82M| 5059 (1)| 00:01:01 |
Predicate Information (identified by operation id):
2 - access("PH"."PKey"="P"."AGILITYKEY")
3 - access("PHS"."PKey"="P"."AGILITYKEY")
4 - filter("P"."rflag"='Y')
5 - access("P"."AKey"='24377')
22 rows selected.
Elapsed: 00:00:00.02
SQL> SELECT COUNT(1)
2 FROM TAB1 p
3 WHERE p.AKey = '24377'
4 AND NOT EXISTS (SELECT 1 FROM TAB2 ph where ph.PKey = p.AgilityKey )
5 AND NOT EXISTS (SELECT 1 FROM TAB3 phs where phs.PKey = p.AgilityKey )
6 AND p.rflag = 'Y';
COUNT(1)
1
Elapsed: 00:00:00.52
Can you give me some tips on where I could read about learning to understand the explain plan. I did read a few articles which did help me, but not much. I am looking for something in detail. -
Index not being used (again)
Dear All,
Having real trouble these days with the indexes.
I have a query below:
SELECT MAX(A.ID) PRID,TIMEPERIODID,RESOURCEID
FROM TIMESHEET A, TIMEPERIOD B
WHERE A.STATUS IN (1,3,4) AND A.ISADJUSTMENT = 0
AND A.timeperiodid = B.id
AND TRUNC(B.PSTART)>=TRUNC(NEXT_DAY(SYSDATE-28,'MONDAY'))
GROUP BY TIMEPERIODID,RESOURCEID
The explain plan for this query is as below:
Plan COST
SELECT STATEMENT 2720
SORT GROUP BY 2720
HASH JOIN 2520
TABLE ACCESS FULL TIMEPERIOD 2
TABLE ACCESS FULL TIMESHEET 2516As you can see, table access full on timesheet table. However, I have an index on timeperiodid column of the table. Despite using it as hint, the index is not being used. Is it that indexes are not used with GROUP BY?
Please help.
Thanks,and the explain plan:
Plan
SELECT STATEMENT ALL_ROWSCost: 18,747 Bytes: 105 Cardinality: 1
34 SORT GROUP BY Cost: 18,742 Bytes: 105 Cardinality: 1
33 FILTER
21 NESTED LOOPS Cost: 18,727 Bytes: 105 Cardinality: 1
18 HASH JOIN Cost: 18,722 Bytes: 415 Cardinality: 5
11 TABLE ACCESS BY INDEX ROWID TIMEENTRY Cost: 14 Bytes: 144 Cardinality: 9
10 NESTED LOOPS Cost: 15,980 Bytes: 15,552 Cardinality: 243
8 HASH JOIN Cost: 15,588 Bytes: 1,344 Cardinality: 28
3 HASH JOIN Cost: 4,050 Bytes: 24,876,930 Cardinality: 829,231
1 TABLE ACCESS FULL TEAM Cost: 3,394 Bytes: 879,444 Cardinality: 48,858
2 INDEX FAST FULL SCAN NON-UNIQUE TASK2 Cost: 396 Bytes: 11,656,104 Cardinality: 971,342
7 VIEW index$_join$_003 Cost: 10,376 Bytes: 24,981,984 Cardinality: 1,387,888
6 HASH JOIN Cost: 15,588 Bytes: 1,344 Cardinality: 28
4 INDEX FAST FULL SCAN UNIQUE ASSIGNMENT1 Cost: 3,835 Bytes: 24,981,984 Cardinality: 1,387,888
5 INDEX FAST FULL SCAN UNIQUE ASSIGNMENT4 Cost: 3,835 Bytes: 24,981,984 Cardinality: 1,387,888
9 INDEX RANGE SCAN NON-UNIQUE TIMEENTRY5 Cost: 2 Cardinality: 12
17 VIEW USER25. Cost: 2,741 Bytes: 553,812 Cardinality: 29,148
16 SORT GROUP BY Cost: 2,741 Bytes: 1,107,624 Cardinality: 29,148
15 HASH JOIN Cost: 2,540 Bytes: 1,107,624 Cardinality: 29,148
13 TABLE ACCESS BY INDEX ROWID TIMEPERIOD Cost: 1 Bytes: 140 Cardinality: 10
12 INDEX RANGE SCAN NON-UNIQUE TIMEPERIOD2 Cost: 1 Cardinality: 2
14 TABLE ACCESS FULL TIMESHEET Cost: 2,537 Bytes: 12,040,224 Cardinality: 501,676
20 TABLE ACCESS BY INDEX ROWID TIMEPERIOD Cost: 1 Bytes: 22 Cardinality: 1
19 INDEX UNIQUE SCAN UNIQUE TIMEPERIOD1 Cardinality: 1
32 NESTED LOOPS Cost: 5 Bytes: 75 Cardinality: 1
29 NESTED LOOPS Cost: 4 Bytes: 63 Cardinality: 1
27 NESTED LOOPS Cost: 2 Bytes: 37 Cardinality: 1
25 NESTED LOOPS Cost: 2 Bytes: 31 Cardinality: 1
23 TABLE ACCESS BY INDEX ROWID OBS_TYPES Cost: 1 Bytes: 18 Cardinality: 1
22 INDEX UNIQUE SCAN UNIQUE OBS_TYPES_U2 Cardinality: 1
24 INDEX RANGE SCAN NON-UNIQUE PROJECT_INDX1 Cost: 1 Bytes: 13 Cardinality: 1
26 INDEX UNIQUE SCAN UNIQUE PROJECTS_PK Bytes: 6 Cardinality: 1
28 INDEX RANGE SCAN NON-UNIQUE OBS_ASSOCIATIONS_N3 Cost: 2 Bytes: 26 Cardinality: 1
31 TABLE ACCESS BY INDEX ROWID OBS_UNITS Cost: 1 Bytes: 12 Cardinality: 1
30 INDEX UNIQUE SCAN UNIQUE OBS_UNITS_U1 Cardinality: 1 -
Index not being used in group by.
Here is the scenario with examples. Big table 333 to 500 million rows in the table. Statistics are gathered. Histograms are there. Index is not being used though. Why?
CREATE TABLE "XXFOCUS"."some_huge_data_table"
( "ORG_ID" NUMBER NOT NULL ENABLE,
"PARTNERID" VARCHAR2(30) NOT NULL ENABLE,
"EDI_END_DATE" DATE NOT NULL ENABLE,
"CUSTOMER_ITEM_NUMBER" VARCHAR2(50) NOT NULL ENABLE,
"STORE_NUMBER" VARCHAR2(10) NOT NULL ENABLE,
"EDI_START_DATE" DATE,
"QTY_SOLD_UNIT" NUMBER(7,0),
"QTY_ON_ORDER_UNIT" NUMBER(7,0),
"QTY_ON_ORDER_AMT" NUMBER(10,2),
"QTY_ON_HAND_AMT" NUMBER(10,2),
"QTY_ON_HAND_UNIT" NUMBER(7,0),
"QTY_SOLD_AMT" NUMBER(10,2),
"QTY_RECEIVED_UNIT" NUMBER(7,0),
"QTY_RECEIVED_AMT" NUMBER(10,2),
"QTY_REQUISITION_RDC_UNIT" NUMBER(7,0),
"QTY_REQUISITION_RDC_AMT" NUMBER(10,2),
"QTY_REQUISITION_RCVD_UNIT" NUMBER(7,0),
"QTY_REQUISITION_RCVD_AMT" NUMBER(10,2),
"INSERTED_DATE" DATE,
"UPDATED_DATE" DATE,
"CUSTOMER_WEEK" NUMBER,
"CUSTOMER_MONTH" NUMBER,
"CUSTOMER_QUARTER" NUMBER,
"CUSTOMER_YEAR" NUMBER,
"CUSTOMER_ID" NUMBER,
"MONTH_NAME" VARCHAR2(3),
"ORG_WEEK" NUMBER,
"ORG_MONTH" NUMBER,
"ORG_QUARTER" NUMBER,
"ORG_YEAR" NUMBER,
"SITE_ID" NUMBER,
"ITEM_ID" NUMBER,
"ITEM_COST" NUMBER,
"UNIT_PRICE" NUMBER,
CONSTRAINT "some_huge_data_table_PK" PRIMARY KEY ("ORG_ID", "PARTNERID", "EDI_END_DATE", "CUSTOMER_ITEM_NUMBER", "STORE_NUMBER")
USING INDEX TABLESPACE "xxxxx" ENABLE,
CONSTRAINT "some_huge_data_table_CK_START_DATE" CHECK (edi_end_date - edi_start_date = 6) ENABLE
SQL*Plus: Release 11.2.0.2.0 Production on Fri Sep 14 12:11:16 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> SELECT num_rows FROM user_tables s WHERE s.table_name = 'some_huge_data_table';
NUM_ROWS
333338434
SQL> SELECT MAX(edi_end_date)
2 FROM some_huge_data_table p
3 WHERE p.org_id = some_number
4 AND p.partnerid = 'some_string';
MAX(EDI_E
13-MAY-12
Elapsed: 00:00:00.00
SQL> explain plan for
2 SELECT MAX(edi_end_date)
3 FROM some_huge_data_table p
4 WHERE p.org_id = some_number
5 AND p.partnerid = 'some_string';
Explained.
SQL> /
PLAN_TABLE_OUTPUT
Plan hash value: 2104157595
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 22 | 4 (0)| 00:00:01 |
| 1 | SORT AGGREGATE | | 1 | 22 | | |
| 2 | FIRST ROW | | 1 | 22 | 4 (0)| 00:00:01 |
|* 3 | INDEX RANGE SCAN (MIN/MAX)| some_huge_data_table_PK | 1 | 22 | 4 (0)| 00:00:01 |
SQL> explain plan for
2 SELECT MAX(edi_end_date),
3 org_id,
4 partnerid
5 FROM some_huge_data_table
6 GROUP BY org_id,
7 partnerid;
Explained.
PLAN_TABLE_OUTPUT
Plan hash value: 3950336305
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 2 | 44 | 1605K (1)| 05:21:03 |
| 1 | HASH GROUP BY | | 2 | 44 | 1605K (1)| 05:21:03 |
| 2 | TABLE ACCESS FULL| some_huge_data_table | 333M| 6993M| 1592K (1)| 05:18:33 |
------------------------------------------------------------------------------- Why wouldn't it use the index in the group by? If I write a loop to query for different partnerid (there are only three), the whole things takes less than a second. Any help is appreciated.
btw, I gave the index hint too. Didn't work. Version mentioned in the example.
Edited by: RPuttagunta on Sep 14, 2012 11:24 AM
Edited by: RPuttagunta on Sep 14, 2012 11:26 AM
the actual names are 'scrubbed' for obvious reasons. Don't worry, I didn't name the tables in mixed case.Jonathan,
Thank you for your input. Forgot about this issue since ended up creating an MV since, the view was slower. But either way, I am curious. Here are the results for your questions.
SQL> SELECT last_analyzed,
2 blocks
3 FROM user_tables s
4 WHERE s.table_name = 'huge_data';
LAST_ANAL BLOCKS
14-MAY-12 5869281
SQL> SELECT last_analyzed,
2 leaf_blocks
3 FROM user_indexes i
4 WHERE i.table_name = 'huge_data';
LAST_ANAL LEAF_BLOCKS
14-MAY-12 2887925
SQL>It looks like stale statistics from the last_analyzed, but, they really aren't. This is a development database and that was the last time around which it was refreshed. And the stats are right (at least the approx_no_of_blocks and num_rows etc).
No other data came into the table after.
Also,
1). I thought I don't have any particular optimizer parameters, but, checking back I do. fastfull_scan_enabled = false. Could that be it?
SQL> SELECT a.name,
2 a.value,
3 a.display_value,
4 a.isdefault,
5 a.isses_modifiable
6 FROM v$parameter a
7 WHERE a.name LIKE '\_%' ESCAPE '\';
NAME VALUE DISPLAY_VALUE ISDEFAULT ISSES
_disable_fast_validate TRUE TRUE FALSE TRUE
_system_trig_enabled TRUE TRUE FALSE FALSE
_sort_elimination_cost_ratio 5 5 FALSE TRUE
_b_tree_bitmap_plans FALSE FALSE FALSE TRUE
_fast_full_scan_enabled FALSE FALSE FALSE TRUE
_index_join_enabled FALSE FALSE FALSE TRUE
_like_with_bind_as_equality TRUE TRUE FALSE TRUE
_optimizer_autostats_job FALSE FALSE FALSE FALSE
_connect_by_use_union_all OLD_PLAN_MODE OLD_PLAN_MODE FALSE TRUE
_trace_files_public TRUE TRUE FALSE FALSE
10 rows selected.
SQL>As, you might have guessed, I am not the dba for this db. Should pay more attention to these optimizer parameters.
I know why we had to set connectby_use_union_all hint (due to a bug in 11gR2).
Also, vaguely remember something about the disablefast_validate (something about another major db bug in 11gR2 again), but, not sure why those other parameters are set.
2). Also, I have tried this
SQL> SELECT /*+ index_ss(huge_data_pk) gather_plan_statistics*/
2 MAX(edi_end_date),
3 org_id,
4 partnerid
5 FROM huge_data
6 GROUP BY org_id,
7 partnerid;
MAX(EDI_E ORG_ID PARTNERID
2 rows
SQL> SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY_CURSOR(null,null,'ALLSTATS LAST'));
PLAN_TABLE_OUTPUT
SQL_ID f3kk8skdyvz7c, child number 0
SELECT /*+ index_ss(huge_data_pk) gather_plan_statistics*/
MAX(edi_end_date), org_id, partnerid FROM huge_data GROUP BY
org_id, partnerid
Plan hash value: 3950336305
| Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers | Reads | OMem | 1Mem | Used-Mem |
PLAN_TABLE_OUTPUT
| 0 | SELECT STATEMENT | | 1 | | 2 |00:05:11.31 | 5905K| 5897K| | | |
| 1 | HASH GROUP BY | | 1 | 2 | 2 |00:05:11.31 | 5905K| 5897K| 964K| 964K| 2304K (0)|
| 2 | TABLE ACCESS FULL| hug_DATA | 1 | 333M| 334M|00:04:31.44 | 5905K| 5897K| | | |
16 rows selected.But, then, I tried this too.
SQL> alter session set "_fast_full_scan_enabled"=true;
Session altered.
SQL> SELECT MAX(edi_end_date),
2 org_id,
3 partnerid
4 FROM hug_data
5 GROUP BY org_id,
6 partnerid;
MAX(EDI_E ORG_ID PARTNERID
2 rowsAnd this took around 5 minutes too.
PS: This has nothing to do with original question, but, it is plausible to derive the 'huge_data' table name from the sql_id? Just curious. -
Linguistic index not being used
I am using 10G database and am having an issue that my linguistic index is not being used during sorting.
Any help will be appreciated.
Table structure.
create table TEST
ID CHAR(256) not null,
NAME VARCHAR2(100) not null,
DESIGNATION VARCHAR2(200)
alter table TEST add constraint ID primary key (ID)
create index TEST_IDX on TEST (NLSSORT(NAME,'nls_sort=''GENERIC_M'''))
Number of rows - 1 million
Query being run.
alter session set nls_sort='Generic_M';
select * from test order by name;
Explain plan
PLAN_TABLE_OUTPUT
| 0 | SELECT STATEMENT | | 1001K| 270M| | 70194 (1)| 00:14:0
3 |
| 1 | SORT ORDER BY | | 1001K| 270M| 579M| 70194 (1)| 00:14:0
3 |
| 2 | TABLE ACCESS FULL| TEST | 1001K| 270M| | 9163 (1)| 00:01:5
0 |
--------------------------------------------------------------------------------I don't think that's true, at least with the nls_sort function. I'm running into the same problem now, and I've traced with and without the use of the index, and it's definitely better with the index.
Here it is, not using the index:
SQL> select * from test where col2='sfs';
no rows selected
Execution Plan
Plan hash value: 1357081020
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 366 | 2 (0)| 00:00:01 |
|* 1 | TABLE ACCESS FULL| TEST | 1 | 366 | 2 (0)| 00:00:01 |
Predicate Information (identified by operation id):
1 - filter(NLSSORT("COL2",'nls_sort=''BINARY_CI''')=HEXTORAW('7366730
0') )
Note
- dynamic sampling used for this statement
Statistics
87 recursive calls
0 db block gets
21 consistent gets
0 physical reads
0 redo size
339 bytes sent via SQL*Net to client
327 bytes received via SQL*Net from client
1 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
0 rows processed
And here it is WITH the index:
SQL> select /*+ index_asc(test index1) */ * from test where col2='adsfas';
no rows selected
Execution Plan
Plan hash value: 2960817241
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time
|
| 0 | SELECT STATEMENT | | 1 | 366 | 2 (0)| 00:0
0:01 |
| 1 | TABLE ACCESS BY INDEX ROWID| TEST | 1 | 366 | 2 (0)| 00:0
0:01 |
|* 2 | INDEX FULL SCAN | INDEX1 | 1 | | 1 (0)| 00:0
0:01 |
Predicate Information (identified by operation id):
2 - access(NLSSORT("COL2",'nls_sort=''BINARY_CI''')=HEXTORAW('6164736661730
0') )
filter(NLSSORT("COL2",'nls_sort=''BINARY_CI''')=HEXTORAW('6164736661730
0') )
Note
- dynamic sampling used for this statement
Statistics
11 recursive calls
0 db block gets
7 consistent gets
0 physical reads
0 redo size
339 bytes sent via SQL*Net to client
327 bytes received via SQL*Net from client
1 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
0 rows processed
Oddly enough, the optimizer chooses not to use the index on this example table I created. -
TREX Active Index - Which index is really being used?
We are using ISA E-Commerce 5.0 for ERP 6.0. We run the ISA_CATALOG_REPLICATION program as an hourly job to create indexes in TREX. We add items to our catalog several times a day. Our variant is set to keep 5 indexes.
1. Where do I verify which index is REALLY active? They are all green in TREX Admin and they all have an Active flag in SRMO. (I am pretty certain the older indexes are not being used by ISA because the new items show up in B2B after the ISA_CATALOG_REPLICATION completes)
2. When the ISA_CATALOG_REPLICATION cancels due to an SRET error, I want to go back to the last valid index in TREX and force the system to use that index. How do I do that?
Thank you
Jon SellsSAP told that this functionality is not available in TREX. So there really is no point in having more than 1 index at a time.
-
I have a ipod classic 160GB and it's not showing any music anymore, but there is still showing 7GB of memory being used, and I don't have it backed up on my itunes, since I had to put a new hard drive on my computer. Any suggestion to find out whats on that memory or to get it the music back, there is approximately over 1400 songs on it?
What is the memory being used by, is it Other? If it is, that means the iPod can no longer read the music, so it has put it all in "Other".
The usual fix for this is to allow the iPod to Sync with its iTunes Library. If that doesn't work, the next option is to Restore the iPod using the Restore command in iTunes, on the Device/Summary pane.
Unless you are very (very) lucky, I suspect that you are going to have to Restore your iPod. Restoring will remove everything form the iPod and put back onto it only what it finds in your iTunes Library, which you say is currently empty.
If you have to rebuild your Library after this issue, by adding all the music back again, this is going to be hard to hear, but for the future, you may want to consider always having a backup of your library. The easiset way to back the Library up is;
if the Library is small enough, burn it to a DVD, as digital files, not a "music CD".
If your Library is too large for a DVD, buy yourself an external hard drive and copy the Library onto the drive. Remember to update the backup every so often. -
I have pulled it out of the box and put 2 Mac approved mem sticks in it to boost it to 8 Gigs mem and it still locks up and freazes.. So many people told me Mac was the way to go... 1500 dollers could have bought me a great pc laptop. Now I have a wirless mouse keyboard and a mac mini (aka Brick) that allowed me to donate money to a cause that is helping buildings and companies out side of the US. While I have junk.. It's still under warranty and I reinstalled the os after the new mem sticks. Again.. locks up and does nothing. What can I do with this? Toss it in the trash? Any info on what I might do with it.. Please help!
It would be most helpful if you updated your system information:
Please reconcile the following
at 18 day's old it started to lock up and not function. Took it in and they wiped and reinstalled it. Well at 24 day's old it's been sitting in the box not being used.
... I reinstalled the os after the new mem sticks.
If your Mini is anything less than six months old it would be running Lion, not 10.6.1, nor would it have been necessary to "reinstall the OS". Any help that anyone can provide is predicated on your system configuration so it's important.
If you are running Lion then boot your Mini while holding the D key. This will load Apple Hardware Test which will enable you to test your memory. "Mac approved" memory is sort of vague, and even memory that is allegedly designed to meet your Mini's specification may fail. There few reputable memory vendors.
"Apple installed" memory is more meaningful, and indicates Apple has tested it and guarantees its function. Otherwise all bets are off with a claim of "Mac approved". You will have to verify that yourself with Apple Hardware Test.
If your Mini was running, or ever ran OS 10.6.1 for that matter, it is close to three years old.
You must clear up these uncertainties before anyone can help. -
How can I activate an old version of Photoshop that I've loaded on my new tablet? The web activation doesn't work, and when I call the number, it says it's not being used anymore. Meanwhile, I'm down to 13 days till it stops working due to not being activated. HELP? I really need to continue using this product for my home business.It works fine not activated but the threat is that it will stop working in 13 more days if I don't get it activated, and none of the activation methods they list seem to work.
The new serial number is to the right of your chosen download.
-
I got the following pop-up when I tried to open an online PDF file:
The Adobe Acrobat/Reader that is running can not be used to view PDF files in a Web Browser.
Please exit Adobe Acrobat/Reader and exit your Web Browser and try again.
I tried many time, and it really doesn't work.
The plug-in I have is Adobe Acrobat 8.3.0.280After I upgraded to Firefox 5, I had the same problem and I did a work around temporarily. I went the tools menu, then Add-ons, then clicked the "Plugins" on the left side (4th one down). I "disabled" both Adobe Acrobat 8.3.0.280 and Adobe Acrobat 10.1.0.536 using the disable buttons on the right side. PDF files now open again. However they are outside the actual browser.
My guess is that Adobe didn't catch up yet with a new update to work with Firefox or vice versa.
Hope that helps!
Michael -
Newly created index not being used
Hello friends,
I am observing that a newly created index on a z table with mandt & a new field is not being used. I have already rebuild index & updated stats for table.
when we query on this table with where clause having same 2 fields mandt & other.. we expected this index to be used. This table is very large. What more i can do now ?
In trace/SQL session, we can see it is going full table scan.. and takes very long time.
this new field contain no data as of now for all existing rows. Is this the reason ? or sometihng else ?
SQL Statement
SELECT
FROM
"ABSA"
WHERE
"MANDT" = :A0 AND "ZABCD" = :A1
Execution Plan
Explain from v$sql_plan not possible -> Explain from PLAN_TABLE is displayed !
No values in v$sql_plan for Address: 0000000166710240 Hash_value: 3891403872 Child_number: 0 Sql_id:
SELECT STATEMENT ( Estimated Costs = 905.739 , Estimated #Rows = 110.190.667 )
1 TABLE ACCESS FULL ZABSA
( Estim. Costs = 905.739 , Estim. #Rows = 110.190.667 )
Estim. CPU-Costs = 152.614.535.266 Estim. IO-Costs = 899.784
Filter Predicates
NONUNIQUE Index ZABSA~Z01
Column Name #Distinct
MANDT 1
ZABCD 1
thanks & regards
ashish
Edited by: ashish vikas on Mar 3, 2012 9:05 PMashish vikas wrote:
> Execution Plan
> Explain from v$sql_plan not possible -> Explain from PLAN_TABLE is displayed !
> No values in v$sql_plan for Address: 0000000166710240 Hash_value: 3891403872 Child_number: 0 Sql_id:
>
> SELECT STATEMENT ( Estimated Costs = 905.739 , Estimated #Rows = 110.190.667 )
>
> 1 TABLE ACCESS FULL ZABSA
> ( Estim. Costs = 905.739 , Estim. #Rows = 110.190.667 )
> Estim. CPU-Costs = 152.614.535.266 Estim. IO-Costs = 899.784
> Filter Predicates
>
> NONUNIQUE Index ZABSA~Z01
> Column Name #Distinct
> MANDT 1
> ZABCD 1
Hi,
with this WHERE clause, both columns just one distinct value, the Full Table Scan is indded the best approach, beside
the point you only need a check to evaluate a value is NOT in the result.
In this case you should HINT the statement to the new index, because the DB will always assume that this index is non-selective.
Volker -
iOS Cangjie input method can not be used. Original with Space Bar word selection function is invalid, as soon as possible to solve, it will affect the most users in Taiwan and Hong Kong.
No PR1.2 Firmware update, No update for Nokia Messaging, No updates for Ovi Maps .... Why is the N900 the forgotten stepchild ?
"PR1.2 is still being tested - http://twitter.com/luovanto/statuses/13087245356"
Hong Kong Launch http://www.youtube.com/watch?v=pY8zCBzvQLo
Maybe you are looking for
-
On the support pages, there's only instructions to permanently remove songs from the ICloud or Itunes, and it says once you do it, they can't be recovered. I would like to so precisely that with some hideous purchases that keep showing up on my phone
-
Can I have window previews with Docky? Or even the native XFCE Panel?
In Windows 7, hovering over the window icon buttons will show the preview for the window, is that possible in Docky/XFCE Panel's Windows Button?
-
Error when I import data to Strategy Management from BW
Hi Gurus, I'm working with Strategy Management 7.5 and I have some problems when I update the data and some changes in de schema. For example, I have one KPI that had data since January to September, but this data disappeared when I did the actualiza
-
I have F.F 3.6 and windows 7.: 1) When i want to buy a airplane ticket and want to select 2 adults or 2 children, the draw down select, does not work in any websides,? WHY?. 2) Have FF any problems with SKYPE == This happened == Not sure how often ==
-
How i can change mi video in a MediaView
i try to change my video with _mediaView.setMediaPlayer(new MediaPlayer(new Media("file:///c://unocol//videos/Hyundaii30commercial.flv"))); but when i see the "VM Telemetry" it does'nt kill the previus thread and when i have more than 3 hours changin