I am trying the db2diag command to get the all the logs ,captured in diaglog, containing a particular SQLCODE. Can any one help me with the command?
how to get particular error logs from diaglog in db2
2.1k Views Asked by Kalpna Kashyap At
1
There are 1 best solutions below
Related Questions in DB2
- How to grant privileges to current user
- Drop DB2 database if exist
- DB2, Hibernate, JPA: Schema does not exist
- Can you check for a DB2 license in C#?
- DB2 Join Query that Maximizes Column
- How to access a Row Type within an Array Type in DB2 SQL PL
- IBM DB2 native encryption applied on live database
- Using an ODBC connection in Access get retrieve data from DB2
- join 2 tables and get some columns from 1st table and max timestamp value from second table
- How to connect to DB2 SQL database with node JS?
- TRANSLATE not working inside XMLAGG
- Cannot initialise HikariCP pooled connection, Failure in loading native library db2jcct2
- published reports don't work - Database logon failed Error
- 1 Working Day Back In SQL DB2
- In java with DB2 parallel process: I got Deadlock Exception :DB2 SQL Error: SQLCODE=-911, SQLSTATE=40001, SQLERRMC=2, DRIVER=3.59.81
Related Questions in SQLCODE
- how to check which column cause db2 22001 error?
- DB2 Error SQLERRMC: DOUBLE
- db2 stored procedure error when update statement follows rollback
- DB2 like clause with multiple values
- DB2 LUW - Get Error Line in Stored Procedure
- CAST Function using BIGINT
- how to get particular error logs from diaglog in db2
- Got a SQLCODE = -991
- Arithematic Overflow : "Converting numeric to data type numeric" error
- DB2 LUW version 10.5.0.10 - Get Warning (Not found) Line in Stored Procedure
- SQLCODE -1334 on DB2 when trying to connect using MicroStrategy
- sqlca.sqlerrm.sqlerrmc SQL code -284
- Unknown SQLCODE values
- How to rewrite SQL for PostgreSQL
- Receiving an SQLCode of -379 when executing a stored procedure through DB2OLEDB
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Use the
db2diagcommand and filter the DATA section for "sqlcode" followed by the particular code:db2diag -g 'data:=sqlcode: -1063'would search for the SQLCODE -1063 (error SQL1063N).You probably have the full documentation of the db2diag tool. You could then format the output and extract only the part of the log records you need.