Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Proc code Oracle
  • Jai Shree Ram Oracle
  • default permission on ~/.ssh/authorized_keys2 or authorized_keys Linux/Unix
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • Rman Notes -1 Oracle
  • Find_stale_dr.sql finding stale physical DR.. Oracle
  • How to know current SID Oracle
  • Good RAC & Standby Notes Oracle
  • create user with unlimited quota Oracle
  • create a folder in multiple places Linux/Unix
  • V$INSTANCE of Oracle in MYSQL MYSQL
  • cp_filesystem.sql Oracle
  • dbinv.sql Oracle
  • Debugging Shell FIles Linux/Unix
  • Implementing Listener Security 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

  • Find Command Linux/Unix
  • ipcs -l Linux/Unix
  • nfs mount command Linux/Unix
  • To find all disk io ( EMC as well as local) Linux/Unix
  • good linux notes Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix

Leave a Reply Cancel reply

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

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
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • DBMS_PROFILER for tuning PLSQL programs. Oracle
  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm Oracle
  • to see when crontab is changed. Linux/Unix
  • How can I tell if ASO is installed ? Oracle
  • T-SQL Vs PL/SQL Syntax SQL Server
  • How to find password change date for user Oracle
  • Find Stale DR Physical Standby Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme