Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Exadata Basics Oracle
  • Wait Based Tuning Step by step with SQL statement Oracle
  • v$event_name Oracle
  • get_aix_vmstat.ksh Oracle
  • Very clear article about oracle dataguard Oracle
  • Recovering lost SYS password Oracle
  • upload.html PHP/MYSQL/Wordpress
  • dbinv.sql Oracle
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle
  • fuser to check who is using diretory Linux/Unix
  • on IBM-AIX for display Linux/Unix
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • compile_inv.sql Oracle
  • purge_trc.sh Linux/Unix
  • To see only files and/or folders using LS command Linux/Unix

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

  • checking connectivity between two servers Linux/Unix
  • catall.sh Linux/Unix
  • nfs mount command Linux/Unix
  • CPU Core related projections AWS
  • CPU speed on 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 (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Proc code Oracle
  • Which environment is used by currently running process ( Very good) Linux/Unix
  • Ports used by Oracle Software Oracle
  • Temporary Tablespace Information and restriction. Oracle
  • move_arch_files.ksh Linux/Unix
  • Rollback force for distributed transactions Oracle
  • move_arch_files.ksh Linux/Unix
  • .profile Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme