Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Renaming Global Name GLOBAL_NAME Oracle
  • Kernel Parameter setting explaination for Processes Parameter Linux/Unix
  • Optimizer_Index init.ora parameter explaination. Oracle
  • replacing ^M character when passing files from Windows to Unix Linux/Unix
  • Drop specific SQL plan baseline – spm Oracle
  • RAC with RHEL4 and 11g Oracle
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • ipcs -l Linux/Unix
  • Jai Shree Ram Linux/Unix
  • Configure ssh authentications for RAC Oracle
  • Good links for x$ tables in oracle. Oracle
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • find_string_in_database.sql Oracle
  • Rownum with Order by Oracle

Author: Admin

The most important Tuning Notes

Posted on 18-Aug-2005 By Admin No Comments on The most important Tuning Notes

Note:61552.1 Database Is Slow. (*) Any recent upgrade/degrade activities??? (2)Check Alert.log and trace files for any cause. (2) Check # of sessions, # of processes. (3) Check event init.ora parameter to see whether any event is set or not. (4) check # of log switching. (5) check archive log destinations space problem or ARCH may…

Read More “The most important Tuning Notes” »

Oracle, SQL scripts

Oracle 10g Wait Model

Posted on 16-Aug-2005 By Admin No Comments on Oracle 10g Wait Model

*** This article is being delivered in Draft form and may contain errors. Please use the MetaLink “Feedback” button to advise Oracle of any issues related to this article. *** PURPOSE ——- This note includes new columns of V$SESSION and how to effectively use V$SESSION during contention in Oracle 10G. SCOPE & APPLICATION —————————– 1….

Read More “Oracle 10g Wait Model” »

Oracle, SQL scripts

Debugging Shell FIles

Posted on 11-Aug-2005 By Admin No Comments on Debugging Shell FIles

sh -x ./myshellfile.sh

Linux/Unix, shell

Rename Tablespace

Posted on 09-Aug-2005 By Admin No Comments on Rename Tablespace

Alter tablespace OLD_ts_name rename to NEW_TS_NAME;

Oracle, SQL scripts

sql_doing_fts.sql

Posted on 03-Aug-2005 By Admin No Comments on sql_doing_fts.sql

select sql_text from V$sql a, v$sql_plan b where a.address = b.address and a.hash_value = b.hash_value and b.operation = ‘TABLE ACCESS’ and b.options = ‘FULL’ and b.OBJECT_OWNER ‘SYS’ /

Oracle, SQL scripts

crontab syntax

Posted on 02-Aug-2005 By Admin No Comments on crontab syntax

***** Both hourly jobs ***** 01 * * * * /export/home/oracle/scripts/move_arch_files_uoc.ksh > /export/home/oracle/scripts/log/move_arch_files_uoc.log 2> /export/home/oracle/scripts/log/move_arch_files_uoc.err 01 * * * * /export/home/oracle/scripts/move_arch_files_cif.ksh > /export/home/oracle/scripts/log/move_arch_files_cif.log 2> /export/home/oracle/scripts/log/move_arch_files_cif.err ***** for 15 mins interval ***** 01,16,31,46 * * * * /export/home/oracle/scripts/move_arch_files_uoc.ksh > /export/home/oracle/scripts/log/move_arch_files_uoc.log 2> /export/home/oracle/scripts/log/move_arch_files_uoc.err

Linux/Unix, shell

move_arch_files.ksh /* Good One */

Posted on 02-Aug-2005 By Admin No Comments on move_arch_files.ksh /* Good One */

#!/bin/ksh a=`ps -ef|grep “move_arch_files.ksh”|grep -v grep|wc -l` if [ $a -gt 2 ] then echo “Exiting because of more than 1 Moving archive log script is running ” exit fi # ## Setting Environment information and variables # NODENAME=`hostname` ## change start ORACLE_SID=UAS LOG_FILE=/oracle/scripts/log/MOVE_UAS01.log ARCHMOUNTPOINT=/UASARCH DESTFOLDER=/uocdb7/archlog/UAS ### change end COMFORT_SPACE=75 NO_FILES_MOVED=0 NOTIFY_LIST=’dbaoracle@1800flowers.com’ cp /dev/null $LOG_FILE…

Read More “move_arch_files.ksh /* Good One */” »

Linux/Unix, shell

move_arch_files.ksh

Posted on 02-Aug-2005 By Admin No Comments on move_arch_files.ksh

echo “The script execution started at `date`” >> $LOG_FILE while [ ${ARCH_SPACE} -ge ${COMFORT_SPACE} ] do FIRST_FILE=`ls -latr $ARCHMOUNTPOINT/*.arc|head -1|awk ‘{print $9}’` # cp -p $FIRST_FILE /blprddb14/archlog/BLINK cp -p $FIRST_FILE $DESTFOLDER CURR_FILE_SZ=`ls -latr $FIRST_FILE|awk ‘{print $5}’` CURR_FL_NAME=`echo $FIRST_FILE |cut -f3 -d’/’` # COPIED_FILE_SZ=`ls -latr /blprddb14/archlog/BLINK/$CURR_FL_NAME |awk ‘{print $5}’` COPIED_FILE_SZ=`ls -latr $DESTFOLDER/$CURR_FL_NAME |awk ‘{print $5}’` if…

Read More “move_arch_files.ksh” »

Linux/Unix, shell

move_arch_files.ksh

Posted on 02-Aug-2005 By Admin No Comments on move_arch_files.ksh

#ARCH_SPACE=`df -k /UASARCH | tail -1 | awk ‘{print $5’} | sed ‘s/%//g’` ARCH_SPACE=`df -k $ARCHMOUNTPOINT | tail -1 | awk ‘{print $5’} | sed ‘s/%//g’`

Linux/Unix, shell

move_arch_files.ksh

Posted on 02-Aug-2005 By Admin No Comments on move_arch_files.ksh

COMFORT_SPACE=75 NO_FILES_MOVED=0 NOTIFY_LIST=’dbaoracle@1800flowers.com’ cp /dev/null $LOG_FILE

Linux/Unix, shell

Posts pagination

Previous 1 … 48 49 50 … 56 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
  • Good link for LIO in Oracle ( Logical IOs) Oracle
  • V$CONTROLFILE_RECORD_SECTION reference notes. Oracle
  • How to know Number of CPUs on Sun Box Linux/Unix
  • PLSQL Table Syntax 1 Oracle
  • CPU speed on solaris Linux/Unix
  • fuser to check who is using diretory Linux/Unix
  • Another Tuning Article for subheap of shared pool Oracle
  • AWR license Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme