Sponsored Content
Special Forums UNIX and Linux Applications DB2 - Get the last executed queries Post 302770891 by expert on Tuesday 19th of February 2013 12:35:14 AM
Old 02-19-2013
DB2 - Get the last executed queries

hi Team,

i would like to know how to get the queries executed by a "C" binary which connects to the db2 database .

i tried with snapshot but i am not to proceed due to privileges.

let me know if there are sys table available to reference to.

Note: forgive me if already an answer is available , since i tried searching but unable to find it.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Some queries...

Guys need some advice on how to check some of the questions below? i'm running on an open VMS platform... which i am an idiot to... appreciate if anyone can give some hints or source on how to check on.. a script that is running on cron job... but doesn't run as the login user name.. 1. why... (6 Replies)
Discussion started by: 12yearold
6 Replies

2. Shell Programming and Scripting

Run SQL queries in DB2 and output to file

Hi, I new to Unix and scripting. Following is my requirement. Can someone tell me whether its possible or not. Also please let me know how to proceed further if this is possible. List of queries are stored in a file. For example, I have to run a query like this: Select * from &XYZ where... (0 Replies)
Discussion started by: simhasuri
0 Replies

3. Shell Programming and Scripting

my queries

hi guys Well, i need to have a report generation script or any script which will show me all the content/information of a file when i run that script. Please help me on this isssue at the earliest.As i am little bit aware of scripting.Thanks in advance! regards ash (4 Replies)
Discussion started by: whizkidash
4 Replies

4. UNIX for Dummies Questions & Answers

Exception while loading DB2 driver Class.forName("com.ibm.db2.jcc.DB2Driver")

Hi... I m working on UNIX z/OS. Actually i have to pass the parameters from the JCL to java-db2 program thru PARM. I am able to pass the arguments but the problem occured is, it is throwing an exception while loading the db2 driver as 'Javaclassnotfound:com.ibm.db2.jcc.DB2Driver'... (0 Replies)
Discussion started by: Sujatha Gowda
0 Replies

5. Homework & Coursework Questions

Queries

Any help on like where to get started on this? I'm just confused. 1. The problem statement, all variables and given/known data: Enter text here.Queries to satisfy these two report requests (use your CCI database): Retrieve all rows of active inventory where current on hands is less than... (0 Replies)
Discussion started by: lakers34kb
0 Replies

6. AIX

Script not getting executed via cron but executes when executed manually.

Hi Script not getting executed via cron but executes successfully when executed manually. Please assist cbspsap01(appuser) /app/scripts > cat restart.sh #!/bin/ksh cd /app/bin date >>logfile.out echo "Restart has been started....." >>logfile.out date >>logfile.out initfnsw -y restart... (3 Replies)
Discussion started by: samsungsamsung
3 Replies

7. UNIX for Dummies Questions & Answers

FTP Queries

Hi, 1) How to get exact permissions, group names for files while transferring with FTP 2) Is there any command to transfer entire directory and sub directories. Thanks (1 Reply)
Discussion started by: nag_sathi
1 Replies

8. IP Networking

RDNS Queries

Hey everyone, I have a question, I've been playing around with tcpdump, and noticed my machine making numerous rdns look ups. They are displayed like: 10.80.80.141.51234 > 10.80.80.1.domain: 9950+ PTR? 223.114.55.65.in-addr.arpa. (44) My question is, if dns works based on numerical... (0 Replies)
Discussion started by: Lost in Cyberia
0 Replies

9. Shell Programming and Scripting

Issue on executing db2 queries through shell script

hi i am trying to execute db2 queries through shell script. it's working fine but for few queries is not working ( those queries are taking time so the script is not waiting to get the complete the execution of that query ) could you please any one help me on this is there any wait... (1 Reply)
Discussion started by: bhaskar v
1 Replies

10. Shell Programming and Scripting

For Loop queries

I have Existing FOR loop in script like below. But the zip should happen for only those years in another file generated dynamically. Existing FOR LOOP - for i in XYZ_*ABC${YEAR_2014}.csv; do printf "%s\n" "$i" done | zip -@ XYZ_2014.zip >> $XYZ_2014.log 2>&1 ||... (2 Replies)
Discussion started by: weknowd
2 Replies
pgfouine(1)							   User Commands						       pgfouine(1)

NAME
pgfouine - PostgreSQL log analyzer SYNOPSIS
pgfouine -file <file> [-top <n>] [-format <format>] [-logtype <logtype>] [-report [outputfile=]<block1,block2>] DESCRIPTION
-file <file> log file to analyze - read the log from stdin instead of -file -top <n> number of queries in lists. Default is 20. -format <format> output format: html, html-with-graphs or text. Default is html. -logtype <logtype> log type: syslog or stderr. Default is syslog. for stderr, you have to use the following log_line_prefix: '%t [%p]: [%l-1] ' -report [outputfile=]<block1,block2> list of report blocks separated by a comma report blocks can be: overall, hourly, bytype, slowest, n-mosttime, n-mostfrequent, n-slowestaverage, history, n-mostfrequenterrors, tsung You can add several -report options if you want to generate several reports at once -examples <n> maximum number of examples for a normalized query -onlyselect ignore all queries but SELECT -from "<date>" ignore lines logged before this date (uses strtotime) -to "<date>" ignore lines logged after this date (uses strtotime) -database <database> consider only queries on this database -user <user> consider only queries executed by this user -title <title> define the title of the reports -syslogident <ident> PostgreSQL syslog identity. Default is postgres. -memorylimit <n> PHP memory limit in MB. Default is 128. -debug debug mode -profile profile mode -help this help AUTHOR
pgfouine was written by Guillaume Smet <guillaume-pg at smet dot org>. This manpage was written by Clement Stenac <zorglub at debian dot org> for the Debian project, but may be used by others. pgfouine August 2006 pgfouine(1)
All times are GMT -4. The time now is 10:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy