MultiDPIBitmapSource with states
Hi All,
What's the proper way to use the MultiDPIBitmapSource class with state changes:
I'm making a simple button skin that just uses an image and changes the image source based on state. The following code doesn't capture state. The image will stay in the normal position and never capture the over or down events and swap to the proper source. This seems possible, or autocomplete in Flash Builder lies. What am I doing wrong here?
Example:
{code}
<?xml version="1.0" encoding="utf-8"?>
<s:SparkSkin name="myButtonSkin"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:fb="http://ns.adobe.com/flashbuilder/2009">
<s:states>
<s:State name="up" />
<s:State name="over" />
<s:State name="down" />
<s:State name="disabled" />
</s:states>
<fx:Metadata>
<![CDATA[
[HostComponent("spark.components.Button")]
]]>
</fx:Metadata>
<s:BitmapImage>
<s:source>
<s:MultiDPIBitmapSource
source160dpi="/assets/images/icon160.png"
source240dpi="/assets/images/icon240.png"
source320dpi="/assets/images/icon320.png"
source160dpi.over="/assets/images/icon160over.png"
source240dpi.over="/assets/images/icon240over.png"
source320dpi.over="/assets/images/icon320over.png"
source160dpi.down="/assets/images/icon160down.png"
source240dpi.down="/assets/images/icon240down.png"
source320dpi.down="/assets/images/icon320down.png"/>
</s:source>
</s:BitmapImage>
</s:SparkSkin>
{code}
I've found what I was doing wrong. Here's the solution:
<s:source>
<s:MultiDPIBitmapSource
source160dpi="/assets/images/icon160.png"
source240dpi="/assets/images/icon240.png"
source320dpi="/assets/images/icon320.png"/>
</s:source>
<s:source.over>
<s:MultiDPIBitmapSource
source160dpi="/assets/images/icon160over.png"
source240dpi="/assets/images/icon240over.png"
source320dpi="/assets/images/icon320over.png"/>
</s:source.over>
etc... So the source tag actually takes the state not, the MultiDPIBitmapSource.
Similar Messages
-
Problem Using Multiple With Statements
I'm having a problem using multiple WITH statements. Oracle seems to be expecting a SELECT statement after the first one. I need two in order to reference stuff from the second one in another query.
Here's my code:
<code>
WITH calculate_terms AS (SELECT robinst_current_term_code,
CASE
WHEN robinst_current_term_code LIKE '%60' THEN robinst_current_term_code - '40'
WHEN robinst_current_term_code LIKE '%20' THEN robinst_current_term_code - '100'
END first_term,
CASE
WHEN robinst_current_term_code LIKE '%60' THEN robinst_current_term_code - '100'
WHEN robinst_current_term_code LIKE '%20' THEN robinst_current_term_code - '160'
END second_term
FROM robinst
WHERE robinst_aidy_code = :aidy)
/*Use terms from calculate_terms to generate attendance periods*/
WITH gen_attn_terms AS
SELECT
CASE
WHEN first_term LIKE '%60' THEN 'Fall '||substr(first_term,0,4)
WHEN first_term LIKE '%20' THEN 'Spring '||substr(first_term,0,4)
END first_attn_period,
CASE
WHEN second_term LIKE '%60' THEN 'Fall '||substr(second_term,0,4)
WHEN second_term LIKE '%20' THEN 'Spring '||substr(second_term,0,4)
END second_attn_period
FROM calculate_terms
SELECT *
FROM gen_attn_terms
<code>
I get ORA-00928: missing SELECT keyword error. What could be the problem?You can just separate them with a comma:
WITH calculate_terms AS (SELECT robinst_current_term_code,
CASE
WHEN robinst_current_term_code LIKE '%60' THEN robinst_current_term_code - '40'
WHEN robinst_current_term_code LIKE '%20' THEN robinst_current_term_code - '100'
END first_term,
CASE
WHEN robinst_current_term_code LIKE '%60' THEN robinst_current_term_code - '100'
WHEN robinst_current_term_code LIKE '%20' THEN robinst_current_term_code - '160'
END second_term
FROM robinst
WHERE robinst_aidy_code = :aidy),
/*Use terms from calculate_terms to generate attendance periods*/
gen_attn_terms AS
SELECT
CASE
WHEN first_term LIKE '%60' THEN 'Fall '||substr(first_term,0,4)
WHEN first_term LIKE '%20' THEN 'Spring '||substr(first_term,0,4)
END first_attn_period,
CASE
WHEN second_term LIKE '%60' THEN 'Fall '||substr(second_term,0,4)
WHEN second_term LIKE '%20' THEN 'Spring '||substr(second_term,0,4)
END second_attn_period
FROM calculate_terms
)Not tested because there are no scripts. -
Info about "with" statement..
Hi everybody,
I have seen too many threads using with statements in sql...
The general syntax is :
SQL> with t as
( select ...... from .....
union
select ...... from .....
)...... 'test' from t;
What is this and where can I found info about this......????
I use Ora 10g.
Thanks ,
SimonOr, to put it in basic terms.....
When you want to test something and you need a sample set of data to use, rather than create a table and populate it with a whole load of inserts (or insert select) you can just specify a "With <name> as select...." clause before your query. This also means that you don't have to drop the table again when you're done testing.
Long winded way...
create table t as (select 1 id from dual union select 2 from dual union select 3 from dual);
select * from t;
drop table t;Simple way...
with t as (select 1 id from dual union select 2 from dual union select 3 from dual)
select * from t;The sample data is only in existence for the duration of the query, and it saves all of us here on the forums who answer peoples questions from creating loads of tables on our databases temporarily.
;) -
Firefox was my default, it went to boxes with statements,now it will not load,
Firefox stopped working yesterday for no reason, when I open the default page, all I get is 9 oblong boxes stacked one on top of the other with statements and a search button for each one, but nothing happens, which means I cannot access my computer via firefox.
Thanks for the input, but it still didn't work. I tried resetting, then I reinstalled the Photobucket App. It asked me to sign in, but when I attempt to go to "My Albums" at the bottom of the page, it just freezes when it says "Loading Albums". Just like it did before.
At least the camera still works. I'm about ready to take a picture of a target, set it up about 50 feet away and use this **** thing for the one thing it's good for, catching a bullet.
What really ****** me off was when I wanted to speak to a live Apple employee for help. $19 for help fixing what is obviously a problem with their "update"?!?! I'm totally convinced that Apple could care less about their customers. Sure, some people are not experiencing problems with iOS6, but from the posts here searching for help, it's clear Apple totally dropped the ball on this one.
Thanks Apple. -
SM59 check responds with state init/busy
We have a Java application running under Websphere that frequently respond with state init/bus.
If we start SM59 it takes ages and it ends up with an error that the registered server program is in state init/busy.
From time to time the connection is restored and available, but most of the time the Jco application is NOT available.
Output from SM59
Connect Connection error
Errordetails Error when opening an RFC connection
Errordetails ERROR: timeout during allocate of registered progam
Errordetails LOCATION: SAP-Gateway on host UNIX01 / sapgw00
Errordetails DETAIL: TP server01 init/busy for more than 60 sec
Errordetails COMPONENT: SAP-Gateway
Errordetails COUNTER: 76281
Errordetails MODULE: gwr3cpic.c
Errordetails LINE: 1937
Errordetails RETURN CODE: 677
Errordetails SUBRC: 0
Errordetails RELEASE: 700
Errordetails TIME: Fri Apr 16 11:54:49 2010
Errordetails VERSIE: 2
What could be the issue?
Edited by: W. van Veen on Apr 16, 2010 12:25 PMHi William,
the error timeout during allocate of registered progam <em>can</em> show up if the connection is currently busy (used by another process). So this might be a performance issue, if you have for example only one instance of the server registered, yet calls executed on the server take quite a while. So my first recommendation would be to check if this scenario is applicable. If yes, consider registering the server multiple times in SAP (if supported by your application) and also make sure to configure the outbound scheduler properly so that you don't flood the server with too many RFC calls at the same time.
If we start SM59 it takes ages and it ends up with an error that the registered server program is in state init/busy.
I suspect that you it's not the startup that takes long, but you're referring to the connection test from SM59. So if my comments above don't help, at least it sounds like you can reproduce the problem. Thus I'd try the RFC trace generation scenario as described nicely in OSS note [878860 - RFC tracing for ABAP-to-external communication|https://service.sap.com/sap/support/notes/878860]. This might produce some more info that helps you in figuring out the actual cause of the issue...
Cheers, harald -
Issue with stat() and symbolic links
Has anyone experienced the following issue with stat() ?
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
int main( int argc, char **argv )
struct stat buf;
if( argc < 2 )
return 0;
char *link = strdup( argv[1] );
if( stat( link, &buf ) == -1 ) {
puts( "Error" );
return 1;
if( ( S_IFLNK & buf.st_mode ) == S_IFLNK )
puts( "Is link" );
else
puts( "Not link" );
return 0;
If you compile and run the above code (or similar code), you would expect it to report that the given argument is a symbolic link when indeed the argument is a symbolic link; though, instead of the expected happening, the following happens as shown below:
$ gcc -o islink islink.c
$ ln -s /tmp link
$ ./islink link
Not link
$
Is anyone else experiencing this? My filesystem is ext4. The same error happens when using the S_ISLNK() macro.man 3p lstat
DESCRIPTION
The lstat() function shall be equivalent to stat(), except when path
refers to a symbolic link. In that case lstat() shall return informa‐
tion about the link, while stat() shall return information about the
file the link references. -
Revision: 12786
Revision: 12786
Author: [email protected]
Date: 2009-12-10 07:35:43 -0800 (Thu, 10 Dec 2009)
Log Message:
Fixed bug with state property value assignments. SetProperty pseudonym values (width/explicitWidth, height/explicitHeight) were not getting set correctly, causing values to be incorrectly assigned to 0 in some cases.
QE notes: -
Doc notes: -
Bugs: sdk-24446
Reviewer: Corey
Tests run: checkintests, Mustella tests/States, tests/mx/states
Is noteworthy for integration: Yes (fix requested by tools)
Ticket Links:
http://bugs.adobe.com/jira/browse/sdk-24446
Modified Paths:
flex/sdk/trunk/frameworks/projects/framework/src/mx/states/SetProperty.asAdd this to the end of your nav p CSS selector at Line 209 of your HTML file, after 'background-repeat...':
margin-bottom: -2px;
Your nav p will then look like this:
nav p {
font-size: 90%;
font-weight: bold;
color: #FFC;
background-color: #090;
text-align: right;
padding-top: 5px;
padding-right: 20px;
padding-bottom: 5px;
border-bottom-width: 2px;
border-bottom-style: solid;
border-bottom-color: #060;
background-image: url(images/background.png);
background-repeat: repeat-x;
margin-bottom: -2px; -
can explain with statement syntax and its use related to performance
see its syntax
WITH
subquery_name
AS
(the aggregation SQL statement)
SELECT
(query naming subquery_name);
also see these 2 examples
WITH
sum_sales AS
( select /*+ materialize */
sum(quantity) all_sales from stores ),
number_stores AS
( select /*+ materialize */
count(*) nbr_stores from stores ),
sales_by_store AS
( select /*+ materialize */
store_name, sum(quantity) store_sales from
store natural join sales )
SELECT
store_name
FROM
store,
sum_sales,
number_stores,
sales_by_store
where
store_sales > (all_sales / nbr_stores);
WITH recursiveBOM
(assembly_id, assembly_name, parent_assembly) AS
(SELECT parent.assembly_id,
parent.assembly_name,
parent.parent_assembly
FROM bill_of_materials parent
WHERE parent.assembly_id=100
UNION ALL
SELECT child.assembly_id,
child.assembly_name,
child.parent_assembly
FROM recursiveBOM parent, bill_of_materials child
WHERE child.parent_assembly = parent.assembly_id)
SELECT assembly_id, parent_assembly, assembly_name
FROM recursiveBOM;
Why to use it:
Oracle SQL can run faster when complex subqueries are replaced with global temporary tables. Starting in Oracle9i release 2, there was an incorporation of a subquery factoring utility implemented the SQL-99 WITH clause. The WITH clause is a tool for materializing subqueries to save Oracle from having to recompute them multiple times.
Regards -
[svn] 4070: Addressing backwards compatibility issue with states.
Revision: 4070
Author: [email protected]
Date: 2008-11-11 13:13:43 -0800 (Tue, 11 Nov 2008)
Log Message:
Addressing backwards compatibility issue with states.
QE Notes: None
Doc Notes: None
Bugs: SDK-17395
Reviewer: Peter F.
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-17395
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Grammar.jjRevision: 4070
Author: [email protected]
Date: 2008-11-11 13:13:43 -0800 (Tue, 11 Nov 2008)
Log Message:
Addressing backwards compatibility issue with states.
QE Notes: None
Doc Notes: None
Bugs: SDK-17395
Reviewer: Peter F.
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-17395
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Grammar.jj -
According to the docs, the scope chain used by the with
statement to resolve identifiers is: innermost with-statement
-> outermost with-statement -> activation object
-> etc. If this would be true, the following code should
output "propOfMyObject":
Code:
var foo:String = "propOfActivationObject";
var myObject:Object =
{foo:"propOfMyObject"};
with (myObject) {
trace(foo); //outputs:
"propOfActivationObject"
But it doesn't. Instead the local variable is shadowing the
property in myObject. It seems like the scope chain rather is:
activation object -> innermost with-statement ->
outermost with-statement -> etc. Which means either the docs
or the with statement is incorrect. Am I right?Query is fine... worked on it [url https://forums.oracle.com/forums/message.jspa?messageID=10902901#10902901]elsewhere first ;-)
with data as (Select 4 qty from dual)
select round(100/qty*(level-1)) perc, round(100/qty*(level-1)) c
from data
connect by level <= qty +1
PERC C
0 0
25 25
50 50
75 75
100 100 -
Adaptor with State information
Hi
We are in the process of migrating legacy system to ESB architecture and would like to get your input in how to deal with state information.
Current system has one system (A) that takes input from another system (S) and outputs to many nodes of system (C).
S --> B ---> N number of C
System C is high load, read-only, parallel system (totally independent of each other). System A's job is to provide a buffer between System S, so only relevant changes will trickle to System C, hence removing any unnecessary processing/load to potentially hundreds of nodes of System C. System S is a repository of all the data, superset of what System C needs.
We are trying to re-architect system A to be an ESB adaptor that reads from System S and exports data to System C (The transport mechanism between system A and C are not to be changed. We will continue to use existing file distribution mechanism. And this isn't the issue; I am only mentioning it here for completeness.)
Question is, how would you create this adaptor that would know the state of System C (i.e. know what data has been already pushed out via file distribution) and compute relevant delta from the incoming changes from System S? As in the legacy system, this adaptor MUST provide only the deltas to System C, so to not create any unnecessary processing.
In the legacy architecture, System A had a DB that mirrored the data pushed out to System C. But now the proposal is to get rid of this DB and some how compute the same delta.
Other than using in-memory DB, what other ways are there? Does Oracle SOA Suite provide something to deal with this?
Thanks in advance,
JYHi
We are in the process of migrating legacy system to ESB architecture and would like to get your input in how to deal with state information.
Current system has one system (A) that takes input from another system (S) and outputs to many nodes of system (C).
S --> B ---> N number of C
System C is high load, read-only, parallel system (totally independent of each other). System A's job is to provide a buffer between System S, so only relevant changes will trickle to System C, hence removing any unnecessary processing/load to potentially hundreds of nodes of System C. System S is a repository of all the data, superset of what System C needs.
We are trying to re-architect system A to be an ESB adaptor that reads from System S and exports data to System C (The transport mechanism between system A and C are not to be changed. We will continue to use existing file distribution mechanism. And this isn't the issue; I am only mentioning it here for completeness.)
Question is, how would you create this adaptor that would know the state of System C (i.e. know what data has been already pushed out via file distribution) and compute relevant delta from the incoming changes from System S? As in the legacy system, this adaptor MUST provide only the deltas to System C, so to not create any unnecessary processing.
In the legacy architecture, System A had a DB that mirrored the data pushed out to System C. But now the proposal is to get rid of this DB and some how compute the same delta.
Other than using in-memory DB, what other ways are there? Does Oracle SOA Suite provide something to deal with this?
Thanks in advance,
JY -
Python with statement is broken.
I am using the default python install which is version 2.5.1. According to the python documentation, support for the following syntax was added in version 2.5 but it does not work on the default apple python install.
with open('filename') as f:
for line in f:
print line
This is supposed to open to automate opening and closing of the file. However the with statement doesnt work and I get a syntax error.
Is this normal or is my python installation broken? If it is normal is there any way to get this syntax enabled?
Message was edited by: keeler1You need to read the rest of the documentation as support for that keyword is not enabled on versions prior to 2.6 unless you specifically ask for it.
from _future_ import with_statement -
Performance issue with statement
This is the same as my other thread but with everything formatted.
I'm having a lot of issues trying to tune this statement. I have added some new indexes and even moved existing indexes to a 32k tablespace. The execution plan has improved but when I execute the statement the data never returns. I see where my bottle-neck is but I'm lost on what else I can do to improve the performance.
STATEMENT:
SELECT DISTINCT c.oprclass, a.business_unit, i.descr, a.zsc_load,
b.ship_to_cust_id, b.zsc_load_status, f.ld_cnt,
b.zsc_mill_release, b.address_seq_num, d.name1,
e.address1 || ' - ' || e.city || ', ' || e.state || ' '
|| e.postal
FROM ps_zsc_ld a,
ps_zsc_ld_seq b,
ps_sec_bu_cls c,
ps_customer d,
ps_set_cntrl_group g,
ps_rec_group_rec r,
ps_bus_unit_tbl_fs i,
(SELECT business_unit, zsc_load, COUNT (*) AS ld_cnt
FROM ps_zsc_ld_seq
GROUP BY business_unit, zsc_load) f,
(SELECT *
FROM ps_cust_address ca
WHERE effdt =
(SELECT MAX (effdt)
FROM ps_cust_address ca1
WHERE ca.setid = ca1.setid
AND ca.cust_id = ca1.cust_id
AND ca.address_seq_num = ca1.address_seq_num
AND ca1.effdt <= SYSDATE)) e
WHERE a.business_unit = b.business_unit
AND a.zsc_load = b.zsc_load
AND r.recname = 'CUSTOMER'
AND g.rec_group_id = r.rec_group_id
AND g.setcntrlvalue = a.business_unit
AND d.setid = g.setid
AND b.ship_to_cust_id = d.cust_id
AND e.setid = g.setid
AND b.ship_to_cust_id = e.cust_id
AND b.address_seq_num = e.address_seq_num
AND a.business_unit = f.business_unit
AND a.zsc_load = f.zsc_load
AND a.business_unit = c.business_unit
AND a.business_unit = i.business_unit;EXECUTION PLAN:
Plan
SELECT STATEMENT CHOOSECost: 1,052 Bytes: 291 Cardinality: 1
25 SORT UNIQUE Cost: 1,052 Bytes: 291 Cardinality: 1
24 SORT GROUP BY Cost: 1,052 Bytes: 291 Cardinality: 1
23 FILTER
19 NESTED LOOPS Cost: 1,027 Bytes: 291 Cardinality: 1
17 NESTED LOOPS Cost: 1,026 Bytes: 279 Cardinality: 1
15 NESTED LOOPS Cost: 1,025 Bytes: 263 Cardinality: 1
12 NESTED LOOPS Cost: 1,024 Bytes: 227 Cardinality: 1
10 NESTED LOOPS Cost: 1,023 Bytes: 28,542 Cardinality: 134
7 HASH JOIN Cost: 60 Bytes: 134,101 Cardinality: 803
5 NESTED LOOPS Cost: 49 Bytes: 5,175 Cardinality: 45
3 NESTED LOOPS Cost: 48 Bytes: 1,230,725 Cardinality: 12,955
1 TABLE ACCESS FULL SYSADM.PS_CUST_ADDRESS Cost: 20 Bytes: 3,465 Cardinality: 45
2 INDEX RANGE SCAN UNIQUE SYSADM.TEST3 Cost: 1 Bytes: 5,130 Cardinality: 285
4 INDEX UNIQUE SCAN UNIQUE SYSADM.PS_REC_GROUP_REC Bytes: 20 Cardinality: 1
6 INDEX FAST FULL SCAN NON-UNIQUE SYSADM.PS0CUSTOMER Cost: 10 Bytes: 252,460 Cardinality: 4,855
9 TABLE ACCESS BY INDEX ROWID SYSADM.PS_ZSC_LD_SEQ Cost: 2 Bytes: 46 Cardinality: 1
8 INDEX RANGE SCAN UNIQUE SYSADM.TEST7 Cost: 1 Cardinality: 1
11 INDEX UNIQUE SCAN UNIQUE SYSADM.PS_ZSC_LD Bytes: 14 Cardinality: 1
14 TABLE ACCESS BY INDEX ROWID SYSADM.PS_BUS_UNIT_TBL_FS Cost: 2 Bytes: 36 Cardinality: 1
13 INDEX UNIQUE SCAN UNIQUE SYSADM.PS_BUS_UNIT_TBL_FS Cardinality: 1
16 INDEX FULL SCAN UNIQUE SYSADM.PS_SEC_BU_CLS Cost: 2 Bytes: 96 Cardinality: 6
18 INDEX RANGE SCAN UNIQUE SYSADM.PS_ZSC_LD_SEQ Cost: 1 Bytes: 12 Cardinality: 1
22 SORT AGGREGATE Bytes: 31 Cardinality: 1
21 FIRST ROW Cost: 2 Bytes: 31 Cardinality: 1
20 INDEX RANGE SCAN (MIN/MAX) UNIQUE SYSADM.PS_CUST_ADDRESS Cost: 2 Cardinality: 5,364 TRACE INFO:
call count cpu elapsed disk query current rows
Parse 1 0.22 0.24 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 1208.24 1179.86 92 221319711 0 0
total 3 1208.46 1180.11 92 221319711 0 0
Misses in library cache during parse: 1
Optimizer mode: CHOOSE
Parsing user id: 81
Rows Row Source Operation
0 SORT UNIQUE (cr=0 r=0 w=0 time=0 us)
0 SORT GROUP BY (cr=0 r=0 w=0 time=0 us)
0 FILTER (cr=0 r=0 w=0 time=0 us)
0 NESTED LOOPS (cr=0 r=0 w=0 time=0 us)
0 NESTED LOOPS (cr=0 r=0 w=0 time=0 us)
0 NESTED LOOPS (cr=0 r=0 w=0 time=0 us)
0 NESTED LOOPS (cr=0 r=0 w=0 time=0 us)
0 NESTED LOOPS (cr=0 r=0 w=0 time=0 us)
0 HASH JOIN (cr=0 r=0 w=0 time=0 us)
2717099 NESTED LOOPS (cr=221319646 r=92 w=0 time=48747178172 us)
220447566 NESTED LOOPS (cr=872143 r=92 w=0 time=10965565169 us)
4590 TABLE ACCESS FULL OBJ#(15335) (cr=99 r=92 w=0 time=58365 us)
220447566 INDEX RANGE SCAN OBJ#(2684506) (cr=872044 r=0 w=0 time=2533034831 us)(object id 2684506)
2717099 INDEX UNIQUE SCAN OBJ#(583764) (cr=220447568 r=0 w=0 time=23792811449 us)(object id 583764)
0 INDEX FAST FULL SCAN OBJ#(15319) (cr=0 r=0 w=0 time=0 us)(object id 15319)
0 TABLE ACCESS BY INDEX ROWID OBJ#(735431) (cr=0 r=0 w=0 time=0 us)
0 INDEX RANGE SCAN OBJ#(2684517) (cr=0 r=0 w=0 time=0 us)(object id 2684517)
0 INDEX UNIQUE SCAN OBJ#(550855) (cr=0 r=0 w=0 time=0 us)(object id 550855)
0 TABLE ACCESS BY INDEX ROWID OBJ#(11041) (cr=0 r=0 w=0 time=0 us)
0 INDEX UNIQUE SCAN OBJ#(582984) (cr=0 r=0 w=0 time=0 us)(object id 582984)
0 INDEX FULL SCAN OBJ#(583859) (cr=0 r=0 w=0 time=0 us)(object id 583859)
0 INDEX RANGE SCAN OBJ#(2684186) (cr=0 r=0 w=0 time=0 us)(object id 2684186)
0 SORT AGGREGATE (cr=0 r=0 w=0 time=0 us)
0 FIRST ROW (cr=0 r=0 w=0 time=0 us)
0 INDEX RANGE SCAN (MIN/MAX) OBJ#(15336) (cr=0 r=0 w=0 time=0 us)(object id 15336)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 1 0.00 0.00
db file scattered read 14 0.00 0.00
direct path write 3392 0.00 0.06
db file sequential read 8 0.00 0.00I had an index on that table but still that is not where my bottle neck was showing so I removed it. I have added the index back and clearly it has helped the execution plan.
PLAN_TABLE_OUTPUT
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)|
| 0 | SELECT STATEMENT | | 1 | 291 | 1035 (1)|
| 1 | SORT UNIQUE | | 1 | 291 | 1035 (1)|
| 2 | SORT GROUP BY | | 1 | 291 | 1035 (1)|
| 3 | FILTER | | | | |
| 4 | NESTED LOOPS | | 1 | 291 | 1010 (1)|
| 5 | NESTED LOOPS | | 1 | 279 | 1009 (1)|
| 6 | NESTED LOOPS | | 1 | 243 | 1008 (1)|
| 7 | NESTED LOOPS | | 1 | 227 | 1006 (0)|
| 8 | NESTED LOOPS | | 135 | 28755 | 1005 (0)|
| 9 | HASH JOIN | | 805 | 131K| 39 (0)|
| 10 | HASH JOIN | | 45 | 5175 | 28 (0)|
| 11 | TABLE ACCESS FULL | PS_CUST_ADDRESS | 45 | 3465 | 20 (0)|
| 12 | NESTED LOOPS | | 3398 | 126K| 7 (0)|
| 13 | INDEX FAST FULL SCAN | PS_REC_GROUP_REC | 1 | 20 | 5 (0)|
| 14 | INDEX RANGE SCAN | TEST11 | 3398 | 61164 | 3 (0)|
| 15 | INDEX FAST FULL SCAN | PS0CUSTOMER | 4855 | 246K| 10 (0)|
| 16 | TABLE ACCESS BY INDEX ROWID| PS_ZSC_LD_SEQ | 1 | 46 | 2 (0)|
| 17 | INDEX RANGE SCAN | PS0ZSC_LD_SEQ | 1 | | 1 (0)|
| 18 | INDEX UNIQUE SCAN | PS_ZSC_LD | 1 | 14 | |
| 19 | INDEX FULL SCAN | PS_SEC_BU_CLS | 3 | 48 | 2 (0)|
| 20 | TABLE ACCESS BY INDEX ROWID | PS_BUS_UNIT_TBL_FS | 1 | 36 | 2 (50)|
| 21 | INDEX UNIQUE SCAN | PS_BUS_UNIT_TBL_FS | 1 | | |
| 22 | INDEX RANGE SCAN | PS_ZSC_LD_SEQ | 1 | 12 | 1 (0)|
| 23 | SORT AGGREGATE | | 1 | 31 | |
| 24 | FIRST ROW | | 1 | 31 | 2 (0)|
| 25 | INDEX RANGE SCAN (MIN/MAX) | PS_CUST_ADDRESS | 5364 | | 2 (0)|
------------------------------------------------------------------------------------------------ -
Problem with statement after upgrading to 11g
Hello,
We recently upgraded to 11g from 9i and one of our statements we routinely use no longer works. The statement is:
delete from ALLEMPLOYEES x where exists( (select * from ALLEMPLOYEES where email_id=x.email_id) minus (select * from X_ALLEMPLOYEES where email_id=x.email_id));
This statement deletes no rows from the ALLEMPLOYEES table. When we run this statement as a check:
(select * from ALLEMPLOYEES) MINUS (select * from X_ALLEMPLOYEES);
We find many rows produced. Why would the delete fail now? We have colleagues still using 9i and use this same delete statement and it works for them with no trouble.Do you have proper indexes?
SQL> select *
2 from v$version
3 /
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL> create table emp1 as select * from emp where deptno != 30
2 /
Table created.
SQL> create index emp1_idx_comm on emp1(comm)
2 /
Index created.
SQL> create index emp_idx_comm on emp(comm)
2 /
Index created.
SQL> explain plan for
2 delete emp e
3 where exists(
4 select *
5 from emp
6 where comm = e.comm
7 minus
8 select *
9 from emp1
10 where comm = e.comm
11 )
12 /
Explained.
SQL> @?\rdbms\admin\utlxpls
PLAN_TABLE_OUTPUT
Plan hash value: 1994471334
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | DELETE STATEMENT | | 1 | 28 | 9 (34)| 00:00:01 |
| 1 | DELETE | EMP | | | | |
| 2 | NESTED LOOPS | | 1 | 28 | 9 (34)| 00:00:01 |
| 3 | VIEW | VW_SQ_1 | 14 | 182 | 8 (25)| 00:00:01 |
| 4 | MINUS | | | | | |
| 5 | SORT UNIQUE | | 14 | 532 | | |
PLAN_TABLE_OUTPUT
| 6 | TABLE ACCESS FULL| EMP | 14 | 532 | 3 (0)| 00:00:01 |
| 7 | SORT UNIQUE | | 8 | 696 | | |
| 8 | TABLE ACCESS FULL| EMP1 | 8 | 696 | 3 (0)| 00:00:01 |
|* 9 | INDEX RANGE SCAN | EMP_IDX_COMM | 1 | 15 | 0 (0)| 00:00:01 |
Predicate Information (identified by operation id):
9 - access("VW_COL_1"="E"."COMM")
filter("E"."COMM" IS NOT NULL)
PLAN_TABLE_OUTPUT
Note
- dynamic sampling used for this statement (level=2)
26 rows selected.
SQL> explain plan for
2 delete emp
3 where comm is not null
4 and comm not in (
5 select comm
6 from emp1
7 where comm is not null
8 )
9 /
Explained.
SQL> @?\rdbms\admin\utlxpls
PLAN_TABLE_OUTPUT
Plan hash value: 123997034
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | DELETE STATEMENT | | 3 | 84 | 1 (0)| 00:00:01 |
| 1 | DELETE | EMP | | | | |
| 2 | NESTED LOOPS ANTI| | 3 | 84 | 1 (0)| 00:00:01 |
|* 3 | INDEX FULL SCAN | EMP_IDX_COMM | 4 | 60 | 1 (0)| 00:00:01 |
|* 4 | INDEX RANGE SCAN| EMP1_IDX_COMM | 1 | 13 | 0 (0)| 00:00:01 |
PLAN_TABLE_OUTPUT
Predicate Information (identified by operation id):
3 - filter("COMM" IS NOT NULL)
4 - access("COMM"="COMM")
filter("COMM" IS NOT NULL)
Note
- dynamic sampling used for this statement (level=2)
22 rows selected.
SQL> SY. -
How to use elapsed time function with state machine in Lab VIEW
Hello
I've been trying to use state machine with elapsed time function in order to sequentially start and stop my code. The arrangement is to start the code for 1 minute then stop for 5 minutes. I've attached the code, the problem is when I place the elapsed time function out of the while loop it doesn't work, on the other hand when I place it inside the loop it does work but it doesn't give the true signal to move to the next state.
Could you please have a look to my code and help me to solve this issue.
Regards
Rajab
Solved!
Go to Solution.
Attachments:
daq assistance thermocouple(sate machine raj).vi 436 KBRajab84 wrote:
Thanks apok for your help
even with pressing start it keeps running on wait case
could you please explain the code for me, the use of Boolean crossing, increment , and equal functions
Best Regards
Rajab
OK..I modded the example to stop after 2 cycles. Also recommend taking the free online LabVIEW tutorials.
run vi. case statement goes to "initialize", shift registers are initialized to their constants. goto "wait"
"start"= false, stay in current state. If true, transition to "1 min" case
reset elapsed timer with True from shift register(counter starts at zero)."time has elapsed"=false, stay in current state(1 min). If true, goto "5min" case
reset elapsed timer with True from shift register of previous case(counter starts at zero)."time has elapsed"=false, stay in current state(5 min). If true, goto "1min" case. Also, bool crossing is looking for "true-false" from "5 min" compare function to add cycle count.
Once cycle count reaches 2, stop while loop....
Attachments:
Untitled%202[1].vi 42 KB
Maybe you are looking for
-
CopyRights problem with "expires at the fixed time" uat mode
Dear all I found a problem with rights parameter When I use rights parameter in uat mode or umt mode it can't be work with this two modes($uat and $umt) and I found a document in adobe jp the document says "only uat mode works well with expire functi
-
Non error records in error stack
Hi, I have some error records collected in errorstack I know how to correct and update these error records. But the problem is there are several other records collected in error stack giving the message filtered in advance as the key is same as error
-
Program to Transmit multiple messages over J1939
Hello Every one, Can any one please post the program to transmit multiple messages over J1939 using USB 8473 device. I was looking under Ni examples but it is showing only to send the frame data but not the scaled data,I want t
-
Keywords and new Iphoto Library
Is there a simple way to delete/remove keywords from the photos in my new library? For some reason (could be my fault) every photo has the same five keywords, I delete them and then they reappear. I've tried quitting Iphoto, opening the old photo lib
-
Something wrong with my Java?
When I try to run this program, the window (question) does not show up, and says, it's still executing or something like that, if I test this in my friend's house, it works, but on my computer, it keeps loading, and doesn't show up the window..I have