Query taking too long time
Hello all i hav a query which is taking result from 4 tables
select name, date, emp_id, salary from table1, table2, table3,table4 where date= :date and other conditions
but when im doing same query and changin date format
select name, date, emp_id, salary from table1, table2, table3,table4 where date= TO_DATE(:date,'DD/MM/RRRR') and other conditions
the query is gettin hang no response
please advice.
Thanks
Execution Plan
Plan hash value: 2265139331
Id Operation Name Rows Bytes Cost (%CPU) Time
0 SELECT STATEMENT 14647 3146K 1443 (1) 00:00:18
1 HASH GROUP BY 14647 3146K
2 CONCATENATION
3 MERGE JOIN CARTESIAN 8444 1814K 738 (1) 00:00:09
4 NESTED LOOPS
5 NESTED LOOPS 1 202 635 (1) 00:00:08
6 NESTED LOOPS 1 138 633 (1) 00:00:08
7 NESTED LOOPS 1 103 632 (1) 00:00:08
8 NESTED LOOPS 1 85 631 (1) 00:00:08
9 VIEW table 3 84 628 (1) 00:00:08
10 UNION-ALL
* 11 HASH JOIN 1 37 279 (1) 00:00:04
* 12 TABLE ACCESS BY INDEX ROWID table 1 31 4 (0) 00:00:01
* 13 INDEX RANGE SCAN table 1 3 (0) 00:00:01
14 TABLE ACCESS FULL table 9472 56832 275 (1) 00:00:04
* 15 HASH JOIN 1 37 319 (1) 00:00:04
* 16 TABLE ACCESS BY INDEX ROWID table 1 31 10 (0) 00:00:01
* 17 INDEX RANGE SCAN table 1 9 (0) 00:00:01
18 TABLE ACCESS FULL table 36233 212K 308 (1) 00:00:04
* 19 HASH JOIN 1 43 31 (4) 00:00:01
* 20 TABLE ACCESS BY INDEX ROWID table 1 37 3 (0) 00:00:01
* 21 INDEX RANGE SCAN table 1 2 (0) 00:00:01
22 TABLE ACCESS FULL table 2546 15276 27 (0) 00:00:01
23 TABLE ACCESS BY INDEX ROWID table 1 57 1 (0) 00:00:01
* 24 INDEX UNIQUE SCAN table 1 0 (0) 00:00:01
25 TABLE ACCESS BY INDEX ROWID table 1 18 1 (0) 00:00:01
* 26 INDEX UNIQUE SCAN table 1 0 (0) 00:00:01
27 TABLE ACCESS BY INDEX ROWID table 1 35 1 (0) 00:00:01
* 28 INDEX UNIQUE SCAN table 1 0 (0) 00:00:01
* 29 INDEX RANGE SCAN table 2 1 (0) 00:00:01
30 TABLE ACCESS BY INDEX ROWID table 2 128 2 (0) 00:00:01
31 BUFFER SORT 7977 140K 736 (1) 00:00:09
32 TABLE ACCESS FULL table 7977 140K 102 (0) 00:00:02
33 NESTED LOOPS 310 68200 704 (1) 00:00:09
34 NESTED LOOPS 1 202 635 (1) 00:00:08
35 NESTED LOOPS 1 138 633 (1) 00:00:08
36 NESTED LOOPS 1 103 632 (1) 00:00:08
37 NESTED LOOPS 1 85 631 (1) 00:00:08
38 VIEW table 3 84 628 (1) 00:00:08
39 UNION-ALL
* 40 HASH JOIN 1 37 279 (1) 00:00:04
* 41 TABLE ACCESS BY INDEX ROWID table 1 31 4 (0) 00:00:01 * 41 TABLE ACCESS BY INDEX ROWID table131 4 (0) 00:00:01
* 42 INDEX RANGE SCAN table 1 3 (0) 00:00:01
43 TABLE ACCESS FULL table 9472 56832 275 (1) 00:00:04
* 44 HASH JOIN 1 37 319 (1) 00:00:04
* 45 TABLE ACCESS BY INDEX ROWID table 1 31 10 (0) 00:00:01
* 46 INDEX RANGE SCAN table 1 9 (0) 00:00:01
47 TABLE ACCESS FULL table 36233 212K 308 (1) 00:00:04
* 48 HASH JOIN 1 43 31 (4) 00:00:01
* 49 TABLE ACCESS BY INDEX ROWID table 1 37 3 (0) 00:00:01
* 50 INDEX RANGE SCAN table 1 2 (0) 00:00:01
51 TABLE ACCESS FULL table 2546 15276 27 (0) 00:00:01
52 TABLE ACCESS BY INDEX ROWID table 1 57 1 (0) 00:00:01
* 53 INDEX UNIQUE SCAN table 1 0 (0) 00:00:01
54 TABLE ACCESS BY INDEX ROWID table 1 18 1 (0) 00:00:01
* 55 INDEX UNIQUE SCAN table 1 0 (0) 00:00:01
56 TABLE ACCESS BY INDEX ROWID table 1 35 1 (0) 00:00:01
* 57 INDEX UNIQUE SCAN table 1 0 (0) 00:00:01
58 TABLE ACCESS BY INDEX ROWID table 2 128 2 (0) 00:00:01
* 59 INDEX RANGE SCAN table 2 1 (0) 00:00:01
* 60 TABLE ACCESS FULL table 293 5274 68 (0) 00:00:01
Predicate Information (identified by operation id):
3 - access("a.id"="b.id")
12 - access("a.id"="b.id")
13 - filter("a.id"="b.id")
14 - access("a.id"="b.id")
16 - access("a.id"="b.id")
17 - filter("a.id"="b.id")
18 - access("a.id"="b.id")
20 - access("a.id"="b.id")
21 - filter("a.id"="b.id")
22 - access("a.id"="b.id")
25 - access("a.id"="b.id")AND ("a.id"="b.id")
27 - access("a.id"="b.id")
28 - access("a.id"="b.id")
32 - access("a.id"="b.id")
36 - access("a.id"="b.id")AND ("a.id"="b.id")
37 - filter("a.id"="b.id")
40 - access("a.id"="b.id")
41 - filter("a.id"="b.id")
42 - access("a.id"="b.id")
44 - access("a.id"="b.id")
45 - filter("a.id"="b.id")
46 - access("a.id"="b.id")
48 - access("a.id"="b.id")
49 - filter("a.id"="b.id")
50 - access("a.id"="b.id")
Statistics
71 recursive calls
0 db block gets
2975 consistent gets
0 physical reads
0 redo size
2172 bytes sent via SQL*Net to client
520 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
1 sorts (memory)
0 sorts (disk)
1 rows processed
Similar Messages
-
Time_out Dump on this query take too long time
hi experts,
in my report a query taking too long time
pl. provide performance tips or suggestions
select mkpf~mblnr mkpf~mjahr mkpf~usnam mkpf~vgart
mkpf~xabln mkpf~xblnr mkpf~zshift mkpf~frbnr
mkpf~bktxt mkpf~bldat mkpf~budat mkpf~cpudt
mkpf~cputm mseg~anln1 mseg~anln2 mseg~aplzl
mseg~aufnr mseg~aufpl mseg~bpmng mseg~bprme
mseg~bstme mseg~bstmg mseg~bukrs mseg~bwart
mseg~bwtar mseg~charg mseg~dmbtr mseg~ebeln
mseg~ebelp mseg~erfme mseg~erfmg mseg~exbwr
mseg~exvkw mseg~grund mseg~kdauf mseg~kdein
mseg~kdpos mseg~kostl mseg~kunnr mseg~kzbew
mseg~kzvbr mseg~kzzug mseg~lgort mseg~lifnr
mseg~matnr mseg~meins mseg~menge mseg~lsmng
mseg~nplnr mseg~ps_psp_pnr mseg~rsnum mseg~rspos
mseg~shkzg mseg~sobkz mseg~vkwrt mseg~waers
mseg~werks mseg~xauto mseg~zeile mseg~SGTXT
into table itab
from mkpf as mkpf
inner join mseg as mseg
on mkpf~MBLNR = mseg~mblnr
and mkpf~mjahr = mseg~mjahrno the original query is, i use where clouse with conditions.
select mkpf~mblnr mkpf~mjahr mkpf~usnam mkpf~vgart
mkpf~xabln mkpf~xblnr mkpf~zshift mkpf~frbnr
mkpf~bktxt mkpf~bldat mkpf~budat mkpf~cpudt
mkpf~cputm mseg~anln1 mseg~anln2 mseg~aplzl
mseg~aufnr mseg~aufpl mseg~bpmng mseg~bprme
mseg~bstme mseg~bstmg mseg~bukrs mseg~bwart
mseg~bwtar mseg~charg mseg~dmbtr mseg~ebeln
mseg~ebelp mseg~erfme mseg~erfmg mseg~exbwr
mseg~exvkw mseg~grund mseg~kdauf mseg~kdein
mseg~kdpos mseg~kostl mseg~kunnr mseg~kzbew
mseg~kzvbr mseg~kzzug mseg~lgort mseg~lifnr
mseg~matnr mseg~meins mseg~menge mseg~lsmng
mseg~nplnr mseg~ps_psp_pnr mseg~rsnum mseg~rspos
mseg~shkzg mseg~sobkz mseg~vkwrt mseg~waers
mseg~werks mseg~xauto mseg~zeile mseg~SGTXT
into table itab
from mkpf as mkpf
inner join mseg as mseg
on mkpf~MBLNR = mseg~mblnr
and mkpf~mjahr = mseg~mjahr
WHERE mkpf~budat IN budat
AND mkpf~usnam IN usnam
AND mkpf~vgart IN vgart
AND mkpf~xblnr IN xblnr
AND mkpf~zshift IN p_shift
AND mseg~bwart IN bwart
AND mseg~matnr IN matnr
AND mseg~werks IN werks
AND mseg~lgort IN lgort
AND mseg~charg IN charg
AND mseg~sobkz IN sobkz
AND mseg~lifnr IN lifnr
AND mseg~kunnr IN kunnr. -
When query is taking too long time
When query is taking too long time,Where and how to start tuning it?
Here i've listed few things need to be considered,out of my knowledge and understanding
1.What the sql is waiting for(wait events)
2.Parameter modification need to be done at system/session level
3.The query has to be tuned (using hints )
4.Gathering/deleting statistics
List out any other things that need to be taken into account?
Which approach must be followed and on what basis that approach must be considered?When query is taking too long time,Where and how to start tuning it?explain plan will be good start . trace also
Here i've listed few things need to be considered,out of my knowledge and understanding
1.What the sql is waiting for(wait events)When Oracle executes an SQL statement, it is not constantly executing. Sometimes it has to wait for a specific event to happen befor it can proceed.
Read
http://www.adp-gmbh.ch/ora/tuning/event.html
2.Parameter modification need to be done at system/session levelDepend on parameter , define parameter , trace done on session level for example
3.The query has to be tuned (using hints )Could be help you but you must know how to use .
4.Gathering/deleting statisticsDo it in non working hours , it will impact on database performance , but its good
List out any other things that need to be taken into account?Which account ?
Which approach must be followed and on what basis that approach must be considered?you could use lot of tools , Trace , AWR -
Taking too long time to get LOV
HI,
I have created a customer folder in which the query retuns 0.5 million records.
I have created a item class in airline_name column which is being used in the worksheet as parameter.
The problem is it is taking too long time near about 2 min to get LOV when the user wants to search the exact name.
Thanks,
Himanshu TiwariHi,
Usually, you should not use the folder that the report is based on to define the LOV. You should use a separate folder to define the LOV that is optimised to return the content of the LOV.
Rod West -
Discoverer report taking too long time to open.
HI,
Discovere reports are taking too long time to open. Please help to resolve this.
Regards,
BhatiaWhat is the Dicoverer and the Application release?
Please refer to the following links (For both Discoverer 4i and 10g). Please note that some Discoverer 4i notes also apply to Discoverer 10g.
Note: 362851.1 - Guidelines to setup the JVM in Apps Ebusiness Suite 11i and R12
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=362851.1
Note: 68100.1 - Discoverer Performance When Running On Oracle Applications
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=68100.1
Note: 465234.1 - Recommended Client Java Plug-in (JVM/JRE) For Discoverer Plus 10g (10.1.2)
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=465234.1
Note: 329674.1 - Slow Performance When Opening Plus Workbooks from Oracle 11.5.10 Applications Home Page
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=329674.1
Note: 190326.1 - Ideas for Improving Discoverer 4i Performance in an Applications 11i Environment
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=190326.1
Note: 331435.1 - Slow Perfomance Using Disco 4.1 Admin/Desktop in Oracle Applications Mode EUL
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=331435.1
Note: 217669.1 - Refreshing Folders and opening workbooks is slow in Apps 11i environment
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=217669.1 -
Hyperion Planning Web URL is taking Too long time to respond
Hi,
When Users are accessing Hyperion Planning URL web link its taking too long time to respond.We restarted the services after these for 2 hours it works fine after that again same issue.Please advise.Hi John,
Follwing is the Log noted: when URL is slow:
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R com.hyperion.planning.olap.EssbaseException: ESSG_ERR_OPERATIONFAILED (1100027)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.olap.HspEssbaseGridAPI.HspSaveGrid(Native Method)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.olap.HspEssGConnection.hspSaveGrid(Unknown Source)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.olap.HspEssbaseJniOlap.loadOrSaveForm(Unknown Source)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.olap.HspEssbaseJniOlap.saveForm(Unknown Source)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.db.HspFMDBImpl.saveFormGrid(Unknown Source)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.HyperionPlanningBean.SaveFormGrid(Unknown Source)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at HspEnterData.Handle(Unknown Source)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at HspEnterData.doPost(Unknown Source)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1213)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:658)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:764)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:457)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:515)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:300)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
[8/15/12 10:17:21:204 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1551)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R com.hyperion.planning.olap.EssbaseException: ESSG_ERR_OPERATIONFAILED (1100027)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.olap.HspEssbaseGridAPI.HspSaveGrid(Native Method)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.olap.HspEssGConnection.hspSaveGrid(Unknown Source)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.olap.HspEssbaseJniOlap.loadOrSaveForm(Unknown Source)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.olap.HspEssbaseJniOlap.saveForm(Unknown Source)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.db.HspFMDBImpl.saveFormGrid(Unknown Source)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.HyperionPlanningBean.SaveFormGrid(Unknown Source)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at HspEnterData.Handle(Unknown Source)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at HspEnterData.doPost(Unknown Source)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1213)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:658)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:764)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:457)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:515)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:300)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
[8/15/12 10:17:21:220 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1551)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R com.hyperion.planning.olap.EssbaseException: ESSG_ERR_OPERATIONFAILED (1100027)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.olap.HspEssbaseGridAPI.HspSaveGrid(Native Method)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.olap.HspEssGConnection.hspSaveGrid(Unknown Source)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.olap.HspEssbaseJniOlap.loadOrSaveForm(Unknown Source)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.olap.HspEssbaseJniOlap.saveForm(Unknown Source)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.db.HspFMDBImpl.saveFormGrid(Unknown Source)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.HyperionPlanningBean.SaveFormGrid(Unknown Source)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at HspEnterData.Handle(Unknown Source)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at HspEnterData.doPost(Unknown Source)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1213)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:658)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:764)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:457)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:515)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:300)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1551)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R com.hyperion.planning.HspRuntimeException: There was an error during the save process.
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.db.HspFMDBImpl.saveFormGrid(Unknown Source)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.HyperionPlanningBean.SaveFormGrid(Unknown Source)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at HspEnterData.Handle(Unknown Source)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at HspEnterData.doPost(Unknown Source)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1213)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:658)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:764)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:457)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:515)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:300)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
[8/15/12 10:17:21:236 GMT+08:00] 00000019 SystemErr R at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
[8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1551)
[8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R com.hyperion.planning.olap.EssbaseException: ESSG_ERR_OPERATIONFAILED (1100027)
[8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.olap.HspEssbaseGridAPI.HspSaveGrid(Native Method)
[8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.olap.HspEssGConnection.hspSaveGrid(Unknown Source)
[8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.olap.HspEssbaseJniOlap.loadOrSaveForm(Unknown Source)
[8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.olap.HspEssbaseJniOlap.saveForm(Unknown Source)
[8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.db.HspFMDBImpl.saveFormGrid(Unknown Source)
[8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.HyperionPlanningBean.SaveFormGrid(Unknown Source)
[8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
[8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
[8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R at com.hyperion.planning.HyperionPlanningBean.Save(Unknown Source)
[8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R at HspEnterData.Handle(Unknown Source)
[8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R at HspEnterData.doPost(Unknown Source)
[8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
[8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
[8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1213)
[8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:658)
[8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526)
[8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
[8/15/12 10:17:21:251 GMT+08:00] 00000019 SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:764) -
Attribute Change run taking too long time to complete.
Hi all,
Attribute change run has been taking too long time to complete.It has to realign 50 odd aggreagates, some by delta , some by reconstruction. But inspite of all the aggregates it used to finish in quick time earlier. But since last 4-5 days it is taking indefinite time to finish.
Can anyone please suggest what all reasons may be causing this? and what possibly can be the solution to the problem? It is becoming a big issue. So kindly help with ur advises.
Promise to reward your answer liberally.
Regards,
Pradyut.Hi,
Check with your functional owners in R/3 if there are mass changes/realignments or classification changes are going on regarding master data. e.g. reasigning materials to other material groups. This causes a major realignment in BW for all the aggregates. Otherwise check for parameterchanges / patches or missing db stats with your sap basis team.
Kind regards, Patrick Rieken. -
Why iPad2 is taking too long time for a software update?
Hi, i have iPad2 with iOS 4.3, now I'd like to update to iOS 6.1.2, but it is taking too long time to update when i connect to iYunes.My internet speed is 15mbps.I am unable to understand the problem.Please help me
Hi, i have iPad2 with iOS 4.3, now I'd like to update to iOS 6.1.2, but it is taking too long time to update when i connect to iYunes.My internet speed is 15mbps.I am unable to understand the problem.Please help me
-
Sql Query taking very long time to complete
Hi All,
DB:oracle 9i R2
OS:sun solaris 8
Below is the Sql Query taking very long time to complete
Could any one help me out regarding this.
SELECT MAX (md1.ID) ID, md1.request_id, md1.jlpp_transaction_id,
md1.transaction_version
FROM transaction_data_arc md1
WHERE md1.transaction_name = :b2
AND md1.transaction_type = 'REQUEST'
AND md1.message_type_code = :b1
AND NOT EXISTS (
SELECT NULL
FROM transaction_data_arc tdar2
WHERE tdar2.request_id = md1.request_id
AND tdar2.jlpp_transaction_id != md1.jlpp_transaction_id
AND tdar2.ID > md1.ID)
GROUP BY md1.request_id,
md1.jlpp_transaction_id,
md1.transaction_version
Any alternate query to get the same results?
kindly let me know if any one knows.
regards,
kk.
Edited by: kk001 on Apr 27, 2011 11:23 AMDear
/* Formatted on 2011/04/27 08:32 (Formatter Plus v4.8.8) */
SELECT MAX (md1.ID) ID, md1.request_id, md1.jlpp_transaction_id,
md1.transaction_version
FROM transaction_data_arc md1
WHERE md1.transaction_name = :b2
AND md1.transaction_type = 'REQUEST'
AND md1.message_type_code = :b1
AND NOT EXISTS (
SELECT NULL
FROM transaction_data_arc tdar2
WHERE tdar2.request_id = md1.request_id
AND tdar2.jlpp_transaction_id != md1.jlpp_transaction_id
AND tdar2.ID > md1.ID)
GROUP BY md1.request_id
,md1.jlpp_transaction_id
,md1.transaction_versionCould you please post here :
(a) the available indexes on transaction_data_arc table
(b) the description of transaction_data_arc table
(c) and the formatted explain plan you will get after executing the query and issuing:
select * from table (dbms_xplan.display_cursor);Hope this helps
Mohamed Houri -
I am trying to update my ipad mini but taking too long time 5 hours
i am trying to update my ipad mini to ios 7 but taking too long time 5 hours so what i have to do
Message was edited by: GOPAL DHRUWYou can try resetting your iPad by simultaneously pressing and holding the Home and Sleep/Wake buttons until you see the Apple Logo. This can take up to 15 seconds so be patient and don't release the buttons until the logo appears.
Try again to see if the problem persists. -
Hi friends,
the view I have created on a table is taking toooo long a time to gimme the results
when am trying to select * from table_name
Can some one suggest me a solution pls
CREATE OR REPLACE VIEW XXKDD_LATEST_SAL
(RN, MONTH, YEAR, EMPLOYEE_NUMBER, POSITION,
PAYROLL_NAME, DEPT, STATUS, TERMINATION_DATE, FULL_NAME,
TOP3, BASIC_SALARY)
AS
select "RN","MONTH","YEAR","EMPLOYEE_NUMBER","POSITION","PAYROLL_NAME","DEPT","STATUS","TERMINATION_DATE","FULL_NAME","TOP3","BASIC_SALARY" from (
SELECT ROW_NUMBER() OVER (PARTITION BY employee_number ORDER BY employee_number) rn, tp.*
FROM (SELECT MONTH, YEAR, employee_number, position, payroll_name, dept, status, termination_date, full_name,
ROW_NUMBER () OVER (PARTITION BY employee_number, basic_salary ORDER BY YEAR , MONTH) top3,
DECODE (basic_salary,
100000, 4500,
24000, 1921,
basic_salary
) basic_salary
FROM kdd_pay_hr_sal_vw
order by employee_number,year desc) tp
WHERE top3 <= 1
select * from XXKDD_LATEST_SALRead these informative threads:
When your query takes too long ...
HOW TO: Post a SQL statement tuning request - template posting
And edit your post, add relevant details like database version, execution plan etc., it is all listed in the above links.
And use the {noformat}{noformat}-tags, to keep your examples formatted and indented and readable. -
Loop with WMI Query taking too long, need to break out if time exceeds 5 min
I've written a script that will loop through a list of computers and run a WMI query using the Win32_Product class. I am pinging the host first to ensure its online which eliminates wasting time but the issue I'm facing is that some of the machines
are online but the WMI Query takes too long and holds up the script. I wanted to add a timeout to the WMI query so if a particular host will not respond to the query or gets stuck the loop will break out an go to the next computer object. I've added my code
below:
$Computers = @()
$computers += "BES10-BH"
$computers += "AUTSUP-VSUS"
$computers += "AppClus06-BH"
$computers += "Aut01-BH"
$computers += "AutLH-VSUS"
$computers += "AW-MGMT01-VSUS"
$computers += "BAMBOOAGT-VSUS"
## Loop through all computer objects found in $Computes Array
$JavaInfo = @()
FOREACH($Client in $Computers)
## Gather WMI installed Software info from each client queried
Clear-Host
Write-Host "Querying: $Client" -foregroundcolor "yellow"
$HostCount++
$Online = (test-connection -ComputerName ADRAP-VSUS -Count 1 -Quiet)
IF($Online -eq "True")
$ColItem = Get-WmiObject -Class Win32_Product -ComputerName $Client -ErrorAction SilentlyContinue | `
Where {(($_.name -match "Java") -and (!($_.name -match "Auto|Visual")))} | `
Select-Object Name,Version
FOREACH($Item in $ColItem)
## Write Host Name as variable
$HostNm = ($Client).ToUpper()
## Query Named Version of Java, if Java is not installed fill variable as "No Java Installed
$JavaVerName = $Item.name
IF([string]::IsNullOrEmpty($JavaVerName))
{$JavaVerName = "No Installed"}
## Query Version of Java, if Java is not installed fill variable as "No Java Installed
$JavaVer = $Item.Version
IF([string]::IsNullOrEmpty($JavaVer))
{$JavaVer = "Not Installed"}
## Create new object to organize Host,JavaName & Version
$JavaProp = New-Object -TypeName PSObject -Property @{
"HostName" = $HostNm
"JavaVerName" = $JavaVerName
"JavaVer" = $JavaVer
## Add new object data "JavaProp" from loop into array "JavaInfo"
$JavaInfo += $JavaProp
Else
{Write-Host "$Client didn't respond, Skipping..." -foregroundcolor "Red"}Let me give you a bigger picture of the script. I've included the emailed table the script produces and the actual script. While running the script certain hosts get hung up when running the WMI query which causes the script to never complete. From one of
the posts I was able to use the Get-WmiCustom function to add a timeout 0f 15 seconds and then the script will continue if it is stuck. The problem is when a host is skipped I am not aware of it because my script is not reporting the server that timed out.
If you look at ZLBH02-VSUS highlighted in the report you can see that its reporting not installed when it should say something to the effect query hung.
How can I add a variable in the function that will be available outside the function that I can key off of to differentiate between a host that does not have the software installed and one that failed to query?
Script Output:
Script:
## Name: JavaReportWMI.ps1 ##
## Requires: Power Shell 2.0 ##
## Created: January 06, 2015 ##
<##> $Version = "Script Version: 1.0" <##>
<##> $LastUpdate = "Updated: January 06, 2015" <##>
## Configure Compliant Java Versions Below ##
<##> $java6 = "6.0.430" <##>
<##> $javaSEDEVKit6 = "1.6.0.430" <##>
<##> $java7 = "7.0.710" <##>
<##> $javaSEDEVKit7 = "1.7.0.710" <##>
<##> $java8 = "8.0.250" <##>
<##> $javaSEDDEVKit8 = "1.8.0.250" <##>
## Import Active Directory Module
Import-Module ActiveDirectory
$Timeout = "False"
Function Get-WmiCustom([string]$computername,[string]$namespace,[string]$class,[int]$timeout=15)
$ConnectionOptions = new-object System.Management.ConnectionOptions
$EnumerationOptions = new-object System.Management.EnumerationOptions
$timeoutseconds = new-timespan -seconds $timeout
$EnumerationOptions.set_timeout($timeoutseconds)
$assembledpath = "\\" + $computername + "\" + $namespace
#write-host $assembledpath -foregroundcolor yellow
$Scope = new-object System.Management.ManagementScope $assembledpath, $ConnectionOptions
$Scope.Connect()
$querystring = "SELECT * FROM " + $class
#write-host $querystring
$query = new-object System.Management.ObjectQuery $querystring
$searcher = new-object System.Management.ManagementObjectSearcher
$searcher.set_options($EnumerationOptions)
$searcher.Query = $querystring
$searcher.Scope = $Scope
trap { $_ } $result = $searcher.get()
return $result
## Log time for duration clock
$Start = Get-Date
$StartTime = "StartTime: " + $Start.ToShortTimeString()
## Environmental Variables
$QueryMode = $Args #parameter for either "Desktops" / "Servers"
$CsvPath = "C:\Scripts\JavaReport\JavaReport" + "$QueryMode" + ".csv"
$Date = Get-Date
$Domain = $env:UserDomain
$HostName = ($env:ComputerName).ToLower()
## Regional Settings
## Used for testing
IF ($Domain -eq "abc") {$Region = "US"; $SMTPDomain = "abc.com"; `
$ToAddress = "[email protected]"; `
$ReplyDomain = "abc.com"; $smtpServer = "relay.abc.com"}
## Control Variables
$FromAddress = "JavaReport@$Hostname.na.$SMTPDomain"
$EmailSubject = "Java Report - $Region"
$computers = @()
$computers += "ZLBH02-VSUS"
$computers += "AUTSUP-VSUS"
$computers += "AppClus06-BH"
$computers += "Aut01-BH"
$computers += "AutLH-VSUS"
$computers += "AW-MGMT01-VSUS"
$computers += "BAMBOOAGT-VSUS"
#>
## Loop through all computer objects found in $Computes Array
$JavaInfo = @()
FOREACH($Client in $Computers)
## Gather WMI installed Software info from each client queried
Clear-Host
Write-Host "Querying: $Client" -foregroundcolor "yellow"
$HostCount++
$Online = (test-connection -ComputerName ADRAP-VSUS -Count 1 -Quiet)
IF($Online -eq "True")
$ColItem = Get-WmiCustom -Class Win32_Product -Namespace "root\cimv2" -ComputerName $Client -ErrorAction SilentlyContinue | `
Where {(($_.name -match "Java") -and (!($_.name -match "Auto|Visual")))} | `
Select-Object Name,Version
FOREACH($Item in $ColItem)
## Write Host Name as variable
$HostNm = ($Client).ToUpper()
## Query Named Version of Java, if Java is not installed fill variable as "No Java Installed
$JavaVerName = $Item.name
IF([string]::IsNullOrEmpty($JavaVerName))
{$JavaVerName = "No Installed"}
## Query Version of Java, if Java is not installed fill variable as "No Java Installed
$JavaVer = $Item.Version
IF([string]::IsNullOrEmpty($JavaVer))
{$JavaVer = "Not Installed"}
## Create new object to organize Host,JavaName & Version
$JavaProp = New-Object -TypeName PSObject -Property @{
"HostName" = $HostNm
"JavaVerName" = $JavaVerName
"JavaVer" = $JavaVer
## Add new object data "JavaProp" from loop into array "JavaInfo"
$JavaInfo += $JavaProp
Else
{Write-Host "$Client didn't respond, Skipping..." -foregroundcolor "Red"}
#Write-Host "Host Query Count: $LoopCount" -foregroundcolor "yellow"
## Sort Array
Write-Host "Starting Array" -foregroundcolor "yellow"
$JavaInfoSorted = $JavaInfo | Sort-object HostName
Write-Host "Starting Export CSV" -foregroundcolor "yellow"
## Export CSV file
$JavaInfoSorted | export-csv -NoType $CsvPath -Force
$Att = new-object Net.Mail.Attachment($CsvPath)
Write-Host "Building Table Header" -foregroundcolor "yellow"
## Table Header
$list = "<table border=1><font size=1.5 face=verdana color=black>"
$list += "<tr><th><b>Host Name</b></th><th><b>Java Ver Name</b></th><th><b>Ver Number</b></th></tr>"
Write-Host "Building HTML Table" -foregroundcolor "yellow"
FOREACH($Item in $JavaInfoSorted)
Write-Host "$UniqueHost" -foregroundcolor "Yellow"
## Alternate Table Shading between Green and White
IF($LoopCount++ % 2 -eq 0)
{$BK = "bgcolor='E5F5D7'"}
ELSE
{$BK = "bgcolor='FFFFFF'"}
## Set Variables
$JVer = $Item.JavaVer
$Jname = $Item.JavaVerName
## Change Non-Compliant Java Versions to red in table
IF((($jVer -like "6.0*") -and (!($jVer -match $java6))) -or `
(($jName -like "*Java(TM) SE Development Kit 6*") -and (!($jName -match $javaSEDEVKit6))) -or `
(($jVer -like "7.0*") -and (!($jVer -match $java7))) -or `
(($jName -like "*Java SE Development Kit 7*") -and (!($jName -match $javaSEDEVKit7))))
$list += "<tr $BK style='color: #ff0000'>"
## Compliant Java version are displayed in black
ELSE
$list += "<tr $BK style='color: #000000'>"
## Populate table with host name variable
$list += "<td>" + $Item."HostName" + "</td>"
## Populate table with Java Version Name variable
$list += "<td>" + $Item."JavaVerName" + "</td>"
## Populate table with Java Versionvariable
$list += "<td>" + $Item."JavaVer" + "</td>"
$list += "</tr>"
$list += "</table></font>"
$End = Get-Date
$EndTime = "EndTime: " + $End.ToShortTimeString()
#$TimeDiff = New-TimeSpan -Start $StartTime -End $EndTime
$StartTime
$EndTime
$TimeDiff
Write-Host "Total Hosts:$HostCount"
## Email Function
Function SendEmail
$msg = new-object Net.Mail.MailMessage
$smtp = new-object Net.Mail.SmtpClient($smtpServer)
$msg.From = ($FromAddress)
$msg.ReplyTo =($ToAddress)
$msg.To.Add($ToAddress)
#$msg.BCC.Add($BCCAddress)
$msg.Attachments.Add($Att)
$msg.Subject = ($EmailSubject)
$msg.Body = $Body
$msg.IsBodyHTML = $true
$smtp.Send($msg)
$msg.Dispose()
## Email Body
$Body = $Body + @"
<html><body><font face="verdana" size="2.5" color="black">
<p><b>Java Report - $Region</b></p>
<p>$list</p>
</html></body></font>
<html><body><font face="verdana" size="1.0" color="red">
<p><b> Note: Items in red do not have the latest version of Java installed. Please open a ticket to have an engineer address the issue.</b></p>
</html></body></font>
<html><body><font face="verdana" size="2.5" color="black">
<p>
$StartTime<br>
$EndTime<br>
$TimeDiff<br>
$HostCount<br>
</p>
<p>
Run date: $Date<br>
$Version<br>
$LastUpdate<br>
</p>
</html></body></font>
## Send Email
SendEmail -
WebI Report is taking too long time to opening
Hi All,
When iam trying to open the WebI report in Infoview , it is taking long time to open and refresh,
Please suggest me a solution.
Thanks in advance..
Regards,
MaheshHi,
As the issue you are facing is that the webi report is taking too long to open and refresh, I would recommend the below steps.
1. Check whether the webi report is set to "Refreh on Open" if yes probably you need to uncheck, save the report and open it again.
2. Try to run the same query in the backend database and see if it returns the data.
3. Try to run refresh the report for a smaller data selection.
4. make the report run on a specific webi server, and when refreshing have your BOBJ admin monitor that process to see if the process is going in a hung state, using High memory etc.
5. restart webi process and run again
Thanks,
aKs -
Query taking too long, yet cost is low
hi guys,
I am running a query on two databases that were created the same way and have the same data.
On one the cost is nearly a million, and it runs in a matter of a few seconds
On the other, the cost is 40000, and it doesn't finish executing
I have looked at the explain plan, and there is no cartesian merge join on the second query, yet it is taking so long. What can I do to investigate this?
thanksCould you please post an properly formatted explain plan output using DBMS_XPLAN.DISPLAY including the "Predicate Information" section below the plan to provide more details regarding your statement. Please use the \[code\] and \[code\] tags to enhance readability of the output provided:
In SQL*Plus:
SET LINESIZE 130
EXPLAIN PLAN FOR <your statement>;
SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);Note that the package DBMS_XPLAN.DISPLAY is only available from 9i on.
In previous versions you could run the following in SQL*Plus (on the server) instead:
@?/rdbms/admin/utlxplsA different approach in SQL*Plus:
SET AUTOTRACE ON EXPLAIN
<run your statement>;will also show the execution plan.
In order to get a better understanding where your statement spends the time you might want to turn on SQL trace as described here:
[When your query takes too long|http://forums.oracle.com/forums/thread.jspa?threadID=501834]
and post the "tkprof" output here, too.
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/ -
Java Web Start is taking too long time to fill the bar
Hi All,
I am using Eclipse and using JBOSS from Remote and when I am deploying an applent with Java Web Start, it is taking a very long time for filling the bar(taking more time for verifying and downloading Application).
Can anyone help me for fixing it.
Thanks in Advance.795697 wrote:
Hi,
when I am deploying an Applet with the help of Java Web Start It is taking too much time for verifying and downloading the application.
I am using Eclipse and JBOSS.
This is the problem.
I think you can understand it.I can't. I don't understand what Eclipse and JBoss have to do with webstart and I can't understand what webstart has to do with deploying an applet.
Its all just completely unrelated! I'm just going to make a dumb assumption and say that it is your computer.
Maybe you are looking for
-
SAP Generated Report (RV13F501)
In Dev. there is a report that is generated (RV13F501) and that report is trying to access the table KOMGF, field ZZPartner. The problem is ZZPartner does not exist. In Test and Prod RV13F501 is not generated but RV13F502 is instead. Can anybody g
-
How to concatenate the values in single row with images or colours
hi all, i am apex 4.2, i tried to execute a plsql query for the values concatenate two values into same column example in my table i am having teachers list one can teach two or three subjects in table i am saving like teacher_id teache
-
Clean install of Win8.1 on Yoga 2 Pro
Hello everybody. I just bought a Yoga 2 Pro with pre-installed Win 8.1. I'm actually not a Windows user, therefore I have some questions, which I hope I find some solutions here. When I received the Yoga, there was plenty of software pre-installed wh
-
Flatfile loading-info packager settings
hi guys, Im trying to load one flatfile into infocube. when Im doing settings in infopackage,I came across a tabstrip with name EXTERNAL DATA....in that I didnot understand 1. the two options they gave where I have to choose one.Can u explain the mea
-
No iPhoto on my os x 10.9
I do not have iphoto on my computer? I was wondering if this is something that should come with the computer or if I have to pay to download it. I recently recieved this computer as used, but was wiped out before I recieved it.