Avoid/Tune system queries
Hi,
I find the following query in all of my AWRs.All the scheduler jobs are disabled in my DB.How do i avoid this query?If i cannot avoid how do i tune this query??Kindly assist.
select decode(bitand(a.flags, 16384), 0, a.next_run_date, a.last_enabled_time), a.obj#, decode(bitand(a.flags, 16384), 0, 0, 1), a.sch_job from (select p.obj# obj#, p.flags flags, p.next_run_date next_run_date, p.job_status job_status, p.class_oid class_oid, p.last_enabled_time last_enabled_time, p.instance_id instance_id, 1 sch_job from sys.scheduler$_job p UNION ALL select q.obj#, q.flags, q.next_run_date, q.job_status, q.class_oid, q.last_enabled_time, q.instance_id, 1 from sys.scheduler$_lightweight_job q UNION ALL select j.job, 0, from_tz(cast(j.next_date as timestamp), to_char(systimestamp, 'TZH:TZM')), 1, NULL, from_tz(cast(j.next_date as timestamp), to_char(systimestamp, 'TZH:TZM')), NULL, 0 from sys.job$ j where (:1 = 1) and (j.field1 is null or j.field1 = 0) and j.job not in (select v.id2 from v$lock v where v.type = 'JQ')) a where bitand(a.job_status, 3) = 1 and ((bitand(a.flags, 134217728 + 268435456) = 0) or (bitand(a.job_status, 1024) 0)) and bitand(a.flags, 4096) = 0 and a.instance_id is NULL and (a.class_oid is null or (a.class_oid is not null and a.class_oid in (select b.obj# from sys.scheduler$_class b where b.affinity is null))) and decode(bitand(a.flags, 16384), 0, a.next_run_date, a.last_enabled_time) = (select min(decode(bitand(c.flags, 16384), 0, c.next_run_date, c.last_enabled_time)) from (select r.flags flags, r.next_run_date next_run_date, r.job_status job_status, r.class_oid class_oid, r.last_enabled_time last_enabled_time, r.instance_id instance_id from sys.scheduler$_job r UNION ALL select s.flags, s.next_run_date, s.job_status, s.class_oid, s.last_enabled_time, s.instance_id from sys.scheduler$_lightweight_job s UNION ALL select 0, from_tz(cast(k.next_date as timestamp), to_char(systimestamp, 'TZH:TZM')), 1, NULL, from_tz(cast(k.next_date as timestamp), to_char(systimestamp, 'TZH:TZM')), NULL from sys.job$ k where (:2 = 1) and (k.field1 is null or k.field1 = 0) and k.job not in (select w.id2 from v$lock w where w.type = 'JQ')) c where bitand(c.job_status, 3) = 1 and ((bitand(c.flags, 134217728 + 268435456) = 0) or (bitand(c.job_status, 1024) 0)) and bitand(c.flags, 4096) = 0 and c.instance_id is NULL and (c.class_oid is null or (c.class_oid is not null and c.class_oid in (select d.obj# from sys.scheduler$_class d where d.affinity is null))))
select state, job_name from dba_scheduler_jobs;
STATE JOB_NAME
DISABLED PURGE_LOG
DISABLED ORA$AUTOTASK_CLEAN
DISABLED HM_CREATE_OFFLINE_DICTIONARY
DISABLED DRA_REEVALUATE_OPEN_FAILURES
DISABLED MGMT_CONFIG_JOB
DISABLED MGMT_STATS_CONFIG_JOB
DISABLED BSLN_MAINTAIN_STATS_JOB
DISABLED FGR$AUTOPURGE_JOB
Thanks.
What issue do you have? If you find internal queries in AWR (while at the same time you have crippled AWR by stopping all jobs) it just means your database doesn't display much activity.
I recommend
1 - stop chasing phantoms
2 - revert any measure you took to stop automatic jobs. They are not the issue.
Or if you really want this query to disappear: stop the job facility completely.
Sybrand Bakker
Senior Oracle DBA
Similar Messages
-
How to avoid system queries in AWR?
Hi,
In my AWR ,always i get system queries as follows.Is it related to AWR snap IDs I am collecting?How do i avoid these queries in my AWR?Kindly assist.
insert into wrh$_parameter (snap_id, dbid, instance_number, parameter_hash, value, isdefault, ismodified) select :snap_id, :dbid, :instance_number, i.ksppihash hash, substr(sv.ksppstvl, 1, 512), sv.ksppstdf, decode(bitand(sv.ksppstvf, 7), 1, 'MODIFIED', 'FALSE') from x$ksppi i, x$ksppsv sv where i.indx = sv.indx and (((i.ksppinm not like '#_%' escape '#') or (sv.ksppstdf = 'FALSE') or (bitand(sv.ksppstvf, 5) > 0)) or (i.ksppinm like '#_#_%' escape '#')) order by hash
insert into wrh$_sga_target_advice (snap_id, dbid, instance_number, SGA_SIZE, SGA_SIZE_FACTOR, ESTD_DB_TIME, ESTD_PHYSICAL_READS) select :snap_id, :dbid, :instance_number, SGA_SIZE, SGA_SIZE_FACTOR, ESTD_DB_TIME, ESTD_PHYSICAL_READS from v$sga_target_adviceSure you can avoid them. Disable AWR.
Sorry, but they are the queries required to get AWR data, and the fact you see them means not much happens in your database.
The result of instrumenting Oracle with AWR is the database never will do nothing anymore.
If you can't live with that, stop using Oracle or AWR.
Sybrand Bakker
Senior Oracle DBA -
Help for rewrite or tune this quer
Hi,
can u some help to rewrite or tune this quer.
SELECT 20100201 PERIOD_KEY,CONSUMER_KEY,DOW_KEY PREFDOW,nvl(FIN_SCOR_DOW,-1),'MONTH' GRANULAR FROM
SELECT CONSUMER_KEY,DOW_KEY,FIN_SCOR_DOW,
ROW_NUMBER() OVER ( PARTITION BY CONSUMER_KEY ORDER BY FIN_SCOR_DOW DESC,DOW_KEY ) RNO
FROM
SELECT CONSUMER_KEY,DOW_KEY,SUM(SCORE_SERVICE_WEIGHT) FIN_SCOR_DOW FROM
SELECT DOW_KEY,CONSUMER_KEY,SERVICE_KEY,DUR,TRAN,VOLU,TOT_DUR,CUM_DUR,TOT_TRAN,CUM_TRAN,TOT_VOL,CUM_VOL,SCORE_DUR,SCORE_TRAN,SCORE_VOL,
1*NVL(SCORE_DUR,0)+1*NVL(SCORE_TRAN,0)+1*NVL(SCORE_VOL,0) TOT_SCOR ,
CASE
WHEN SERVICE_KEY= 0 THEN
1*SCORE_DUR
WHEN SERVICE_KEY IN ('1','3') THEN
1*SCORE_TRAN
WHEN SERVICE_KEY = 2 THEN
1*SCORE_VOL
END SCORE_SERVICE_WEIGHT FROM
select DOW_KEY,consumer_key,service_key,sumDUR dur,SUMTRAN tran,sumVOL volu,
tot_dur,cum_dur,tot_tran,cum_tran,tot_vol,cum_vol,
case
when tot_dur > 0 then
cum_dur*100/tot_dur
end score_dur,
case
when tot_tran > 0 then
cum_tran*100/tot_tran
end score_tran,
case
when tot_vol > 0 then
cum_vol*100/tot_vol
end score_vol
from
SELECT CONSUMER_KEY,SERVICE_KEY,DOW_KEY,SUMDUR,SUMTRAN,SUMVOL,SUM(SUMDUR) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ) TOT_DUR,
SUM(SUMDUR) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ORDER BY SUMDUR,DOW_KEY) CUM_DUR,
--SUM(SUMDUR) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ORDER BY SUMDUR,DOW_KEY,RNO) CUM_DUR,
SUM(SUMTRAN) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ) TOT_TRAN,
SUM(SUMTRAN) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ORDER BY SUMTRAN,DOW_KEY) CUM_TRAN,
--SUM(SUMDUR) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ORDER BY SUMDUR,DOW_KEY,RNO) CUM_DUR,
SUM(SUMVOL) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ) TOT_VOL,
SUM(SUMVOL) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ORDER BY SUMVOL,DOW_KEY) CUM_VOL
--SUM(SUMDUR) OVER (PARTITION BY CONSUMER_KEY,SERVICE_KEY ORDER BY SUMDUR,DOW_KEY,RNO) CUM_DUR,
FROM
SELECT CONSUMER_KEY,SERVICE_KEY, to_number(to_char(to_date(DATE_KEY,'YYYYMMDD'),'D')) DOW_KEY,
sum(SUM_OF_DURATION) sumdur,SUM(NO_OF_TRANSACTIONS) sumtran,sum(SUM_OF_VOLUME) sumvol
--ROW_NUMBER () OVER (ORDER BY CONSUMER_KEY) RNO
FROM SERVICE_FACTS_BY_DAY
WHERE DATE_KEY BETWEEN 20100201 AND 20100228
group by CONSUMER_KEY,SERVICE_KEY,to_number(to_char(to_date(DATE_KEY,'YYYYMMDD'),'D'))
ORDER BY CONSUMER_KEY,SERVICE_KEY,to_number(to_char(to_date(DATE_KEY,'YYYYMMDD'),'D'))
GROUP BY CONSUMER_KEY,DOW_KEY
WHERE RNO=1;explain plan
Plan hash value: 3130556327
| Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time | Pstart| Pstop |
| 0 | SELECT STATEMENT | | 571K| 28M| | 128K (1)| 00:29:54 | | |
|* 1 | VIEW | | 571K| 28M| | 128K (1)| 00:29:54 | | |
|* 2 | WINDOW SORT PUSHED RANK | | 571K| 59M| 217M| 128K (1)| 00:29:54 | | |
| 3 | HASH GROUP BY | | 571K| 59M| 217M| 128K (1)| 00:29:54 | | |
| 4 | VIEW | | 1713K| 179M| | 93314 (1)| 00:21:47 | | |
| 5 | WINDOW SORT | | 1713K| 127M| 157M| 93314 (1)| 00:21:47 | | |
| 6 | WINDOW SORT | | 1713K| 127M| 157M| 93314 (1)| 00:21:47 | | |
| 7 | WINDOW SORT | | 1713K| 127M| 157M| 93314 (1)| 00:21:47 | | |
| 8 | VIEW | | 1713K| 127M| | 34903 (2)| 00:08:09 | | |
| 9 | SORT GROUP BY | | 1713K| 40M| 340M| 34903 (2)| 00:08:09 | | |
| 10 | PARTITION RANGE ITERATOR| | 8090K| 192M| | 13172 (2)| 00:03:05 | 1 | 25 |
|* 11 | TABLE ACCESS FULL | SERVICE_FACTS_BY_DAY | 8090K| 192M| | 13172 (2)| 00:03:05 | 1 | 25 |
Predicate Information (identified by operation id):
1 - filter("RNO"=1)
2 - filter(ROW_NUMBER() OVER ( PARTITION BY "CONSUMER_KEY" ORDER BY SUM(CASE "SERVICE_KEY" WHEN 0 THEN 1*CASE WHEN
("TOT_DUR">0) THEN ("CUM_DUR"*100/"TOT_DUR") END WHEN 1 THEN 1*CASE WHEN ("TOT_TRAN">0) THEN
("CUM_TRAN"*100/"TOT_TRAN") END WHEN 3 THEN 1*CASE WHEN ("TOT_TRAN">0) THEN ("CUM_TRAN"*100/"TOT_TRAN") END WHEN 2
THEN 1*CASE WHEN ("TOT_VOL">0) THEN ("CUM_VOL"*100/"TOT_VOL") END END ) DESC ,"DOW_KEY")<=1)
11 - filter("DATE_KEY"<=20100228 AND "DATE_KEY">=20100201)You are posting your request to the Enterprise Manager Grid Control forum.
So I assume that you are using OEM Grig Control.
You could then start using the SQL Tuning Advisor to provide you with an alternative query, execution plan etc.
If you are not using OEM Grid Control, I suggest that you post your request to a Database forum.
Regards
Rob -
Restricting access to system queries
Hi experts!
Is it possible to restrict access to system queries (in SAP reports) for a particular user?
Also, can we restrict inventory reports generated to a certain item group only for a particular user? example: item groups available are Spare Parts, Raw Mat, WIP & FG. The user should only be able to generate inventory reports concerning Spare Parts.
thanks.
regards,
tessaHi Tessa
You can restrict Access to System Queries by providing NO AUTHORIZATION to the option Saved Query - System.
The same can be set under
Administration --> System Initialization --> Authorizations --> General Authorizations --> Reports --> Query Generator --> Saved Queries - System
Hope this helps.
Regards
Rohan S. Kamble -
How to avoid orphaned system tray icon?
I know how to create a system tray icon for my application using InstallSysTrayIcon().
I also know how to remove it before the program terminates (calling RemoveSysTrayIcon()).
But the program closes in an expected way, or through the Task Manager, for example, the icon isn't deleted, and the user could think that the application is still running. Moreover, when you re-launch the application, a second icon is shown.
The Windows OS removes the orphaned icon when the mouse hovers over the tray.
It seems that this is an OS issue, and I did some web searches: I found this describing a way to avoid this behaviour in a C# application, but I haven't been able to port this solution to a CVI application.
Is there a way to do this with CVI 2009?
Vix
In claris non fit interpretatio
Using LV 2013 SP1 on Win 7 64bit
Using LV 8.2.1 on WinXP SP3
Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
Using CVI 6.0 on Win2k, WinXP and WinXP EmbeddedHi Luca!
Anyway if you're worried about program crashes your only option...
Actually what I'm worried about is a little bit more complicated: my CVI application could be remotely closed by other applications running on the same or other PCs on the LAN. I should avoid the icon is left on the system tray while the application has been closed, giving a wrong information to the user...
I've been using the task manager only to "simulate" a force close made by a different application.
And sure, I must increase the error handling as much as I can to avoid application crash
Vix
In claris non fit interpretatio
Using LV 2013 SP1 on Win 7 64bit
Using LV 8.2.1 on WinXP SP3
Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
Using CVI 6.0 on Win2k, WinXP and WinXP Embedded -
Hi,
I used a modified personal.rsp and dbca.rsp to install Oracle 9.2 personal and a DB on Win2k/XPp, but despite the "-slient" flag, I get a dialog prompting for the sys, system passwords in the end.
How can I avoid this? Are there (undocumented) parameters for dbca.rsp which allow to avoid the dialog?
Thanks for any help.Hi,
Use below command and you no need to pass userid/password. It works for all versions.
imp \'/ AS SYSDBA\' full=Y CONSTRAINTS=Y FILE=V:\exp_test20090729.dmp
Regards,
Satishbabu Gunukula
http://oracleracexpert.blogspot.com
Edited by: Satishbabu Gunukula on Aug 10, 2009 4:34 PM -
firefox is working my system too hard and the system is revving very high.
== This happened ==
Every time Firefox opened
== today ==
== User Agent ==
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7Does this start right when you start firefox or after you've loaded some pages? Are there specific pages that cause this problem?
-
I want to know whethr we can see the query statements for the system defined reports. For example the Sales reports, Sales oppurtunity reports. I am trying to make some reports and not able to find the specific feilds to the satisfactory out put. Can I see he SQL query behind these reports by any means.
Debraj,
Some of these report are generated using Stored Procedures while others are part of the core SAP Code. A common way used to see the SQL Code when you do not have direct access is to use a tool called SQL Server Profiler.
This can be found in Start > All Program > Microsoft SQL Server 2005 > Performance Tools > ....
Suda -
Xsql ... select variable to avoid multiple nested queries
Hi,
I want to have one .xsql file which processes quite a few queries.
I want to be able to save a column result from a query into something similar to a variable. That way, later in my xsql file, I can use the variable result in the where clauses of other queries.
I know I can do this with a bunch of nested queries, but it would take longer to process the results than if I could use a straight out variable from a previous query.
Anybody have ideas on how I could do this with xsql?
dgiles
nullSimplest way to do this at present is to write a custom handler that take a query and sets an attribute on the document element of the XSQL page to the value selected from the database. Then the normal {@paramname} sytnax will work to reference it's value later in the page.
-
Hi all,
can anybody explained what are the basic steps to tune this query,since i am unaware of tunning concept.need ur suggestion kindly
Select DECODE(r.PriorityCode,2,1,2) priority,
NVL(p.CUSTOMERPRIORITYCODE,3) CUSTOMERPRIORITYCODE,
qpp.managerID managerID,
qpp.priority queuePriority,
r.lastModDate lastModDate,
r.requestID requestID,
r.miniTeamID miniTeamID
From SRequest r, Person P, QueuePersonPref qpp, Auto_MiniTeam am
Where r.requestTypeCode = 1
And r.statusCode = 1
And r.assigned_PersonID Is Not Null
And r.miniTeamID In (
Select childMiniTeamID
From MiniTeamTree
Where childMiniTeamID = r.miniTeamID
And parentMiniTeamID = qpp.MiniteamID
And levelFromParent = 1
And r.lastModDate < (l_sysDate - 8/24)
And NVL(r.customerPersonID,24497) = p.personID (+)
And am.miniTeamID = qpp.miniTeamID
And qpp.personID = SonarSession.sPersonID
And exists ( Select 1 From ERPerson er
Where er.personID = SonarSession.spersonID
And er.miniTeamID = r.miniTeamID
And er.securityLevelCode in (5, 7, 8)
And r.requestID Not IN (Select requestID From QueueRequest_TMP)
UNION
-- Second set
Select DECODE(r.PriorityCode,2,1,2) priority,
NVL(p.CUSTOMERPRIORITYCODE,3) CUSTOMERPRIORITYCODE,
qpp.managerID managerID,
qpp.priority queuePriority,
r.lastModDate lastModDate,
r.requestID requestID,
r.miniTeamID miniTeamID
From SRequest r, Person P, QueuePersonPref qpp, Auto_MiniTeam am
Where r.requestTypeCode = 1
And r.statusCode In (2, 3)
And r.assigned_PersonID Is Null
And r.miniTeamID In (
Select childMiniTeamID
From MiniTeamTree
Where childMiniTeamID = r.miniTeamID
And parentMiniTeamID = qpp.MiniteamID
And levelFromParent = 1
And r.lastModDate < (l_sysDate - 1)
And NVL(r.customerPersonID,24497) = p.personID (+)
And am.miniTeamID = qpp.miniTeamID
And qpp.personID = SonarSession.sPersonID
And exists ( Select 1 From ERPerson er
Where er.personID = SonarSession.spersonID
And er.miniTeamID = r.miniTeamID
And er.securityLevelCode in (5, 7, 8)
And r.requestID Not IN (Select requestID From QueueRequest_TMP)
UNION
-- Third Set
Select DECODE(r.PriorityCode,2,1,2) priority,
NVL(p.CUSTOMERPRIORITYCODE,3) CUSTOMERPRIORITYCODE,
qpp.managerID managerID,
qpp.priority queuePriority,
r.lastModDate lastModDate,
r.requestID requestID,
r.miniTeamID miniTeamID
From SRequest r, Person P, QueuePersonPref qpp, Auto_MiniTeam am
Where r.requestTypeCode = 1
And r.statusCode In (2, 3)
And r.miniTeamID In (
Select childMiniTeamID
From MiniTeamTree
Where childMiniTeamID = r.miniTeamID
And parentMiniTeamID = qpp.MiniteamID
And levelFromParent = 1
And r.lastModDate < (l_sysDate - 14)
And NVL(r.customerPersonID,24497) = p.personID (+)
And am.miniTeamID = qpp.miniTeamID
And qpp.personID = SonarSession.sPersonID
And exists ( Select 1 From ERPerson er
Where er.personID = SonarSession.spersonID
And er.miniTeamID = r.miniTeamID
And er.securityLevelCode in (5, 7, 8)
And r.requestID Not IN (Select requestID From QueueRequest_TMP)
Order By 2, 3, managerID desc, queuePriority, lastModDateIt is imperative you read the Oracle Performance and tuning giude first and foremost!!
http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/toc.htm
After that you may want to investigate the following built in package
dbms_sqltune.create_tuning_taskThis is a small sample, but do not attempt to understand the output if you haven't read the guide!
declare
l_task_id varchar2(20);
l_sql varchar2(5000);
begin
l_sql :='select decode(r.PriorityCode,2,1,2) priority,
nvl(p.CUSTOMERPRIORITYCODE,3) CUSTOMERPRIORITYCODE,
qpp.managerID managerID,
qpp.priority queuePriority,
r.lastModDate lastModDate,
r.requestID requestID,
r.miniTeamID miniTeamID
from SRequest r, Person P, QueuePersonPref qpp, Auto_MiniTeam am
where r.requestTypeCode = 1
and r.statusCode = 1
and r.assigned_PersonID is not null
and r.miniTeamID in (select childMiniTeamID
from MiniTeamTree
where childMiniTeamID = r.miniTeamID
and parentMiniTeamID = qpp.MiniteamID
and levelfromParent = 1
and r.lastModDate < (l_sysDate - 8/24)
and NVL(r.customerPersonID,24497) = p.personID
and am.miniTeamID = qpp.miniTeamID
and qpp.personID = SonarSession.sPersonID
and exists ( select 1 from ERPerson er
where er.personID = SonarSession.spersonID
and er.miniTeamID = r.miniTeamID
and er.securityLevelCode in (5, 7, 8)
and r.requestID not in (select requestID from QueueRequest_TMP)';
l_task_id := dbms_sqltune.create_tuning_task(sql_text => l_sql
,user_name => 'APPS'
,scope => 'COMPREHENSIVE'
,time_limit => 120
,task_name => 'SQL1');
dbms_sqltune.execute_tuning_task ('SQL1');
end;
-- After running the above, find out what the best SQL is using the following:
set long 30000
set longchunksize 30000
set linesize 2000
select dbms_sqltune.report_tuning_task('SQL1') from dual; -
Can we edit the System Report queries to add some missing fields ?
Hello,
I'm using SAP Business One 2005 A and I was wondering if there was a way to edit the system report queries. Sometime, I'm only missing calculated fields in the existing report. Something as easy as the difference between 2 dates is not working with the formula fields.
Instead of rewriting everything, could we simply see that original query and edit it to add the missing fields ?
I don't like the fact I can't add my own created report from a query in the main menu. Since I couldn't do anything with the Backorder reports by default, I created mine with my own SQL query. Can't I replace the existing one with my own ?
Thank you
Daniel GagnonHi Daniel,
You can edit a system query but then you can only save it as a user query (ie you cannot overwrite the system queries).
User queries can't be placed in the Main Menu using the standard GUI though you could add them to the User Menu tab so your users can get to them easily. I think to add them to the Main Menu would require the development of an add-on that updated the Main Menu and triggered the running of the query when the user clicked on the menu option.
The other thing to look at is using XL Reporter for your reports rather than the Query Generator. With XL Reporter you can automatically add reports to the main menu.
Kind Regards,
Owen -
Avoiding system.exit(0)
Hi
I am using an external .jar file in my java program for parsing a file. My problem is that its main method has System.exit statement in the end i.e after parsing it exits the application. So when i use it my application also gets terminated. I have decompiled it and the only accessible method is main method. Is there any way to avoid this system.exit(0) ?EJP wrote:
You can run it under a SecurityManager and a .policy file which doesn't grant that permission.I am trying to overrite securityManager functions:
like:
private static void forbidSystemExitCall() {
final SecurityManager securityManager = new SecurityManager() {
@Override
public void checkPermission( Permission permission ) {
System.out.println("persmiion");
if( "exitVM".equals( permission.getName() ) ) {
throw new SecurityException("System.exit attempted and blocked.");
@Override
public void checkExit(int exit)
super.checkExit(exit);
throw new SecurityException("System.exit attempted and blocked.");
//System.setSecurityManager( securityManager ) ;
}and calling above code as:
try
forbidSystemExitCall() ;
try
Main.main(strings);
catch( ExitTrappedException e )
finally
enableSystemExitCall() ;
catch ( Exception ex)
System.out.println("error calling main method");
ex.printStackTrace();
}but above code is not working as i requried.
Or if you have stuff to do on exit you can add shutdown hooks, see java.lang.Runtime.i could not understand it, please kindly can you explain little bit more... I have not play with java security before.
BR
Umer -
Hi All,
I am using a third party tool which is internally calling System.exit sometimes and my application
got terminated most of the times.
It is happening always when i call a particular method of that third party tool.
Is there any way to catch or avoid the System.exit while using the particular method?
I need this urgently...Please kindly help.....
Thanks,
J.KathirThere's a fair bit to it, and you should refer to the appropriate java Tutorials. Bascially you create a .policy file and install a sercurity manager with:
System.setSecurityManger(new SecurityManager());The policy file grants a set of permissions to various "code sources", basically each codesource is a classpath entry. You could grant "AllPermissions" to your own code, and a more restricted set of permissions to the application you're running. But you can't subtract permissions, i.e. you can't say "this code can do anything except call System.exit().
I doubt this is going to provide you with a good solution. It's tiresome to set up, and when the client app called System.exit it would crash, which might not result in a clean status.
I'd consider if you should be using this client app in the same JVM, rather than creating a subordinate JVM using Runtime.exec. -
Hi All,
I need to avoid inline queries being generated by OBIEE. As of now OBIEE is generating some 3-4 inline queries in a single Query and giving back the results...I need to avoid those inline queries such that there should be a single select.
Any help in this regard.
ThanksChange the data model ...it should be like star-schema...
-
Hi,
How to tune SQL Queries ? Performance wise what precautions to take for writing the SQL queries ?
Regards,
KiranKiran Bathula wrote:
How to tune SQL Queries ?
Learn how the optimizer works.
Learn what it it capable of.
And then.
Just start. The only way to become a SQL tuner, is to just do it (and do it many many times).
Maybe you are looking for
-
Show custom Error message in MB_CHECK_LINE_BADI
Hi to all! I'm using MB_CHECK_LINE_BADI to make some validation before posting the document. The problem is this: When I try to show an E message from a Z message ID, te message isn't shown correctly. For example: if sy-subrc <> 0. v_txt = 'ERROR'.
-
Locked out of my mini ipad help?
i am locked out of my ipad mini...pLEASE help
-
Having trouble setting up sync on 4.0b3pre from 12-2-2010
I just got a Nook Simple Touch. I rooted it with NookManager. It is running Android 2.1. I use Swapper2 to expand the RAM to 512. The 4.0b3pre build from 12-2-2010 is the last version that will install on this device; so, that is what I am running. W
-
I believe I opened a link to a phishing email.
I believe I opened a link to a phishing email. After opening, it took me to some bogus webpage and I quickly closed out of it and deleted the email. I didn't enter any information onto the webpage. Am I in any danger of identity theft? If so, what sh
-
How do i download applications on my iphone?
applications such as games, iwoman, etc