How to find the last DML timings on any particular table in oracle 10g?
Hi All,
I need to know in one particular table when the last DML operation happen and what is the dml query ?
Thanks
Bala
Hi;
Please see:
find last dml operation time on a table
find last dml operation time on a table
Last DML time
find last dml operation time on a table
time of last DML
Regard
Helios
Similar Messages
-
Sir,how to find the last DML operations
Hi,
Please tell me how to find the last DML Operations at least minimum 30 queries.
Thanks in advance,Shared Pool is a memory location in SGA that contains SQL Statement that are submitted to Oracle for execution. This area is common to the entire database. Its not specific to user.
So what ever Unique SQL statement that is submitted to the SQL Engine will be available here. Shared Pool has a size limit. That is defined by the parameters SHARED_POOL_SIZE and SHARED_POOL_RESERVED_SIZE. So when the Shared pool becomes full the data needs to be removed from it. That is done in FIFO basis.
Oracle provides a visibility to this area through dictionary view V$SQLAREA. So this view will not only contain the SQL executed by you but also by every one. Even the one executed by oracle itself.
So in my opinion what you are asking is not possible to get. You must have some logging mechanism in your application to get this information. -
How to find the last executed date of any program?
<<Frequently asked questions. So search>>
How to find the last executed date of any program?
is there any system variable or function module?
Edited by: Matt on Oct 5, 2010 12:48 PMcheck the transaction STAD.
Prabhudas -
How can you find the Last Modified Date of a particular table
Hi,
I want to show to the LAST MODIFIED date of a particular table to the user before refreshing the table with new data. Experts please suggest me the way using JDBC-SQL connection.There is no generic SQL way for this. It depends completely on the features your DBMS offers. With Oracle you'd need to create column which gets updated in a trigger. I believe MS SQL Server offers a special data type for this, which is updated automatically. I don't know about others.
-
How to find the Last modified date and time of a package
Hi,
We need a clarification on how to find the Last modified date and time of a package in Oracle. We used the example below to explain our scenario,
Lets consider the following example
Let A, B be two packages.
Package A calls the package B. So A is dependent on B.
When A is compiled the TIMESTAMP,LAST_DDL_TIME in USER_OBJECTS gets updated.
Now there a modification in package B so it is compiled. There is no modification in package A.
Now when the package A is executed the TIMESTAMP,LAST_DDL_TIME in USER_OBJECTS gets updated but we did not make any change in Package A. Now we need to find last modified date and time of the package A . So we can not rely on the TIMESTAMP,LAST_DDL_TIME in USER_OBJECTS . Can u please tell us any other solution to get last modified date and time of the package A .
Regards,
Vijayanand.CHere is an example:
SQL> SELECT OBJECT_NAME,CREATED,LAST_DDL_TIME,TIMESTAMP,STATUS FROM USER_OBJECTS
2 WHERE OBJECT_NAME = ANY('A','B');
OBJECT_NAM CREATED LAST_DDL_TIME TIMESTAMP STATUS
A 20-MAY-2004 10:57:32 20-MAY-2004 10:57:32 2004-05-20:10:57:32 VALID
B 20-MAY-2004 10:58:22 20-MAY-2004 10:59:04 2004-05-20:10:59:04 VALID
SQL> CREATE OR REPLACE PROCEDURE A AS
2 BEGIN
3 NULL;
4 NULL;
5 END;
6 /
Procedure created.
SQL> SELECT OBJECT_NAME,CREATED,LAST_DDL_TIME,TIMESTAMP,STATUS FROM USER_OBJECTS
2 WHERE OBJECT_NAME = ANY('A','B');
OBJECT_NAM CREATED LAST_DDL_TIME TIMESTAMP STATUS
A 20-MAY-2004 10:57:32 20-MAY-2004 11:01:28 2004-05-20:11:01:28 VALID
B 20-MAY-2004 10:58:22 20-MAY-2004 10:59:04 2004-05-20:10:59:04 INVALID
SQL> EXEC B
PL/SQL procedure successfully completed.
SQL> SELECT OBJECT_NAME,CREATED,LAST_DDL_TIME,TIMESTAMP,STATUS FROM USER_OBJECTS
2 WHERE OBJECT_NAME = ANY('A','B');
OBJECT_NAM CREATED LAST_DDL_TIME TIMESTAMP STATUS
A 20-MAY-2004 10:57:32 20-MAY-2004 11:01:28 2004-05-20:11:01:28 VALID
B 20-MAY-2004 10:58:22 20-MAY-2004 11:01:53 2004-05-20:11:01:53 VALID
Note that the date under the column 'created' only changes when you really create or replace the procedure.
Hence you can use the column 'created' of 'user_objects'. -
How to find the last update date time and user of record field peoplecode
how to find the last update date time record field peoplecode?
Thank you.One can check the last update date time using the following query
SELECT LASTUPDDTTM FROM PSPCMPROG WHERE OBJECTVALUE1 LIKE 'RECNAME' AND OBJECTVALUE2 LIKE 'FIELDNAME' -
How to find the last modified date of a workflow.
How to find the last modified date of a workflow.
thanks.Hi,
There is nothing as standard that does this - you could write some code to determine the latest begin_date from each of the workflow tables and assume that this was the last time that the definition changed.
What you need is something like this:
select max(wfa.begin_date)
from wf_process_activities wpa
, wf_activities wfa
, wf_item_types_tl wit
where wpa.activity_item_type = wfa.item_type
and wpa.activity_name = wfa.name
and wfa.version = (select max(version) from wf_activities wfa1 where wpa.activity_item_type = wfa1.item_type and wpa.activity_name = wfa1.name )
and wpa.process_item_type = 'your item type'
and wpa.process_item_type = wit.namewhich I think gives what you want.
HTH,
Matt
Alpha review chapters from my book "Developing With Oracle Workflow" are available on my website:
http://www.workflowfaq.com
http://forum.workflowfaq.com
NEW! - WorkflowFAQ Blog at http://thoughts.workflowfaq.com -
How to find the number of columns in an internal table DYNAMICALLY ?
Hi,
How to find the number of columns in an internal table DYNAMICALLY ?
Thanks and Regards,
saleem.Hi,
you can find the number of columns and their order using
the <b>'REUSE_ALV_FIELDCATALOG_MERGE'</b>
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = sy-repid
I_INTERNAL_TABNAME = 'ITAB'
I_INCLNAME = sy-repid
changing
ct_fieldcat = IT_FIELDCAT
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif
now describe your fieldcat . and find no of columns.
and their order also..
regards
vijay -
How to find the selected item in alv grid or table control
can any one tell me please
how to find the selected item in alv grid or table controlIn table control, If you goto screen painter and goto table control properties ( f2 ), there is one check-box w/selColumn check that and give column name. Then add that column to your internal table.
IN PAI
LOOP AT it_tkhdr.
FIELD it_tkhdr-sel_row
MODULE tab_tkhdr_mark ON REQUEST.
ENDLOOP.
MODULE tab_tkhdr_mark INPUT.
MODIFY it_tkhdr INDEX tc_tkhdr-current_line.
ENDMODULE. " tab_tkhdr_mark INPUT
here it_TKHDR is internal table sel_row is field for selection
After that, you can loop at it_tkhdr where sel_row is 'X' to get selected rows.
regards,
Gagan -
How to pull a last DML done on any table
Hi Gyans,
Is there a way for to pull the last DML done on any table, using normal sqlplus - if not then let me know the tool which you can use to do the same.Have you gotten ora_rowscn to work ?
SQL> select scn_to_timestamp(max(ORA_ROWSCN)) from TABLE1;
SCN_TO_TIMESTAMP(MAX(ORA_ROWSCN))
22-SEP-08 01.13.30.000000000 PM
SQL> insert into table1 values(8);
1 row created.
SQL> select scn_to_timestamp(max(ORA_ROWSCN)) from TABLE1;
SCN_TO_TIMESTAMP(MAX(ORA_ROWSCN))
22-SEP-08 01.13.30.000000000 PM
SQL> alter system switch logfile;
System altered.
SQL> select scn_to_timestamp(max(ORA_ROWSCN)) from TABLE1;
SCN_TO_TIMESTAMP(MAX(ORA_ROWSCN))
22-SEP-08 01.13.30.000000000 PM
SQL> select sysdate from dual;
SYSDATE
23 SEP 2008 17:05:07 -
How to hide the data in particular table in oracle 10g
How to hide the data in particular table in oracle 10g
i want stepsIf its on Report u can always hide the column - Keyfigure or Selection - Display - Hide......y do u want to have it on the report if it is to be hided in the first place?
-
How to find the last login details of a Sharepoint SSRS user
How to /where to find the last login details of SSRS sharepoint user. Is there any table where we can check the last login details of user. This is because we are facing an issue of Subscription failure due to Sharepoint token expiration. If user logs in
before 24 hours of his last login time, he is able to get his report subscription. If not, below error is thrown.
The permission granted to user 'domainname\username' are insufficient to perform this operation.Hi,
According to your post, my understanding is that you want to monitor the last login user’s details.
There is no out of the box way to achieve it in SharePoint.
We can use cookie to be a flag for checking whether there is an user just log in. After the page loaded, if the cookie is null, it suggests that there is an user just log in our site, then we
can get this user’s information using JavaScript Object Model and add the information into a custom list. With this list, we can monitor user’s login details.
Refer to the following link:
https://social.technet.microsoft.com/Forums/en-US/0cd4d531-cb61-4d90-aa70-413267f4a735/how-to-know-login-and-logout-details-of-a-user-in-sharepoint-online-2013?forum=sharepointdevelopment
Besides, here are two similar posts for your reference:
https://social.technet.microsoft.com/Forums/sharepoint/en-US/1a35283e-0f2a-49b8-b330-801a3cfcd890/programatically-get-all-current-logged-in-users-list-for-a-sharepoint-site?forum=sharepointdevelopmentprevious
https://social.technet.microsoft.com/Forums/en-US/10953be3-cb1c-40c7-9454-545c8338b551/how-to-know-login-users-count-and-their-details-in-sharepoint-2010-web-application?forum=sharepointgeneralprevious
Best Regards,
Lisa Chen
Lisa Chen
TechNet Community Support -
How to find the Last report run date
Hello All,
I have one ALV report.
In that report i have to display the date on which the report was run last time.
The user can run report both in backgroud as well as in forground.
Cay anybody plz tell me how to find the date on which report was run last time.
Thanks and Regards
Sachin YadavHello Sachin,
I agree with Thomas on this. That would be the simplest & fool-proof solutn. Alternatively, you can try to use the stmts: EXPORT/IMPORT TO DATABASE.
Search in SDN you will find [similar posts|Get IP Address and Report Running Date and time;.
BR,
Suhas
Edited by: Suhas Saha on May 18, 2009 3:44 PM -
How to find the last executed date ,time and user of the quaery
Hi,
How to find the following information of the Query
1. Where all the place these queries/web template used.
2. When was it last executed.
3. Who executed last.
Regards,
Harihi Hari,
you can try table /BI0/APERS_BOD00
for query, first go to table RSRREPDIR, give field COMPID
with query technical name and get GENUNIID, then go to table /BI0/APERS_BOD00, field TCTOBJNM = RSRREPDIR-GENUNIID, TCTUSERNM and TCTTIMSTMP -> user name and last executed.
for web template, give field TCTOBJNM in table /BI0/APERS_BOD00 with web template name.
hope this helps. -
How to find the offending DML for "enq: TX - row lock contention"
Hello All,
1) How can I find the offending DML for "enq: TX - row lock contention". I have tracked down the Blocking and Waiting Sessions as well as the Database Object too. But i am not able to find the DML (with values of bind variables) or the row for which both these sessions are fighting for?
Current Wait Event: enq: TX - row lock contention
Current Wait Class: Application
Wait Duration: 5:15 (mm:ss)
P1: name|mode 1415053318
P2: usn<<16 | slot 12058642
P3: sequence 39951
Object: USERNAME.MEMBER 2) Also does *"enq: TX - row lock contention"* means Both the sessions are fighting for the same Row only or it can be different rows but same database block? If they are fighting for different rows, then can we try increasing the initrans of tables/indexes to prevent this wait.
Please advice.
Regards,
TommyThanks Randolf, Mark and Aman for your valuable inputs. We are using 10.2 and the lock mode held and requested is 6. And the Wait Event is "enq: TX - row lock contention".
Based on the above facts and based on Randolf's Blog, can we ignore the following cases?:
- Same unique key written by different sessions: Because mode held and requested in ym case is 6 whereas in Randolf example it is 6 and 4 respectively
- Unindexed foreign keys and modifications to parent table primary keys: Because Wait Event in my case is "enq: TX - row lock contention"
- Insufficient block space and ITL slot shortage: Because Wait Event in my case is "enq: TX - row lock contention" and not enq: TX - allocate ITL entry
- Segments with low MAXTRANS settings Only pre-10g: But Mine is 10g
And the possible scenarios left out scenarios are:
- Bitmap indexes
- Same Row modified by different sessions
I will now try to find out the sql/dml that is causing the problem. Thank you all for your help once again.
SESS ID1 ID2 LMODE REQUEST TY
Holder: 138 393224 1330 6 0 TX
Waiter: 140 393224 1330 0 6 TX
Maybe you are looking for
-
How to make a file to be opened in PL-SQL Editor of SQL Developer
How to open a package file (.pkg) in sql Developer's PL-SQL Editor? Tried creating a new file type with Extension as .pkg and file type as PlSqlNode. Could open the file and found some of the features of plsql editor, such as find, compile... but cou
-
I have been trying to figure out how to send a picture message with music tones or voice recording. Does anyone know how to do this?
-
Error during installation of "J2SE v 1.4.2_01"
Ok well ive Downloaded J2SE v 1.4.2_01, and during installation i get an error please go to this link http://www.angelfire.com/creep/cozmo477/error.jpg to see the error, and help if you can please thank's.
-
Help needed with a simple CompareTo sorting method
This code is supposed to sort through a list of random numbers, dates, and strings to find the largest. The problem is that with the strings it just sets the first string in the array to the largest, and I'm really not sure why it's doing it...Any he
-
How to getValue of CoreOutputText of a selected row ?
Hello Jdev 10.1.3 Experts, Currently I am using JUCtrlValueBindingRef getSelectedRowData to access selected row data bound to ADF CoreTable. I have no problem with it. Now I have a case to access selected row data from a column (CoreOutputText)that d