How to see what SQL queries are made to my Database Server?

Hi all,
I'm a newbie. I'd like to know if there's a way to find out what SQL queries are being made to my Database server at the server end.
Is it possible that Oracle Database Manager logs this information (including the exact query/SQL)somewhere in its logs? How to enable such an option and/or view the recent SQL queries made ?
Please enlighten me. Thanks in advance.
Thanks and Regards
Sharat

"I checked the V$SQLTEXT view too. It has only 64 characters for SQL_TEXT field." Yes yes but you might have noticed that it also has the column called piece. The view shows the full SQL statement broken up into little pieces. Use ADDRESS and HASH_VALUE to link to v$sql. There is also a view V$SQLTEXT_WITH_NEWLINES that throws in some line separators to make it "easier" to read.
Example below shows full text of SQL statements currently executing.
SQL> column address noprint
SQL> column hash_value noprint
SQL> break on hash_value skip 1
SQL> select
  2     a.address, a.hash_value, b.sql_text
  3  from
  4     v$sql a, v$sqltext b
  5  where
  6     a.users_executing > 0
  7     and b.address = a.address
  8     and b.hash_value = a.hash_value
  9  order by
10     a.address, a.hash_value, b.piece ;
SQL_TEXT
select    a.address, a.hash_value, b.sql_text from    v$sql a, v
$sqltext b where    a.users_executing > 0    and b.address = a.a
ddress    and b.hash_value = a.hash_value order by    a.address,
a.hash_value, b.piece
begin quest_exec.get_message(:cmd, :peer, :owner, :folder, :scri
pt, :delay); end;
6 ligne(s) sélectionnée(s).
SQL> select
  2     a.address, a.hash_value, b.sql_text
  3  from
  4     v$sql a, v$sqltext_with_newlines b
  5  where
  6     a.users_executing > 0
  7     and b.address = a.address
  8     and b.hash_value = a.hash_value
  9  order by
10     a.address, a.hash_value, b.piece ;
SQL_TEXT
select
   a.address, a.hash_value, b.sql_text
from
   v$sql a, v
$sqltext_with_newlines b
where
   a.users_executing > 0
   and b
.address = a.address
   and b.hash_value = a.hash_value
order by
   a.address, a.hash_value, b.piece
begin quest_exec.get_message(:cmd, :peer, :owner, :folder, :scri
pt, :delay); end;
6 ligne(s) sélectionnée(s).

Similar Messages

  • Where do I see what recent purchases are made on my account?

    How do I find out what recent purchases are made to my account? I had an old email attached to it so I did not get the email receipt.  I have no idea what recent charges are for. I can't see anywhere that it lets me review all my purchases.  They may be in-app purchases.   Thank you.

    If you log into your account on your computer's iTunes via the Store > View Account menu option, you should then see a Purchase History section with a 'see all' link to the right of it. Click on that and you should then see a list of your purchases.
    If you are doing it on an iOS device then you can view the last 90 days purchases via http://reportaproblem.apple.com

  • How to see what data fields are linked to

    OK, not sure if that is even how to ask for what I am looking for. I am using Jetform Design version 5.3. There is a file at my company that was created before I took over as Systems Admin and one of the fields is cutting off the test string.  It is actually the text pay line on a check ie. One hundred twenty three thousand and.......It stops at the word and. It is pulling data from our ERP system somehow and has been confirmed that it does print the cents amount when not printing thru Jetforms to Adobe Central Server.  Somewhere in the conversion those final words are getting lost and I have no clue where. I don't know how to look at the link of that pay field on the form.  Can somebody please try and give me a hand. Thanks alot!

    Can you take a look into the data file (eg. DAT file) which is used to merge with the Jetform template?
    I suppose you could see some text like:
    ^field FD_PAY_TEXT
    One hundred twenty three thousand and ...
    Please be noted that FD_PAY_TEXT is sample. It could be another name. Then, opening Jetform template by Output Designer and seeking a textbox named FD_PAY_TEXT. You can use the combo box (in the top-right side) that listing all of objects in current template to reach a specified object.
    Hope it helps.

  • I had water damage to my iphone5 when I was deployed w/ the military overseas. How can I find out what saved to icloud and how to see where my photos are. I don't know when it was able to back up as wi fi was pretty sketchy. please advise. thx in advance

    I had water damage to my iphone5 when I was deployed w/ the military overseas. How can I find out what saved to icloud and how to see where my photos are. I don't know when it was able to back up as wi fi was pretty sketchy. please advise. thx in advance
    My iphone is toast, I know I checked on icloud and see my emails from the day before it happened. Can I see when and what my phone backed up through itunes or icloud?
    Please please help i am lost.

    This was EXACTLY what I needed about the purchases I made from my device. However, is there a way to re-download other ones you've made from a computer? Because I realized some of them were not just purchased from my device.
    This is a picture of what it looks like now:
    http://tinypic.com/r/107quxu/7
    As you can see, the stuff circled in red doesn't give me an option to download from Cloud Beta because it already says "downloaded".
    any way to get around that?

  • How can I see what file's are in  a directory

    I'm want to make a program for brosing the harddisk and copying and editing file's.
    I already can copy them but:
    How can I see what file's are in a directory and how can I see
    what subdirectory's are in a directory so I can show them to the user?
    I dont't know if it does matter if If I'm on a windows or linux platform, when it does please tell me for the windows?

    I believe this works for a directory of reasonable size.
    import java.io.File;
    final public class FileSearch {
        public File current;
        public String path;
        public File[] files;
        public FileSearch(File dir){
           try {
              current = dir;
              files = dir.listFiles();
           } catch (Exception e) {
              e.printStackTrace();
        public void currentSearch() {
           for (int i=0; i<files.length; i++) {
              if (files.isFile()) {
    System.out.println(files[i].toString());
    public void searchFiles(){
    for (int i=0; i<files.length; i++) {
    if (files[i].isDirectory()) {
    System.out.println();
    System.out.print("directory: ");
    System.out.println(files[i].toString());
    try {
    FileSearch sub = new FileSearch(files[i]);
    sub.currentSearch();
    sub.searchFiles();
    sub= null;
    } catch (Exception e) {
    e.printStackTrace();
    public static void main(String[] args) {
    try {
    FileSearch search = new FileSearch(new File("."));
    search.currentSearch();
    search.searchFiles();
    } catch (Exception e) {
    e.printStackTrace();

  • I forgot my password and deleted my email account.  How do I regain it so I can see what purchases I have made in the past?

    I forgot my old password under a deleted email address.  Is there a way to get access to that account so that I can see what purchases I have made in the past?  This was at least 5 years ago that I did this?  Thank you.
    Brian C.

    that didnt help because when i plug in my iphone to the computer it doesnt show my iphone in itunes all it does it pop up saying if i would like to download and update my ios software to ios 7.1.1 . when i put it in to DFU mode it didn't do anything and thre computer did not recognise it and neither did itunes. so i dont quite understand how to do this ill keep on trying and see if im in luck.

  • Does anyone know how to see what apps are still open on lion? On snow leopard you just had to slide three fingers side ways I believe thanks

    Anyone know how to see what apps are still open on lion?

    If you do not have the light in dock active, activate it, or slide three finger up to open Mission Control or in Force qQuit all  open programs are listed (even the hidden ones).
    Hope that helps..

  • How to identify the SQLs which are using the tables and new columns

    Hi
    I m using oracle 10G Database in windows. Developers have added some columns in some of the database tables and were asking to check whether there is some impact on performance or not. I have not done this performance tuning before. Kindly help me how to proceed further.
    How to obtain the sqls which are touching the tables and the new columns? It would be really great if you can help me with this.
    Thanks

    You can try to use DBA_DEPENDENCIES to get PL/SQL objects using tables: http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_1041.htm#i1576452.
    However if SQL code is not stored in database in a trigger, a procedure, a function, a package or a view, it is impossible to retrieve all SQL code referencing some table from database dictionary: for this you would have to analyze application source code.

  • How to see all devices that are connected to Apple ID

    How to see all devices that are connected to Apple ID

    Are you using a software to see all devices that are supposed to be connected to your router? You can reset and start over with your router.  Make sure you have a security enabled on it like WPA Personal. You can try DHCP Reservation as well to ensure that the devices that will have access to your router are only the ones you included on the list.

  • How to see all users who are allowed permissions for the specified entity ?

    How to see all users who are allowed permissions for the specified entity ? 
    And change user permissions for the current entity
    from Moscow with money

    Vincent,
    ... and how to change entity permissions for some users?
    from Moscow with money

  • How to check what oracle patches are installed

    Hello,
    I need to now what oracle patches are installed on different databases, how can achieve this?
    Regards.

    Yep:
    select ACTION_TIME,ACTION, VERSION,COMMENTS from sys.registry$history;
    ACTION_TIME ACTION VERSION COMMENTS
    25-JAN-09 07.06.05.665358 PM UPGRADE 10.2.0.4.0 Upgraded from 10.2.0.1.0
    20-MAY-09 12.23.00.924500 AM APPLY 10.2.0.4 CPUJan2009
    20-MAY-09 12.32.48.709814 AM CPU view recompilation
    Regards.
    Edited by: user6046340 on Jun 25, 2009 3:57 PM

  • HT1577 How to see what I have bought in the past

    How to see what I have bought in the past

    You can check the purchase history on your account via the Store > View My Account (Store > View My Apple ID on iTunes 11) drop-down menu option on your computer's iTunes (though I'm not sure if that shows in-app purchases and/or auto-renewing subscriptions) - you should seea Purchase History section on that page, with a View All link to its right

  • How to configure the mac mini to allow the clients to access both partitions...the client will only see the one we are logged into at the server???

    if possible??? how do we configure the mac mini to allow the clients to access both partitions...the client will only see the one we are logged into at the server???

    You have to explicitly share directories on external/secondary volumes.
    Use the Server admin app to configure file sharing, and select which directory/directories on the second drive you want to share, then they'll be available to clients.

  • How to send e-mail with an attachment from remote database server.???

    Hi All,
    I have tried the simple mail sending and with the attachment using UTL_SMTP. But the problem is , it is sending the mail with attachment of the file name i give, it takes and creates that file and sends as attachment not from the actual file location. I am trying to attach the file which i stored in remote database server.
    The following code I tried. But not worked for attachment
    DECLARE
       v_From       VARCHAR2(80) := '[email protected]';
       v_Recipient  VARCHAR2(80) := '[email protected]';
       v_Subject    VARCHAR2(80) := 'test subject';
       v_Mail_Host  VARCHAR2(30) := 'pop3.somedomain.com';
       v_Mail_Conn  utl_smtp.Connection;
       crlf         VARCHAR2(2)  := chr(13)||chr(10);
    BEGIN
      v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
      utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
      utl_smtp.Mail(v_Mail_Conn, v_From);
      utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
      utl_smtp.Data(v_Mail_Conn,
        'Date: '   || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
        'From: '   || v_From || crlf ||
        'Subject: '|| v_Subject || crlf ||
        'To: '     || v_Recipient || crlf ||
        'MIME-Version: 1.0'|| crlf ||     -- Use MIME mail standard
        'Content-Type: multipart/mixed;'|| crlf ||
        ' boundary="-----SECBOUND"'|| crlf ||
        crlf ||
        '-------SECBOUND'|| crlf ||
        'Content-Type: text/html;'|| crlf ||
        'Content-Transfer_Encoding: 7bit'|| crlf ||
        crlf ||
        'some message text'|| crlf ||     -- Message body
        'more message text'|| crlf ||
        crlf ||
        '-------SECBOUND'|| crlf ||
        'Content-Type: text/html;'|| crlf ||
        ' name="Fund Authorization report"'|| crlf ||
        'Content-Transfer_Encoding: 8bit'|| crlf ||
        'Content-Disposition: attachment;'|| crlf ||
        ' filename="/usr/tmp/Test.html"'|| crlf ||
        crlf ||
        'HTML Attachment'|| crlf ||     -- Content of attachment
        crlf ||
        '-------SECBOUND--'               -- End MIME mail
      utl_smtp.Quit(v_mail_conn);
    EXCEPTION
      WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
        raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
    END;How can I attach a file which is stored in database server and send it in a mail.
    Please someone help me in this.
    Thanks,
    Alaka.

    Try this code
    Regards Salim.
    CREATE OR REPLACE TRIGGER EmailOnServerErr AFTER SERVERERROR ON DATABASE
    DECLARE
       mail_conn       UTL_SMTP.connection;
       crlf            VARCHAR2(2) := chr(13)||chr(10);
       msg             VARCHAR2(32760);
       sid_name        VARCHAR2(16);
       bdump_dest      VARCHAR2(128);
       smtp_relay      VARCHAR2(32) := 'MyMailRelay';
       recipient_address  VARCHAR2(64) := '[email protected]';
       sender_address     VARCHAR2(64) := '[email protected]';
       mail_port       NUMBER := 25;
       log_file_handle UTL_FILE.FILE_TYPE;
       log_file_dir    VARCHAR2(256) := 'ERR_LOG_DIR';
       log_file_name   VARCHAR2(256) := 'OracleErrors.log';
       maxlinesize     NUMBER := 32767;
       session_rec     sys.v_$session%ROWTYPE;
       audit_rec       sys.dba_audit_trail%ROWTYPE;
       auditing        BOOLEAN;
       LinesOfSQL      BINARY_INTEGER;
       offending_sql   DBMS_STANDARD.ora_name_list_t;
       CURSOR bdump_cur IS
          SELECT TRIM(value)
          FROM v$parameter
          WHERE name = 'background_dump_dest'
       CURSOR sid_cur IS
          SELECT TRIM(instance_name)
          FROM v$instance
       CURSOR session_cur IS
          SELECT s.*
          FROM v$session s
          WHERE s.sid = dbms_support.mysid
       CURSOR audit_trail_cur(AUDSID IN NUMBER) IS
          SELECT *
          FROM dba_audit_trail
          WHERE sessionid = AUDSID
    BEGIN
       IF (USER = 'SYSTEM' OR USER = 'SYS') THEN
          -- Ignore this error
          NULL;
       ELSIF IS_SERVERERROR (1034) THEN
          -- Ignore this error
          NULL;
       ELSE
          -- get the sid
          OPEN sid_cur;
          FETCH sid_cur INTO sid_name;
          CLOSE sid_cur;
          -- get the location of the alert log
          OPEN bdump_cur;
          FETCH bdump_cur INTO bdump_dest;
          CLOSE bdump_cur;
          -- get the session information
          OPEN session_cur;
          FETCH session_cur INTO session_rec;
          CLOSE session_cur;
          -- get the audit_trail information if it exists
          OPEN audit_trail_cur(session_rec.audsid);
          FETCH audit_trail_cur INTO audit_rec;
          auditing := audit_trail_cur%FOUND;
          CLOSE audit_trail_cur;
          IF session_rec.program = 'MyProgram.exe' THEN
             NULL;  -- ignore actions from MyProgram - that's where I do maintenance
          ELSE
             -- compose the message
             msg := 'Subject: Oracle error '||' on '||sid_name||crlf;
             msg := msg||'To: '||recipient_address||crlf;
             msg := msg||'For more information see the alert log file located at:'||crlf;
             msg := msg||bdump_dest||'/alert_'||sid_name||'.log'||crlf;
             msg := msg||'or the error log file: $'||log_file_dir||'/'||log_file_name||crlf;
             msg := msg||'Error Time='||TO_CHAR(SYSDATE,'DD-Mon-YYYY HH24:MI:SS')||crlf;
             msg := msg||DBMS_UTILITY.FORMAT_CALL_STACK||crlf;
             LinesOfSQL := sql_txt(offending_sql);
             msg := msg||'Offending SQL is:'||crlf;
             FOR loop_counter IN offending_sql.FIRST..offending_sql.LAST
             LOOP
                msg := msg||offending_sql(loop_counter);
             END LOOP;
             msg := msg||crlf||'----- PL/SQL Error Stack -----'||crlf;
             msg := msg||DBMS_UTILITY.FORMAT_ERROR_STACK||crlf;
             msg := msg||'V$SESSION.SADDR='   ||session_rec.saddr   ||crlf;
             msg := msg||'V$SESSION.SID='     ||session_rec.sid     ||crlf;
             msg := msg||'V$SESSION.SERIAL#=' ||session_rec.serial# ||crlf;
             msg := msg||'V$SESSION.AUDSID='  ||session_rec.audsid  ||crlf;
             msg := msg||'V$SESSION.PADDR='   ||session_rec.paddr   ||crlf;
             msg := msg||'V$SESSION.USER#='   ||session_rec.user#   ||crlf;
             msg := msg||'V$SESSION.USERNAME='||session_rec.username||crlf;
             msg := msg||'V$SESSION.COMMAND=' ||session_rec.command ||crlf;
             msg := msg||'V$SESSION.OWNERID=' ||session_rec.ownerid ||crlf;
             msg := msg||'V$SESSION.TADDR='   ||NVL(session_rec.taddr   ,'Null')||crlf;
             msg := msg||'V$SESSION.LOCKWAIT='||NVL(session_rec.lockwait,'Null')||crlf;
             msg := msg||'V$SESSION.STATUS='  ||NVL(session_rec.status  ,'Null')||crlf;
             msg := msg||'V$SESSION.SERVER='  ||NVL(session_rec.server  ,'Null')||crlf;
             msg := msg||'V$SESSION.SCHEMA#=' ||session_rec.schema#||crlf;
             msg := msg||'V$SESSION.SCHEMANAME=' ||NVL(session_rec.schemaname,'Null')||crlf;
             msg := msg||'V$SESSION.OSUSER='     ||NVL(session_rec.osuser    ,'Null')||crlf;
             msg := msg||'V$SESSION.PROCESS='    ||NVL(session_rec.process   ,'Null')||crlf;
             msg := msg||'V$SESSION.MACHINE='    ||NVL(session_rec.machine   ,'Null')||crlf;
             msg := msg||'V$SESSION.TERMINAL='   ||NVL(session_rec.terminal  ,'Null')||crlf;
             msg := msg||'V$SESSION.PROGRAM='    ||NVL(session_rec.program   ,'Null')||crlf;
             msg := msg||'V$SESSION.TYPE='       ||NVL(session_rec.type      ,'Null')||crlf;
             msg := msg||'V$SESSION.SQL_ADDRESS='    ||session_rec.sql_address  ||crlf;
             msg := msg||'V$SESSION.SQL_HASH_VALUE=' ||NVL(TO_CHAR(session_rec.sql_hash_value) ,'Null')||crlf;
             msg := msg||'V$SESSION.PREV_SQL_ADDR='  ||session_rec.prev_sql_addr||crlf;
             msg := msg||'V$SESSION.PREV_HASH_VALUE='||NVL(TO_CHAR(session_rec.prev_hash_value),'Null')||crlf;
             msg := msg||'V$SESSION.MODULE='     ||NVL(session_rec.module              ,'Null')||crlf;
             msg := msg||'V$SESSION.MODULE_HASH='||NVL(TO_CHAR(session_rec.module_hash),'Null')||crlf;
             msg := msg||'V$SESSION.ACTION='     ||NVL(session_rec.action              ,'Null')||crlf;
             msg := msg||'V$SESSION.ACTION_HASH='||NVL(TO_CHAR(session_rec.action_hash),'Null')||crlf;
             msg := msg||'V$SESSION.CLIENT_INFO='||NVL(session_rec.client_info         ,'Null')||crlf;
             msg := msg||'V$SESSION.FIXED_TABLE_SEQUENCE='||NVL(TO_CHAR(session_rec.fixed_table_sequence),'Null')||crlf;
             msg := msg||'V$SESSION.ROW_WAIT_OBJ#='  ||NVL(TO_CHAR(session_rec.row_wait_obj#)  ,'Null')||crlf;
             msg := msg||'V$SESSION.ROW_WAIT_FILE#=' ||NVL(TO_CHAR(session_rec.row_wait_file#) ,'Null')||crlf;
             msg := msg||'V$SESSION.ROW_WAIT_BLOCK#='||NVL(TO_CHAR(session_rec.row_wait_block#),'Null')||crlf;
             msg := msg||'V$SESSION.ROW_WAIT_ROW#='  ||NVL(TO_CHAR(session_rec.row_wait_row#)  ,'Null')||crlf;
             msg := msg||'V$SESSION.LOGON_TIME='     ||NVL(TO_CHAR(session_rec.logon_time,'DD-Mon-YYYY HH24:MI:SS'),'Null')||crlf;
             msg := msg||'V$SESSION.LAST_CALL_ET='   ||NVL(TO_CHAR(session_rec.last_call_et)   ,'Null')||crlf;
             msg := msg||'V$SESSION.PDML_ENABLED='   ||NVL(session_rec.pdml_enabled   ,'Null')||crlf;
             msg := msg||'V$SESSION.FAILOVER_TYPE='  ||NVL(session_rec.failover_type  ,'Null')||crlf;
             msg := msg||'V$SESSION.FAILOVER_METHOD='||NVL(session_rec.failover_method,'Null')||crlf;
             msg := msg||'V$SESSION.FAILED_OVER='    ||NVL(session_rec.failed_over    ,'Null')||crlf;
             msg := msg||'V$SESSION.RESOURCE_CONSUMER_GROUP='||NVL(session_rec.resource_consumer_group,'Null')||crlf;
             msg := msg||'V$SESSION.PDML_STATUS='    ||NVL(session_rec.pdml_status    ,'Null')||crlf;
             msg := msg||'V$SESSION.PDDL_STATUS='    ||NVL(session_rec.pddl_status    ,'Null')||crlf;
             msg := msg||'V$SESSION.PQ_STATUS='      ||NVL(session_rec.pq_status      ,'Null')||crlf;
             IF auditing THEN
                msg := msg||'DBA_AUDIT_TRAIL.OS_USERNAME='  ||NVL(audit_rec.os_username,'Null')||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.USERNAME='     ||NVL(audit_rec.username   ,'Null')||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.USERHOST='     ||NVL(audit_rec.userhost   ,'Null')||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.TERMINAL='     ||NVL(audit_rec.terminal   ,'Null')||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.TIMESTAMP='    ||TO_CHAR(audit_rec.timestamp,'DD-Mon-YYYY HH24:MI:SS')||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.OWNER='        ||NVL(audit_rec.owner      ,'Null')||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.OBJ_NAME='     ||NVL(audit_rec.obj_name   ,'Null')||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.ACTION='       ||audit_rec.action   ||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.ACTION_NAME='  ||NVL(audit_rec.action_name   ,'Null')||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.NEW_OWNER='    ||NVL(audit_rec.new_owner     ,'Null')||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.NEW_NAME='     ||NVL(audit_rec.new_name      ,'Null')||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.OBJ_PRIVILEGE='||NVL(audit_rec.obj_privilege ,'Null')||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.SYS_PRIVILEGE='||NVL(audit_rec.sys_privilege ,'Null')||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.ADMIN_OPTION=' ||NVL(audit_rec.admin_option  ,'Null')||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.GRANTEE='      ||NVL(audit_rec.grantee       ,'Null')||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.AUDIT_OPTION=' ||NVL(audit_rec.audit_option  ,'Null')||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.SES_ACTIONS='  ||NVL(audit_rec.ses_actions   ,'Null')||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.LOGOFF_TIME='  ||NVL(TO_CHAR(audit_rec.logoff_time)  ,'Null')||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.LOGOFF_LREAD=' ||NVL(TO_CHAR(audit_rec.logoff_lread) ,'Null')||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.LOGOFF_PREAD=' ||NVL(TO_CHAR(audit_rec.logoff_pread) ,'Null')||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.LOGOFF_LWRITE='||NVL(TO_CHAR(audit_rec.logoff_lwrite),'Null')||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.LOGOFF_DLOCK=' ||NVL(audit_rec.logoff_dlock  ,'Null')||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.COMMENT_TEXT=' ||NVL(audit_rec.comment_text  ,'Null')||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.SESSIONID='    ||audit_rec.sessionid   ||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.ENTRYID='      ||audit_rec.entryid     ||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.STATEMENTID='  ||audit_rec.statementid ||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.RETURNCODE='   ||audit_rec.returncode  ||crlf;
                msg := msg||'DBA_AUDIT_TRAIL.PRIV_USED='    ||NVL(audit_rec.priv_used,'Null')||crlf;
             END IF;
             msg := msg||'-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-'||crlf||crlf;
             -- write the message to the error log file
             log_file_handle := UTL_FILE.FOPEN (log_file_dir, log_file_name, 'A',maxlinesize);
             UTL_FILE.PUT_LINE(log_file_handle,msg);
             UTL_FILE.FCLOSE(log_file_handle);
             -- send the message by Email
             mail_conn := UTL_SMTP.open_connection(smtp_relay, mail_port);
             UTL_SMTP.HELO(mail_conn, smtp_relay);
             UTL_SMTP.MAIL(mail_conn, sender_address);
             UTL_SMTP.RCPT(mail_conn, recipient_address);
             UTL_SMTP.DATA(mail_conn, msg);
             UTL_SMTP.QUIT(mail_conn);
          END IF; -- client_program = MyProgram.exe
       END IF;
    END;
    /

  • Trace function or some way to see what branching decisions are being made.

    Hello,
    Is there anyway to trace through a series of conditional branching items?    In my 11 page form I have a case where I think I have set up the proper Show/Hide and branching conidtions, however In one senario, when testing the form I get a "Blank" page.  For the life of me I can not see where this is coming from.    Not sure which page it is, since there are no page numbers on the form.
    I have tried 4 or 5 different methods to get around this issue. No luck.    How can I see what decisions are being made behind the scene?   Trace function of some kind?
    Thanks
    Mike

    Hi Mike,
    There's no trace functionality in the form. You can track your progress through the form by looking at the fragment ID in the address bar. The fragment ID is the "#n" portion of the URL, where n is the current page number. Here's an example form URL where the user is being shown the third page in the form.
    https://adobeformscentral.com/?f=31L8g%2ArKxptaVP6jvDXKOQ#3
    That should let you identify which page of your form is blank. If you need additional help with your conditional logic feel free to contact me at [email protected]
    Regards,
    Brian

Maybe you are looking for

  • Slow Browsing/Problem connecting to games

    Hi, About two weeks ago I started to have a problem with my internet, webpages were slow to load, some not loading at all, and a number of games were suffering from disconnects. Upon contacting BT technical support they found a problem with our Home

  • Need help unjailbreaking my iphone 3GS so I can update to iOS5

    My BIL helped me jailbreak a few months ago so I could tether.  I no longer need to tether, and I do need to update the iOS.  I have tried updating, and keep getting error message 1394.  I looked up the fix for that, and everyone says to download Tin

  • Without tax is there any problem post billing document into FI

    Hi All, in my project we are not going determined any tax in sales order condition type. we are just maintaining the pricing condition. is there any problem with out tax maintain to post billing document into account document. Thanks, KR Edited by: k

  • Confused between Region & Location

     confused between the Region & Location read many docs bet again confusion increases.

  • Icon for documentation

    In the IMG there are mulitple icons - one for documentation and one to actually execute the transaction. We'd like to add an icon for documentation into the normal user menu next to the actual transaction.  This could be for an SAP transaction or a c