Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Oracle Identifiers Oracle
  • process id based files and processes Linux/Unix
  • Distributed Transaction Troubleshooting. Oracle
  • Search and Replace vi editor command. Linux/Unix
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • changing kernel parameter in Oracle Enterpise Linux Linux/Unix
  • Find total file sizes Linux/Unix
  • Removing first line Linux/Unix
  • Good Link from metalink 1 Oracle
  • Kill a session dynanically using execute immediate Oracle
  • dbms_job.submit example Oracle
  • Very clear article about oracle dataguard Oracle
  • Shuffle an array PHP/MYSQL/Wordpress
  • metalink all dynamic view reference notes. Oracle
  • move_arch_files.ksh /* Good One */ Linux/Unix

Category: shell

scripts to take listener.log backup

Posted on 26-Oct-2007 By Admin No Comments on scripts to take listener.log backup
Linux/Unix, shell

scripts to take listener.log backup

Posted on 26-Oct-2007 By Admin No Comments on scripts to take listener.log backup

# log listener # # MIOLIST=alert_$ORACLE_SID.log_`date ‘+%y%m%d%H’` lsnrctl

Linux/Unix, shell

scripts to take listener.log backup

Posted on 26-Oct-2007 By Admin No Comments on scripts to take listener.log backup

Linux/Unix, shell

proper cpu stats

Posted on 05-Oct-2007 By Admin No Comments on proper cpu stats

Kishore said if you are seeing any CPU wait, most probably that is because of DISK I/O. iostat -c 5 Thanks Paresh

Linux/Unix, shell

To find all disk io ( EMC as well as local)

Posted on 05-Oct-2007 By Admin No Comments on To find all disk io ( EMC as well as local)

iostat -pnxze 5

Linux/Unix, shell

Session_info.ksh

Posted on 24-Apr-2007 By Admin No Comments on Session_info.ksh

/********* session_info.ksh ****************/ #!/bin/ksh . /home/oracle/oraprocs/WEBP18F.env USR_ID=vivek USR_PASS=viv1ek database=WEBP18F a=`ps -ef|grep “session_info.ksh”|grep -v grep|wc -l` if [ $a -gt 4 ] then echo “Exiting because of more than 1 process is running `date`”>>/db3/oradata/log/session_info.log exit fi echo “—–Begin —– Date `date`——————————–” >> /db3/oradata/log/session_info.log $ORACLE_HOME/bin/sqlplus -s /db3/oradata/log/session_info.log $USR_ID/$USR_PASS@$database set serverout on set feedback off SET PAGES 0…

Read More “Session_info.ksh” »

Linux/Unix, shell

chk_space_SID.ksh

Posted on 14-Mar-2007 By Admin No Comments on chk_space_SID.ksh

#!/bin/ksh

Linux/Unix, shell

chk_space_SID.ksh

Posted on 14-Mar-2007 By Admin No Comments on chk_space_SID.ksh

#Description : This script will check whether free space is there for next extent allocation or not. #It checks TS level and OS level for extent allocation. Checks for UNIFORM allocated extents. #For system allocated extents. this script will check 1 GB should be there as free threshold. NODENAME1=`hostname` ORACLE_SID=WEBP18F LOG_FILE_DIR=/home/oracle/oraprocs/logs ENV_FILE=/home/oracle/oraprocs/WEBP18F.env #NOTIFY_LIST=’8774544468@skytel.com’,’8774537913@skytel.com’,’8666714349@skytel.com’,’8774538204@skytel.com’,’dbaoracle@1800flowers.com’,’8774889576@skytel.com’ NOTIFY_LIST=’pmehta@1800flowers.com’ ADMIN_USER=vivek…

Read More “chk_space_SID.ksh” »

Linux/Unix, shell

chk_space_SID.ksh

Posted on 14-Mar-2007 By Admin No Comments on chk_space_SID.ksh

. $ENV_FILE #sqlplus -silent / as sysdba

Linux/Unix, shell

To Find Orphan OS processes.

Posted on 19-Feb-2007 By Admin No Comments on To Find Orphan OS processes.

To Find Orphan OS processes. When a process run from command line its parent process id will be 1. Consider following example: In current session, we are executing SQLPLUS. whose process id = 22833 and parent is 22822. process 22822 is ksh. So this is not orphan process. if you find any process with parent…

Read More “To Find Orphan OS processes.” »

Linux/Unix, shell

Posts pagination

Previous 1 … 7 8 9 … 15 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
  • online_bkup.sql Oracle
  • How to collect CPU usage on Linux using Shell script Linux/Unix
  • create database syntax Oracle
  • FGA Part-I Oracle
  • Oracle Connections expire_time and firewall Oracle
  • Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR Oracle
  • Find long Running Transaction Linux/Unix
  • shutdown linux Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme