Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • JSON/XML Types in Oracle Oracle
  • get_vmstat_linux Oracle
  • how to find VIP from ifconfig Linux/Unix
  • To check whether standby is recovering properly or not?? Oracle
  • Pending Transaction Neighbors Script Oracle
  • UNderstand and eliminate Latch contention. Oracle
  • column level grant syntax Oracle
  • Good link for LIO in Oracle ( Logical IOs) Oracle
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • This is from Temi Oracle
  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle
  • replacing ^M character when passing files from Windows to Unix Linux/Unix
  • pvm_pre_change.sql Oracle

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

  • nfs mount command Linux/Unix
  • CPU speed on solaris Linux/Unix
  • Unix split command to split files Linux/Unix
  • Jai Shree Ram Linux/Unix
  • Zip and unzip with tar Linux/Unix
  • fdisk -l explaination about Primary-Logical-Extended Partitions 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
  • Composite Index creation tip from Vivek Oracle
  • Removing Ctrl-M from end of line using vi Linux/Unix
  • Locktree.sql Oracle
  • RMAN : Consistent Backup, Restore and Recovery using RMAN Oracle
  • How to Modify the statistics collection by MMON for AWR repository Oracle
  • Another Tuning Article for subheap of shared pool Oracle
  • Find_stale_dr.sql finding stale physical DR.. Oracle
  • DBMS_Shared_pool pinning triggers Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme