Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Locktree.sql Oracle
  • Oracle 10g Installation/Applying Patches Tips Oracle
  • sess_server.sql Oracle
  • Read CSV file using PySpark Python/PySpark
  • How can I tell if ASO is installed ? Oracle
  • Checking SQL Server Version SQL Server
  • DBA_HIST_SQLSTAT contents Oracle
  • temp_use.sql diplays usage of temp ts Oracle
  • runon_allpdbs_show_conname.sh Oracle
  • pvmehta.com SQL scripts
    Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle Oracle
  • copying/removing directory with all its subdirectory Linux/Unix
  • Paste command syntax Linux/Unix
  • Search and replace pattern Linux/Unix
  • DBMS_Shared_pool pinning triggers Oracle
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle

Vivek’s egrep commands to trace problem. (on linux x86-64)

Posted on 13-Sep-2006 By Admin No Comments on Vivek’s egrep commands to trace problem. (on linux x86-64)

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)egrep -i “INSERT” /tmp/v1aa|awk -F”trc” ‘{print $2}’|sort |uniq -c

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)egrep -i “Select” /tmp/v1aa|awk -F””trc ‘{print $2}’|sort |uniq -c|sort -nr

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)egrep -i “Select” /tmp/v1aa|awk -F”:” ‘{print $2}’|sort |uniq -c|sort -nr

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)egrep -i “Select” /tmp/v1aa|awk ‘{print $2}’|more|sort |uniq -c

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)egrep -i “Delete” /tmp/v1aa|awk ‘{print $2}’|more|sort |uniq -c

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)egrep -i “Update” /tmp/v1aa|awk ‘{print $2}’|more|sort |uniq -c

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)egrep -i “INSERT” /tmp/v1aa|awk ‘{print $3}’|more

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)egrep -i “Select” /tmp/v1aa|awk -F”:” ‘{print $1}’|sort |uniq -c|sort -nr

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)egrep -i “Select” /tmp/v1aa|awk ‘{print $0}’|sort |uniq -c

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)egrep -i “Update” /tmp/v1aa|awk ‘{print $3}’|more|sort |uniq -c

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)egrep -i “INSERT” /tmp/v1aa|awk ‘{print $3}’|more|sort |uniq -c

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)egrep -i “SElect|INSERT|UPDATE|DELETE” *.trc >/tmp/v1aa

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)egrep -i “Insert” /tmp/v1a|awk ‘{print $3}’

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)egrep -i “SElect|INSERT|UPDATE|DELETE” *.trc

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)

dbaltxprod51->WEBP18F@(/oracle/app/oracle/admin/WEBP18F/bdump/BACKUP)ls -latr|grep -v “Sep 13 17″|awk ‘{print $9}’|xargs rm

Linux/Unix, shell

Post navigation

Previous Post: mutex in Oracle 10.2.0.2 or Oracle 10g
Next Post: currwait.sql

Related Posts

  • telnet listening Linux/Unix
  • Implementation of key based authentications Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • send attachment from unix-shell script Linux/Unix
  • find the files that are 1 day old. Linux/Unix
  • fuser to check who is using diretory Linux/Unix

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (150)
  • MYSQL (5)
  • Oracle (403)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (151)
  • SQL scripts (349)
  • SQL Server (6)
  • Uncategorized (5)
  • Videos (0)

Recent Posts

  • Key Management in Oracle: The Core Issue: Missing Master Key12-May-2026
  • SAT Mathematics 10 questions and answer at the end.30-Apr-2026
  • top 10 AI news today30-Apr-2026
  • runon_allpdbs_show_conname.sh23-Apr-2026
  • runon_allcdbs_find_pdbs.sh23-Apr-2026
  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • to see when crontab is changed. Linux/Unix
  • V$CONTROLFILE_RECORD_SECTION reference notes. Oracle
  • PLSQL Table Syntax 1 Oracle
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • Export Import with QUERY Oracle
  • Useful Solaris Commands on 28-SEP-2005 Linux/Unix
  • Optimizer SORT Operations Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme