Queries fired against the database

Hi everybody,
I have requirement of this kind.
I Need to get list of all the queries that hit the database for a day.
The application team needs the queries that hit the database when they are working with the application.
database version : 10.2.0.4
Operating system: HP UX
Regards,
khaja

khaja(DBA) wrote:
Hi everybody,
I have requirement of this kind.
I Need to get list of all the queries that hit the database for a day.
The application team needs the queries that hit the database when they are working with the application.
database version : 10.2.0.4
Operating system: HP UX
You should have a look at AUDIT feature of oracle.

Similar Messages

  • Help me to fix the error while running DBMaintain Against the Database Schema in ASE.

    Hi All,
    I am trying to install sybase mobiliser platform 5.1 SP 03.I am  referring the following guide
    http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01871.0513/pdf/Mobiliser_Platform_Installation_Guide_5.1…
    Now I have configured the ASE database server with default settings and now it is running fine.
    Now my concerns are as follows:
    1) I have executed the database schema (mobr5): 001_MONEY_drop_and_create_user.DDL with the help of linux command
    isql -Usa -SASE1 -Phello@123 -i/opt/sybase/db/sql/001_MONEY_drop_and_create_user.DDL -o/opt/sybase/ASE-15_0/install/ASE1.log
    How do I check the created database schema and user with default name 'mobr5'?
    2) While running DBMaintain Against the Database Schema, I have followed the steps mentioned in the guide and made the following changes in the file dbmaintain.properties.ase
    database.driverClassName=com.sybase.jdbc4.jdbc.SybDriver
    database.url=jdbc:sybase:Tds:ASE1:5000/mobr5
    database.userName=mobr5
    database.schemaNames=mobr5
    database.password=paybox
    #Must be set if the driver is not packaged inside the scriptarchive or is present on the classpath
    #e.g. /path/to/driver.jar
    #database.driverLocation=/path/to/jconnect.jar
    database.driverLocation=/opt/sybase/db/sql/com.sybase365.mobiliser.vanilla.standalone-5.1.3.RELEASE-scriptarchive-ase.jar
    database.driverLocation=/opt/sybase/db/sql/com.sybase365.mobiliser.vanilla.standalone-5.1.3.RELEASE-scriptarchive-ase-vanilla.jar
    When I execute the script archives ,
    java –jar /opt/sybase/db/sql/com.sybase365.mobiliser.vanilla.standalone-5.1.3.RELEASE-scriptarchive-ase-driverless.jar -c /opt/sybase/db/sql/dbmaintain.properties.ase
    java –jar com.sybase365.mobiliser.vanilla.standalone-5.1.3.RELEASE-scriptarchive-ase-vanilla-driverless.jar -c dbmaintain.properties.ase
    I get the following error:
    So please help me to resolve the issues.

    Hi All,
    Issue is resolved and database has been updated successfully..
    Error was in database .url field of dbmaintain.properties.ase file.
    I have changed the database.url field  from database.url=jdbc:sybase:Tds:ASE1:5000/mobr5
    to  database.url=jdbc:sybase:Tds:<Private IP of Linux instance>:5000/mobr5
    Note:- I am installing mobiliser platform on AWS cloud.So I have made use of Private IP address of AWS Linux instance.

  • The query against the database caused an error in https: site

    Hi
    I have created a new Data source and External content type in sharePoint 2013
    I have also given all the permission to this Content type (including "Users(Windows)")
    I also having edit permission in the Sql-database.
    I have tied almost all the possibilities given in the net for this error.
    still the error("the query against the database caused an error") is there.
    Is this because of "https:/ " in the url?
    Can any one give a suggestion / solution for this?
    Thanks
    S H A J A N

    Hi,
    Can you please check ULS Log as well as event viewer, to see if there's any related error reported?
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • How to apply row level security against the database administrator

    I would like an advice in applying row level security against the database administrator. We need to prevent DBA from editing data in some table rows or have any indication that data was corrupted.
    There is no problem in viewing the data so we considered one way hash function or digital signature which will be stored in the same table, but we see following disadvantages:
    HASH - DBA may use the same hash function to update the stored data after he changes the sensitive row.
    Digital signature - the is a need to manage and keep the private key in a safe place outside of DB
    Is there additional ways to achieve the aim?

    Does VPD helps to prevent from DBA to edit/view a data in specific rows?Yes.
    If I correctly understand, DBA has full access to security policy used by VPD to control the access and can grant himself privileges that I don't want.You can to define which users can be exempt of the politics, for the context or by Grant EXEMPT.
    This includes DBAs.
    The simple fact of being DBA doesn't guarantee the exemption.
    Everything goes to depend of the VPD config.

  • How  to  know  ddl  operations  done  against the  database

    hi,
    we are using oracle 10g.
    i am new to oracle dba how i know what are the DDL operations done against the database in oracle , i can i track that one and is there any view to store that informations

    Hello,
    I would recommend you to read Oracle documentation for using auditing DDL statements and more
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/security.htm#sthref2913
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_4007.htm#SQLRF01107
    Regards
    OrionNet

  • How do I code PL/SQL using files instead of directly against the database

    Hi All,
    My current project, like pretty much all I've every worked on, requires all developers of pl/sql routines to code those routines in source controlled files. We then edit the files (normally using TOAD - trying to move to SQL Developer) compile them against the DB, fix the errors, test etc.
    I've been trying to do the same in SQL Developer (1.2 and 1.5EA) and it appears as though I can't get the tool to understand my .pks and .pkb files are packages - and thus when I compile them I will receive a "compiler" window containing the errors. It appears to simply run the code as a script returning me:
    Warning: execution completed with warning
    PACKAGE BODY XYZ Compiled.
    This is not the same behavior I receive when I edit objects directly in the database (something I never do).
    I hope I'm not missing something obvious.
    Thanks in advance.

    Your latest EA fixed this, at least for subversion and cvs, hooray! and I'm quite happy with it.
    But I think our posters need a quick how-to for subversion:
    * the latest EA has subversion and cvs installed
    * open VIEW menu->Versioning Navigator
    * create your SVN repository in Versioning Navigator, that will establish all of the authentication stuff for your later work
    * use VIEW menu->Files and navigate to your subversion working checkout directory.
    The File navigator will become your main work zone, if you're anything like me.
    for unconventional file suffixes:
    * open TOOLS menu->Preferences
    * click the File Types topic
    * click "Add.." to add the file name extension
    * it won't let you specify content type in the little "add" dialog; just click OK
    * when you return to the main Preferences screen for file types, your new type will be selected, and below there is a content type drop-down under "Details for type .blahblah"
    * choose SQL Script as the type for your new file type, and click OK to commit the changes
    * I find "SQL Script" much easier to work with than PlSqlNode, which seems to suppress the file handling and versioning features
    Good luck!
    -- Andrew Wolfe

  • PEI - checking a user id against the database

    Hi,
    I am in the process of building a custom login implementing the PEI framework.
    I want to check the username a user has entered against the portal database i.e. verify the username actually exists and then check if it belongs to a particular group.
    I am a little stuck on how to do this so would appreciate any pointers or sample code to help me.
    Thanks,
    Tahir

    Below is code from my PEI (Java) to do exactly what you want:
    private int searchUser(String userUniqueName) {
              log.Info("Search for user " + userUniqueName
                        + " in aqualoqic database ...");
    ptSession.Connect("...", "...", null);
              IPTObjectManager uom = ptSession.GetUsers();
              return findObjectIdForPropValue(uom, userUniqueName,     PT_PROPIDS.PT_PROPID_USER_UNIQUENAME);
    private int findObjectIdForPropValue(IPTObjectManager objectManager,
                   String propValue, int propId) {
              Object arrFilter[][] = new Object[3][1];
              arrFilter[0][0] = new Integer(propId);
              arrFilter[1][0] = new Integer(PT_FILTEROPS.PT_FILTEROP_EQ);
              arrFilter[2][0] = propValue;
              IPTQueryResult queryResult = objectManager.Query(1, -1, 1, 0, -1,
                        arrFilter);
              if (0 == queryResult.RowCount()) {
                   return -1;
              } else {
                   int iObjectID = queryResult.ItemAsInt(0, 1);
                   return iObjectID;
         }

  • Do EntityManager queries actually query the database?

    When I write a method that returns object(s) based on an EntityManager query,
    return em.createQuery("select object(o) from Address as o").getResultList();Is that query actually looking at the database and getting the most recent data?
    For example, I manually change an address using SQL right in the database, not using the entity manager inside the application. Will the application see that change If I am getting addresses using an entity manager query? Or do I have to restart the server in order to refresh the entity data?

    Hi,
    It's not guaranteed that you get the data from the database, if the entities with the same PK has been loaded by an entity manager prior to the query. To solve the problem, you'll need to either call em.refresh() on each resulting object, or use persistence-provider specific query hints, or caching options.
    Regards,
    -marina

  • Obtain all list of queries run on the database in history.

    Good day to all of you.
    This is my first post here.
    We have an application where we need to study the set of all queries that were run successfully on the DB by users of that db.
    In particular, SELECT stats that were run on the DB Tables/Views...
    Therefore, does Oracle have a 'Query History' of some sort where SQL statements are stored in archives or something like that?
    If so, for how many days of data does it store ?
    Is the DBA_HIST_SQLTEXT View useful ? I took a look at it, however, it did not seem to store any of the queries that were run
    by users. It had some DML statements that i am sure were not run by any of the users.
    Any help in this regard would be greatly appreciated as this is central to what we wish to implement in the future.
    Thank you.
    Karan.

    welcome to forum,
    please refer the links:- it may be useful to you.
    Timestamp from DBA_HIST_SQLTEXT
    http://www.dba-oracle.com/t_time_series_sql_performance_tracking.htm

  • Performance of queries fired through the application

    Hi
    I m using Oracle 10G Standard edition in windows server.
    As a part to check how much time is taking to insert 50000 records in the table and to check CPU used for the insert, Does Oracle has any tables or tools to do this. Can this be extracted from any views. Kindly advise me on this.
    Thanks
    Ram

    sb92075 wrote:
    Is there anyway to get the trace only for a particular user in multi threaded server?A simple LOGON trigger can be written that does
    ALTER SESSION SET SQL_TRACE=TRUE
    for the desired schema(s).Sb,
    I am afraid that its a wrong answer. In a shared server, the "session" (not the schema) can be served by all the available server processes. By this, the information for that session would be spread across in various files. Even when you would enable the tracing for the specified user in its schema, since its not being served by a dedicated server process, the resultant trace file woudln't contain the complete information about the user.
    Aman....

  • Where is the enjoylogo.gif stored in the database

    Can anyone tell me where these type of files are stored in the database? Are they in a table?

    If you have 2 lists, List A contains custom names, List B has a lookup field that points to List A. I go into list B and select a client name ("Contoso"), enter some info, and save it. On the back end, the list item will contain a value of something like:
    34#;Contoso
    In this scenario the 34 is the SPListItem.ID value of that item in List A. They start at 1 in each list and increment by 1.
    Also, running queries against the database directly is not supported and can take your database out of Microsoft's supportability.
    Dimitri Ayrapetov (MCSE: SharePoint)

  • Air - Sqlite with Adobe Air insert data in memory, but do not record on the database file

    I have the code:
    var statement:SQLStatement = new SQLStatement();
    statement.addEventListener(SQLEvent.RESULT, insertResult);
    statement.addEventListener(SQLErrorEvent.ERROR, insertError);
    statement.sqlConnection = sqlConnection;
    statement.text = "insert into table values('"+TINome.text+"','"+TISerial.text+"') ";
    statement.execute();
    This run without error and the data is inserted (i dont know where), but when i see into database with firefox sqlite manager, the database is empty! But the Air continue run for a time like the data was recorded on the database file. I dont know what is happen with it.
    Help please!

    Toplink In Memory was developed by our project to solve this problem. It allows us to run our test either in memory or against the database.
    In memory, we basically stub out the database. This allows us to speed up our tests about 75x (In memory we run 7600 tests in 200 secs, it takes about 5 hours against the database). However, it throws away things like transactions, so you can't test things like rollback.
    In database mode, it just uses toplink, Another benefit of it though is that it watches all the objects created allowing an automatic cleanup of created test objects - keeping your database clean and preventing test interactions.
    We used HSQL running in memory previously, it worked fine. However, we needed to write scripts to translate our Oracle SQL into HSQL. Also, we had to override things like the data function in HSQL, and a few of our queries behaved unexpectedly in HSQL. We later abandoned it, as it became a lot of maintenance. It was about 10x faster than running against Oracle.
    Interestingly, we install oracle on all our developers machines too, tests run way faster locally, and developers feel way more comfortable experimenting with a local instance than with a shared instance.
    You can find the toplink in memory stuff at:
    http://toplink-in-mem.sourceforge.net/
    I provide all support for it. Doc is sketchy but I'm happy to guide you through stuff and help out where I can with it.
    - ted

  • Is there a way to force a View Object to query the database always?

    Dear All,
    Is there a way to force a view object to always scan the database table to read the latest data?
    Here's my use case.
    I have a page that loads data then I have a button which executes the following code.
    viewObject.setApplyViewCriteriaName("SampleCriteria");
    viewObject.setNamedWhereClauseParam("arg1", "test");
    viewObject.executeQuery();
    RowSetIterator it = viewObject.createRowSetIterator(null); 
    while(it.hasNext()) {
         /* More Code */
    }Suppose after page load, I edited some row in the table and then I clicked the button. I notice that my edited row
    was not reflected in the query.
    I am not sure but is there some configuration to check so that when the viewobject executes it will always query the data
    from the table?
    I am thinking that there is some level of caching and I want to disable it. If I restart my application, I notice that it is able to read the latest data.
    JDEV 11.1.1.5

    By default a view object performs its query against the database to retrieve the rows in its resulting row set. However, you can also use view objects to perform in-memory searches and sorting to avoid unnecessary trips to the database.
    The view object's query mode controls the source used to retrieve rows to populate its row set. For more details please refer: http://docs.oracle.com/cd/B31017_01/web.1013/b25947/bcadvvo005.htm
    Also, see if this helps: setQueryMode for secondary rowSet not working

  • Unable to Connect to the database in RCU, Oracle11g XE on Laptop/Windows

    Software downloaded unzipped and installed from OTN
    OBIEE foundation 11.1.1.5
    Repository Creation Utility 11.1.1.5
    Oracle Database Express Edition 11.2
    Issues
    1. I installed Oracle 11g express edition. I am able to start/stop and run sql against the database however the homepage ("get started " accessed from Start > Programs > Oracle Database 11g XE > Get Started) does not work. This i will post in a separate thread but I am writing this anyway just in case it has some relevance.
    2, This is the one I need help with. Can you confirm that these are the parameters when I hit the "create" option in RCU because I get the error message saying I cannot connect.
    Hostname:This is the same as the hostname, when I go to cmd prompt like below
    C:>hostname<enter> That is what I am using.
    Port and Service :Can you confirm, Port = "1521" and Service = "XE". 1521 is the Database listener port when I installed Oracle 11g Database Express Edition. I am not putting the quotes in the boxes in the RCU.
    Should the service be OracleServiceXE - i have tried it but does not work.
    Anyway I get this message:
    Unable to connect to the database using the provided details.
    Please enter a valid hostname and port or check if the listener is up and running.
    Any ideas appreciated.
    By the way My lsnrctl status returns the following: (meaning the listeners are up!0
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\dir>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 13-MAR-2012 13:44
    :03
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Produ
    ction
    Start Date 13-MAR-2012 10:55:11
    Uptime 0 days 2 hr. 48 min. 51 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File C:\oraclexe\app\oracle\product\11.2.0\server\network\a
    dmin\listener.ora
    Listener Log File C:\oraclexe\app\oracle\diag\tnslsnr\myspecifichostname\listene
    r\alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=myspecifichostname)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=myspecifichostname)(PORT=8080)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Edited by: ideakat on Mar 13, 2012 1:57 PM

    Hi,
    Like Abhi said, check your tnsnames.ora file to check the port number and service name is correct or not for the Express Edition database you have installed.
    and when you are running RCU installer, Please give system adminstrator account of OracleXE like 'sys' or 'system' account with confirmed port number and service name.
    Hope this helps.
    Regards,
    Bose
    Edited by: Bose on Mar 16, 2012 11:42 AM
    Edited by: Bose on Mar 16, 2012 5:35 PM

  • Creating cache tables in the database

    I was told there are 2 ways to create the cache tables/triggers/etc. in a database.
    1. Modify the ld_cache.sql file shipped with ALDSP 2.5 to use our names for the cache objects and manually run the SQL against the database.
    2. In the ALDSP console, click the "Enable cache" checkbox and add the table name for a data service which uses the cache.
    I've done this successfully with method #1. I just got an error with method #2.
    Is method #2 a correct way to create the cache objects (for the first time) in a database?
    Thanks,
    Michael

    This is running in production mode on ALDSP 2.5, WLS 8.1.6, Sun JDK 1.4.2_11.
    Error is
    com.bea.ld.CacheException: Cache is not active
         at com.bea.ld.server.cache.DBCache.checkStatus(DBCache.java:671)
         at com.bea.ld.server.cache.DBCache.getTotalFunctionCacheCount(DBCache.java:631)
         at com.bea.ld.ServerBean.getTotalFunctionCacheCount(ServerBean.java:655)
         at com.bea.ld.Server_ydm4ie_EOImpl.getTotalFunctionCacheCount(Server_ydm4ie_EOImpl.java:262)
         at com.bea.ld.Server_ydm4ie_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:491)
         at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:120)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:429)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

Maybe you are looking for