How to monitor the sql commands?

Hello

Are there opportunities to control all the SQL commands (ddl, dml) run from all the tools of database (sqlplus, sqldeveloper, Toad, etc.)? Precisious more... Is there something like .bash_history in Linux operating system?

Best.

Hello

Reference: http://www.juliandyke.com/Diagnostics/Trace/EnablingTrace.html
http://download.Oracle.com/docs/CD/B19306_01/server.102/b14211/SQLTrace.htm#PFGRF01010

It's an additional reference.
http://download.Oracle.com/docs/CD/B10501_01/EM.920/a88748/otdv.htm

-Pavan Kumar N

Tags: Database

Similar Questions

  • How to write the sql command in the batch file

    Jin
    I m using oracle 9i on windows. I want to know how I can write the sql on the command file command. I want to use a batch file to use the sql like shutdowm command & start command and any select command too.
    so please tell how can I do?


    thxs

    Tried looking for what he superdba.

    Can't connect to sqlplus using sys using a batch file

    HTH
    Aman...

  • How to monitor the SQL perticuler using the INDEX or not?

    I'm running on a long-term quary and the output is coming very late. So, I want to know that the quary sql uses the index or not? How do I know that?

    Hello

    You have not provided your db version?
    You can check v $ object_usage in a simple way. Try to check the explanation of your query if you current sql is by using your existing index or not.
    Check with dbms_xplan.display

    Request to go through the links of Ask tom and jonathan lewis
    http://jonathanlewis.WordPress.com/2007/02/15/index-not-used-10G/
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:736825544526

    HTH

    -Pounet N

  • How to get the sql query result?

    Hello

    Currently I use LV2012 to connect to an Oracle database server. After the Oracle Express and Oracle ODBC driver facilities/settings made.

    I managed to use the SQL command to query the data through my command prompt window.

    Now the problem is, how to do the same task in Labview using database connectivity tools?

    I have build a VI to query as being attached, but I have no idea of what range to use to get the result of the query.

    Please help me ~ ~

    Here is a piece of code that I use to test the SQL commands, you can use the part that retrieves the results of sql.

    It is also possible to get the rear column headers, but it's for the next lesson!

    ;-)

  • Maximum length of the SQL command

    I created a MySQL database and a LabView 8.6 application that inserts data into the database using the SQL Toolbox.  I have a problem very long character data insertion in a LONGTEXT field.  I determined that the problem occurs when the SQL command is more than 1 048 574 characters or the length of a particular field exceeds 1 048 326 characters (cannot say who).

    The error I get is "error-2147467259 occurred at NI_Database_API.lvlib:Conn Execute.vi.  "Exception occurred in the Microsoft OLE DB provider for ODBC drivers: [MySQL] [ODBC 5.1 Driver] [mysqld - 5.1.35 - community] MySQL version disappeared in NI_Database_API.lvlib:Conn Execute.vi.

    According to the MYSQL documentation, a LONGTEXT can 4294967295 characters, so length shouldn't be a problem.  The documentation also indicates "the effective maximum length of LONGTEXT columns also depends on the maximum packet size that is configured in the client/server protocol and available memory", but I don't know how to configure the packet size in LabView.

    I enclose the code example that reproduces the problem, although it is based on a special run table structure effectively.  The table definition is included on the diagram.

    This setting must be configured outside of LabVIEW (UDL or DSN).

    You must configure the server and the client:

    I found this link while searching on stackoverflow

    http://dev.MySQL.com/doc/refman/5.1/en/packet-too-large.html

    You may need to select/Configure a specific vendor (different) in order to set this variable.

  • How to monitor the TX and RX on PERFORMANCE for virtual network adapter BASP monitor?

    How to monitor the TX and RX on PERFORMANCE for virtual network adapter BASP monitor?

    I have a virtual network adapter that is created with Broadcom.

    This virtual interface named "BASP eCard" visible on the performance monitor in the category 'Rhythm Pipe' but not in the category "Network Interface".

    This is problematic because the Tx and Rx (bytes received/send in second) is available in "Network Interface" that show physical network cards only.

    Someone has an idea?

    Thank you

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • How to monitor the activities of internet users without using third-party software. We have some 60 windows domain user

    Hi all

    We have 60 knots which is connected with the windows domain. How to monitor the activities of internet users via the windows server

    without third-party software.

    Thanks in advance

    Alam

    Hello

    The business support, you can find forums on TechNet, please create a new post at the following link:

    http://social.technet.Microsoft.com/forums/en/category/WindowsServer/

  • How to restrict the running command prompt?

    How to restrict the running command prompt?

    I already know the method: HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System DisableCMD: 2

    but, but, it is possible to change reactivate cmd used much the system tool software

    So I want to deny the change of registry value by the software used, I changed all permissions to the registry [System] refusal keys with my account.

    but after a modified registry key permissions denied, disableCmd was inactivated more.

    It is impossible that the two parameter [disablecmd: dword = 2] and [{System} lock keys: administrator of the deny all permissions in my account]?

    This issue is beyond the scope of this site which is for the consumer to related issues.
    To ensure that you get a proper answer, ask either on the Technet site, if it is a type of Pro problem, or MSDN if it's related to the developer
  • How to monitor the use of the Hyperion applications

    Hi all
    We have developed a classical Planning Application in Hyperion 11.1.2
    The application is running in production mode, and now we want to monitor the use of this application, in this regard, I have following questions:
    (1) how to activate the newspapers?
    (2) how to monitor the time of connection and disconnection of each user
    (3) how to check the amount of data entered in a particular week
    (4) how to check that data are entered against how much the faculty members?

    I won't pretend to know what should I know about this subject, but I get this question of a large number of customers. So, here is my answer. There is no right way to monitor who logs and how many times they connect. If you enable the audit DATA, that you can do is to see when a user loads the data and how often they do. This does not match the connection, but planners usually don't connect to display data (which are normally made in EN or SmartView), they connect to load/update of data. With active audit DATA, you can query the HSP_AUDIT_RECORDS table, which is where the audit is stored, and see how many times the user load the data and the last load of data. Is not correct, but it is far more closely than any other method I've found.

    Example of the last connection (really last loaded data)
    SELECT USER_NAME AS 'User', time_posted as 'Last Login Time' OF HSP_AUDIT_RECORDS WHERE TYPE = "data";

    You can use a similar query to count the number of data loads.

    This would also show you what the user has launched it to business rules.

    Another option would be to enable SSAUDIT on the planning application in Essbase (this is done in the Essbase - google SSAUDIT server configuration file). This will create 2 files. The first is a file index or pointer. There will be a line for each record, via a web form or SmarView load. The second file contains all of the loaded data. The first file will tell you that loaded which lines in the second file and what time he did. The downside is that each connection between planning and Essbase uses the ID of the source of data for planning. So, it always shows the same loading data ID and will not be the real of the user who did it.

    Note that users do not have to connect through planning. They can directly connect to Essbase. All financial reports that would be misunderstood by looking only at the planning.

    If you really want the actual load, you really watch the Essbase and Essbase application log files. Would not show you users, but could show you the number of queries, the data loads, etc. You could analyze these logs in a relational table for quick access to the use of the query.

    That's a lot of things to take. Unfortunately, to answer your question, it is not a quick option, "click here."

    Utility to analyze the logs can be found at http://code.google.com/p/jrightlog.

    ------------
    Kyle Goodfriend
    http://www.in2hyperion.com

    Please be sure to assign the post as answered and answers as response or useful if others can benefit from your experience.

  • creation of database using the SQL command * more

    Hello

    This isn't a matter of urgency.

    I learn the Oracle DBA. I have installed Oracle 9.2 in my windows system. And I'm trying to create a database using the SQL command.

    OracleVersion: 9.2
    Windows XP operating system

    CREATE DATABASE suri
    USER SYS identified by manager
    USER system identified by surendra
    LOGFILE GROUP 1 ('F:\Oracle\oradata\suri\redo01.log') SIZE 100M,
            GROUP 2 ('F:\Oracle\oradata\suri\redo02.log') SIZE 100M,
            GROUP 3 ('F:\Oracle\oradata\suri\redo03.log') SIZE 100M
       MAXLOGFILES 5
       MAXLOGMEMBERS 5
       MAXLOGHISTORY 1
       MAXDATAFILES 100
       MAXINSTANCES 1
       CHARACTER SET US7ASCII
       NATIONAL CHARACTER SET AL16UTF16
    DATAFILE 'F:\Oracle\oradata\suri\system01.dbf' size 200M EXTENT MANAGEMENT LOCAL
    UNDO tablespace undots datafile 'F:\Oracle\oradata\suri\undots01.dbf' size 200M
    DEFAULT TEMPORARY TABLESPACE tempts1 DATAFILE 'F:\Oracle\oradata\suri\temp01.dbf' SIZE 100M EXTENT MANAGEMENT LOCAL
    I get the error like below when executing the CREATE DATABASE command.

    ERROR at line 16:
    ORA-25139: invalid option for CREATE TEMPORARY TABLESPACE
    I have validated the syntax but not able to find where is the error.

    Please let me know if you need more details.

    Thanks in advance for your help.


    Kind regards
    Suri

    OracleVersion: 9.2

    Why a so old version (and desupported)? In any case...

    TEMPORARY TABLESPACE tempts1 DATAFILE 'F:\Oracle\oradata\suri\temp01.dbf' SIZE 100 M EXTENT MANAGEMENT LOCAL default

    .. try change DATAFILE with TEMPFILE.

  • How to import the .sql file in oracle apex?

    I am new to oracle apex...

    How to import the .sql file in oracle apex?

    I have to import a table in apex...

    This script I have to write in the .sql file...

    pls help...

    Published by: 794244 on January 31, 2011 21:31

    Hi Manu

    You can import and browse workshop SQL, SQL Scripts .sql files. If you have multiple SQL statements in your script, make sure that they are separated by the / character

    Andy

  • Access to SQL previously saved in the SQL command window

    Hi all

    If I kept some codes SQL in the SQL command window, should we not available to other developers when they click on the saved SQL tab? I saved an example query and one of my other developers can't see it. I don't see any setting available on the developer account that controls whether or not the account can see others saved SQL.

    If this is not allowed, then I see really the point of the drop in the saved SQL owner tab.

    Any advice?

    Thank you!!
    John

    My apologies - I've never used this tab so I was not aware of it.

    I played a little and it seems that if you are an administrator of the workspace, but your other user is just a developer, then in fact he or she cannot see your SQL. If you were to switch to the workspace administrators, they should be able to see.

  • How to monitor the CPU, memory and i/o on the system

    Hello..

    Some body help me?...

    1. how to manage the monitoring of the performance of the system and the database during execution of ODI?
    2. how to monitor the CPU, memory and i/o on the system?

    TQ
    balleur

    In an attempt to partially answer your questions:

    1. how to manage the monitoring of the performance of the system and the database during execution of ODI?

    Monitor the performance of the application from a commercial point of view. As transactions per minute, or response time or time elapsed for the key events of the company. Monitor the activity of the material such that the CPU usage is not necessarily linked to the performance of your application. Performance should be measured from top to bottom - business first, then the lower levels until you get finally to computer equipment. Only if you get a problem to the next level - response time is too large, for example - you can go through the lower levels to identify the cause and fix it.

    2. how to monitor the CPU, memory and i/o on the system?

    I personally use "sar" on UNIX-BASED or Linux, or rather "CFDCs" which is the system activity data collector. SADC will measure and collect data on activities on CPU, memory, disks, etc. and save them to a file in binary format. You can then extract these measures later for analysis using SAR (sar f sadc_file_name). The benefits of SADC are that it is light (these operating systems measure such things anyway, just CFDC records far), it records everything at once (with the exception of the network), it records the time stamp too for each measure, and you can analyze it later when you want to.

    There are commercial products out there too who do similar work, with additional features, such as the integration of Oracle and the relationship between several systems. TeamQuest is an example, but there are others also. (I do not work for TeamQuest, but I used their product in the past).

    John

  • How to get the SQL if I get exception

    I get this exception and do not know what was the actual sql with the variables of liaison who was executed.



    sqlmesg = error in the select query to retrieve the segment associated with a pair of cables: ORA-01006: there is no bind variable

    y at - it a way to get the real sql executed so I know what mistake I did.

    I thought your question was about how to view the SQL statement and bind variables in the exception. The answer to that is to put variables in the exception message.

    The root cause of the problem seems to be that your dynamic SQL statement may require 3 or4 variable bind but your USING clause specifies always 4 values if the underlying SQL statement has 3 positions, it will lead to an error.

    Justin

  • How to monitor the update the user trigger sql table column

    Hello

    My database in the face of a problem that someone (or some jobs) always update the decimal points in a column. I want to trace who (what) update of the column, but the database do not have verification of activation.

    can anyone help. provide a trigger script to monitor the table if the column has been updated by commas, which returns records in a table.

    Thank you very much.

    Concerning

    Sean

    Why not, it's also so easy...! ! !

    SQL> CREATE TABLE audit_log (
      2  old_id VARCHAR2(15),
      3  new_id VARCHAR2(15),
      4  chng_by VARCHAR2(10),
      5  chng_when DATE,
      6  machine VARCHAR2(20),
      7  osuser VARCHAR2(20));
    
    Table created.
    
    SQL> CREATE OR REPLACE TRIGGER referencing_clause
      2  AFTER UPDATE
      3  ON report_heading
      4  REFERENCING NEW AS NEW OLD AS OLD
      5  FOR EACH ROW
      6  BEGIN
      7  IF INSTR(:NEW.ID,',') > 0
      8  THEN
      9  INSERT INTO audit_log
     10  (old_id, new_id, chng_by, chng_when, machine, osuser, ipadd)
     11  VALUES
     12  (:OLD.ID, :NEW.ID, USER, SYSDATE, SYS_CONTEXT('USERENV','HOST'), SYS_CONTEXT('USERENV','OS_USER'));
     13  END IF;
     14  END referencing_clause;
     15  /
    
    Trigger created.
    
    SQL> ALTER TABLE REPORT_HEADING ENABLE ALL TRIGGERS;
    
    Table altered.
    
    SQL> SELECT * FROM REPORT_HEADING;
    
    ID
    --------------------
    104001.1
    104002.1
    104002.1
    99.00
    246004.1
    88.00,
    
    6 rows selected.
    
    SQL> UPDATE REPORT_HEADING SET ID='99.11,' WHERE ID='99.00';
    
    1 row updated.
    
    SQL> SET LINE 200;
    SQL> select * from audit_log;
    
    OLD_ID          NEW_ID          CHNG_BY    CHNG_WHEN MACHINE              OSUSER
    --------------- --------------- ---------- --------- -------------------- -------------------- ---------------
    99.00           99.11,          SCOTT      05-MAR-10 BOSER\GIRISH         GIRISH\Girish Sharma
    

    BOSER here is my workgroup name and GIRISH is my machine name.

    HTH
    Girish Sharma

Maybe you are looking for

  • Any program of MS Notepad Apple out there for Mac?

    Currently, whenever I need to write an HTML script, I use Microsoft Notepad program via my Virtual Machine to VMWare Fusion. Microsoft has a Mac version of Notepad available for download, directly from its Web site?  It would be the DMG file. Please

  • why I can't see a captcha?

    I have a problem whid my explorer, when I send a question in a forum they ask me a number that I don't see, and I can't answer for him. According to me, is a problem of security of bromwser, I see that the captcha generator is not ok. can what I do?

  • update drivers, hardware, software, etc

  • Where Windows Media Player store album art?

    I have many, many of the audio CD WMP shows the album art to album and several other points of view.  I have another application, in that I try to get the work but the application will not find work rip CD or by using the function «find album art»  I

  • BlackBerry 8900 my Smartphones stops working after the installation of a theme - Azure and pink

    Hi all I searched through the forums and it seems that my problem is unique. May I ask for your kind advice for a critical issue here? I use Blackberry Curve 8900, OS 5.Today, I installed a theme - Azure and pink - Animated Notification within the of