Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • eplan9i.sql Oracle
  • Jai Shree Ram Oracle
  • V$transaction notes for finding XID composition. Oracle
  • How to sort list of files on basis of their sizes. Linux/Unix
  • Generating XML from SQLPLUS Oracle
  • oracle_env_10g_CADEV Linux/Unix
  • Pending Transaction Neighbors Script Oracle
  • create database syntax Oracle
  • All About Trace Fils Oracle
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • dbinv.sql Oracle
  • Proc Compilation Oracle
  • Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR Oracle
  • age_alert.ksh aging out alert.log 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

  • Adding addidional hard drive and attach it to a linux box. Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • CPU Core related projections AWS
  • Find total file sizes Linux/Unix
  • Removing Ctrl-M from end of line using vi 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 (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
  • SQL Tracker by SID sqltrackerbysid.sql Oracle
  • column level grant syntax Oracle
  • Pending Distributed Transations Oracle
  • When to rebuld B-tree index Oracle
  • Follwoing korn shell is used to move files from source folder to destination folder and gzip it in destination folder. mv_iotto.ksh Linux/Unix
  • Validating ORACLE_SID againt oratab file. Linux/Unix
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • Rownum with Order by Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme