How to find last DML operation in oracle ADF
how to find last DML operation in oracle ADF
Please help me
Thanks
Damby
In the base EntityIml class, just override doDML() method as I said.
(see http://docs.oracle.com/cd/E16162_01/web.1112/e16182/appendix_mostcommon.htm
"Methods for Creating Your Own Layer of Framework Base Classes")
So, put a some flag in the session.
You should not call doDML() method in backing bean, it will be called by framework.
In the backing bean, you only have to get that information from the session, as follows:
String last_dml_op = (String)ADFContext.getCurrent().getSessionScope().get("last_dml_op");And voila...
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 know which DML operation is taking place on a table within a procedu
Hii all,
My DB Version
SQL> select *
2 from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for Solaris: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - ProductionHow to find what DML Operation is taking place on a particular table within a procedure??
For suppose I've the below procedure
create table r_dummy
name varchar2(4000),
emp_id number
Create or replace procedure r_dummy_proc
p_name in varchar2,
p_emp_id in number
is
Begin
Update r_dummy
set name = p_name
where emp_id = p_emp_id;
if sql%rowcount > 1 then
dbms_output.put_line('Successfully updated employee name');
end if;
End;Here from the code I can identify that an update operation is taking place on table 'R_DUMMY'
But how to find that without actually viewing the code?? I've hundreds of procedures in my DB and would like to find what DML is taking place on which table and in which procedure.
Please help with some suggestions.And here is the solution
with t as
select distinct name,type,text,line
from user_source s
where regexp_like(s.text,'cp_ca_dtls','i')
x as
select name,line,text
from
select name,case when (regexp_instr(text,'(update)|(insert)|(delete)',1,1,1,'i') >0) and regexp_instr(ld,'CP_CA_DTLS',1,1,1,'i') >0
then line
else null
end as line,text
from
Select name,text,line,lead(text) over(partition by name order by line) ld
from user_source
where name in
select distinct name
from user_source
where upper(text) like '%CP_CA_DTLS%'
order by 1 nulls last
)where line is not null
select name,line,text
from t t1
where regexp_instr(text,'(update)|(insert)|(delete)',1,1,1,'i') >0
and exists
select 1
from t t2
where t1.name = t2.name
and t1.type = t2.type
and t1.line = t2.line
union
select name,line,text
from x -
How to find last inserted record in the table.
Version: Oracle 10g
I have a table called "Manufacture" and 3 columns as mfno,itemname,quantity.
How to find last inserted record in the table "Manufacture".
As i come to know that Rowid is not result perfect results. Please provide your inputs.user13416294 wrote:
Version: Oracle 10gThat is not a version. That is a product name. A version is 10.1.0.2 or 10.2.0.4, etc.
I have a table called "Manufacture" and 3 columns as mfno,itemname,quantity.
How to find last inserted record in the table "Manufacture".Not possible as your data model does not cater for it. That simple.
If there is a need to determine some order or associate some time to an entity, then that should be part of the data model - and a relationship, or one or more attributes are needed to represent that information. Thus your data model in this case is unable to meet your requirements.
If the requirements are valid, fix the data model. In other words - your question has nothing to do with Oracle and nothing to do with rowid, rowscn or other pseudo columns in Oracle. It is a pure data modeling issue. Nothing more. -
How to find .pld files version in Oracle apps
Hi,
How to find .pld file version in Oracle apps using unix command or any other way.
RegardsConnect to the forms server.
In the $AU_TOP/resource directory run the following...
strings -a <NAMEOFFILE>.plx | grep '$Header'
For example...
To find the .pld version of INVAMCAP.plx I would run this on the forms server.
cd $AU_TOP/resource
strings -a INVAMCAP.plx | grep '$Header'
This will return the .pld version.
Hope this helps!
Jen -
How to find last accessed/updated tables and the query text?
I am using :
Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
With the Partitioning option
JServer Release 8.1.7.4.0 - Production
How to find last accessed/updated tables and the query text?
Regards
LEE1212Check DBA_TBALES view there you find one date column that indicate last update
One option is as follows:
(1) Turn the auditing on: AUDIT_TRAIL = true in init.ora
(2) Restart the instance if its running.
(3) Audit the table:
AUDIT INSERT,SELECT,DELETE,UPDATE on TableName
by ACCESS WHENEVER SUCCESSFUL
(4) Get the desired information using :
SELECT OBJ_NAME,ACTION_NAME ,to_char(timestamp,'dd/mm/yyyy , HH:MM:SS')
from sys.dba_audit_object.
Cheer,
Virag Sharma
http://virag.sharma.googlepages.com/
http://viragsharma.blogspot.com/
Message was edited by:
virag_sh -
How to find last executed query on database and or schema.
hi,
how to find last executed query on database and or schema.
yours sincerelySessionwise if you wanna see means use v$session.. Because it will show execution time also so you can analyze it easily and get sql based on SID and serial number ..
Try :
select * from v$session;
Regards.. -
How to find my SOA version for Oracle EBS?
How to find my SOA version for Oracle EBS?
Thanks!
Weiplease see
SOA 11g Integration Support for Oracle E-Business Suite (Doc ID 1278194.1)
AppsMaSti
Sharing Is Caring -
How to find out difference between IAS Oracle Home patches and 10.1.2 Oracl
How to find out difference between IAS Oracle Home patches and 10.1.2 Oracle Home patches.
I have read me document but i could not able to understand.
Please help meuser10721329 wrote:
How to find out difference between IAS Oracle Home patches and 10.1.2 Oracle Home patches.
I have read me document but i could not able to understand.
Please help meWhat docoument you are referring to?
If you source the application env file APPS<CONTEXT_NAME>.env file under $APPL_TOP directory then this will set ORACLE_HOME to 10.1.2
If you source the application env file <CONTEXT_NAME>.env file under $INST_TOP/ora/10.1.3 directory then this will set ORACLE_HOME to 10.1.3
Environment Settings
http://docs.oracle.com/cd/E18727_01/doc.121/e12841/T120505T120509.htm#F_92659x3Ax20H1x20Head1x3Ax20Environmentx20Settings
Thanks,
Hussein -
How to find last date of month
Dear All,
Can anybody tell me how to find last date of month I need it to check some validations
helpful answer will definatly rewarded
Regards
ShashikantHi,
RP_LAST_DAY_OF_MONTHS Determine last day of month
HR-D: Payroll Germany code
RP_LAST_DAY_OF_MONTHS
HR-D: Determine last day of month
DATE_CONVERT_TO_FACTORYDATE
Returns factory calendar date for a date Calculates and returns factory calendar date for a date (if CorrectOption = '+');
Checks if the date is work day (if CorrectOption = '-').
HOLIDAY_CHECK_AND_GET_INFO Useful for determining whether or not a date is a holiday. Give the function a date, and a holiday calendar, and you can determine if the date is a holiday by checking the parameter HOLIDAY_FOUND. -
hi, I am using 11g 1.2 and ADF BC
I followed the sample "http://andrejusb.blogspot.com/2010/05/crud-operations-in-oracle-adf-11g-table.html" and built a same thing in my bound task-flow.
the 'Edit' , 'Insert' , 'Save' and 'Undo' button worked perfectly, but the 'Delete' button is not. let say I have three lines in the table, If I click a row and click the 'Delete' button, then all three lines are disapear, May I know why? Thanks for your guide!
Rgds!But I do have the af:form in the page level. My table is inside the region which is in the page.
I have added a af:Subform around my af:PanelCollection, but the result is worse, even when I click 'INSERT' button, the all three lines are disapear!!!
May this sample and code can not work properly inside the region?
Edited by: xsyang on Jul 19, 2011 4:42 AM
finally I understand that the solution in the sample is for bindings in the page, but my af:table component in the page fragment. may not directly coding like sample. am i worng? can anybody guide me how to refer to binding in the fragment. Thanks!
Edited by: xsyang on Jul 19, 2011 8:06 AM -
How to find / get the list of oracle patches applied using SAPGUI
At OS Level as ora<SID> user from directory /usr/sap/<SID>/102_64/OPatch/opatch inventory command gives the output of applied oracle patches. How to find out form SAPGUI login the same information.
Thaanx in advance.
PRHi ,
You can execute few commands from SAP level, suppose for example if you don't have access to Operating system.But it will be executed under sidadm user.Opatch utility will executed under orasid user ( concerns if you have Unix flavour ) .
I have used this and it gives the result.
in SAP level ,
SE38 -
>program name RSBDCOS0 -
> execute -
>/oracle/<SID>/920_64/OPatch/opatch lsinventory
[1]/oracle/CWR/920_64/OPatch/opatch lsinventory
Oracle Interim Patch Installer version 1.0.0.0.57
Copyright (c) 2007 Oracle Corporation. All Rights Reserved..
We recommend you refer to the OPatch documentation under
OPatch/docs for usage reference. We also recommend using
the latest OPatch version. For the latest OPatch version
and other support related issues, please refer to document
293369.1 which is viewable from metalink.oracle.com
Oracle Home : /oracle/CWR/920_64
Oracle Home Inventory : /oracle/CWR/920_64/inventory
Central Inventory : /oracle/CWR/oraInventory
from : /etc/oraInst.loc
OUI location : /oracle/CWR/920_64/oui
OUI shared library : /oracle/CWR/920_64/oui/lib/aix/liboraInstaller.so
Java location : /oracle/CWR/920_64/jdk/jre/bin/java
Log file location : /oracle/CWR/920_64/.patch_storage/<patch ID>/*.log
Creating log file "/oracle/CWR/920_64/.patch_storage/LsInventory__06-12-2008_12-33-47.log"
Result:
Installed Patch List:
=====================
1) Patch 6000096 applied on Thu Dec 20 14:19:51 CET 2007
[ Base Bug(s): 5172444 3521347 3639130 5140931 4541524 4483286 5129407 5977665 5562159 ]
2) Patch 5530958 applied on Thu Dec 20 14:19:09 CET 2007
[ Base Bug(s): 5530958 ]
3) Patch 5496862 applied on Thu Dec 20 14:18:10 CET 2007
[ Base Bug(s): 5496862 ]
4) Patch 5369855 applied on Thu Dec 20 14:15:20 CET 2007
[ Base Bug(s): 5369855 ]
5) Patch 4660718 applied on Thu Dec 20 14:14:26 CET 2007
[ Base Bug(s): 4660718 ]
6) Patch 5901875 applied on Thu Dec 20 14:12:27 CET 2007
[ Base Bug(s): 5901910 5490859 2701372 5901875 5491035 ]
OPatch succeeded.
if you need , you can change the directory using change directory option. -
How to find latesh version available for ORACLE DB.
Hi,
Today i came across situation to suggest latest patchset available for 11G for my OS. How to find in systamatic way?
like 11.x.0.y.
Regards
DBA.In general you need My Oracle Support (MOS) access https://support.oracle.com/CSP/ui/flash.html with a CSI linked to your support contract.
Then you can access following docs:
2. Oracle Database (RDBMS) Releases Support Status Summary [ID 161818.1] gives last patch set availability whateve the platform
3. Release Schedule of Current Database Releases [ID 742060.1] give last patch set availabilty for each platform. -
How to find last executed query
Hello,
I want to find the last executed query in the Oracle database.
Can anybody help me, how can I find last fired query.
I am using following query for it, but it gives me the same query as in the result.
SELECT SQL_TEXT FROM V$SQL
WHERE ADDRESS = (SELECT SQL_ADDRESS
FROM V$SESSION
WHERE AUDSID = USERENV('SESSIONID'))
Please help me.Thanks.Hi,
select sa.sql_text,ss.username
from v$session ss, v$sqlarea sa
where sa.hash_value = ss.prev_hash_value
SQL> /
SQL_TEXT
USERNAME
DELETE FROM T
HR
GRANT SELECT ON T TO
HR
SELECT COUNT(*) FROM HR.T
SCOTT
SQL_TEXT
USERNAME
select sa.sql_text,ss.username from v$session ss, v$sqlarea sa where sa.hash_val
ue = ss.prev_hash_value
SYSregards
Taj
Message was edited by:
Mohammad Taj -
How to find out the version of oracle in a linux box
HI All,
Can anyone tell me how to find the version oracle 10g on a linux box.
ThanksSQL> set line 1000;
SQL> select banner from V$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SQL> define
DEFINE _DATE = "12-NOV-09" (CHAR)
DEFINE CONNECTIDENTIFIER = "loghost" (CHAR)
DEFINE _USER = "SYSTEM" (CHAR)
DEFINE _PRIVILEGE = "" (CHAR)
DEFINE SQLPLUSRELEASE = "1002000100" (CHAR)
DEFINE _EDITOR = "Notepad" (CHAR)
DEFINE OVERSION = "Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Producti
With the Partitioning, OLAP and Data Mining options" (CHAR)
DEFINE ORELEASE = "1002000100" (CHAR)
SQL>
Regards
Asif Kabir
Maybe you are looking for
-
Single Sign On -- Enterprise portal and BI JAVA
Hi, I need to watch reports BI J2ee from an EP 7.00. I have configured the single sign On but it works just for ABAP BI Stack. This is what I have done for SSO JAVA: Importing the BI JAVA Certificate to the SAP NetWeaver 2004s Portal (SAP EP 7.0)
-
Switching between Apple IDs on iphone
I have an Iphone issued by my employer. What would happen if I logged out the the company Apple ID and logged into my own so I can download apps?
-
Quick tip: aborting the loading of a song
I like to keep aliases to each project file I'm working on, for a given album, in a single folder. Now I must be a spaz, but about once a week I double-click on the wrong file in the list, usually missing the [intended] one above/below it by a millim
-
Music found, but not being read
So i was on a plane when my ipod started acting up just skipping songs. So I reset it. Though when I did that it showed all my songs were gone. Though the space for the songs is still there. i then found the files looking on my computer. how can I ge
-
Java calling functions in an OCX
Hey folks, I have a proprietary OCX for a clicker system I use in my high school math classroom. The vendor gave me a VB SDK for calling the OCX functions and that works fine. However, I want to write apps using Java. So, I've thought about two optio