Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • how to find VIP from ifconfig Linux/Unix
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade Oracle
  • Optimizer_Index init.ora parameter explaination. Oracle
  • Vivek’s egrep commands to trace problem. (on linux x86-64) Linux/Unix
  • scripts to take listener.log backup Linux/Unix
  • Histogram Overview Oracle
  • Jai Shree Ram Oracle
  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle
  • How to set Processes Parameter Oracle
  • AWR settings- MMON is not taking snapshot. Oracle
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle
  • cache buffer chain latch Oracle
  • Find All internal Parameters Oracle
  • DBMS_PROFILER for tuning PLSQL programs. Oracle
  • Clean up Oracle

Year: 2007

Unix split command to split files

Posted on 28-Dec-2007 By Admin No Comments on Unix split command to split files

split -20 source_filename.lst test1 Above command will split source_filename.lst with every 20 lines. Will create files with 20 lines and with following names. -rw-r–r– 1 oracle dba 41 Dec 28 11:53 test1ag -rw-r–r– 1 oracle dba 2127 Dec 28 11:53 test1af -rw-r–r– 1 oracle dba 2240 Dec 28 11:53 test1ae -rw-r–r– 1 oracle dba 2243…

Read More “Unix split command to split files” »

Linux/Unix, shell

to see when crontab is changed.

Posted on 19-Dec-2007 By Admin No Comments on to see when crontab is changed.

sunflower1/800P>ls -rlt /var/spool/cron/crontabs total 138 -r——– 1 root root 452 Jan 21 2005 lp -rw——- 1 root sys 308 Nov 9 2006 sys -rw——- 1 root sys 317 Aug 20 18:51 adm -rw——- 1 root staff 5605 Oct 9 10:09 bbxuser -rw——- 1 root staff 5126 Oct 9 10:13 bkgr -rw——- 1 root staff 457…

Read More “to see when crontab is changed.” »

Linux/Unix, shell

How to analyze statspack or AWR report.

Posted on 14-Dec-2007 By Admin No Comments on How to analyze statspack or AWR report.

http://oraperf.sourceforge.net/seminar/sevt_anal.html A typical waits event section of a report.txt looks like SQLDBA> Rem System wide wait events. SQLDBA> select n1.event “Event Name”, 2> n1.event_count “Count”, 3> n1.time_waited “Total Time”, 4> (n1.time_waited/n1.event_count) “Average Time” 5> from stats$event n1 6> where n1.event_count > 0 7> order by n1.time_waited desc; Event Name Count Total Time Average Time —————————…

Read More “How to analyze statspack or AWR report.” »

Oracle, SQL scripts

v$event_name

Posted on 14-Dec-2007 By Admin No Comments on v$event_name

v$event_name ——————————————————————————– select EVENT# NU,NAME,PARAMETER1 P1,PARAMETER2 P2,PARAMETER3 P3 from v$event_name; EVENT# NAME PARAMETER1 PARAMETER2 PARAMETER3 —- —————————————- ——————– —————– ————- 0 Null event 1 latch activity address number process# 2 latch free address number tries 3 free process state object 4 pmon timer duration 5 inactive session session# waited 6 process startup type process# waited…

Read More “v$event_name” »

Oracle, SQL scripts

Good notes for shared pool

Posted on 14-Dec-2007 By Admin No Comments on Good notes for shared pool

Understanding and Tuning the Shared Pool Doc ID: Note:62143.1

Oracle, SQL scripts

Export With Query Another Example.

Posted on 30-Nov-2007 By Admin No Comments on Export With Query Another Example.

exp userid=mesg file=mesg_26NOV07.dmp log=mesg_26NOV07.log compress=N grants=N tables=TX_GIFT_CERTIFICATE,TX_PRODUCT_ZIP_CONF IG,TX_GIFT_CERTIFICATE_CHANNE statistics=none query=”where dt_crtd >= sysdate – 10″

Oracle, SQL scripts

Btee and Bitmap Plans in Oracle 9i and higher

Posted on 21-Nov-2007 By Admin No Comments on Btee and Bitmap Plans in Oracle 9i and higher

alter session set “_b_tree_bitmap_plans”=false When coming out alter session set “_b_tree_bitmap_plans”=true

Oracle, SQL scripts

adding new line after specific pattern using sed

Posted on 09-Nov-2007 By Admin No Comments on adding new line after specific pattern using sed

$cat t1.sql | sed ‘s/ORDER_DETAILS/ This is added newly/g’

Linux/Unix, shell

Search and replace pattern

Posted on 07-Nov-2007 By Admin No Comments on Search and replace pattern

#!/bin/ksh file_name=$1 old_templet=$2 new_templet=$3 # Loop through every file like this for file in file_name do cat $file | sed “s/old_templet/new_templet/g” > $file.new #do a global searce and replace and put the results mv $file.new $file #rename $file.new to original name of file done If you want to replace single pattern with a new pattern…

Read More “Search and replace pattern” »

Linux/Unix, shell

create a folder in multiple places

Posted on 31-Oct-2007 By Admin No Comments on create a folder in multiple places

for i in `df -k | grep EMCdb | awk ‘{print $6}’` do mkdir -p $i/oradata/800P done

Linux/Unix, shell

Posts pagination

1 2 … 6 Next

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • dbms_job.submit example Oracle
  • Create type and Grant on it. Oracle
  • Is It Recommended To Apply Patch Bundles When PSU Is Available? -ID 743554.1 Oracle
  • secure crt settings Linux/Unix
  • metalink all dynamic view reference notes. Oracle
  • run this before doing any dbchange pvm_pre_change.sql Oracle
  • Optimizer_Index init.ora parameter explaination. Oracle
  • Search and replace editor command in vi Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme