IDM 7.1.1 objchange query executing against DB 66K times an hour?!
Howdy folks,
We just upgraded from 7.0 to 7.1.1. One of my co-workers mentioned that they though it was running a little slower. We spoke to a DB about when stats were getting calculated etc on the database, and she started to look at what was running. Turns out we have a statement executing 66,000 times an hour.... Any idea why? It seems like there should be no reason to execute this frequently, and it is biting in to our database cpu cycles....
Here is the SQL if you are curious:
SELECT timestamp, id, version, changeType FROM objchange WHERE timestamp > :1 AND type=:2 ORDER BY timestamp;
Basil,
Thanks for taking the time to answer all of the questions! It saves a lot of back/forth. The bad news is that no specific thing comes to mind. The sort of degradation you see could be caused by one or more of:
o memory leaks (presumably not, because you're not running out)
o memory fragmentation -- possible, but hard to measure
o something odd going on in the DB cache -- nothing is obvious yet, but it's still being looked at.
You are using MVCC, which may help diagnose things. Have you ever run without MVCC? I assume you are not using snaphot transactions for updates (if so, you should not be doing that).
Have you tried looking at system/process information using tools like vmstat or top to detect anomalous VM and/or paging activity?
If you come up with any additional information, please post it.
Regards,
George
Similar Messages
-
How to use a parameter in an Execute SQL Tasks in SSDT executed against Netezza
Good Evening,
How can I pass a parameter in an Execute SQL Tasks in SSDT executed against Netezza? Below are my settings and error message.
[Execute SQL Task] Error: Executing the query ""TRUNCATE TABLE" ?"_POC..JOHN_TEST"" failed with the following error: "Syntax error or access violation". Possible failure reasons: Problems with the query, "ResultSet"
property not set correctly, parameters not set correctly, or connection not established correctly.
Thank you in advance for your assistance.
BrettHi Baloun,
Based on my further research, just as you said, we cannot directly use table name as a variable.
To fix this issue, we can change the SQL command in the SQLStatement property as below:
declare @sql varchar(100)
set @sql = 'TRUNCATE TABLE ' + ? +'_POC..JOHN_TEST'
exec(@sql)
go
The Parameter Mapping pane use the former settings in your picture.
Reference:
http://www.bidn.com/blogs/kylewalker/ssis/2063/parameters-don-t-always-work-in-your-execute-sql-task
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Query executes in RSRT but not in BEx Analyzer
Hi Everyone,
I have a query for an infocube and ods object, in the bex analyzer for the infocube the query executes which has around 5000 records but for the ods object which has also 5000 records comes up with this error.
<b>An exception with the type CX_SY_EXPORT_NO_SHARED_MEMORY occurred, but was
neither handled locally, nor declared in a RAISING
Message no. RS_EXCEPTION000</b>
when I execute the query in RSRT it comes up.
After closing and re logging into bex analyzer executes the query for the first but for the second time again it throws up this error.
What could be the problem? Can anyone please let me know. Its really really urgent.
Thanks,
Prashant.hi Prashant,
try check in RSRT, after choose your query, click 'properties' and set cache mode to 'main memory cache without swapping'.
also check oss note 656060-OLAP: Cache main memory displacement not functioning.
hope this helps.
Symptom
Although one of the following two cache modes
Main Memory Cache Without Swapping (mode 1)
Main Memory Cache With Swapping (mode 2)
is set for a query, long runtimes occur when you execute the query. The statistics (table RSDDSTAT) display the database times.
If there is a heavy system load, the following message can also appear: RS_EXCEPTION000: No left space in shared memory.
Other terms
Cache, performance, displacement, shared buffer
Reason and Prerequisites
This problem occurs because the shared memory is insufficiently dimensioned.
<b>Solution</b>
Increase the amount of shared memory. The size of the shared memory should be at least 200 MB. You can refer to transaction RSRCACHE for the amount of memory reserved by the main memory cache (RSRCACHE -> Main Memory: Shared Memory/Buffer Reserved).
The corresponding settings are (at least):
rsdb/esm/buffersize_kb = 200000
and, as a precaution, also
rsdb/esm/max_objects = 10000.
Alternatively, for queries with large resulting quantities, you can convert the Cache Mode in transaction RSRT1 to
Cluster/Flat File Cache for Each Application Server (mode 3)
Cluster/Flat File Cache Across Each Application Server (mode 4) -
Strange error in query executed via DBLink
Hi,
I am running below big query(existing code in my project) on a oracle database(DB1) schema which accesses data from tables located in a remote oracle database(DB2) schema.
But I am getting error:
ORA-00904: "CERMA"."EFFECTIVE_TO": invalid identifier
ORA-02063: preceding line from <DB_LINK_NAME>
The concerned table is present in remote database and simple "select * from" on the concerned table from DB1 is working properly but when used in below query it is giving the above error.
The system design is as follows:
DB2 - In this database ,Views are created in SCHEMA1 of this database which refer the underlying tables in SCHEMA2 of same database.
e.g. view name = clm_claims_basic_info_vw
DB1 - In this database , synonyms are created(with name same as underlying tables) to access the underlying table data via the views created in DB2.
e.g. synonym name = clm_claims_basic_info
DB1 - Query executed in this database which uses all the synonyms.
e.g.
select ..... from clm_claims_basic_info,clm_claim_scheme_dtl
Also this query was working fine few days back and now suddenly failing without any code-changes, but we don't know what else has changed.
Can you please suggest what could be the reason?
SELECT ccbi.claim_number claim_no, npm.policy_no policy_no,
cgm.group_no company_ref_no, cgm.NAME company_name
FROM clm_claims_basic_info ccbi,
nbs_policy_mst npm,
com_group_mst cgm,
com_product_mst cpm,
clm_member_dtl cmd,
clm_assessment ca,
clm_claim_scheme_dtl ccsd,
clm_plan_dtl cpd,
(SELECT mem_escal.member_escalation_type_vid,
mem_escal.member_max_escal_rate,
mem_escal.member_min_escal_rate,
mem_escal.member_escal_rate,
mem_escal.claim_basic_info_id,
mem_escal.member_esclation_basis_vid,
add_escal.additional_escalation_type_vid,
add_escal.additional_max_escal_rate,
add_escal.additional_min_escal_rate,
add_escal.additional_escal_rate,
add_escal.additional_esclation_basis_vid,
mem_escal.first_escal_dt, mem_escal.escal_dt
FROM (SELECT cerm.escalation_type_vid
member_escalation_type_vid,
cerm.max_escal_rate member_max_escal_rate,
cerm.min_escal_rate member_min_escal_rate,
cerm.escalation_rate member_escal_rate,
ccbi.claims_basic_info_id claim_basic_info_id,
cerm.escalation_basis_vid
member_esclation_basis_vid,
mi_claims_pkg.clm_get_escalation_date_fnc
(ccbi.claims_basic_info_id,
cpd.escal_applies_to_vid,
1,
cpd.escal_applies_to_day,
cpd.escal_applies_to_month_vid,
ccbi.event_dt,
ccbi.clm_acceptance_dt
) first_escal_dt,
NULL escal_dt
FROM clm_claims_basic_info ccbi,
clm_claim_scheme_dtl ccsd,
clm_plan_dtl cpd,
clm_escalation_dtl cede,
com_escalation_rate_mst cerm
WHERE ccbi.claims_basic_info_id =
ccsd.claim_basic_info_id
AND ccsd.plan_id = cpd.plan_id
AND cede.claim_basic_info_id(+) =
ccbi.claims_basic_info_id
AND cede.escal_dt IS NULL
AND cpd.is_escal_apply_id = 'Y'
AND ccbi.product_id = 4
AND cerm.product_id = ccbi.product_id
AND cerm.escalation_basis_vid =
cpd.escal_memben_rate_vid
AND ( ( ccbi.claim_status_vid = 2880
AND ccbi.event_dt
BETWEEN cerm.effective_from
AND NVL (cerm.effective_to,
TO_DATE ('31122999',
'DDMMYYYY'
OR ( ccbi.claim_status_vid != 2880
AND cede.first_escal_dt
BETWEEN cerm.effective_from
AND NVL (cerm.effective_to,
TO_DATE ('31122999',
'DDMMYYYY'
AND ( ( cpd.escal_memben_rate_vid = 2334
AND cpd.escal_memben_perc =
cerm.escalation_rate
OR ( cerm.escalation_type_vid IN
(3962, 3963, 4442)
AND cerm.escalation_value_by_vid = 4299
OR ( cpd.escal_memben_rate_vid != 2334
AND cerm.escalation_type_vid = 3961
OR (cerm.escalation_type_vid IS NULL)
AND ccbi.record_status = 'A'
AND cpd.record_status = 'A'
AND ccsd.record_status = 'A'
AND cede.record_status(+) = 'A'
AND cerm.record_status = 'A'
AND NOT EXISTS (
SELECT 'X'
FROM clm_escalation_dtl ced1
WHERE escal_dt IS NOT NULL
AND ccbi.claims_basic_info_id =
ced1.claim_basic_info_id
AND ced1.record_status = 'A')) mem_escal,
(SELECT cerma.escalation_type_vid
additional_escalation_type_vid,
cerma.max_escal_rate
additional_max_escal_rate,
cerma.min_escal_rate
additional_min_escal_rate,
cerma.escalation_rate additional_escal_rate,
ccbi.claims_basic_info_id claim_basic_info_id,
cerma.escalation_basis_vid
additional_esclation_basis_vid,
mi_claims_pkg.clm_get_escalation_date_fnc
(ccbi.claims_basic_info_id,
cpd.escal_applies_to_vid,
1,
cpd.escal_applies_to_day,
cpd.escal_applies_to_month_vid,
ccbi.event_dt,
ccbi.clm_acceptance_dt
) first_escal_dt,
NULL escal_dt
FROM clm_claims_basic_info ccbi,
clm_claim_scheme_dtl ccsd,
clm_plan_dtl cpd,
clm_escalation_dtl cede,
com_escalation_rate_mst cerma
WHERE ccbi.claims_basic_info_id =
ccsd.claim_basic_info_id
AND ccsd.plan_id = cpd.plan_id
AND cede.claim_basic_info_id(+) =
ccbi.claims_basic_info_id
AND cede.escal_dt IS NULL
AND cpd.is_escal_apply_id = 'Y'
AND ccbi.product_id = 4
AND cerma.product_id = ccbi.product_id
AND cerma.escalation_basis_vid =
cpd.escal_addben_rate_vid
AND ( ( ccbi.claim_status_vid = 2880
AND ccbi.event_dt
BETWEEN cerma.effective_from
AND NVL (cerma.effective_to,
TO_DATE ('31122999',
'DDMMYYYY'
OR ( ccbi.claim_status_vid != 2880
AND cede.first_escal_dt
BETWEEN cerma.effective_from
AND NVL (cerma.effective_to,
TO_DATE ('31122999',
'DDMMYYYY'
AND ( ( cpd.escal_addben_rate_vid = 2334
AND cpd.escal_addben_perc =
cerma.escalation_rate
OR ( cerma.escalation_type_vid IN
(3962, 3963, 4442)
AND cerma.escalation_value_by_vid = 4299
OR ( cpd.escal_addben_rate_vid != 2334
AND cerma.escalation_type_vid = 3961
OR (cerma.escalation_type_vid IS NULL)
AND ccbi.record_status = 'A'
AND cpd.record_status = 'A'
AND ccsd.record_status = 'A'
AND cede.record_status(+) = 'A'
AND cerma.record_status = 'A'
AND NOT EXISTS (
SELECT 'X'
FROM clm_escalation_dtl ced1
WHERE escal_dt IS NOT NULL
AND ccbi.claims_basic_info_id =
ced1.claim_basic_info_id
AND ced1.record_status = 'A')) add_escal
WHERE mem_escal.claim_basic_info_id = add_escal.claim_basic_info_id(+)
UNION ALL
SELECT cedo.member_escalation_type_vid
member_escalation_type_vid,
cedo.member_max_escal_rate member_max_escal_rate,
cedo.member_min_escal_rate member_min_escal_rate,
cedo.member_escal_rate member_escal_rate,
cedo.claim_basic_info_id claim_basic_info_id,
cedo.member_esclation_basis_vid
member_esclation_basis_vid,
cedo.additional_escalation_type_vid
additional_escalation_type_vid,
cedo.additional_max_escal_rate
additional_max_escal_rate,
cedo.additional_min_escal_rate
additional_min_escal_rate,
cedo.additional_escal_rate additional_escal_rate,
cedo.additional_esclation_basis_vid
additional_esclation_basis_vid,
cedo.first_escal_dt first_escal_dt,
cedo.escal_dt escal_dt
FROM clm_escalation_dtl cedo
WHERE (cedo.escal_dt, cedo.claim_basic_info_id) =
(SELECT MAX (cedi.escal_dt),
cedi.claim_basic_info_id
FROM clm_escalation_dtl cedi
WHERE cedi.escal_dt IS NOT NULL
AND cedi.escal_dt <= '24-OCT-2013'
AND cedi.claim_basic_info_id =
cedo.claim_basic_info_id
AND cedi.record_status =
'A'
GROUP BY cedi.claim_basic_info_id)
AND cedo.record_status = 'A') ced
WHERE ccbi.policy_id = npm.policy_id
AND ccbi.GROUP_ID = cgm.GROUP_ID
AND ccbi.product_id = cpm.product_id
AND ccbi.claims_basic_info_id = cmd.claims_basic_info_id(+)
AND ccbi.claims_basic_info_id = ca.claim_basic_info_id(+)
AND ccbi.claims_basic_info_id = ccsd.claim_basic_info_id(+)
AND ccsd.plan_id = cpd.plan_id(+)
AND ccbi.claims_basic_info_id = ced.claim_basic_info_id(+)
AND ccbi.record_status = 'A'
AND npm.record_status = 'A'
AND cgm.record_status = 'A'
AND cpm.record_status = 'A'
AND cmd.record_status(+) = 'A'
AND ca.record_status(+) = 'A'
AND cpd.record_status(+) = 'A'
And Ccsd.record_status(+) = 'A'
AND ccbi.claim_number = 'DAX001';I would assume this means that it can't find that column in that table.
Usually this is because the column isn't there, the table/view isn't there, or there's no select permissions to the table/view.
To try to narrow this down try:
SELECT CERMA.EFFECTIVE_TO FROM com_escalation_rate_mst cerma
SELECT CERMA.EFFECTIVE_TO FROM com_escalation_rate_mst@db2 cerma
If the synonym and view names are the same, try the first query in both databases or adjust as necessary.
It could also be a permissions issue, like maybe the schema the link uses to DB2 doesn't have select permissions to that view?
As far as to why it stopped working, I have no idea.
You can approach this from bottom up (start with the tables on DB2 and move up)
or top down (start with the synonyms on DB1 and move down)
That will give you an idea of where the issue lies. -
Starting a Web Application out of WAD from menue "Query/Execute" ...
Dear colleagues,
starting a Web Application (let's say its the template "BTMP_001") out of the Web Application Designer from menu "Query/Execute" starts the Web Query Analyzer instead of the Template "BTMP_001".
The URL looks like: http://<xxxxx>.<yyyyyy>.<zzzzzz>.com:<Port>/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=BTMP_001&DUMMY=0
Does somebody have any hint? Why I allways get the Web Query Analyzer althoug the end of the URL shows the technical name of my web application?
Thanks for any help!
opProblem solved!
-
How to implement enter-query , execute-query in Apex Forms
Hi,
I am new to Oracle Application Express. I want to know what is the equivalent of ENTER-QUERY and EXECUTE-QUERY features of Oracle Forms in Oracle APEX? I saw a lot of documentation, but everywhere I found that APEX forms only have 3 database actions, (1) INSERT (2) UPDATE & (3) DELETE.
Does anybody know how we can do QUERY in APEX Forms? (like we do in Oracle Developer Forms).
Thanks in advance.Oracle APEX is a web/ stateless environment. So you do not have the same functionality/ features as in a Oracle Forms environment which is session/state oriented.
You can however achieve functionality similar to Enter Query / Execute Query through other means.
The easiest is to use the Forms with Report wizard. It creates 2 pages, the first one is a report and the other a Form. Clicking on the Report rows takes you to the Form page in Edit mode where as the the Create button takes you to the Form in Insert mode.
If you want to have the enter-query / execute query on a single page it will require significant effort and skills. Try it when you have acquired some more skills in Apex.
In APEX , like any other web application, you have to think in the web paradigm and not client-server. Even Forms 11g is essentially client-server like and is session oriented through the forms applet.
Regards, -
SQL Query Executing longer time
Hi , The below SQL query executing longer time . Please help to Improve the query performance. The query continuously running for more than 24 hours and failing with roolback segment error. Not getting the final output. Most of the tables are having milions of records.
Select distinct
IBS.ADSL_ACCESS_INFO,
IBS.LIJ ,
regexp_substr(OBVS.REFERENTIE_A,'[[:digit:]]+') as O_NUMBER,
DBS.CKR_NUMMER_CONTRACTANT,
DBS.DNUMBER
FROM CD.IBS,
CD.OIBL,
CD.IH,
CD.ODL,
CD.OH,
CD.DBS,
CD.OBVS
Where IBS.END_DT = To_Date('31129999', 'ddmmyyyy')
AND OIBL.END_DT = to_date('31129999', 'ddmmyyyy')
AND DBS.END_DT = to_date('31129999', 'ddmmyyyy')
AND OBVS.END_DT = to_date('31129999', 'ddmmyyyy')
AND OBVS.REFERENTIE_A LIKE 'OFM%'
AND OIBL.INFRA_KEY = IH.INFRA_KEY
AND OIBL.ORDERS_KEY = OH.ORDERS_KEY
AND IBS.INFH_ID = IH.INFH_ID
AND ODL.ORDH_ID = OH.ORDH_ID
AND DBS.DEBH_ID = ODL.DEBH_ID
AND OBVS.ORDH_ID = ODL.ORDH_ID
Order By IBS.LIJ
All the columns which are present in the where condition are having either Index/key (Primary/unique) except END_DT column.
Please AdvisePredicate pushing can help when it greatlly restricts the number of rows - you must experiment - might not work with all predicates pushed (as shown here)
select distinct
ibs.adsl_access_info,
ibs.lij,
obvs.o_number,
dbs.ckr_nummer_contractant,
dbs.dnumber
from (select infh_id,adsl_access_info,lij
from cd.ibs
where end_dt = to_date('31129999','ddmmyyyy')
) ibs,
(select infra_key,orders_key
from cd.oibl
where end_dt = to_date('31129999','ddmmyyyy')
) oibl,
(select ordh_id,regexp_substr(obvs.referentie_a,'[[:digit:]]+') as o_number
from cd.obvs
where end_dt = to_date('31129999','ddmmyyyy')
and referentie_a like 'OFM%'
) obvs,
(select debh_id,ckr_nummer_contractant,dnumber
from cd.dbs
where end_dt = to_date('31129999','ddmmyyyy')
) dbs,
cd.ih,
cd.odl,
cd.oh
where oibl.infra_key = ih.infra_key
and oibl.orders_key = oh.orders_key
and ibs.infh_id = ih.infh_id
and odl.ordh_id = oh.ordh_id
and dbs.debh_id = odl.debh_id
and obvs.ordh_id = odl.ordh_id
order by ibs.lijRegards
Etbin -
How to get SQL statement from (Collection) query.execute();
We have a JDO Persistence class ClassName that execute query using following code. After this statement get executed, record does not get updated in the DB. Is there a way to check what SQL statement got submitted in the (Collection) query.execute(); ??? <br><br>
Extent extent = pm.getExtent(ClassName.class, false); <br>
Query query = null; <br>
try { <br>
query = pm.newQuery(extent, filter); <br>
Collection results = (Collection) query.execute();<br>
Iterator i = results.iterator();<br>
if (i.hasNext()) {<br>
...<br>
}<br>You can always find out the names of tables that are views, using java.sql.DatabaseMetaData and its getTables() method.
This tends to be a nice source of examples:
javaalmanac.com
However, if you're asking for the underlying SQL used to CREATE VIEW, I don't see anything in the API that will give you that. After all, JDBC shouldn't have to know if it's dealing with an ordinary table or a view. I think you'd have to ask your DBA for the underlying SQL.
Once you have it, what do you plan to do with it?
% -
NullPointerException with passing null param to query.execute() ?
Hi!
I seem to get this error when passing a null param to query.execute().
Shouldn't I be able to do this?
Thanks,
Nic.
kodo.util.UserException: java.lang.NullPointerException
NestedThrowables:
java.lang.NullPointerException
at kodo.query.AbstractQuery.executeWithMap(AbstractQuery.java:728)
at kodo.query.AbstractQuery.executeWithArray(AbstractQuery.java:640)
at kodo.query.AbstractQuery.execute(AbstractQuery.java:622)
at com.transmachina.idiomatica.db.DbSession.get(DbSession.java:536)
at
com.transmachina.idiomatica.app.WebDictionaryManager.hasBeenPreviouslyLookedUp(WebDictionaryManager.java:26)
at
com.transmachina.idiomatica.app.WebDictionaryManager.doLookup(WebDictionaryManager.java:39)
at
com.transmachina.idiomatica.utils.WordSearch.lookupAndReturnMatches(WordSearch.java:374)
at
com.transmachina.idiomatica.utils.WordSearch.getWordMatches(WordSearch.java:345)
at
com.transmachina.idiomatica.utils.WordSearch.getMatchesWithPosTrimming(WordSearch.java:546)
at
com.transmachina.idiomatica.engine.parser.ambiguity.WordAmbiguity.setupWordAmbiguity(WordAmbiguity.java:98)
at
com.transmachina.idiomatica.engine.parser.ambiguity.TextAmbiguity.setupTextAmbiguity(TextAmbiguity.java:271)
at
com.transmachina.idiomatica.engine.parser.ambiguity.ParsedText.setupParsedText(ParsedText.java:141)
at
com.transmachina.idiomatica.engine.presentation.Parser.parseToVectorOfWords(Parser.java:92)
at
com.transmachina.idiomatica.engine.presentation.Parser.getWord(Parser.java:377)
at
com.transmachina.idiomatica.engine.presentation.Parser.getPassage(Parser.java:193)
at
com.transmachina.idiomatica.engine.presentation.Parser.getPassage(Parser.java:158)
at
com.transmachina.idiomatica.adminTool.frame.translation.FrameTranslation$5.run(FrameTranslation.java:231)
Caused by: java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at
kodo.jdbc.meta.InClassNameClassIndicator.loadSubclasses(InClassNameClassIndicator.java:79)
at
kodo.jdbc.runtime.JDBCStoreManager.loadSubclasses(JDBCStoreManager.java:1207)
at
kodo.jdbc.runtime.JDBCStoreManager.addClassConditions(JDBCStoreManager.java:959)
at
kodo.jdbc.runtime.JDBCStoreManager.selectMappings(JDBCStoreManager.java:922)
at kodo.jdbc.runtime.JDBCStoreManager.access$300(JDBCStoreManager.java:32)
at
kodo.jdbc.runtime.JDBCStoreManager$SelectImpl.selectInternal(JDBCStoreManager.java:1333)
at kodo.jdbc.sql.AbstractSelect.select(AbstractSelect.java:313)
at kodo.jdbc.sql.AbstractSelect.select(AbstractSelect.java:304)
at
kodo.jdbc.query.JDBCExpressionFactory.select(JDBCExpressionFactory.java:137)
at kodo.jdbc.query.JDBCQuery.executeQuery(JDBCQuery.java:111)
at
kodo.query.JDOQLQuery$DataStoreQueryExecutor.executeQuery(JDOQLQuery.java:474)
at kodo.query.AbstractQuery.executeWithMap(AbstractQuery.java:693)
... 16 more
NestedThrowablesStackTrace:
java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at
kodo.jdbc.meta.InClassNameClassIndicator.loadSubclasses(InClassNameClassIndicator.java:79)
at
kodo.jdbc.runtime.JDBCStoreManager.loadSubclasses(JDBCStoreManager.java:1207)
at
kodo.jdbc.runtime.JDBCStoreManager.addClassConditions(JDBCStoreManager.java:959)
at
kodo.jdbc.runtime.JDBCStoreManager.selectMappings(JDBCStoreManager.java:922)
at kodo.jdbc.runtime.JDBCStoreManager.access$300(JDBCStoreManager.java:32)
at
kodo.jdbc.runtime.JDBCStoreManager$SelectImpl.selectInternal(JDBCStoreManager.java:1333)
at kodo.jdbc.sql.AbstractSelect.select(AbstractSelect.java:313)
at kodo.jdbc.sql.AbstractSelect.select(AbstractSelect.java:304)
at
kodo.jdbc.query.JDBCExpressionFactory.select(JDBCExpressionFactory.java:137)
at kodo.jdbc.query.JDBCQuery.executeQuery(JDBCQuery.java:111)
at
kodo.query.JDOQLQuery$DataStoreQueryExecutor.executeQuery(JDOQLQuery.java:474)
at kodo.query.AbstractQuery.executeWithMap(AbstractQuery.java:693)
at kodo.query.AbstractQuery.executeWithArray(AbstractQuery.java:640)
at kodo.query.AbstractQuery.execute(AbstractQuery.java:622)
at com.transmachina.idiomatica.db.DbSession.get(DbSession.java:536)
at
com.transmachina.idiomatica.app.WebDictionaryManager.hasBeenPreviouslyLookedUp(WebDictionaryManager.java:26)
at
com.transmachina.idiomatica.app.WebDictionaryManager.doLookup(WebDictionaryManager.java:39)
at
com.transmachina.idiomatica.utils.WordSearch.lookupAndReturnMatches(WordSearch.java:374)
at
com.transmachina.idiomatica.utils.WordSearch.getWordMatches(WordSearch.java:345)
at
com.transmachina.idiomatica.utils.WordSearch.getMatchesWithPosTrimming(WordSearch.java:546)
at
com.transmachina.idiomatica.engine.parser.ambiguity.WordAmbiguity.setupWordAmbiguity(WordAmbiguity.java:98)
at
com.transmachina.idiomatica.engine.parser.ambiguity.TextAmbiguity.setupTextAmbiguity(TextAmbiguity.java:271)
at
com.transmachina.idiomatica.engine.parser.ambiguity.ParsedText.setupParsedText(ParsedText.java:141)
at
com.transmachina.idiomatica.engine.presentation.Parser.parseToVectorOfWords(Parser.java:92)
at
com.transmachina.idiomatica.engine.presentation.Parser.getWord(Parser.java:377)
at
com.transmachina.idiomatica.engine.presentation.Parser.getPassage(Parser.java:193)
at
com.transmachina.idiomatica.engine.presentation.Parser.getPassage(Parser.java:158)
at
com.transmachina.idiomatica.adminTool.frame.translation.FrameTranslation$5.run(FrameTranslation.java:231)Hi Marc!
I think you are right! My database had been corrupted.
Thanks,
Nic.
Marc Prud'hommeaux wrote:
Nic-
Can you show us the code you use to build the query?
A casual look at the stack trace indicates that the problem might
actually be that you are using the in-class-name subclass identifier,
but there is a row in the database for which that column is null. Can
you check to see if this is the case?
In article <[email protected]>, Nic Cottrell wrote:
Hi!
I seem to get this error when passing a null param to query.execute().
Shouldn't I be able to do this?
Thanks,
Nic.
kodo.util.UserException: java.lang.NullPointerException
NestedThrowables:
java.lang.NullPointerException
at kodo.query.AbstractQuery.executeWithMap(AbstractQuery.java:728)
at kodo.query.AbstractQuery.executeWithArray(AbstractQuery.java:640)
at kodo.query.AbstractQuery.execute(AbstractQuery.java:622)
at com.transmachina.idiomatica.db.DbSession.get(DbSession.java:536)
at
com.transmachina.idiomatica.app.WebDictionaryManager.hasBeenPreviouslyLookedUp(WebDictionaryManager.java:26)
at
com.transmachina.idiomatica.app.WebDictionaryManager.doLookup(WebDictionaryManager.java:39)
at
com.transmachina.idiomatica.utils.WordSearch.lookupAndReturnMatches(WordSearch.java:374)
at
com.transmachina.idiomatica.utils.WordSearch.getWordMatches(WordSearch.java:345)
at
com.transmachina.idiomatica.utils.WordSearch.getMatchesWithPosTrimming(WordSearch.java:546)
at
com.transmachina.idiomatica.engine.parser.ambiguity.WordAmbiguity.setupWordAmbiguity(WordAmbiguity.java:98)
at
com.transmachina.idiomatica.engine.parser.ambiguity.TextAmbiguity.setupTextAmbiguity(TextAmbiguity.java:271)
at
com.transmachina.idiomatica.engine.parser.ambiguity.ParsedText.setupParsedText(ParsedText.java:141)
at
com.transmachina.idiomatica.engine.presentation.Parser.parseToVectorOfWords(Parser.java:92)
at
com.transmachina.idiomatica.engine.presentation.Parser.getWord(Parser.java:377)
at
com.transmachina.idiomatica.engine.presentation.Parser.getPassage(Parser.java:193)
at
com.transmachina.idiomatica.engine.presentation.Parser.getPassage(Parser.java:158)
at
com.transmachina.idiomatica.adminTool.frame.translation.FrameTranslation$5.run(FrameTranslation.java:231)
Caused by: java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at
kodo.jdbc.meta.InClassNameClassIndicator.loadSubclasses(InClassNameClassIndicator.java:79)
at
kodo.jdbc.runtime.JDBCStoreManager.loadSubclasses(JDBCStoreManager.java:1207)
at
kodo.jdbc.runtime.JDBCStoreManager.addClassConditions(JDBCStoreManager.java:959)
at
kodo.jdbc.runtime.JDBCStoreManager.selectMappings(JDBCStoreManager.java:922)
at kodo.jdbc.runtime.JDBCStoreManager.access$300(JDBCStoreManager.java:32)
at
kodo.jdbc.runtime.JDBCStoreManager$SelectImpl.selectInternal(JDBCStoreManager.java:1333)
at kodo.jdbc.sql.AbstractSelect.select(AbstractSelect.java:313)
at kodo.jdbc.sql.AbstractSelect.select(AbstractSelect.java:304)
at
kodo.jdbc.query.JDBCExpressionFactory.select(JDBCExpressionFactory.java:137)
at kodo.jdbc.query.JDBCQuery.executeQuery(JDBCQuery.java:111)
at
kodo.query.JDOQLQuery$DataStoreQueryExecutor.executeQuery(JDOQLQuery.java:474)
at kodo.query.AbstractQuery.executeWithMap(AbstractQuery.java:693)
... 16 more
NestedThrowablesStackTrace:
java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at
kodo.jdbc.meta.InClassNameClassIndicator.loadSubclasses(InClassNameClassIndicator.java:79)
at
kodo.jdbc.runtime.JDBCStoreManager.loadSubclasses(JDBCStoreManager.java:1207)
at
kodo.jdbc.runtime.JDBCStoreManager.addClassConditions(JDBCStoreManager.java:959)
at
kodo.jdbc.runtime.JDBCStoreManager.selectMappings(JDBCStoreManager.java:922)
at kodo.jdbc.runtime.JDBCStoreManager.access$300(JDBCStoreManager.java:32)
at
kodo.jdbc.runtime.JDBCStoreManager$SelectImpl.selectInternal(JDBCStoreManager.java:1333)
at kodo.jdbc.sql.AbstractSelect.select(AbstractSelect.java:313)
at kodo.jdbc.sql.AbstractSelect.select(AbstractSelect.java:304)
at
kodo.jdbc.query.JDBCExpressionFactory.select(JDBCExpressionFactory.java:137)
at kodo.jdbc.query.JDBCQuery.executeQuery(JDBCQuery.java:111)
at
kodo.query.JDOQLQuery$DataStoreQueryExecutor.executeQuery(JDOQLQuery.java:474)
at kodo.query.AbstractQuery.executeWithMap(AbstractQuery.java:693)
at kodo.query.AbstractQuery.executeWithArray(AbstractQuery.java:640)
at kodo.query.AbstractQuery.execute(AbstractQuery.java:622)
at com.transmachina.idiomatica.db.DbSession.get(DbSession.java:536)
at
com.transmachina.idiomatica.app.WebDictionaryManager.hasBeenPreviouslyLookedUp(WebDictionaryManager.java:26)
at
com.transmachina.idiomatica.app.WebDictionaryManager.doLookup(WebDictionaryManager.java:39)
at
com.transmachina.idiomatica.utils.WordSearch.lookupAndReturnMatches(WordSearch.java:374)
at
com.transmachina.idiomatica.utils.WordSearch.getWordMatches(WordSearch.java:345)
at
com.transmachina.idiomatica.utils.WordSearch.getMatchesWithPosTrimming(WordSearch.java:546)
at
com.transmachina.idiomatica.engine.parser.ambiguity.WordAmbiguity.setupWordAmbiguity(WordAmbiguity.java:98)
at
com.transmachina.idiomatica.engine.parser.ambiguity.TextAmbiguity.setupTextAmbiguity(TextAmbiguity.java:271)
at
com.transmachina.idiomatica.engine.parser.ambiguity.ParsedText.setupParsedText(ParsedText.java:141)
at
com.transmachina.idiomatica.engine.presentation.Parser.parseToVectorOfWords(Parser.java:92)
at
com.transmachina.idiomatica.engine.presentation.Parser.getWord(Parser.java:377)
at
com.transmachina.idiomatica.engine.presentation.Parser.getPassage(Parser.java:193)
at
com.transmachina.idiomatica.engine.presentation.Parser.getPassage(Parser.java:158)
at
com.transmachina.idiomatica.adminTool.frame.translation.FrameTranslation$5.run(FrameTranslation.java:231)
>>
>>
>>
>>
>>
>>
>>
>>
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com -
Query executing faster after restart
Hi,
I have a query which used to take around 60 seconds to execute. The query is mainly made up of joins and has an order by condition. The query was showing a service time of 125ms when accessing the temp datafile.
When I restarted the server (windows) and database and I ran the query the execution time was 1 sec!! The query no longer seems to be accessing the temp file.
Any suggestions on what could have triggered this change?
Thanks
KeithBecause when you restart, the segments of the temp datafiles are deallocated. This means that you have space to do sort on disk if the sort of the query not have the sufficient space on SORT_AREA_SIZE
< src = http://www.csee.umbc.edu/help/oracle8/server.815/a67775/ch24_pex.htm#43319 >
SORT_AREA_SIZE
The recommended values for this parameter fall in the range from 256KB to 4MB.
This parameter specifies the amount of memory to allocate per query server process for sort operations. If you have a lot of system memory, you can benefit from setting SORT_AREA_SIZE to a large value. This can dramatically increase the performance of sort operations because the entire process is more likely to be performed in memory. However, if memory is a concern for your system, you may want to limit the amount of memory allocated for sort and hash operations.
If the sort area is too small, an excessive amount of I/O is required to merge a large number of sort runs. If the sort area size is smaller than the amount of data to sort, then the sort will move to disk, creating sort runs. These must then be merged again using the sort area. If the sort area size is very small, there will be many runs to merge and multiple passes may be necessary. The amount of I/O increases as SORT_AREA_SIZE decreases.
If the sort area is too large, the operating system paging rate will be excessive. The cumulative sort area adds up quickly because each query server process can allocate this amount of memory for each sort. For such situations, monitor the operating system paging rate to see if too much memory is being requested.
< > -
Hi, getting Could not save the document to the repository for the following reason: [repo_proxy 30] DocumentFacade::uploadBlob - Query execute has failed : Error occurred while attempting to reconnect to CMS : Not a valid logon token. (FWB 00003) (hr=#0x80042a70) (WIS 30567) amongst lots of other errors when scheduling.
I was logged in as administrator and attempting to schedule a webi document to my self using the email option.
thanks in advanceHi Trinath,
Could you please confirm if you could save a new report as well or not; or is it specific to scheduling.
If you are unable to save a report also then I think this is due to the path of the Input File Repository Server or its temporary directory are not pointing to the same path, and their locations are set to 2 different hard drives
BOXI3.1 Server must use the same hard drive (local or network share) for the Input File Repository Server and its temporary directory.
- Shahnawaz -
DA0003: Exception CS, Unable to run the query execute
Hi all,
I try to use a stored procedure as data provider but i get this error
DA0003: Exception CS, Unable to run the query execute
I use BusObj Full Client 6.5 pointing to SQL2005.
I choose stored procedure as data providers of a new report, then choose the Oledb connection to the database in which the sproc is saved (this sproc executes some queries, all on the same db). Then I fill in the parameter of the sproc and when i click OK I get this error.
The sp works fine if executed from a query tool. Basically it queries BusObj Security Domain in order to get the documents a single user has linked (both enabled and disabled). It doesn't do nothing exceptionall except using some table variables... I tried also with this simple func:
CREATE FUNCTION [dbo].[Yesterday] (@date int)
RETURNS int AS BEGIN
DECLARE @Yesterday int
SET @yesterday = convert(varchar, DATEADD(dd, -1, convert(datetime, str(@date), 112) ), 112)
RETURN(@Yesterday)
END;
But it returns the same error!
I tried changing middleware to the DB from oleDB to ODBC but in this case it doesn't prompt me for parameters and when i click execute it fails saying the sproc expects a parameter...
I have no idea of what the cause may be... Can anybody help please?Hi Alberto,
Could you please test the following solutions to resolve the issue.
Solution1:
Test the issue by inserting the following parameter in .SBO file.
<Parameter Name="Force SQLExecute">Always</Parameter> .
Solution2
Just put SET NOCOUNT OFF in the end of the stored procedure SQL.
If the above doesnu2019t works then please try the following solution.
Solution3
Make the new connection from the scratch using ODBC connection and test the issue.
I hope this will help you.
Regards,
Sarbhjeet Kaur -
How to find exact query executed by reports with parameters
Hi,
I am running a report which errors out with below log messages.
REP-0004: Warning: Unable to open user preference file.
REP-0300: ORACLE error occurred.
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-300: ORACLE error occurred.
In toad, the query is not giving any error message.
I want to know what exact query is being executed by oracle report server.
How can I find exact query executed?
Abdul WahidHi Bobby,
I had already tried to enable trace. But when I enable trace, report builder crashes!!
I created SR also, and oracle says that they do not support 10.1.2.0.2. I should update to 10.1.2.3.
I installed the 10.1.2.0.2 in xp mode and tried to update with 10.1.2.3. However, the updgrade failed saying that there is no update patch required/found or something like that.
Abdul Wahid -
How to find last query executed?
Hi All
Can anyone tell as to how can we view the last query executed?
Do we need to write any script for it?
Cheers
Sudhir> connect to sys user then type this script
Brilliant.
SQL> select sql_text from v$sql where first_load_time=(select max(first_load_time) from v$sql) ;
SQL_TEXT
select sql_text from v$sql where first_load_time=(select max(first_load_time) from v$sql)
SQL> -
How to find open query executed once on SQL server
Hi Experts ,
Is there any way to identify that open query executed once on Db server using any DMv's ? we are planning enabale opimized for ad-hoc queries on SQL server ?
Shivraj Patil.Hi,
You can use below query to find the plans that have been used only once.
SELECT text, cp.objtype, cp.size_in_bytes
FROM sys.dm_exec_cached_plans AS cp
CROSS APPLY sys.dm_exec_sql_text(cp.plan_handle) st
WHERE cp.cacheobjtype = N'Compiled Plan'
AND cp.objtype IN(N'Adhoc', N'Prepared')
AND cp.usecounts = 1
ORDER BY cp.size_in_bytes DESC
OPTION (RECOMPILE);
additionally you can also refer below articles.
http://sqlmag.com/database-performance-tuning/sql-server-plan-cache-junk-drawer-your-queries
Plan cache and optimizing for adhoc workloads
Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
Praveen Dsa | MCITP - Database Administrator 2008 |
My Blog | My Page
Maybe you are looking for
-
Utility or option to pause music by default (Pause Timer)
Is there no way to make the iPod touch 4 gen automatically pause or stop playing music by default? It is odd that after all these years, there is still no way to hit the play button and know it will pause/stop playing after a preset number of minutes
-
HT3702 How do I remove My credit card from this account?
How do I remove My credit card from this account?
-
Changing the Subject and Text of received mails?
Before filing received important messages into folders, I would like to add the Sender's name into the Subject. Or I may want to add a comment to the received Text. Is it possible in Mail? (like in Entourage?) iMac G% Mac OS X (10.4.3)
-
I need to connect the Apple Composite AV Cable to my IPOD but i need change the settings video into the icon IPOD, but this icon does not appear in the settings general. What can i do?
-
Panasonic Gh4 Raw file support
Any idea as to when the Panasonic Gh4 Raw Files will be supported in Aperture.