Oracle spawning parallel 128 processes when queried from Cognos
Hi,
I am querying a parallel enabled table with DOP set to default. Oracle 11.2 is installed on a 16 core machine while Cognos sits on a 4 core linux system. When querying the same table fromToad, I observe 32 parallel processes. Any thoughts as to why the difference and why that many number of processes get spawned from Cognos?
Thanks
What and what are you runnng and how are they configured?
I ask this because what you are seeing could be as a reulst of so many factors.
An example is that if you are using Planning Contributor, then you are likely to have more processes reading and writing to the database at the same time. The number of processes will then depend on serveral issues. For instance the number of CPUs on the box, the number of Contributor Applications, the number of Publish Containers and the interval the jobs are configured to run. Using a scenario where you have a single monitorin job on a 2 cpu box for 10 Contributor Applications. Ths may spawn up to 20 processes. To make things worse, if you happen to have some of the previous 20 processes not completing before the next job interval, then it adds more to the number you see.
Similar Messages
-
Delay when querying from CUBE_TABLE object, what is it?
Hi Guys,
We are using Oracle OLAP 11.2.0.2.0 with an 11g Cube, 7 Dimensions, Compressed and partitioned by Month.
We have run into a performance issue when implementing OBIEE.
The main issue we have is a delay while drilling on a hierarchy. Users have been waiting 7-12 seconds per drill on a hierarchy, and the query is only returning a few cells of data. We have managed to isolate this to slow performing queries on CUBE_TABLE.
For example, the following query returns one cell of data:
SELECT FINSTMNT_VIEW.BASE, FINSTMNT_VIEW.REPORT_TYPE, FINSTMNT_VIEW.COMPANY, FINSTMNT_VIEW.SCENARIO, FINSTMNT_VIEW.PRODUCT, FINSTMNT_VIEW.ACCOUNT, FINSTMNT_VIEW.SITE, FINSTMNT_VIEW.TIME
FROM "SCHEMA1".FINSTMNT_VIEW FINSTMNT_VIEW
WHERE
FINSTMNT_VIEW.REPORT_TYPE IN ('MTD' )
AND FINSTMNT_VIEW.COMPANY IN ('E01' )
AND FINSTMNT_VIEW.SCENARIO IN ('ACTUAL' )
AND FINSTMNT_VIEW.PRODUCT IN ('PT' )
AND FINSTMNT_VIEW.ACCOUNT IN ('APBIT' )
AND FINSTMNT_VIEW.SITE IN ('C010885' )
AND FINSTMNT_VIEW.TIME IN ('JUN11' ) ;
1 Row selected in 4.524 Seconds
Note: FINSTMNT_VIEW is the automatically generated cube view.
CREATE OR REPLACE FORCE VIEW "SCHEMA1"."FINSTMNT_VIEW" ("BASE","REPORT_TYPE", "COMPANY", "SCENARIO", "PRODUCT", "ACCOUNT", "SITE", "TIME")
AS
SELECT "BASE", "REPORT_TYPE", "COMPANY", "SCENARIO", "PRODUCT", "ACCOUNT", "SITE", "TIME"
FROM TABLE(CUBE_TABLE('"SCHEMA1"."FINSTMNT"') ) ;
If we increase the amount of data returned by adding to the query, it only increased the query time by .4 seconds
SELECT FINSTMNT_VIEW.BASE, FINSTMNT_VIEW.REPORT_TYPE, FINSTMNT_VIEW.COMPANY, FINSTMNT_VIEW.SCENARIO, FINSTMNT_VIEW.PRODUCT, FINSTMNT_VIEW.ACCOUNT, FINSTMNT_VIEW.SITE, FINSTMNT_VIEW.TIME
FROM "SCHEMA1".FINSTMNT_VIEW FINSTMNT_VIEW
WHERE
FINSTMNT_VIEW.REPORT_TYPE IN ('MTD' )
AND FINSTMNT_VIEW.COMPANY IN ('E01' )
AND FINSTMNT_VIEW.SCENARIO IN ('ACTUAL' )
AND FINSTMNT_VIEW.PRODUCT IN ('PT' )
AND FINSTMNT_VIEW.ACCOUNT IN ('APBIT' )
AND FINSTMNT_VIEW.SITE IN ('C010885', 'C010886', 'C010891', 'C010892', 'C010887', 'C010888', 'C010897', 'C010893', 'C010890', 'C010894', 'C010896', 'C010899' )
AND FINSTMNT_VIEW.TIME IN ('JUN11' ) ;
12 rows selected - In 4.977 Seconds
If we increase the data returned even more:
SELECT FINSTMNT_VIEW.BASE, FINSTMNT_VIEW.REPORT_TYPE, FINSTMNT_VIEW.COMPANY, FINSTMNT_VIEW.SCENARIO, FINSTMNT_VIEW.PRODUCT, FINSTMNT_VIEW.ACCOUNT, FINSTMNT_VIEW.SITE, FINSTMNT_VIEW.TIME
FROM "SCHEMA1".FINSTMNT_VIEW FINSTMNT_VIEW
WHERE
FINSTMNT_VIEW.REPORT_TYPE IN ('MTD' )
AND FINSTMNT_VIEW.COMPANY IN ('ET', 'E01', 'E02', 'E03', 'E04' )
AND FINSTMNT_VIEW.SCENARIO IN ('ACTUAL' )
AND FINSTMNT_VIEW.PRODUCT IN ('PT', 'P00' )
AND FINSTMNT_VIEW.ACCOUNT IN ('APBIT' )
AND FINSTMNT_VIEW.SITE IN ('C010885', 'C010886', 'C010891', 'C010892', 'C010887', 'C010888', 'C010897', 'C010893', 'C010890', 'C010894', 'C010896', 'C010899' )
AND FINSTMNT_VIEW.TIME IN ('JUN11', 'JUL11', 'AUG11', 'SEP11', 'OCT11', 'NOV11', 'DEC11', 'JAN12') ;
118 rows selected - In 14.213 Seconds
If we take the time for each query and divide by the number of rows, we can see that querying more data results in a much more efficient query:
Time/Rows returned:
1 Row - 4.524
12 Rows - 0.4147
118 Rows - 0.120449153
It seems like there is an initial delay of approx 4 seconds when querying the CUBE_TABLE object. Using AWM to query the same data using LIMIT and RPR is almost instantaneous...
Can anyone explain what this delay is, and if there is any way to optimise the query?
Could it be the AW getting attached before each query?
Big thanks to anyone that can help!Thanks Nasar,
I have run a number of queries with logging enabled, the things you mentioned all look good:
Loop Optimization: GDILoopOpt COMPLETED
Selection filter: FILTER_LIMITS_FAST 7
ROWS_FAILED_FILTER 0
ROWS_RETURNED 1
Predicates: 7 pruned out of 7 predicates
The longest action I have seen in the log is the PAGING operation... but I do not see this on all queries.
Time Total Time OPERATION
2.263 27.864 PAGING DYN_PAGEPOOL TRACE GREW 9926KB to 59577KB
1.825 25.601 PAGING DYN_PAGEPOOL TRACE GREW 8274KB to 49651KB
1.498 23.776 PAGING DYN_PAGEPOOL TRACE GREW 6895KB to 41377KB
1.232 22.278 PAGING DYN_PAGEPOOL TRACE GREW 5747KB to 34482KB
1.17 21.046 PAGING DYN_PAGEPOOL TRACE GREW 4788KB to 28735KB
1.03 19.876 PAGING DYN_PAGEPOOL TRACE GREW 3990KB to 23947KB
2.808 18.846 PAGING DYN_PAGEPOOL TRACE GREW 3325KB to 19957KB
What is strange is that the cube operation log does not account for all of the query time. For example:
SELECT "BASE_LVL" FROM TABLE(CUBE_TABLE('"EXAMPLE"."FINSTMNT"'))
WHERE
"RPT_TYPE" = 'MTD' AND
"ENTITY" = 'ET' AND
"SCENARIO" = 'ACTUAL' AND
"PRODUCT" = 'PT' AND
"GL_ACCOUNT" = 'APBIT' AND
"CENTRE" = 'TOTAL' AND
"TIME" = 'YR09';
This query returns in 6.006 seconds using SQL Developer, if I then take the CUBE_OPERATION_LOG for this query and subtract the start time from the end time, I only get 1.67 seconds. This leaves 4.3 seconds unaccounted for... This is the same with the my other queries, see actual time and logged time below:
Query Actual Logged Variance
S3 6.006 1.67 4.336
L1 18.128 13.776 4.352
S1 4.461 0.203 4.258
L2 4.696 0.39 4.306
S2 5.882 1.575 4.307
Any ideas on what this could be or how I can capture this 4.3 second overhead?
Your help has been greatly appreciated. -
Insert Chinese data in Oracle but cannot be shown when querying
I use:
JDK 1.1.8, Oracle 8i, thin driver.
The OS is HP Unix.
I successfully insert the Chinese Big5 encoding data into Oracle. But I can't show the Chinese again when I querying.
Here's my code:
Class.forName("oracle.jdbc.driver.OracleDriver");
con = DriverManager.getConnection
("jdbc:oracle:thin:@hpdev.wisers.com:1521
:research", "corp", "corp");
stmt = con.createStatement();
String sqlString = new String("insert into filetable values(1,"
+ var1 + "," + var2 + "...)");
stmt.executeQuery(sqlString);
Then I show the result by "select * from filetable;". However, the Chinese Big5 encoding data cannot be shown, "+??.." is shown instead. There is no problem when the data is in English.
I have tried
byte[] sqlStringBytes = sqlString.getBytes("Big5");
String newsql = new String(sqlStringBytes,"Big5");
stmt.executeQuery(newsql);
but still not successful.
My NLS_LANG is
AMERICAN_AMERICA.ZHT16BIG5
How can I make use of this variable? How can I solve the problem?
I am very in hurry. The program deadline is coming!! Help please!!
nullYour code looks fine ?
What's your db character set ?
I successfully insert the Chinese Big5 encoding data into Oracle.How do you know this ? Did you verify with SQL*Plus to see whether the data can be retrieved ?
What are var1 and var2 ? -
Problem in Using Time Stamp when Querying from SQl Server to ODBC linked server
I am using Following Query for my subject pupose but facing different Issues, Error Also shown after Query
Query IS:
DECLARE @sql varchar(8000)
SELECT @sql = 'SELECT * FROM OPENQUERY(TEST, ' +
'''SELECT * FROM SCHEMA.OAUSER.Tag_Value ' +
'WHERE Tag_id = ''''GROUP_1SEC.COOLING_TOWERS.MOTORS.AG001.CURRENT.CV'''''+
' AND timestamp = ''''{ts ''''2014-z02-18 15:28:38'''' }'''''')'
PRINT @sql
EXEC(@sql)
And i am getting this Error:
OLE DB provider "MSDASQL" for linked server "TEST" returned message "[DataDirect][OpenAccess ODBC]Syntax error in SQL statement. syntax error line 1 at or after token <2014>.".
Msg 7321, Level 16, State 2, Line 1
Please Guide me.
Regards;
SirajSorry "Z" was written by mistake
I am using :
DECLARE @sql varchar(8000)
SELECT @sql = 'SELECT * FROM OPENQUERY(TEST, ' +
'''SELECT * FROM SCHEMA.OAUSER.Tag_Value ' +
'WHERE Tag_id = ''''GROUP_1SEC.COOLING_TOWERS.MOTORS.AG001.CURRENT.CV'''''+
' AND timestamp = ''''{2014-02-18 15:28:38}'''''')'
PRINT @sql
EXEC(@sql)
And Getting this error:
OLE DB provider "MSDASQL" for linked server "TEST" returned message "[DataDirect][OpenAccess ODBC]Error getting the literal value of right operand.". -
Got error when query from QaaWS.
Hello expert.
I have some problem about QaaWS.
When I create and build my query then click next to run query it appear error
Get data provider warning
getDocumentInformation exception (Error: WIS 10901)
A database error occured. The database error text is: (CS) "Specified RDBMS is invalid" . (WIS 10901)
But when I query in Web Intelligence Rich Client it work normally.
When I enter url http://<hostname>:8080/dswsbobje/services/Session
I got message.
"Please enable REST support in WEB-INF/conf/axis2.xml and WEB-INF/web.xml"
Please give me some suggestion
Thank you.
- Chai -Hello.
I have a 32bit window version.
Thank you.
And the problem about CLASSPATH is solve.
The solution is I add the path in the file "jdbc.sco"
on C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\dataAccess\connectionServer\jdbc
as below.
<DataBase Active="Yes" Name="DB2 v9">
<Class JARFile="dbd_jdbc,dbd_db2">com.businessobjects.connectionserver.java.drivers.jdbc.db2.DB2Driver</Class>
<JDBCDriver>
<ClassPath>
<Path>C:\PROGRA~1\IBM\SQLLIB4\java\db2java.zip</Path>
<Path>C:\PROGRA~1\IBM\SQLLIB4\java\db2jcc.jar</Path>
<Path>C:\PROGRA~1\IBM\SQLLIB4\function</Path>
<Path>C:\PROGRA~1\IBM\SQLLIB4\java\db2jcc_license_cu.jar</Path>
</ClassPath>
<Parameter Name="JDBC Class">com.ibm.db2.jcc.DB2Driver</Parameter>
<Parameter Name="URL Format">jdbc:db2://$DATASOURCE$/$DATABASE$</Parameter>
</JDBCDriver>
But When I query form QaaWS it appear the same error.
Please help.
Thank you.
-chai-
Edited by: ChaiChai2 on Jul 15, 2009 11:10 AM -
Slow processing when clicking from song to song - the wheel keeps spinning!
When I click from song to song within iTunes 8.2.1 (6) (my music is kept on an external hard drive with a USB 2.0 connection), it takes an additional minute for it to play - the wheel keeps spinning - and this increases my workload by over 500%! Any idea why this is happening? Any way to correct it?
I used to occur when using 8.0, but then the 8.1 upgrade corrected this problem, but now that 8.2 is up, the wheel spins and spins and spins.Look at iOS Troubleshooting Wi-Fi networks and connections http://support.apple.com/kb/TS1398
iPad: Issues connecting to Wi-Fi networks http://support.apple.com/kb/ts3304
iOS: Recommended settings for Wi-Fi routers and access points http://support.apple.com/kb/HT4199
Additional things to try.
Try this first. Turn Off your iPad. Then turn Off (disconnect power cord) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
Change the channel on your wireless router (Auto is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
How to Quickly Fix iPad 3 Wi-Fi Reception Problems
http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
If none of the above suggestions work, look at this link.
iPad Wi-Fi Problems: Comprehensive List of Fixes
http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
Fix iPad Wifi Connection and Signal Issues http://www.youtube.com/watch?v=uwWtIG5jUxE
Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
Unable to Connect After iOS Update - saw this solution on another post.
https://discussions.apple.com/thread/4010130
Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
~~~~~~~~~~~~~~~
If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
Cheers, Tom -
Ora-00942 when querying object privs
Hi, I have a OEM 9.2 accessing an Oracle 9.2 instance. When querying object privs I get error 942. All else works OK. I have 07_dictionary_accesibility=true and the OEM user has DBA and select any dictionary privs. oms.nohup does not show anything unusual neither dbsnmp.log . Any ideas?
there will still be some sys objects that may throw this
-
Query from source table takes lots of time
I have to load data from an Oracle table which has millions of records. The loading knowledge module I am using is 'lkm sql to oracle'.
I see that the query from the source database takes lot of time and doing a full table scan where as it supposed to be using an index.
I dont have any lkm with 'lkm oracle to oracle'. Some how I need to add a hint to this source query. How I can do this?This LKM is not indicated to large volume of data, try to use LKM Oracle to Oracle (DBLINK), see ODI KMs documentation for more information.
Related to HINTS you can add this with KM options, see that some Oracle ODI11g new KMs already have some options to do it, so you can put the hint on interface options of KM or define the temp index on the interface -
PC session hangs when launch a query from Oracle 9i client to 10g database
I have a pc with Oracle 9.2.0.1.0 client installed. The database server level is 10.1.0.5.
When I launch a query from a client session the pc sesssion locks up and doesn't return any results. When I launch the same query from the database server , or from other pcs with Oracle client 10 installed , I get results almost immediately from the query.
The pc in question is running Windows XP Service pack 2. Other queries run fine from the pc.
Are there are any known issues with Oracle 9 clients querying an Oracle 10 database ?Thank you for your reply. No, I must admit I didn't think of looking at the wait events. I will look at this as soon as I get a chance.
Thanks again for your suggestion. -
Oracle Server 11.2.0.1.0 64-bit fails when invoked from InstallShield
I'm trying to install the Oracle Server 11.2.0.1.0 64-bit on Windows 2008 SP1 from the InstallShield 2010.
The installation is silent. Invoked by command line:
J:\Oracle_11.2.0_x64\OracleServer_11.2.0.1_x64\setup.exe ORACLE_HOME_NAME="ARAXI_11" -silent -nowelcome -force -nowait -noconsole -loglevel fine -noconfig -ignoreSysPrereqs use_prereq_checker=false -responseFile C:\Oracle\11.2.0\installation\scripts\SVRCUSTOM11.2.0.rsp
The problem is that when the command is invoked from command line (cmd), the installation is successful.
However, when the same command is invoked from under the InstallShield, the installation fails on Architecture requirement check:
INFO: *********************************************
INFO: Architecture: This is a prerequisite condition to test whether the system has a certified architecture.
INFO: Severity:CRITICAL
INFO: OverallStatus:OPERATION_FAILED
INFO: All forked task are completed at state performChecks
INFO: Completed background operations
INFO: Moved to state <performChecks>
INFO: Waiting for completion of background operations
INFO: Completed background operations
INFO: Validating state <performChecks>
INFO: Using default Validator configured in the Action class oracle.install.ivw.db.action.PrereqAction
INFO: Adding ExitStatus PREREQUISITES_NOT_MET to the exit status set
SEVERE: [FATAL] [INS-13013] Target environment do not meet some mandatory requirements.
CAUSE: Some of the mandatory prerequisites are not met. See logs for details. C:\Oracle\Inventory\logs\installActions2011-05-19_12-58-13PM.log
ACTION: Identify the list of failed prerequisite checks from the log: C:\Oracle\Inventory\logs\installActions2011-05-19_12-58-13PM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
INFO: Advice is ABORT
INFO: Adding ExitStatus INVALID_USER_INPUT to the exit status set
The questions:
1. Why the requirement checks give different results when installation is invoked from CMD and from InstallShield?
2. Why the requirement checks are done despite the parameters "-ignoreSysPrereqs" and "use_prereq_checker=false"?
3. What should I do to get the installation pass (either remove the check or make it satisfying)?
PS. The 32 bit Oracle Server installation on Windows 2003 works without problem when invoked from InstallShield.Please use 2008R2 if you want to install 11gR2 versionThank you for that update. Possibly it will help me to solve another trouble.
Regarding the problem I described, the issue is that I install Oracle Client 32 bit prior to trying to install Oracle Servier 64 bit.
The Oracle Client setup had started RemoteExecService.exe 32 bit process. And the process remained running after the installation completed.
The Oracle Server setup utilizes the running RemoteExecService.exe process. Since the process is 32 bit, the architecture requirement check had failed.
I've added to my script killing the process
taskkill /F /IM RemoteExecService.exe
before invoking the Oracle Server installation.
That way the Oracle Server setup starts another RemoteExecService.exe process and the new process is 64 bit.
The architecture requirement succeed. -
Help with translating SQL query from SQL Server syntax to Oracle syntax
Hi,
is it someone that can help me translate following SQL query from SQL Server syntax to Oracle syntax.
SELECT ID,
[LMT(MTR)] = MAX(case when TYPE = 'LMT' then VALUE end),
[AAD(KGM)] = MAX(case when TYPE = 'AAD' then VALUE end),
[VOL(MTQ)] = MAX(case when TYPE = 'VOL' then VALUE end)
FROM yourtable
GROUP BY ID
Your help is highly appreciated, thanks in advance.Like this,
SELECT ID,
MAX(case when TYPE = 'LMT' then VALUE end) LMT_MTR,
MAX(case when TYPE = 'AAD' then VALUE end) AAD_KGM ,
MAX(case when TYPE = 'VOL' then VALUE end) VOL_MTQ
FROM yourtable
GROUP BY ID-Arun -
Fault information from bpel process when exception happens
How to extract all the fault information from bpel process when exception happens?
Are there any other methods other than "ora:getFaultName(), ora:getFaultAsString()"
When I use "ora:getFaultName(), ora:getFaultAsString()", I get the below message,so I am wondering whether
I can get any more information about the exception as mentioned below - "detailed root cause described in the exception message" -> how do I get it?
Check the detailed root cause described in the exception message text and verify that the XPath query is correct.Hi,
As far as I know, it's not possible to get the exception message with a catch all. You need to catch each exception separately, and the you will be able to get each message.
Regards
Gustavo -
Oracle report problem-Passing a column value from a query block to another
Hi I am facing a problem in oracle reports.
I have 3 query blocks say Q1,Q2 and Q3.
From Q1 I get a tblkey coulmn and for each value of tblkey I need to pass it on to Q2 which gives me a status and now finally Q3 will take tblkey and status to give me final output.
Can somebody please tell me how I can do it?
Thanks,
AvinDepending on your report requirement, you may do a join of Q1, Q2, and Q3; or keep all Qs and for Q3 use subqueries ...
Select ... from ... where tblkey, status in (
select tblkey, status from ... where tblkey in (
select tblkey from .... where .... ) )
Good luck.
DC -
I have a problem. When exporting from PDF to PPTX error "unable to process the document in the module Save As file is not created." What to do?
Windows 7 64
PCeverything works on a laptop (
-
Hi everyone..
..I have been having image quality issues when using Lightroom to process raw files from a 7d mk2... They are all soft with poor clarity.....tonight in despair I tried processing them using canon's software and they are totally different..."much better"
anyone else had similar problems....AndyI have a 7D2 and have not had what I interpret as poor image quality that has anything to do with the camera.
Can you post a screenshot of what you’re seeing and what specifically you don’t like? Maybe there is something you can do differently or at least there may be an explanation for what you’re seeing.
And if you have a raw image that you wouldn’t mind sharing in a public forum, upload to http://www.dropbox.com/ then post a public share link to it in a reply, here.
In other words post a screenshot of what you see in LR, another of what you see using DPP, and a link to the raw file you’re processing.
Maybe you are looking for
-
I am unable to get my hp pavilion entertainment pc to recognize an external monitor - orion please help is it my resolution settings? I am using windows vista thanks
-
OK, did not get my phone booting up, and I need my phone (especially the next days) so I did a "hard reset". Programs on E: drive was not uninstalled. But all on the C: drive. Maps installed OK. And everything seems to work except 3 things: 1) Nokia
-
Hi One of our systems important User ID is getting locked repeatedly. Is there any way to find so as from which terminal this is being done. Its clear that some one is trying to login by that ID without knowing the password. Thanks in advance
-
N95-2 Surely will show contact pic on text or call...
Hi really pleased with my new N95 8gig BUT surely I should be able to see a contacts thumbnail when a text comes in or when a call comes? Hate the fact it just says 1 message and you have to see who etc first? All my old Nokias did this and they were
-
Inactive connections piling up
We have a Web based application which accesses an Oracle 9.2.0.5 DB the same dsn/user/password is used to connect and connection pooling is enabled. Recently we have seen the number of connections grow to as many as 60 for the user. They are marked i