Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • DETERMINING WHICH INSTANCE OWNS WHICH SHARED MEMORY & SEMAPHORE SEGMENTS Oracle
  • Important Solaris Commands Linux/Unix
  • Read CSV File using Python Python/PySpark
  • New Latest Param.sql for finding all hidden parameters also Oracle
  • find_log_switch.sql Find log switches in graphical manner Oracle
  • column level grant syntax Oracle
  • Composite Index creation tip from Vivek Oracle
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • Find Plan Hash value fphv.sql Oracle
  • Virtual Indexes in Oracle Oracle
  • Changing Instance Name ( No DB_NAME) Oracle
  • Physical Standby switchover with session active Oracle
  • FGA Part-I Oracle
  • To see only files and/or folders using LS command Linux/Unix
  • pvm_metric.sql for gathering report from vmstat tables Oracle

compile_inv.sql

Posted on 02-Aug-2005 By Admin No Comments on compile_inv.sql

set pages 1000 spool compile_inv select ‘alter ‘ || object_type || ‘ ‘ || object_name || ‘ compile; ‘ from user_objects where status = ‘INVALID’; spool off

Oracle, SQL scripts

oracle_env_10g_CADEV

Posted on 02-Aug-2005 By Admin No Comments on oracle_env_10g_CADEV

ORACLE_SID=CADEV;export ORACLE_SID ORACLE_HOME=/oracle/app/oracle/product/10.1;export ORACLE_HOME ORACLE_BASE=/oracle/app/oracle;export ORACLE_BASE LD_LIBRARY_PATH=/oracle/app/oracle/product/10.1/lib;export LD_LIBRARY_PATH PATH=/oracle/app/oracle/product/10.1/bin:/usr/ccs/bin:/usr/X/bin:/usr/openwin/bin:/usr/bin/X11:/usr/dt/bin:/usr/openwin/bin:/bin:/usr/bin:/usr/ucb:/usr/contrib/bin:/usr/local/bin:/usr/sbin:/usr/oracle/lib:/usr/proc/bin:/oracle/app/oracle/admin/shareplex/bin;export PATH ORA_NLS32=$ORACLE_HOME/ocommon/nls/admin/data;export ORA_NLS32 TNS_ADMIN=/oracle/app/oracle/product/10.1/network/admin;export TNS_ADMIN PFILE=/oracle/app/oracle/admin/CADEV/pfile;export PFILE UTL_DIR=/oracle/app/oracle/admin/CADEV/utl_dir;export UTL_DIR LOGS=/export/home/oracle/oraprocs/logs;export LOGS SCRIPTS=/export/home/oracle/oraprocs;export SCRIPTS ORAPROCS=/export/home/oracle/oraprocs;export ORAPROCS ORA_BDUMP=/oracle/app/oracle/admin/CADEV/bdump;export ORA_BDUMP ORA_CDUMP=/oracle/app/oracle/admin/CADEV/cdump;export ORA_CDUMP ORA_UDUMP=/oracle/app/oracle/admin/CADEV/udump;export ORA_UDUMP ORACLE_MAILING_LIST=”fdarwesh@1800flowers.com”;export ORACLE_MAILING_LIST NODENAME=`uname`;export NODENAME RPT=/export/home/oracle/projects/capacity/reports;export RPT BDUMP=/oracle/app/oracle/admin/CADEV/bdump;export BDUMP CDUMP=/oracle/app/oracle/admin/CADEV/cdump;export CDUMP UDUMP=/oracle/app/oracle/admin/CADEV/udump;export UDUMP EXPORT_BAK_DIR=/db7/export/backup;export EXPORT_BAK_DIR EXPORT_DIR=/db6/export/backup;export EXPORT_DIR

Linux/Unix, shell

set_env_dba

Posted on 02-Aug-2005 By Admin No Comments on set_env_dba

# This File Sets all the Oracle Environment Variables and is called from # Each Users’s . profile file. B=`tput smso` N=`tput rmso` echo “” echo “Enter $B 1 $N to access Oracle 10.1.0.3 – TEST ” echo “” echo “Enter $B 2 $N to access Oracle 10.1.0.3 – UOCTEST ” echo “” echo “Enter…

Read More “set_env_dba” »

Linux/Unix, shell

.profile

Posted on 02-Aug-2005 By Admin No Comments on .profile

#! /bin/ksh -x set -o vi stty erase EDITOR=vi;export EDITOR PATH=.:$PATH;export PATH . /oracle/oraprocs/set_env_dba stty erase ^H PS1=`uname -n`’->”$ORACLE_SID”@”(”$PWD”)’; /bin/perl /oracle/title.pl `uname -n` “->” “$ORACLE_SID” DISPLAY=192.168.4.112:0.0;export DISPLAY

Linux/Unix, shell

rm_backup_arch_file.ksh

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

a=`ps -ef|grep $SCRIPT_NAME|grep -v grep|wc -l` if [ $a -gt 2 ] then echo “Exiting because of more than 1 Moving archive log script is running ” >>$LOGFILE exit fi cd $DESTFOLDER b=0 buffersize=85 currentdskspce=`df -k $DESTFOLDER|tail -1 |awk {‘print $5’}| sed ‘s/%//g’` echo “This $DESTFOLDER files removal script was executed on `date`” >>$LOGFILE while…

Read More “rm_backup_arch_file.ksh” »

Linux/Unix, shell

rm_backup_arch_file.ksh

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

DESTFOLDER=/uocdb7/archlog/UAS LOGFILE=/oracle/scripts/log/rm_backup_arch_uas.log NOTIFY_LIST=’dbaoracle@1800flowers.com’ NODENAME=`hostname` ORACLE_SID=UAS SCRIPT_NAME=rm_backup_arch_file.ksh

Linux/Unix, shell

rm_backup_arch_file.ksh

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

#!/bin/ksh

Linux/Unix, shell

purge_trc.sh

Posted on 02-Aug-2005 By Admin No Comments on purge_trc.sh

#!/bin/sh . /oracle/oraprocs/oracle_env_10g_UAS ORACLE_HOME=/oracle/app/oracle/product/10.1;export ORACLE_HOME ORACLE_SID=UAS;export ORACLE_SID find $UDUMP/*.trc -mtime +15 -exec rm {} ; find $BDUMP/*.trc -mtime +15 -exec rm {} ; find $CDUMP/*.trc -mtime +15 -exec rm {} ;

Linux/Unix, shell

cif crons

Posted on 01-Aug-2005 By Admin No Comments on cif crons

01 * * * * /export/home/oracle/scripts/move_arch_files_uoc.ksh > /export/home/oracle/scripts/log/move_arch_files_uoc.log 2> /export/home/oracle/scrip ts/log/move_arch_files_uoc.err 10 * * * * /export/home/oracle/scripts/move_arch_files_cif.ksh > /export/home/oracle/scripts/log/move_arch_files_cif.log 2> /export/home/oracle/scrip ts/log/move_arch_files_cif.err 05,20,35,50 * * * * /export/home/oracle/scripts/switchlogfile_UOC.sh > /export/home/oracle/scripts/log/switchlogfile_UOC.log 2> /export/home/oracle/s cripts/log/switchlogfile_UOC.err 10,25,40,55 * * * * /export/home/oracle/scripts/switchlogfile_CIF.sh > /export/home/oracle/scripts/log/switchlogfile_CIF.log 2> /export/home/oracle/s cripts/log/switchlogfile_CIF.err 0 6 * * * /export/home/oracle/scripts/purge_trc_UOC.sh >> /export/home/oracle/scripts/log/purge_trc_UOC.log 2>> /export/home/oracle/scripts/log/purge_trc_UOC.err 0…

Read More “cif crons” »

Linux/Unix, shell

Changing unix system clock when Oracle database is running.

Posted on 01-Aug-2005 By Admin No Comments on Changing unix system clock when Oracle database is running.

Q: How does changing the system clock effect Oracle?? specifically, point in time recovery?? Is it different with V6 and Oracle7?? A: Changing the system clock should really have no effect on the Oracle kernel until it comes time to do time-based media recovery. Both in V6 and V7 there may be problems if you…

Read More “Changing unix system clock when Oracle database is running.” »

Oracle, SQL scripts

Posts pagination

Previous 1 … 54 55 56 57 Next

Categories

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

Recent Posts

  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • 276434.1 Modifying the VIP or VIP Hostname of a 10g or 11g Oracle Clusterware Node Oracle
  • oracle_env_10g_CADEV Linux/Unix
  • Creating never expiring DB user accounts in Oracle Oracle
  • get_vmstat.ksh Linux/Unix
  • Kernel Parameters for Solaris Linux/Unix
  • ORA-8031 issue and solution if it is occuring due to truncate. Oracle
  • ext#.sql Oracle
  • ipcs -l Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme