Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • SQL_PROFILE – I explaination Oracle
  • Important Script Method for tuning Oracle
  • Find Stale DR Physical Standby Oracle
  • PLSQL Table Syntax 1 Oracle
  • ORA-00064: object is too large to allocate on this O/S during startup Oracle
  • sql_plan9i.sql Oracle
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • refre.sql Oracle
  • How to calculate PROCESSES parameter Oracle
  • Consolidated Reference List Of Notes For Migration / Upgrade Service Requests -ID 762540.1 Oracle
  • MYSQL and Oracle Comparison for Oracle DBA MYSQL
  • Oracle 10g Wait Model Oracle
  • initUOCIOTTO.ora Oracle
  • switchover for primary database Oracle
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade 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

  • To see only files and/or folders using LS command Linux/Unix
  • secure crt settings Linux/Unix
  • Validating ORACLE_SID againt oratab file. Linux/Unix
  • catting.sh Linux/Unix
  • adding new line after specific pattern using sed Linux/Unix
  • create a folder in multiple places 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
  • SAN Linux/Unix
  • Oracle Statspack survival Guide Oracle
  • Nice notes on wait events Oracle
  • metalink all dynamic view reference notes. Oracle
  • Oracle Support Metalink ID 161818.1 Oracle
  • initUOCIOTTO.ora Oracle
  • Consolidated Reference List Of Notes For Migration / Upgrade Service Requests -ID 762540.1 Oracle
  • How to Use DBMS_STATS to Move Statistics to a Different Database Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme