Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Running select from V$ views from remote server Linux/Unix
  • Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT) Oracle
  • Good links for x$ tables in oracle. Oracle
  • newupload.html PHP/MYSQL/Wordpress
  • Library cahe Latches and internal explaination Oracle
  • Implementing Listener Security Oracle
  • Checking SQL Server Version SQL Server
  • Explain Plan Doesn’T Change For Sql After New Statistics Generated Oracle
  • How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema) Oracle
  • column level grant syntax Oracle
  • findobj.sql Oracle
  • check_copy_progress.sh Linux/Unix
  • FGA Part-I Oracle
  • Database logon trigger issue Oracle
  • scp with ssh2 Linux/Unix

Category: Linux/Unix

move_arch_files.ksh

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

#!/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`

Linux/Unix, shell

move_arch_files.ksh

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

ORACLE_SID=UAS LOG_FILE=/oracle/scripts/log/MOVE_UAS01.log ARCHMOUNTPOINT=/UASARCH DESTFOLDER=/uocdb7/archlog/UAS

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

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

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

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

#!/bin/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

Posts pagination

Previous 1 … 13 14 15 Next

Categories

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

Recent Posts

  • 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
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • sid_wise_sql.sql Oracle
  • fkwoindex.sql /* Find FK without Index */ Oracle
  • Specify the Rollback segment to use in Transaction Oracle
  • Rman Notes -1 Oracle
  • Session_info.ksh Linux/Unix
  • Debugging Shell FIles Linux/Unix
  • switchlogfile.sh Linux/Unix
  • Add new columns in dataframe Python/PySpark

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme