How to find query that ran yesterday.
Hi
oracle 10gr2
Is there any way to find out the queries that ran on my database yesterday or even before than that?
Thanks
Khurana
Khurana wrote:
1)I was asked this question in an interview. But i was not sure. So shall i assume there is no way to find it out except the auditing.
2)Suppose a query took 5 hours to complete yesterday normally it takes 10 mins. anyway to find it out today?
KhuranaWell if it took 5 hours yesterday, then most probably it would be in awr report/snapshot report. If its there then you can find it out, else I doubt.
Regards
Anurag
Similar Messages
-
How to find geometry that have intersection with polyline?
Hello,
How to find geometry that have intersiction with polyline?
I hava a lot of polygon, i want to find wich of polygon have intersection with polyline.
What shall i do to find out this?
Regatd,
Thank'sis that correct when i use such query?
SELECT
FROM aaa c
WHERE SDO_RELATE(c.geometry,
SDO_GEOMETRY(2002, 1, NULL,
SDO_ELEM_INFO_ARRAY(1,2,1),
SDO_ORDINATE_ARRAY(0,0,12,12,25,25)),
'mask=anyinteract') = 'TRUE'
Thanks -
How to find out that particular structure is used in which tables
Hello Friends,
Most of the times through techinal information we come to know the table name for a particular field.And in se16 when i give that table name than system says its structure and not the table.So in se11 when i give that structure name in database table field, its shows all the field in that structure, but not the data stored in that field.
So my question is how to find out that particular structure is used in which tables,so that i can view data stored in that structure?
Thanking you guys in advance.
Regards,
JitendraDear,
When you click on the technical information it will give the structure name and field, double click on the structure and it will take you the display structure screen, there you will have the where-used List icon (Ctrl + Shift + F3) at the top , click on that and it will show the options, select Database tables and execute, it will give the tables related to the structure, you can explore the list of tables and find where your required field is stored in them.
Thanks & Regards,
Vijaya Bhaskar A -
How to find out, that sales invoice is paid
Hi,
does anybody some hint, how to easy find out, that sales invoice is paid already (2007). I need to do this check for list of invoices (thousands) - so Im looking for some query.
I know, how to find it through oinvoice object, from bank payment, internal reconciliation, ..., but I think that there must be some internal view or SP which is in use for SAP for receiving this information (calculating variables). I dont need informations about payment dates, Im looking just for info, that invocie is paid already. Maybe some record in JE linked to invoice?
thanksWe need to get the Invoice Paid Amount. Our customer use Bill of exchange frequently , so we are looking into OBOE for payment info, because Invoice Paid Amount (OINV.PaidToDate) does not reflect current payment info when there are Bill of Exchanges.
Are we wrong?
Does anybody know an easy way gather this information?
For more detailed info about the way we are doing this see Field BoeType - OBOE -
How to find query names in transport?
Hi Experts,
We have collected around five queries for transport. But in SE10, we do not see the query names. How to find out the query names there?
With Kind Regards,
KannanOpen query in query designer.
From 'Properties' window (right side Window) dropdown select query.
From 'Advanced' tab copy the UID. U can search that in SE09.
OR
Copy that query ID from SE10, use table RSZELTDIR with that ID. -
How to find out that the card in a given NIDAQ slot is a DSA card?
In the description of DAQ_Op(...) function in the traditional NIDAQ function reference one reads:
"buffer" is an integer array. "buffer" has a length equal to or greater than count.
When DAQ_Op returns with an error number equal to zero, buffer contains the acquired data.
For DSA devices, buffer should be an array of i32. These devices return the data
in a 32-bit format in which the data bits are in the most significant bits.
Question 1: How to find out programmatically that the card in a given NIDAQ slot is a DSA card?
Question 2: How many MSB carry the information? How do I find out bit-ness of the card (programmatically)?
The obvious solution to create and keep updated the table/fil
e with the data for all existing DAQ cards is unacceptable. This could be maintained by NI itself, but not by 3rd party developpers, like me.Bryan, thanks for your answer.
I hope that my NIDAQ-wish-list will not only reach NIDAQ developers but some of it will be implemented in the next versions of NIDAQ.
I should say that I am quite pessimistic because I was sending similar requests via German support few YEARS ago and I am still even do not know whether they reached developers or not. Even if yes, the present NIDAQ still does not have these functions and this means that NI takes 2..4 years to react on the feedback.
At the moment I have no choice, and I do maintain self-made info file (nidaq.ini). But beleive me, it is a pain in the @ss to scan help files and manuals of the DAQ cards which I've never seen just to include info in nidaq.ini. And when my customers of a brand new NIDAQ ca
rd call and wonder why the card is not reacognized by my application correctly, I tell to them that this is basically fault of NI. Because NI provides no way to get card info. I am doing my best analysing error codes, but it does not help in all cases. Sorry, guys, but you left no choice to me.
As for NIDAQmx, this is not a solution either. I am not going to rewrite my existing and working rather big application. It could be a good suggestion for those who just starts developing a new applications from the scratch, but not for those who almost finished it. Even for those who begin now, NIDAQmx may not be a good choice, because, as I saw in this forum, it does not support all cards that are supported by NIDAQ. It also looks like that instead of improoving, developing and fixing NIDAQ, NI dicided to change API completely. It is not yet clear to me whether NIDAQmx is supposed to substitute NIDAQ in the future or not. If not, I would concentrate on improoving trad. NIDAQ. If yes, it wou
ld be a disaster for many developers. :-(
Anyway, I hope that the interaction between NIDAQ team and application developpers will be improoved, and we will see some results of this feedback. -
How to find out that recovery is sufficient
HEllo all,
Lets say I am running recovery of database (no RMAN) and I apply few redologs. How can I find out that recovery done on datafiles so far is sufficient and datafiles are in consistent state so I can open DB w/o problems? I mean , I know that I would get error in case I try to open DB and datafiles need more recovery, but I would like to see some kind of proof on my screen that recovery is not finished (probably some v$ view or something ).
Or it does not have to be an option that I am running recovery of DB, it can be that my DB is running and there is some failure which will require media recovery . Where can I see expect logs that I need to recover because of this or that does not match (I guess in some v$view for datafiles will be mismatch of some numbers comparing to v$controlfile or v$database view.....or??? )
I hope you guys got it what I mean :)))if not just let me know I'll try to explain it better
thxYou claim to have done an Offline Backup. And yet, Oracle asked for Recovery. Then there might be something wrong with your backup.
Here I do a normal shutdown of the database and when I MOUNT, I see that the files are NOT Fuzzy :
ora10204>sqlplus '/ as sysdba'
SQL*Plus: Release 10.2.0.4.0 - Production on Thu Aug 27 23:24:40 2009
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 880803840 bytes
Fixed Size 2087992 bytes
Variable Size 197133256 bytes
Database Buffers 675282944 bytes
Redo Buffers 6299648 bytes
Database mounted.
Database opened.
SQL> select file#,fuzzy, checkpoint_change#, to_char(checkpoint_time,'DD-MON HH24:MI:SS') from v$datafile_header order by 1;
FILE# FUZ CHECKPOINT_CHANGE# TO_CHAR(CHECKPO
1 YES 2063978 27-AUG 23:24:48
2 YES 2063978 27-AUG 23:24:48
3 YES 2063978 27-AUG 23:24:48
4 YES 2063978 27-AUG 23:24:48
5 YES 2063978 27-AUG 23:24:48
SQL> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 880803840 bytes
Fixed Size 2087992 bytes
Variable Size 197133256 bytes
Database Buffers 675282944 bytes
Redo Buffers 6299648 bytes
Database mounted.
SQL> select file#,fuzzy, checkpoint_change#, to_char(checkpoint_time,'DD-MON HH24:MI:SS') from v$datafile_header order by 1;
FILE# FUZ CHECKPOINT_CHANGE# TO_CHAR(CHECKPO
1 NO 2064344 27-AUG 23:25:36
2 NO 2064344 27-AUG 23:25:36
3 NO 2064344 27-AUG 23:25:36
4 NO 2064344 27-AUG 23:25:36
5 NO 2064344 27-AUG 23:25:36
SQL> alter database open;
Database altered.
SQL> select file#,fuzzy, checkpoint_change#, to_char(checkpoint_time,'DD-MON HH24:MI:SS') from v$datafile_header order by 1;
FILE# FUZ CHECKPOINT_CHANGE# TO_CHAR(CHECKPO
1 YES 2064345 27-AUG 23:28:49
2 YES 2064345 27-AUG 23:28:49
3 YES 2064345 27-AUG 23:28:49
4 YES 2064345 27-AUG 23:28:49
5 YES 2064345 27-AUG 23:28:49
SQL> The MOUNT after a NORMAL Shutdown that would have been used for an Offline Backup, shows "NO" for Fuzziness of datafiles.
Hemant K Chitale
http://hemantoracledba.blogspot.com -
How to find out that a record is empty or null
hi
how can i find out that a record is empty or null.
in other languages when a object or record is not initialized it will be null.
after initialization how can i find out its values are null. so far i tried this
declare
v_r_emp emp%rowtype := null;
BEGIN
if (v_r_emp is null) then
dbms_output.put_line('record is not initialized');
end if;
END;
it seems in plsql we can assign null but cannot compare it with null clause why? if we are able of assign null we must should about to compare it with null too.
also how record can be made empty. how can we find out that a record variable is empty
please help me to understand the concept
thanksYou need to check every element in the record.
-
How to find out that the database table is empty
Hello all,
How to find out in ABAP in the best performant way, that the database table is empty. The table could have several milions of records or be empty. SELECT count( * ) looks to me as not the best way.
Kind regards
Radim Benek
Moderator message: FAQ, please search for previous discussions of similar topics.
example: "SELECT SINGLE" vs. "SELECT UP TO 1 ROWS"
Moderator message: Please Read before Posting in the Performance and Tuning Forum
Edited by: Thomas Zloch on Aug 11, 2011 5:06 PMHi,
One approach is:
check lt_mytable is initial.
This will be true if there are no lines.
Another:
describe table lt_mytable lines lv_count
if lv_count = 0.
"Empty
Thanks.
Anitha a -
How to find query in PI system
Hi Experts,
Please let me know how to find the query in the PI system when the JDBC adapter in at receiver end.Hi,
T codes for tables are ZSE!6 or SE11.
You can enter the table name Z* as the table name.
Regards,
Phani. -
How to find query completion time
How to find active insert query completion time in oracle?
friend,
i don't find anything in the query since time_remaing value show zero.
select TIME_REMAINING,TOTALWORK,START_TIME,SOFAR from v$session_longops where sid=115.
TIME_REMAINING TOTALWORK START_TIM SOFAR
0 21456 11-MAY-09 21456
0 4588 11-MAY-09 4588
0 6138 11-MAY-09 6138
could you please guide me how to calcaluate the completion time? -
How to find query processing time?
im using Oracle Express Edition
i want to find the processing time of a query?,
anyone please specify briefly how to find the query processing time
can i get the processing time of a query by using Express edition or should i install Enterprise Edition.
with regards,
ravikanth.This link will help
http://forums.oracle.com/forums/thread.jspa?threadID=2210335&tstart=0 -
How to finds applications that are still running?
How do I find applications that are running on my computer? I can't install a new version of Google Drive because I get the message that this application is open. When I bring up the panel to do a force quit I do not see that application listed. Once I find the app running how do I quit it?
Thanks for any tips.
BryanUse Activity Monitor (in /Applications/Utilities). After opening it, go to View menu (on the menu bar) > All Processes, and quit the processes related to the apps that the installer needs.
Another way is to start up in safe mode by holding the Shift key while your Mac is starting. This allows you to install any application without any problem, as no third-party apps are running -
JCA: how to find out that import parameter is structure?
Hello,
I'm using JCA to obtain import parameter of some function (com.sapportals.connector.metadata.functions.IParameter). Now, I'd like to switch program flow depend on kind of this import parameter (scalar, structure, table). Especially, I'm interested in finding out that import parameter is structure. In API I was only locate getStructure() method in IParameter. I tried to compare with null value, but it didn't solve my problem.
Best Regards,
Josef MotlI have come along this post so many times that now that I have solved it myself I will have to reply to it, even after 5 years.
MappedRecord output = (MappedRecord) ix.execute(ixspec, input);
//Now we want to read the output.
//If we deal with a structure, we get an IRecord Object
IRecord addressStructure = (IRecord) output.get("ADDRESS");
//Otherwise we would get an IRecordSet Object (Field)
I hope it will help all those searching as well.
BR
Sigi -
How to find out that one module is multi org or not?
Hi Friends,
Can any one tell me that how can we findout that one module is multi org or not?
Thanks in Advance.
Shravan Kumar Kota.ORG_ID tends to be for Multiple Operating Units (ie Multi-Org)
ORGANIZATION_ID is not used for multiple operating units as far as I know - I am used to it being HR, Expenditure or Inventory organization related.
Maybe you are looking for
-
Own an iphone 5. Can't control voice memo volume from anywhere that deals with volume on my phone. My decrease button doesn't work. I have to listen to my voice memos on full blown volume. Can't lower it from settings or from music. Help please!
-
Slow broadband speed and a lack of customer care -...
I am so close to throwing in the towel with BT. The service I receive is both inconsistent and laughable, the customer care is non-existent and the price I pay is more than VirginMedia. Why do I stay? Why do I persist with an organisation who are jus
-
Bridge crashes when viewing animation presets. How do I fix this?
When I browse animation presets in Adobe Bride, Bridge crashes. How do I fix this? Thanks for your help.
-
Resizing JComponent not displaying in packed frame
Please help, I'm trying to dynamically resize a dialog when a component expands/collapses, and when I set the component visible it is not firing a component resize event, as I believe I am setting minimum and preferred size properly. The code I am us
-
Jtree: "check if tree node is a folder" not wrkin
Hi, I have a JTree and If a folder does not has any file, it displays as file not folder. Is there any way to fix it. I want to represent an empty folder as folder not file. here is the code. Thanks for help. if(!f.isDirectory()) { System.out.pr