Audit trace-capture RPC event

Hi Experts,
This is the audit script, I need to include to capture RPC event along with this.
Can you please help
USE [BDADissemination]
GO
/****** Object:  StoredProcedure [dbo].[prcInsertBD81]    Script Date: 02/07/2014 07:38:09 ******/
SET
ANSI_NULLS ON
GO
SET
QUOTED_IDENTIFIER ON
GO
CREATE
PROC [dbo].[prcInsertBD81]
    @ProcessDate
varchar(8),
    @BD81_acc_cde
varchar(7),
    @BD81_del_id
varchar(7),
    @BD81_del_seq
varchar(3),
    @BD81_acc_typ_cde
varchar(2),
    @BD81_brn_cde
varchar(2),
    @BD81_partner_cde
varchar(2),
    @BD81_age_dte
varchar(8),
    @BD81_instr_typ
varchar(1),
    @BD81_instr_alpha
varchar(6),
    @BD81_instr_version
varchar(3),
    @BD81_ps_ind
varchar(1),
    @BD81_tran_amt
varchar(16),
    @BD81_tran_qty
varchar(12),
    @BD81_con_chg_ind
varchar(1),
    @BD81_con_nte_ind
varchar(1),
    @BD81_consid
varchar(16),
    @BD81_prce
varchar(9),
    @BD81_del_tran_cde
varchar(2),
    @BD81_trade_cap
varchar(1),
    @BD81_trade_typ
varchar(2),
    @BD81_rvsd_del_id
varchar(7),
    @BD81_DealerCode
varchar(5),
    @BD81_OrderNumber
varchar(12),
    @BD81_UnitTrustQty
varchar(16),
    @BD81_RandIndicator
varchar(1)
AS
INSERT
INTO Deals (
      procs_dte,
      acc_cde,
      del_id,
      del_seq,
      acc_typ_cde,
      brn_cde,
      partner_cde,
      age_dte,
      instr_typ,
      instr_alpha,
      instr_version,
      ps_ind,
      tran_amt,
      tran_qty,
      con_chg_ind,
      con_nte_ind,
      consid,
      prce,
      del_tran_cde,
      trade_cap,
      trade_typ,
      rvsd_del_id,
      DealerCode,
      OrderNumber,
      UnitTrustQuantity,
      RandIndicator
SELECT
    @ProcessDate,
    @BD81_acc_cde,
    @BD81_del_id,
    @BD81_del_seq,
    @BD81_acc_typ_cde,
    @BD81_brn_cde,
    @BD81_partner_cde,
    @BD81_age_dte,
    @BD81_instr_typ,
    @BD81_instr_alpha,
    @BD81_instr_version,
    @BD81_ps_ind,
cast(@BD81_tran_amt
as DECIMAL(18, 2))
/ 100,
    @BD81_tran_qty,
    @BD81_con_chg_ind,
    @BD81_con_nte_ind,
cast(@BD81_consid
as DECIMAL(18, 2))
/ 100,
CASE @BD81_instr_typ
WHEN 'E'
THEN
cast(@BD81_prce
as DECIMAL(18, 2))
/ 10000
ELSE
cast(@BD81_prce
as DECIMAL(18, 2))
/ 100
END,
    @BD81_del_tran_cde,
    @BD81_trade_cap,
    @BD81_trade_typ,
    @BD81_rvsd_del_id,
    @BD81_DealerCode,
    @BD81_OrderNumber,
cast(@BD81_UnitTrustQty
as DECIMAL(18, 2))
/ 100000,
      @BD81_RandIndicator
GO;  
GO
Shashikala

This is the audit script, I need to include to capture RPC event along with this.
I'm not sure I understand your question.  Do you want to capture the RPC completed event when this stored procedure is called for auditing purposes?  In that case, you can capture the RPC completed event to a file with a filtered Extended Event
session or SQL Trace, depending on the version of SQL Server you are using. 
To create an unattended SQL Trace, create the desired trace using Profiler with the filter (proc name) and columns.  Then export the trace definition script, modify it to provide the desired trace file path and properties.  You can run it
continuously with a SQL Agent job that (re)creates it every time SQL Agent starts.
Dan Guzman, SQL Server MVP, http://www.dbdelta.com

Similar Messages

  • Live Trace misses ETW events without user-specified context data

    Hi there.
    Currently using MessageAnalyzer for capturing and analyzing ETW debug logs. But in analysys grid I see only events *with* any extra event data and no events *without* it.
    This events are ok:
    <event symbol="someevent1" value="68" version="0" channel="MyApp/debug" level="win:Verbose" opcode="win:Info" template="Message" message="$(string.MyApp.event.68.message)"></event>
    This events are totally missed:
    <event symbol="someevent2" value="69" version="0" channel="MyApp/debug" level="win:Verbose" opcode="win:Info" message="$(string.MyApp.event.69.message)"></event>
    There is no difference if "template" attribute omitted, empty string or targets empty template.
    In Event Viewer and .elt traces captured with xperf I see *all* events, so there is problems with manifest or application itself. Is it feature of MessageAnalyzer or some kind of bug?
    MessageAnalyzer 1.2 (build 4.0.7285.0), windows 8.
    Thanks.

    This sounds similar to another bug report we received internally.  In that case, the message are dropped by message analyzer, but TraceFmt and other tools show these missing events.  Hopefully we can address in our next release. 
    Sorry for the inconvienience, and hopefully we can fix this soon.
    Paul

  • Unable to capture button event in pageLayout Controller

    Hi Guys,
    I have the following layout
    pageLayout
    pageLayoutCO (controller)
    ----header (Region)
    ----------messageComponentLayout (Region)
    -----------------MessageLovInpurt
    -----------------MessageChoice(Item)
    -----------------MessageTextInput
    -----------------MessageLayout
    ----------HideShow (Region)
    -----------------MessageLovInpurt(Item)
    -----------------MessageChoice(Item)
    -----------------MessageTextInput(Item)
    -----------MessageComponentLayout (Region)
    -----------------MessageLayout
    ------------------------SubmitButton(ID:SearchBtn)
    ------------------------SubmitButton(ID:ClearBtn, fires partial action named clear)
    -----------header(Region)
    I am not able to capture the event fired by the button ClearBtn in the controller of the pagelayout.....
    The two methods I used as follows aren't worked:
    if ("clear".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    if (pageContext.getParameter("ClearBtn") != null) {
    what should i do in order to capture the button event in the pageLayout Controller
    Thanks in advance
    Mandy
    Edited by: user8898100 on 2011-8-2 上午7:49

    Mandy,
    Its really strange that its not able to caputure the event in CO.
    Below is the way in which we handle to Submit action at CO level.
    /Check whether ClearBtn is same in case too.
    if(pageContext.getParameter("ClearBtn")!=null){
    System.out.println("Inside the Clear Btn Action");
    Regards,
    Gyan

  • Unable to capture onClick event of htmlb:image in a controller

    Hi,
    I am trying to capture onClick event of an htmlb:image (which is present in my view) in DO_HANDLE_EVENT method of my controller.
    Surprisingly, when I click the image, page does refreshes. But the event in not captured in do_handle_event method. Control never reaches that method. Whereas if I put onClick event of a button, it is easily captured in do_handle_event method.
    Ex. code in my view is:
    <%@page language="abap"%>
    <%@extension name="bsp" prefix="bsp" %>
    <%@extension name="htmlb" prefix="htmlb"%>
        <htmlb:image id      = "searchimg"
                     src     = "consvalue.jpg"
                     onClick = "search"  />
        <htmlb:button id="searchbutton" onClick="search"
                                     text="Event Test"/>
    Now, the button event is captured, but not the image event.
    Any idea why this might be happening?
    Regards,
    Kaushal

    Hi Kaushal,
    are image and button enclosed by <htmlb:form> ?
    Please post your of do_handle_event, where you look for the event.
    Regards,
    Sebastian

  • How to capture the event in driver JSplitPane

    Hi all, i have some problem with the JSplitPane.
    What i want to do is that:
    i need to capture the event throw when the user press the button in the driver of the JSplitPane, this is because i want to know wich side of the splitpane is complet visible.
    Thanks for your time!
    Luca

    I thought I would do up an example just for fun. As you drag the splitter bar the size of the two components and the splitter component is reported to the console along with the divider location. Interestinly, on my system (Windows XP, Java 1.41_02) when you move the bar downwards the divider location is consistantly two pixels past the height of the top component but when you drag the bar upwards the divider location and the height of the top component are the same.
    Does anyone have any ideas why that would be?
    Here is the test app:package splitPaneMonitor;
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.beans.PropertyChangeEvent;
    import java.beans.PropertyChangeListener;
    import javax.swing.JFrame;
    import javax.swing.JSplitPane;
    import javax.swing.JTextArea;
    public class SplitPaneFrame extends JFrame implements PropertyChangeListener  {
         public SplitPaneFrame()  {
              super ("Split pane test");
              //  Create the components to show in the split pane
              myTopComponent = new JTextArea ("This is the top component", 10, 40);
              myBottomComponent = new JTextArea ("This is the bottom component", 15, 40);
              //  Create the split pane
              mySplitter = new JSplitPane (JSplitPane.VERTICAL_SPLIT , true, myTopComponent, myBottomComponent);
              mySplitter.addPropertyChangeListener(JSplitPane.DIVIDER_LOCATION_PROPERTY, this);
              getContentPane ().setLayout(new BorderLayout ());
              getContentPane ().add (mySplitter, BorderLayout.CENTER);
         public void propertyChange (PropertyChangeEvent evt) {
              if (evt.getPropertyName () == JSplitPane.DIVIDER_LOCATION_PROPERTY)  {
                   System.out.println ("Split pane divider moved");
                   Dimension size = myTopComponent.getSize ();
                   System.out.println ("    The top component's size is: " + size.height +" h, "+ size.width + " w");
                   myBottomComponent.getSize (size);
                   System.out.println ("    The bottom component's size is: " + size.height +" h, "+ size.width + " w");
                   mySplitter.getSize (size);
                   System.out.println ("    The splitter's size is: " + size.height +" h, "+ size.width + " w");
                   System.out.println ("    The splitter divider location is: " + mySplitter.getDividerLocation ());
         private JTextArea myTopComponent;
         private JTextArea myBottomComponent;
         private JSplitPane mySplitter;
         public static void main(String[] args) {
              SplitPaneFrame appFrame = new SplitPaneFrame ();
              appFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              appFrame.pack();
              appFrame.setVisible (true);          
    }

  • How to Capture Button event on TrainBean navigation

    Hi All
    i m being required to capture a button event in train bean Navigation, i m doing customization in Iexpense Module,here in Create IExpenseReport i need to capture the events of Remove,Return etc.how is it possible any clue would be very helpful.
    Thanx
    Pratap

    try this..
    if (GOTO_PARAM.equals(pageContext.getParameter(EVENT_PARAM))
    "NavBar".equals(pageContext.getParameter(SOURCE_PARAM))
    // This condition checks whether the event is raised from Navigation bar
    // and Next or Back button in navigation bar is invoked.
    int target = Integer.parseInt(pageContext.getParameter(VALUE_PARAM));
    // We use the parameter "value" to tell use the number of
    // the page the user wants to visit.
    String targetPage;
    switch(target)
    case 1: targetPage = "/oracle/apps/dem/employee/webui/EmpDescPG"; break;
    case 2: targetPage = "/oracle/apps/dem/employee/webui/EmpAssignPG"; break;
    case 3: targetPage = "/oracle/apps/dem/employee/webui/EmpReviewPG"; break;
    default: throw new OAException("ICX", "FWK_TBX_T_EMP_FLOW_ERROR");
    HashMap pageParams = new HashMap(2);
    pageParams.put("empStep", new Integer(target));
    pageContext.setForwardURL("OA.jsp?page=" + targetPage,
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    pageParams,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO, // Do not display breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Not able to capture button event in pageLayout Controller

    Hi Guys,
    I have the following layout
    pageLayout ------------------------ pageLayoutCO (controller)
    ----messageComponentLayout (Region)
    ----------messageComponentText (item)
    ----------messageComponentText (item)
    ----------messageComponentText (item)
    ----------messageLayout (Region)
    ----------------header(Region)
    ----------------------button (item) (say BTN1) (fires partial action)
    I am not able to capture the event fired by the button BTN1 in the controller of the pagelayout..... but if i set a controller at the messageComponentLayout iam able to capture the event.
    what should i do in order to capture the button event in the pageLayout Controller
    Thanks in advance
    Tom.

    Tom,
    Two things:
    1)The button ur using is of type submitbutton or button?.In this scenario it should be button.
    2)The correct coding practice is using:
    if("QUERY".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    instead of
    String _event = pageContext.getParameter("event");
    if("QUERY".equals(_event))
    because you never know if Oracle in any upgrade or patch change the value of the constant EVENT_PARAM in class OAWebBeanConstants.
    3)If first point is followed by you, just match the exact event name in code and in property inspector for the button.
    --Mukul
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • While Installation of 11g database creation time error ORA-28056: Writing audit records to Windows Event Log failed Error

    Hi Friends,
    OS = Windows XP 3
    Database = Oracle 11g R2 32 bit
    Processor= intel p4 2.86 Ghz
    Ram = 2 gb
    Virtual memory = 4gb
    I was able to install the oracle 11g successfully, but during installation at the time of database creation I got the following error many times and I ignored it many times... but at 55% finally My installation was hanged nothing was happening after it..... 
    ORA-28056: Writing audit records to Windows Event Log failed Error  and at 55% my Installation got hung,,,, I end the installation and tried to create the database afterward by DBCA but same thing happened....
    Please some one help me out, as i need to install on the same machine .....
    Thanks and Regards

    AAP wrote:
    Thanks Now I am able to Create a database , but with one error,
    When I created a database using DBCA, at the last stage I got this error,
    Database Configuration Assistant : Warning
    Enterprise Manager Configuration Failed due to the Following error Listener is not up or database service is not registered with it.  Start the listener & Registered database service & run EM Configuration Assistant again....
    But when I checked the listener was up.....
    Now what was the problem,  I am able to connect and work through sqlplus,
    But  I didnt got the link of EM and when try to create a new connection in sql developer it is giving error ( Status : failure - Test Failed the Network Adapter could not establish the connection )
    Thanks & Regards
    Creation of the dbcontrol requires a connection via the listener.  When configuring the dbcontrol as part of database creation, it appears that the dbcontrol creation step runs before the dynamic registration of the databsase with the listener is complete.  Now that the database itself is completed and enough time (really, just a minute or two) has passed to allow the instance to register, use dbca or emca to create the dbcontrol.
    Are you able to get a sqlplus connection via the listener (sqlplus scott/tiger@orcl)?  That needs to be the first order of business.

  • How to capture the event in ALV grid display?

    Hi experts,
      How to capture the event in an ALV grid display which is editable. I have to capture the TAB key or ENTER key.
    regards,
    Arul Jothi.

    Hi Arul,
    Take a look at sample program BCALV_EDIT_03. (Find string "register ENTER" in the program to see how to register)
    Basically you have to Register edit events using method call REGISTER_EDIT_EVENT and then write a handler method for event DATA_CHANGED..
    If you are using a REUSE..GRID fm then first get the grid reference using function module GET_GLOBALS_FROM_SLVC_FULLSCR and then repeat the above procedure..
    Hope this helps..
    Sri
    Message was edited by: Srikanth Pinnamaneni

  • Capturing the event on clicking the af:train stop icon

    We are using an af:train as follows
    <fnd:applicationsPanel>
    <f:facet name="appsPanelTrain">
    <af:panelGroupLayout layout="horizontal" halign="center"
    id="panelGroupLayout2">
    <af:train value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}"
    id="train1"/>
    </af:panelGroupLayout>
    </f:facet>
    </fnd:applicationsPanel>
    I see the train stops on top of my page as expected. I can skip the train stops by directly clicking on the stops on top of the page.
    Is there a way to capture the event of this click?

    This should help
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/97-deferred-trainstop-navigation-1528557.pdf

  • Audit traces vs SAP BI

    Hi!
    I would like to import AUDIT TRACES from all systems into SAP BI system in order to build a AUDIT history and to develop querys to auditors within SAP BI.
    Did anyone developed something like this or know that SAP intends to deliver this functionality?
    FF

    Hi Kumar,
    You can see that different clients implemented BI 7.0 long before may be in 2006 in India not so sure.
    As now BW 7.3 is also available, you can see many implementations happening in 7.3 as well.
    Regards,
    Raghu

  • Capturing JButton event in a JList

    All,
    I have a JList that renders each list item with some special formatting of a JLabel and a Jbutton. The button is an 'OK' button that must be acknowledged. When the OK button is acknowledged it should be deleted from the list model. I am having trouble capturing the event of the button. I am not interested in the list selection event per se just the selected Index, which I know how to get. Any ideas on getting to the button click event even though it is in a list?
    Thanks much.

    I'm not sure I understand exactly what you're doing (you have a JButton inside a JList?), but to answer your last question, you get access to the button click even the same way you would with any other JButton:
    JButton myListButton = new JButton("click me");
    myListButton.addActionListener(new ActionListener()
      public void actionPerformed(ActionEvent e)
        // remove button from list or do whatever
        // other processing is required

  • Capturing the events and performing a predefined action

    I want a mechanism to capture the events:
    eg: If a new document is opened , I want a text frame to be created on that document as soon as it gets opened.
    what interfaces, classes can help me here? andy sample code avilable which shows how to capture events?

    Operating System
    System Model
    Windows 7 Ultimate (build 7100)
    Gigabyte Technology Co., Ltd. M61PME-S2P
    Enclosure Type: Desktop
    Processor
    Main Circuit Board
    2.80 gigahertz AMD Athlon X2 240
    256 kilobyte primary memory cache
    1024 kilobyte secondary memory cache
    64-bit ready
    Multi-core (2 total)
    Not hyper-threaded
    Board: Gigabyte Technology Co., Ltd. M61PME-S2P
    Bus Clock: 200 megahertz
    BIOS: Award Software International, Inc. F2 12/30/2008
    Drives
    Memory Modules
    320.07 Gigabytes Usable Hard Drive Capacity
    125.82 Gigabytes Hard Drive Free Space
    TSSTcorp CDDVDW SE-S084C USB Device [Optical drive]
    SAMSUNG HD321HJ SCSI Disk Device (320.07 GB) -- drive 0, s/n S13RJ90SB04688, SMART Status: Healthy
    1984 Megabytes Usable Installed Memory
    Slot 'A0' has 2048 MB
    Slot 'A1' is Empty
    Local Drive Volumes
    c: (NTFS on drive 0) *
    319.97 GB
    125.76 GB free
    d: (NTFS on drive 0)
    105 MB
    65 MB free
    * Operating System is installed on c:
    The media files are avi and are in my videos folder (videos-windows 7)

  • Sap  business One (capture control events)

    How do I capture keyboard events(especially those with Control like CTRL-R) in SBO??

    Hi Payal,
    You can catch the key down event in your Item_Event handler as follows:
    If pVal.Modifiers = SAPbouiCOM.BoModifiersEnum.mt_CTRL And pVal.CharPressed = 82 Then
        'do something
    End If
    Hope it helps,
    Adele

  • Capturing the event!!!urgent

    Hi all,
    i have a checkBox on a page.My requirement is to capture the event of the CheckBox being clicked,like writing some javascript Functions like onClick.
    kan anyone provide me some clarity like, is this possible.
    I am being to fetch the user checked value once i caputre the event.
    For time being i have created a Apply button to capture the user selection of checkBox.
    The code is here
    if(pageContext.getParameter("Apply")!=null)
    String checkboxn = pageContext.getParameter("NoFlag");
    if ("on".equals(checkboxn))
    updatedCheckValue="Y";
    But my client does not want any additional Buttons on the page.
    So i need to captire the vent through some javascript.

    You don't need a javascript to do this. As Tapash mentions, you can define a fireAction on the messageCheckBox Bean and handle this event in your controller code.
    Thanks, Srinath.

Maybe you are looking for

  • AP reboot issue w/ WLC4400 and LAP1020

    Hello, I have a WiFi network based on WLC4400 (SW version 4.2.130.0) and 14 LAP1040s (SW ver. 4.2.130.0, boot ver. 2.1.78.0). I'm experimenting AP reboots with no apparent reason (no evident correlated event which triggers the reboot). From WLC4400 l

  • At New problem.

    Hello experts, I am currently having a problem with my At New statement. It is treating every field of the itab as a new record even though it is the same. for example, on the first loop the field tdline has a value of A then the at new will trigger.

  • Cross Domain Data Source Error in SSRS 2008

    We have our data warehouse server on a different Windows domain (Domain ABC) to the domain where our end user tools such as SSRS and SSAS sit (DOMAIN 123).  Historically we've used SQL server mixed mode authentication to get around any cross domain a

  • Elements 13 wont open raw files from Nikon d750

    Elements 13 wont open raw files from Nikon d750 camera, wont update either from the help menu, any ideas what to do.

  • Photosmart 2575 sudden change in print quality

    Hi My father has had one of these printers for over a year now as has been using it successfully to print images from PC and direct from memory card. Until a few days ago when all images started to print much darker than before. This applies to new a