ASM newly created diskgroup is not being used by RAC10GR2 Database
Hi,
I created new ASM diskgroup by using one of the RAC node through Grid control , it created new disk group successfully , I can see all the diskgroups in Grid control including newly created, but some how data is not moving into newly created diskgroup, all the diskgroups are mounted. Am i missing any post step , please help.
Thanks
MA
Edited by: 901554 on Jan 26, 2012 9:39 AM
Hi,
Data is not balanced accross diskgroups. It's balanced accross disks within a diskgroup. What exactly are you trying to achieve here?
Similar Messages
-
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 -
Target parameter is not being used
Hello,
while activating the transformation, i get an error saying" Target parameter 0058 is not being used". I have checked all the rules, infoObjects etc. but still im not able to activate the transformation at all.
Eventhough the source field-target field mapping is correct, the system is throwing such errors. What could be the possible cause of it. Any idea?
Regards SuchetaHello Sarvanan,
What do you mean by "the respective field not having the Unit/Curr Objects"..?..some of them are of the type "number" whereas others are CHARS.
Everytime when i add some field i cannot re-create the whole transformation. There has to be some inconsistency as my mapping of source-target field is correct. I have also raised this to OSS but as usual they are taking thier own sweet time to reply.
Surprisingly the transformation got activated yesterday and the dataload too was successful. Today again the same ols problem of "parameter is not being used"..!!
still could you pls throw some light on Unit/Currency objects that u mentioned..??
Thanks in adv.
Sucheta -
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 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. -
HBOgo "StageVideo is not being used"
I just updated flash today, November 25 2013, which gives me version 11,9,900,152. The problem I'm having seems specific to the HBOgo.com site.
The problem occurs in all three browsers that I've tried, Firefox (my preferred browser), Chrome, and IE 9. Also, I've tried the various suggested troubleshooting suggested on the Adobe site as far as enabling Flash addon in IE after disabling (unchecking) the choice for ActiveX filtering. I've tried uninstalling/reinstalling all 3 browsers, reinstalling flash, resetting all video card settings to default, going through the Device Manager and uninstalling the device entirely, making sure it has no errors or conflicts anywhere and the same thing for the network devices, they all indicate that they are working properly.
My device is an HP Pavilion dv7 Notebook PC running Vista Home Premium Service Pack 2. It has 4 GB of memory and the video card is an NVIDIA GeForce 9600M GT. The drivers are all up to date and so is every application and its associated add-ons that I will mention. Also, it shipped with a Blu-Ray player which I've used to display Blu-Ray content on an external monitor with no issue. (If it can do that, then shouldn't it just be some software issue preventing it from playing back a video stream of inferior quality from hbogo?)
Regarding Flash Player, I've watched videos on YouTube and Hulu (and countless other sites which stream Flash Video) at resolutions of 720 and 1080 which played at framerates between 25 and 30 fps and which also did not use hardware acceleration but nevertheless maintained CPU usage of less than 70%. So, the computer can certainly do it even without the help of the GPU, and it can do it from other sites that use flash, but not from HBOgo. That's a second problem, even when flash video plays well, it's still not using hardware acceleration, but first I want to know why HBOgo's flash player is so much worse than everyone else's player.
Here is the specific issue: I navigate to HBOgo.com, pick any video to play and begin playback. Playback usually begins at a relatively low resolution (I'd guess 480 or so based on its obvious pixelation), and then steps up the resolution gradually. Usually after a minute or so, it will have reached its best resolution and that's when it starts dropping frames like crazy and pinning the CPU at 100%. The video looks terribly choppy and the audio skips the more choppy the video is. When I click pause or hit the spacebar for a pause, it will take two or three seconds as it spits out the last few video frames before finally showing the paused icon on the last frame. Those two seconds seem to corrolate with CPU processing since there is no noticable delay when pausing video anywhere else under any other conditions. Of course, CPU useage will drop back to 5 or 10 while the video is paused.
Right-clicking the screen lets me choose "Show Video Debug" which in turn tells me:
StageVideo enabled in OSMF: Yes
StageVideo is supported.
StageVideo is not being used, regular video 'probably' is.
This is where I got the information about dropped frames. If it matters, when paused, the buffer will fill to about 400 Mb plus or minus about 10 percent of that, perhaps. Also, during playback, the buffer maintains approximately the same amount, indicating that my ISP has no problem sending that much data to my device. The buffer seems fill to a lenght of time, about 60 seconds; so, as the video resolution goes down, the total buffer drops accordingly... sometimes it is at 200 Mb for 60 seconds with lower resolution, etc...
Speaking of my ISP, I have Verizon FiOS (I don't know why it would matter, but I'm in King of Prussia, which is near Philadelphia, PA). I just tested my bandwidth and it tells me that my IP is 71.175.97.244 and my download rate is 57.98 Mbps from some server in Matawan, NJ. I don't think networking issues factor into this at all. I say that because, digging into the developer tools (all 3 browsers show the same network activity: Firefox, Chrome, and IE) and clicking on the "Network" column, it consistently shows low latency for all the stream components. For example:
path: http://hds.pro12.lv3.hbogo.com/videos/PRO12/e2/hbo/feature/728425/hbo_821867_PRO12_f4m/hbo _821867_PRO12_8-Seg1-Frag858
method: get
type: video/f4f
Timing Tab show:
Sending: 0 Waiting: 89mg Recieving: 159ms
This seems to indicate that I'm getting the data sent to me without any problem, so forget about network issues, right?
Also, regarding information available in Developer Tools, I can see that the flash video object has the paramater "wmode" set to "transparent". I already wasted time messing with this before I realized that the paramater is irrelavent while in fullscreen mode -- besides the fact that even when it is changed to direct or gpu when not in full screen, it does nothing to help matters. I think this was covered in one of the last discussions talking about lack of hardware acceleration on HBOgo -- the same discussion that ended with a few people saying that they were going to "throw in to towel".
What am I missing here? Why is StageVideo supported but not used? Why do other players which use flash play videos with better quality despite still not using hardware acceleration?
Windows Vista = updated
NVIDIA Video Drivers = updated
Flash Player = updated
Flash Addons (pepper flash, etc...) = updated
Firefox, Chrome, IE = all updated
There's got to be something I can do. What is it?Hello Sarvanan,
What do you mean by "the respective field not having the Unit/Curr Objects"..?..some of them are of the type "number" whereas others are CHARS.
Everytime when i add some field i cannot re-create the whole transformation. There has to be some inconsistency as my mapping of source-target field is correct. I have also raised this to OSS but as usual they are taking thier own sweet time to reply.
Surprisingly the transformation got activated yesterday and the dataload too was successful. Today again the same ols problem of "parameter is not being used"..!!
still could you pls throw some light on Unit/Currency objects that u mentioned..??
Thanks in adv.
Sucheta -
Why is the template not being used when dynamic page called ?
Hi,
I have created a dynamic page and assigned a template to it. When I call the dynamic page using the 'show' procedure from a form, I do not see the template.
Why is the template not being used ? How can I get the template working when I call the dynamic page ?
I even tried to show the page from the dynamic page's manage components tab and there is same problem. Template is not being used.
thanks,
MainakYou can alter the generated package body to include the following function in the header and footer sections.
Header:
PORTAL.wwv_headings.show_header(
p_template => 'PUBLIC.TEMPLATE_3',
p_heading => 'Dynamic Page',
p_help_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.help',
p_about_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.about');
Footer:
PORTAL.wwv_headings.show_footer(
p_template => 'PUBLIC.TEMPLATE_3',
p_help_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.help');
where
<PORTAL_DEMO> indicates application schema
<PORTAL> indicates the name of the portal (normally this will be portal30 by default). -
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. -
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. -
Structured XMLIndex is not being used
I have a table defined as "TABLE OF XMLTYPE" with XML Binary storage with a structured XMLIndex under Oracle 11.2.0.3.4. The query that I am using on this table is virtually the same as the XMLIndex, but it's not being used. I searched the forums for similar issues and found this:
XMLIndex is not getting used
However, the post is a couple of years old, and I think that the solution was really specific to the problem. Not that mine isn't. ;)
Per the forum guidelines, the data/DDL is confidential, and should not be posted, so I opened a SR for it - SR 3-7160281751.
May I please have some help understanding why the structured XMLIndex is not being used?
Thanks...OK, I did the best I could to clean this up. The last query in this script is the one not using the index. The tables "book_master" and "book_join_temp" are populated, though I didn't include the data here. Do you see anything wrong?
--Create tables...
CREATE TABLE book_master OF XMLTYPE
XMLTYPE STORE AS SECUREFILE BINARY XML
VIRTUAL COLUMNS
isbn_nbr AS ( XmlCast(
XmlQuery('declare namespace plh="http://www.mrbook.com/InventoryData/Listing";
declare namespace invtdata="http://www.mrbook.com/Inventory";
/invtdata:INVENTORY/plh:LIST/plh:ISBN_NBR'
PASSING object_value RETURNING CONTENT) AS VARCHAR2(64)) ),
book_id AS ( XmlCast(
XmlQuery('declare namespace plh="http://www.mrbook.com/InventoryData/Listing";
declare namespace invtdata="http://www.mrbook.com/Inventory";
/invtdata:INVENTORY/plh:LIST/plh:BOOK_ID'
PASSING object_value RETURNING CONTENT) AS VARCHAR2(64)) )
CREATE GLOBAL TEMPORARY TABLE book_join_temp
isbn_nbr VARCHAR2(64),
book_id VARCHAR2(64),
row_num INT,
PRIMARY KEY(row_num)
) ON COMMIT DELETE ROWS;
--Create indices....
CREATE INDEX bkm_xmlindex_ix ON book_master (OBJECT_VALUE) INDEXTYPE IS XDB.XMLIndex PARAMETERS ('PATH TABLE path_tab');
BEGIN
DBMS_XMLINDEX.registerParameter(
'myparam',
'ADD_GROUP GROUP book_record
XMLTable bk_idx_tab
XmlNamespaces(''http://www.mrbook.com/InventoryData/Listing'' AS "plh",
''http://www.mrbook.com/Inventory'' AS "invtdata",
''http://www.mrbook.com/BookInfo'' AS "idty",
''http://www.mrbook.com/References'' AS "lclone",
''http://www.mrbook.com/Publishing'' AS "trd",
''http://www.mrbook.com'' AS "mrbook"),
''/invtdata:INVT_DATA''
COLUMNS
xml_id RAW(16) PATH ''/@XML_ID'',
isbn_nbr VARCHAR(64) PATH ''/plh:LIST/plh:ISBN_NBR'',
book_id VARCHAR(64) PATH ''/plh:LIST/plh:BOOK_ID'',
seller_loc_id NUMBER(13,0) PATH ''/plh:LIST/plh:SELLER_LOC_ID'',
catg_typ_cd NUMBER(7,0) PATH ''/idty:BK_INFO/idty:CATG_TYP_CD'',
CTRY_MKT_LOC NUMBER(7,0) PATH ''/idty:BK_INFO/idty:CTRY_MKT_LOC'',
bk_out_of_print_cd NUMBER(7,0) PATH ''/idty:BK_INFO/idty:BK_OUT_OF_PRINT_CD'',
reprint_isbn_nbr VARCHAR2(64) PATH ''/idty:BK_INFO/idty:REPRINT_ISBN_NBR'',
reprint_book_id VARCHAR2(64) PATH ''/idty:BK_INFO/idty:REPRINT_BOOK_ID'',
orig_ed_isbn_nbr VARCHAR2(64) PATH ''/lclone:REFERENCES/lclone:PRINT[child::lclone:PRINT_TYP_CD="160"]/lclone:ISBN_NBR'',
orig_ed_book_id VARCHAR2(64) PATH ''//lclone:REFERENCES/lclone:PRINT[child::lclone:PRINT_TYP_CD="160"]/lclone:BOOK_ID'',
last_mod_dt TIMESTAMP PATH ''/node()[local-name()="LAST_MOD_DT"]'',
subject_catg_code NUMBER(7) PATH ''/idty:BK_INFO/idty:SUBJECT_CATG_CODE[child::idty:CATG_REF_LVL=1]/idty:SUBJECT_CATG_CODE'',
catg_code VARCHAR2(48) PATH ''/idty:BK_INFO/idty:SUBJECT_CATG_CODE[child::idty:CATG_REF_LVL=1]/idty:CATG_CODE'',
pub_summ XMLType PATH ''/trd:PUB_SUMM'' VIRTUAL
XMLTable trd_summ_entr_ix
XmlNamespaces(''http://www.mrbook.com/InventoryData/Listing'' AS "plh",
''http://www.mrbook.com/Inventory'' AS "invtdata",
''http://www.mrbook.com/BookInfo'' AS "idty",
''http://www.mrbook.com/References'' AS "lclone",
''http://www.mrbook.com/Publishing'' AS "trd",
''http://www.mrbook.com'' AS "mrbook"),
''/trd:PUB_SUMM/trd:PUBLC'' PASSING pub_summ
COLUMNS
pub_yrmo VARCHAR2(6) PATH ''/@PUBLC_YRMO''
END;
ALTER INDEX bk_xmlindex_ix PARAMETERS('PARAM myparam');
CREATE INDEX ejt_isbn ON book_join_temp(isbn_nbr);
CREATE INDEX ejt_book ON book_join_temp(book_id);
--Using the PATH table instead of structured index???
SELECT
ej.row_num,
e.xml_id,
e.isbn_nbr,
e.book_id,
e.seller_loc_id,
e.seller_loc_id AS mkt_seller_id,
e.catg_typ_cd,
e.CTRY_MKT_LOC,
e.bk_out_of_print_cd,
e.reprint_isbn_nbr,
e.reprint_book_id,
e.orig_ed_isbn_nbr,
e.orig_ed_book_id,
g.OBJECT_VALUE AS invt_data
FROM
book_master g,
book_join_temp ej,
XmlTable(
XmlNamespaces('http://www.mrbook.com/InventoryData/Listing' AS "plh",
'http://www.mrbook.com/Inventory' AS "invtdata",
'http://www.mrbook.com/BookInfo' AS "idty",
'http://www.mrbook.com/References' AS "lclone",
'http://www.mrbook.com' AS "mrbook"),
'/invtdata:INVENTORY'
PASSING g.OBJECT_VALUE
COLUMNS
xml_id PATH '@XML_ID',
isbn_nbr VARCHAR2(64) PATH 'plh:LIST/plh:ISBN_NBR',
book_id VARCHAR2(64) PATH 'plh:LIST/plh:BOOK_ID',
seller_loc_id NUMBER PATH 'plh:LIST/plh:SELLER_LOC_ID',
catg_typ_cd NUMBER PATH 'idty:BK_INFO/idty:CATG_TYP_CD',
CTRY_MKT_LOC NUMBER PATH 'idty:BK_INFO/idty:CTRY_MKT_LOC',
bk_out_of_print_cd NUMBER PATH 'idty:BK_INFO/idty:BK_OUT_OF_PRINT_CD',
reprint_isbn_nbr NUMBER PATH 'idty:SUBJ_DTL/idty:SUCSR_DUNS_NBR',
reprint_book_id NUMBER PATH 'idty:SUBJ_DTL/idty:SUCSR_SUBJ_ID',
orig_ed_isbn_nbr VARCHAR2(64) PATH '/lclone:REFERENCES/lclone:PRINT[child::lclone:PRINT_TYP_CD="160"]/lclone:ISBN_NBR',
orig_ed_book_id VARCHAR2(64) PATH '/lclone:REFERENCES/lclone:PRINT[child::lclone:PRINT_TYP_CD="160"]/lclone:BOOK_ID'
) e
WHERE
ej.isbn_nbr = e.isbn_nbr
OR ej.book_id = e.book_id; -
Parameter value from app is not being used
Hi,
I have .NET application which renders the report from BOE using infoObject model. This report has parameter and the paramter info is passed from the application using following code.
CrystalReportViewer1.EnterpriseLogon = enterpriseSession;
CrystalReportViewer1.ReportSource = (Report)infoObject;
CrystalReportViewer1.ParameterFieldInfo = parameterFields;
But when I try to run this form...though the parameterfields have the detail of the paramter still Promt screen is scheduled by BOE to provide input for the parameter...
Can someone help me on this why the parameter value I am sending is not being used.
Thanks
KajalIt might have something to do with how you are creating your parameter field collection that you are passing to the viewer. Please refer to the ViewReportParameter sample in the following collection available [here|https://boc.sdn.sap.com/node/5794]
-
UPD processer is not being used
Hi Friends,
We have 2 application servers and one central instance.Each of these servers are having 1 UPD processor and 1 UPD2 processor.
When the system is heavily loaded, i could see a lot of (more than 200) upadates are queued up in SM13 transaction.And when I check the SM66 transaction I could see only 2 UPD processors are being used which are from Application 2 and Central Instance and no UPD processor is being used from Application 1.
What could be the reason? also, our updates are taking a lot of time get completed.
In SM14 transaction all these UPDs are active.
Please help.
Thanks,
ShanahasHello Sarvanan,
What do you mean by "the respective field not having the Unit/Curr Objects"..?..some of them are of the type "number" whereas others are CHARS.
Everytime when i add some field i cannot re-create the whole transformation. There has to be some inconsistency as my mapping of source-target field is correct. I have also raised this to OSS but as usual they are taking thier own sweet time to reply.
Surprisingly the transformation got activated yesterday and the dataload too was successful. Today again the same ols problem of "parameter is not being used"..!!
still could you pls throw some light on Unit/Currency objects that u mentioned..??
Thanks in adv.
Sucheta -
Rule 5 :target InfoObject Name Source parameter 007 not being used
Hi Gurus,
I am trying to load data Into BI using flat file .During creating transformations for infocubes am getting this error.Rule 5 :target < InfoObject Name > Source parameter 007 not being used .
ThanksThanks Beekay iyour suggestion helped me .
My problem is solved ,in rule details i removed those fields and again insert those fileds .
Thanks -
Materialized view not being used in the report
I have had a materialized view (MV) for a particular report. Recently, the report definition has changed little bit, so the existing MV is not being used by the report anymore. I copied the code Discoverer's SQL Inspection and recreated the materialized view. But still it is not working. Obviously, I am missing something at the database level. Does anyone have any idea? The database is 9i and Discoverer is 9.0.2. Thank you!
The SQL that you see from the Inspect SQL option will provide you with the SQL that Discoverer sends to the database. The database then may do a query rewrite to point to an available materialized view if available. This rewrite won't be seen from the inspect sql option. You need to check at the database level to verify if a query rewrite did in fact take place.
You may want to check the section titled "Query Rewrite with Materialized Views" from Ch1 - "Introduction to the Optimizer" in the Oracle9i Database Performance Tuning Guide and Reference, Release 2 (9.2), Part Number A96533-02, available at http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96533/optimops.htm#37287
Regards
Abhinav Agarwal
Oracle Business Intelligence Product Management
http://www.oracle.com/bi
http://www.oracle.com/technology/documentation/bi_ee.html
http://www.oracle.com/technology/software/products/ias/htdocs/101320bi.html
http://oraclebi.blogspot.com/ -
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.
Maybe you are looking for
-
How can I transfer all my photos on iPhone to iCloud for archive and delete them off my phone?
I do not want to simply backup my phone with iCloud. My iPhone's memory is full and I would like to transfer all my 10,000+ photos to iCloud for safe keeping, and delete them off my phone. Could I do that? I know that iCloud is typically used for
-
OS X 10.8.3 logs out (idle timer?)
even thought I have screesavers off, idle timers and energy savers off my iMac logs itself off around every 12 minutes. even when clean my Mac is running or I'm listening to itunes music after about 12 minutes the iMac logs off and shutsdown. I have
-
TS1741 Why won't my phone connect to computer with the cord??
I have tried to connect my computer to my phone repeatedly but all I'm getting is blank. Anyone have any bright ideas??
-
How to hide rows and columns by AppleScript or Automator for printing
Hello, I have to hide first empty rows (I do it by: organize - Column B is not empty) then: By context-menu in Header of Column K: Hide column and: By context-menu in Header of Column L: Hide column How can I make this 3 Steps automatic with AppleScr
-
Question related to GetFile and GetPath of a URL
Hello, i have the following code and i was wondering why GetFile and GetPath shall return the same output, e.g. my example here is http://wikis.sun.com/display/SunForums/Tips The GetPath returns : Get Path of URL /display/SunForums/Tips and the GetFi