Tracking external programs used to access database

I would like to track/audit the external programs our users are using to access our Oracle databases over a period of time. Hoping to track users hitting database with SPSS, MSAccess, etc for a report requested by our mgmt.
I find "program" and "module" in the v$_session table but don't see similar info in the SYS aud$ table. And v$_session info doesn't get "saved" over the course of a day/week/month.
Any ideas how to accomplish this?

See this, but note the caveats:
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:1830073957439
Tom Best

Similar Messages

  • "Connection is closed" closed error while using MS Access database

    We are using MS Access database in our project. Recently the database was upgraded to 2000.
    After upgrading the database, I get the folowing error when getAutoCommit() is called on a connection -
    java.sql.SQLException: Connection is closed
         at sun.jdbc.odbc.JdbcOdbcConnection.validateConnection(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbcConnection.getAutoCommit(Unknown Source)
    The connection is not closed explicity before getAutoCommit() is called, only the statement is closed.
    This error is sporadic and occurs under load scenario only (when a lot of connections are open). Once the error occurs, all the database calls fail then onwards. The error was not occuring before the database was upgraded.
    I suspect the jbdc-odbc driver. The driver might not be compatible with Access2000 database. Under load scenario, it might be closing connections automatically.
    Has anybody faced similar problem before? Where can I find the compatible jdbc-odbc driver? And how to ensure that it is jdbc-odbc driver problem only?
    The database verison - MS Access 2000
    Java version - 1.3.1_01

    can i just point out that there is no support for transactions in Access so I wonder why you are calling autoCommit methods at all...

  • Use of Access database

    Hi,
    I want to write a application that uses an Access Database. Actually I want to write data to and read data from a Database with Labview. Does anyone knows a library to control a Access Database. Or any other solutions.
    Davy

    You've got several options. There is a shipping example that uses DDE to talk to an Access database. DDE sucks so you probably don't want to do that. There is ActiveX. There have been a lot of examples posted to the forum so you might want to do a search. ActiveX can be a real pain though. The nicest solution is to buy the Database Connectivity Toolkit from NI. It uses ADO/SQL to communicate to any database and hides a lot of complexity of learning SQL. There is also the free open source toolkit called LabSQL from Jeffrey Travis. This uses ADO/SQL to talk to any database. You'll need to learn SQL but that's not really that big a task.

  • Running external program using java

    hi
    i am trying to run an external program using the runtime.exec() method. my problem is that the external program only runs when i press ctrl-c to exit my program. does anyone know how i can execute the external program while my program is still running without having to quit the program?should i be using threads?
    thanks

    As per the api doc exec will be executed as a seperate process
    Process exec(String command) ------Executes the specified string command in a separate process.
    Can you able to share that code what you have written ?

  • How to use MS Access database in Flash CS4 using AS3

    Hello everyone,
         I need help for how use the MS Access database in FlashCS4 and I want to save and retrive the data from the database and display in the Flash window.
    Thanks with,
    Viswa.

    http://www.northcode.com/blog.php/2011/05/06/Using-ADO-Data-Sources-in-Flash-Projectors

  • Using MS-Access database in JSP application

    Hi, all. I am new in JSP world. I have an Access database and I�d like to access it in my JSP Application.
    Does anybody know I could do this?
    TIA
    Fernando

    Define your database as an ODBC source and then use the JDBC/ODBC bridge. It's actually only a few lines of code - see http://java.sun.com/docs/books/tutorial/jdbc/basics/index.html

  • Run external programs using runtime class

    Okay, I'm experiencing a really annoying problem with java.lang.runtime
    I'm building a GUI that needs to run some external programs, via a button say. These generally produce a text file or something, so I don't need to stream the output or anything (at least I'm assuming I don't?). Should be very simple...
    So at the terminal (bash) I would type ./programName , and everything will run hunkey dorey.
    In my code then, natrurally, I write
    String cmd = "./programName";
    Process p = runtime.getRuntime().exec(cmd);
    But low and behold...nothing happens. What is going on here, and how do I get around it! ??
    (On windows incidentally, it's no problem at all and works absolutely fine. But when I go over to mac, which is what I need to use, I'm screwed - only adding to the annoyance!)
    Any help would be much appreciated as I have a deadline looming!!

    You need to read the 4 sections of [http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html|http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html] and implement the recommendations. Failure to implement all the recommendations will cause you grief.
    P.S. The fragment of code you have posted shows that you have fallen for at least 4 of the traps.

  • Load external program using labview

    Hi, i want to be able to run an external program e.g. a calibration routine using some other software. Then close the sequence i run in the external program, then run another sequence. Whats the best way of doing this?
    Stu

    Are you trying to invoke this program and then interact with it like a user would and then continue on with your program?
    You would need to know if this other application has some type of machine interface (API). It would be very difficult if not impossible to simulate a user to control the application through its UI. How does this application normally run? Does it support ActiveX? If so, you can interact with it that way. You would have to know the specifics of whatever interface it provides. Without that information I am not sure we could really give you any other suggestions.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Execute an external program using Runtime class

    How to execute an external java program using Runtime class?
    I have used ,
    Process p=Runtime.getRuntime().exec("c:/j2sdk1.4.0/bin/helloworld.java ");
    But it throws a runtime IOException error:2 or error:123.
    Help me with the code. Thanks in advance.

    Create Runtime Object and attach to system process.Try this code
    import java.io.*;
    public class ExecuteExternalApp {
      public static void main(String args[]) {
                try {
                    Runtime rt = Runtime.getRuntime();
                    //Process pr = rt.exec("cmd /c dir");
                    Process pr = rt.exec("c:\\ yamessenger.exe"); //give a valid exe file
                    BufferedReader input = new BufferedReader(new InputStreamReader(pr.getInputStream()));
                    String val=null;
                    while((val=input.readLine()) != null) {
                        System.out.println(val);
                    int exit = pr.waitFor();
                    System.out.println("Exited with error code "+exit);
                } catch(Exception e) {
                    System.out.println(e.toString());
                    e.printStackTrace();
    }Edited by: anishtomas on Feb 3, 2009 9:34 PM
    Edited by: anishtomas on Feb 3, 2009 9:37 PM

  • Calling external programs using labview

    I have a LV program running to collect and display data, but also need to call an external program while doing this. I have a menu set up where one button launches my system control .vi, one launches my data display .vi, but there is another feature that is handled by a program a co-worker has written. Is there a way that whenever a button is pressed, LV can launch an external .exe file? Basically, I just need LV to call the executeable... the program that is called will be terminated by the user.
    Jim

    Try function palette -> Communication -> System Exec.vi
    George Zou
    http://gtoolbox.yeah.net
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

  • Is there any way to use the access database on my ipad?

    Is it possible to upload an access database on to my iPad and then edit it?

    A search on the App store found this.  I am not a user though.
    https://itunes.apple.com/uy/app/access-mobile-database-client/id387300746?mt=8

  • How to use an access database file with vb project

    hi deve.
    im wondering how can i use a database file (created with microsoft access) in a vb project
    i want to assign a textbox content from the database file from a specific field according to its id can anyone explain that with a simple code example
    thanx..

    thanx
    pvdg42
     this article is all i need

  • External programs using in Java

    Hello
    I am wondering how to do this:
    How can I call some (in this case console application) applications from my Java code and then handle that application;s output.
    For example: Netbeans, IDE written in Java is using Java compiler, external console application, and then it takes its output and writes it on own Netbeans console.
    Any ideas how to do this?
    Thanks for replies.

    http://en.wikipedia.org/wiki/Standard_streams

  • Error while doing dblookups using MS Access database

    Hi everyone,
      I am trying to perform dblookups in a file to file scenario but it is showing some error.I have used receiver JDBC adapter channel for dblookup.If anyone knows the solution kindly reply it thanks in advance.Here is the error
    Exception during processing the payload.Problem when calling an adapter by using communication channel.  XI AF API call failed. Module exception: (No information available). Cause Exception: 'Error when attempting to get processing resources: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Cannot establish connection to URL 'jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=
    XI\data\XI_Workbench\1234\DB\EMP.mdb;Uid=1234;Pwd=abcd;': SQLException: [Microsoft][ODBC Microsoft Access Driver] Could not find file '(unknown)'.'.

    Hi,
    ->Have you installed the JDBC drivers on XI server. Can you please check.
    ->Which DB are you polling?
    Please check if respective drivers are installed in the J2ee stack. you can get a help 4m ur basis team on this.
    DB drivers (jar files)can be obtained from respective vendors.
    have a look in the following discussion,it looks like the drivers are different
    Re: JDBC driver for J2EE AE that supports MS SQL 7.0
    IDOC to JDBC :Error using JDBC
    Please Reward points if it helps
    Thanks
    Vikranth

  • Using MS Access database within Servlet

    Hi
    l've been trying since a week to extract data from my database
    within my Servlet, but it doesn't work.
    l get the reply with empty table, yes no data in it !!
    my classes and the database are located in WEB-INF/classes directory
    can someone help me please ?
    thanks

    [i]this is my code
    // first class
    package servletcommercial;
    Class Product
    //Business object for products, note quantity in stock is a string
    public class Product {
    private String productId;
    private String description;
    private String category;
    private String quantityInStock;
    private int price;
    public Product
    (String productId, String description, String category, String quantityInStock, int price)
    this.productId = productId;
    this.description = description;
    this.category = category;
    this.quantityInStock = quantityInStock;
    this.price = price;
    //Setter methods
    public void setProductId(String productId)
    this.productId = productId;
    public void setDescription(String description)
    this.description = description;
    public void setQuantityInStock(String quantityInStock)
    this.quantityInStock = quantityInStock;
    public void setPrice(int price)
    this.price = price;
    public void setCategory(String category)
    this.category = category;
    //Getter methods
    //second class
    package servletcommercial;
    Class ProductCollection
    import java.util.*;
    import java.sql.*;
    public class ProductCollection {
    private Connection cn;
    private String driverName;
    public ProductCollection()
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    cn =
    DriverManager.getConnection("jdbc:odbc:M360Catalogue", "Darrel", "");
    catch(Exception e){System.out.println("Problem setting up database"+e);};
    public Enumeration getCollectionPrice(int price)
    Vector extractedProducts=new Vector ();
    ResultSet rs;
    Statement query;
    try
    query = cn.createStatement();
    String queryString =
    "Select * from Products where Price > "+price;
    System.out.println(queryString);
    rs = query.executeQuery(queryString);
    while(rs.next())
    Product extractedProduct = new Product
    (rs.getString(1), rs.getString(2), rs.getString(3),
    rs.getString(4), rs.getInt(5));
    extractedProducts.add(extractedProduct);
    rs.close();
    catch (Exception e){System.out.println("Problem with query "+e);}
    return extractedProducts.elements();
    public Enumeration getCollectionCategory(String category)
    Vector extractedProducts=new Vector ();
    ResultSet rs;
    Statement query;
    try
    query = cn.createStatement();
    String queryString =
    "Select * from Products where Category ='"+ category+"'";
    System.out.println(queryString);
    rs = query.executeQuery(queryString);
    while(rs.next())
    Product extractedProduct = new Product
    (rs.getString(1), rs.getString(2), rs.getString(3),
    rs.getString(4), rs.getInt(5));
    extractedProducts.add(extractedProduct);
    rs.close();
    catch (Exception e){System.out.println("Problem with query"+e);}
    return extractedProducts.elements();
    //last class
    M360
    Exercise 7.3
    Class CommServletSolution
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    public class CommServletSolution extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html";
    private ProductCollection pc = new ProductCollection();
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    PrintWriter out = response.getWriter();
    response.setContentType(CONTENT_TYPE);
    if((request.getParameter("pulldown")).equals("priceselect"))
    String price = request.getParameter("data");
    String priceInPence = (Integer.parseInt(price)*100)+"";
    Enumeration en = pc.getCollectionPrice(Integer.parseInt(priceInPence));
    //Display table
    out.print("<P>The table of goods for your price query ** price "+" > " +
    price+" ** is shown below</P>");
    displayTable(out, en);
    if((request.getParameter("pulldown")).equals("categoryselect"))
    String category = request.getParameter("data");
    //Get enumeration to retrieved products
    Enumeration en = pc.getCollectionCategory(category);
    //Display table
    out.print("<P>The table of goods for your category query ** category = "+
    category +" ** is shown below</P>");
    displayTable(out, en);
    public static void displayTable(PrintWriter out, Enumeration en)
    //Helper method which displays tables
    //Table header
    out.println("<TABLE BORDER>");
    out.println("<TR>");
    out.println("<TH>Description</TH><TH>Category</TH><TH>Quantity</TH><TH>Price</TH>");
    out.println("</TR>");
    //Table rows
    while(en.hasMoreElements())
    Product chosenProduct = (Product)en.nextElement();
    int penceAmount = chosenProduct.getPrice()%100;
    String pence=""+penceAmount;
    if(penceAmount<10)
    pence = "0"+penceAmount;
    if(penceAmount==0)
    pence ="00";
    out.println("<TR>");
    out.println("<TD>" + chosenProduct.getDescription()+"</TD>"+
    "<TD>" + chosenProduct.getCategory()+ "</TD>"+
    "<TD>" + chosenProduct.getQuantityInStock()+"</TD>"+
    "<TD>" + chosenProduct.getPrice()/100+"."+
    pence+"</TD>"
    out.println("</TR>");
    out.println("</TABLE>");

Maybe you are looking for