Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • find_log_switch.sql Find log switches in graphical manner Oracle
  • database trigger failing Oracle
  • metalink all dynamic view reference notes. Oracle
  • cache buffer chain latch Oracle
  • Good links for x$ tables in oracle. Oracle
  • Proc code Oracle
  • V$INSTANCE of Oracle in MYSQL MYSQL
  • chk_space_SID.ksh Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • create user with unlimited quota Oracle
  • Running select from V$ views from remote server Linux/Unix
  • Default User Profile Oracle
  • For Search and replace unix command. Linux/Unix
  • normal maintenance for exp-imp and renaming table Oracle
  • True Session Wait Activity in Oracle 10g Verygood 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

  • Sending email with file attachment. Linux/Unix
  • Search and Replace vi editor command. Linux/Unix
  • Adding addidional hard drive and attach it to a linux box. Linux/Unix
  • Changing default shell Linux/Unix
  • catting.sh Linux/Unix
  • move_arch_files.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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • 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

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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Changing unix system clock when Oracle database is running. Oracle
  • online_bkup.sql Oracle
  • To check whether standby is recovering properly or not?? Oracle
  • Find_stale_dr.sql finding stale physical DR.. Oracle
  • To find all disk io ( EMC as well as local) Linux/Unix
  • temp_use.sql diplays usage of temp ts Oracle
  • Database logon trigger issue Oracle
  • New OFA for 11g Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme