Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle
  • myfile Oracle
  • Good links for x$ tables in oracle. Oracle
  • How to see which patches are applied. Oracle
  • All About oracle password and security from metalink Oracle
  • age_alert.ksh aging out alert.log Linux/Unix
  • SYSOPER Mystery Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • Mutating Table Error while using database trigger Oracle
  • fkwoindex.sql /* Find FK without Index */ Oracle
  • Oracle Support Metalink ID 161818.1 Oracle
  • Jai Shree Ram PHP/MYSQL/Wordpress
  • Facts about SCN and Rollback Segment Oracle
  • DBMS_JOB all example Oracle
  • sid_wise_sql.sql Further explaination Oracle

Reading parameter file and printing

Posted on 01-Aug-2008 By Admin No Comments on Reading parameter file and printing

#/bin/ksh -x

for myread in `cat /export/home/oracle/scripts/check_recovery.par`

do

TARGET_SID=`echo $myread | awk -F”,” ‘{print $1}’`

SOURCE_SSH=`echo $myread | awk -F”,” ‘{print $2}’`

SOURCE_HOST=`echo $myread | awk -F”,” ‘{print $3}’`

SOURCE_ENVFILE=`echo $myread | awk -F”,” ‘{print $4}’`

SOURCE_ORACLE_HOME=`echo $myread | awk -F”,” ‘{print $5}’`

TARGET_SSH=`echo $myread | awk -F”,” ‘{print $6}’`

TARGET_HOST=`echo $myread | awk -F”,” ‘{print $7}’`

TARGET_ENVFILE=`echo $myread | awk -F”,” ‘{print $8}’`

TARGET_ORACLE_HOME=`echo $myread | awk -F”,” ‘{print $9}’`

LOG_COMFORT=`echo $myread | awk -F”,” ‘{print $10}’`

echo “TARGET_SID = $TARGET_SID”

echo “SOURCE_SSH = $SOURCE_SSH”

echo “SOURCE_HOST = $SOURCE_HOST”

echo “SOURCE_ENVFILE = $SOURCE_ENVFILE”

echo “SOURCE_ORACLE_HOME = $SOURCE_ORACLE_HOME”

echo “TARGET_SSH = $TARGET_SSH”

echo “TARGET_HOST = $TARGET_HOST”

echo “TARGET_ENVFILE = $TARGET_ENVFILE”

echo “TARGET_ORACLE_HOME = $TARGET_ORACLE_HOME”

echo “LOG_COMFORT = $LOG_COMFORT”

done

echo RUNNING: $RUNNING

++++++ Following is the parameter file format++++

UOC,/usr/local/bin/ssh,nyuocdbprod01s,/export/home/oracle/oraprocs/oracle_env_10g_UOC,/oracle/app/oracle/product/10.1,/usr/lo

cal/bin/ssh,uocdbprod21,/oracle/app/oracle/oraprocs/oracle_env_UOC,/oracle/app/oracle/product/10.1,19

800L,/usr/bin/ssh,sunlight1,/opt/app/oracle/envs/oracle_env,/oracle/app/oracle/product/9.2.0.8,/usr/bin/ssh,10.203.1.32,/opt/

app/oracle/envs/oracle_800L_9i_env,/oracle/app/oracle/product/9.2.0.8,0

Linux/Unix, shell

Post navigation

Previous Post: checking connectivity between two servers
Next Post: replace alphabets using sed

Related Posts

  • Oracle GoldenGate lag monitoring shell script Linux/Unix
  • .profile Linux/Unix
  • Adding a new disk and mount it automatically. on VMWARE LINUX Linux/Unix
  • process id based files and processes Linux/Unix
  • changing kernel parameter in Oracle Enterpise Linux Linux/Unix
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

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
  • restarting network in linux Linux/Unix
  • find_du.ksh to find # of files, their sizes in current folder and its subdolder Linux/Unix
  • Mutating Table Error while using database trigger Oracle
  • Histogram information Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • proper cpu stats Linux/Unix
  • get_vmstat.ksh Linux/Unix
  • How to check current redo log progress redo_progress.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme