Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • avail.sh ( find filesystem spae usage) Linux/Unix
  • oracle fast start failover best practice Oracle
  • Very Good Oralce Internal Tuning Book Oracle
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle
  • grep multuple patterns Linux/Unix
  • Convert multiple rows to single column Oracle
  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle
  • run this before doing any dbchange pvm_pre_change.sql Oracle
  • Getting started with notebook Python/PySpark
  • Reading config file from other folder inside class Python/PySpark
  • ipcs -l Linux/Unix
  • Good Link from metalink 1 Oracle
  • Find nth max and min. Oracle
  • send email from unix mailx with attachment. Linux/Unix

Running select from V$ views from remote server

Posted on 21-Jul-2008 By Admin No Comments on Running select from V$ views from remote server

#/bin/ksh -x

NOTIFY_LIST=”pmehta@1800flowers.com”

CONNECT_USER=”/ as sysdba”

TARGET_ORACLE_HOME=/oracle/app/oracle/product/10.1

MY_SQL=”select max(SEQUENCE#) from v$log_history;”

RUNNING=`/usr/local/bin/ssh uocdbprod21 “. /oracle/app/oracle/oraprocs/oracle_env_UOC; $TARGET_ORACLE_HOME/bin/sqlplus -S / a

s sysdba <set pagesize 0 feedback off verify off heading off echo off

$MY_SQL

END”`

echo “RUNNING = $RUNNING”

Linux/Unix, shell

Post navigation

Previous Post: RAC with RHEL4 and 11g
Next Post: Check_recovery.sh program to run sqlplus and return its values remotely.

Related Posts

  • restarting network in linux Linux/Unix
  • scripts to take listener.log backup Linux/Unix
  • fdisk -l explaination about Primary-Logical-Extended Partitions Linux/Unix
  • check_copy_progress.sh Linux/Unix
  • changing kernel parameter in Oracle Enterpise Linux Linux/Unix
  • kill all processes from specific user in solaris. 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
  • how to find OS block size Oracle
  • column level grant syntax Oracle
  • Paste command syntax Linux/Unix
  • TRUNCATE Privs Oracle
  • Recovering lost SYS password Oracle
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade Oracle
  • scp with ssh2 Linux/Unix
  • Order by with ROWNUM Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme