Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Monitor Long Running Job Oracle
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle
  • Goog notes on X$ tables Oracle
  • Parallel DML Oracle
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle
  • Sending SQLPLUS output in HTML format Oracle
  • How to change hostname in Linux Linux/Unix
  • xargs use Linux/Unix
  • Import and export statements Oracle
  • move_arch_files.ksh Linux/Unix
  • SQL Server: How to see current transactions or requests SQL Server
  • Optimizer SORT Operations Oracle
  • sbind.sql Find Bind variable from sql_id sqlid Oracle
  • Renaming the column name Oracle
  • Jai Shree Ram 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

  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • crontab syntax Linux/Unix
  • Zip and unzip with tar Linux/Unix
  • Search and replace pattern Linux/Unix
  • Removing Blank lines from file using grep Linux/Unix
  • Generate SSH without password authentication. 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)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (397)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (345)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • send email from unix mailx with attachment. Linux/Unix
  • eplan9i.sql Oracle
  • Temporary Tablespsace Temp tablespace behaviour Oracle
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle
  • DBMS_PROFILER for tuning PLSQL programs. Oracle
  • Day to day MYSQL DBA operations (Compared with Oracle DBA) MYSQL
  • temp_use.sql diplays usage of temp ts Oracle
  • UNderstand and eliminate Latch contention. Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme