Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • myfile Oracle
  • Adding a new disk and mount it automatically. on VMWARE LINUX Linux/Unix
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle
  • Search and replace pattern Linux/Unix
  • How To Transfer Passwords Between Databases (ref note: 199582.1) Oracle
  • Read CSV File using Python Python/PySpark
  • dbms_job.submit example Oracle
  • SQL Server Vs Oracle Architecture difference SQL Server
  • Find Plan Hash value fphv.sql Oracle
  • Display the top 5 salaries for each department using single SQL Oracle
  • Deleting first line and lastline of a file using sed Linux/Unix
  • export import with parameter file. Oracle
  • Some useful Unix Commands Linux/Unix
  • oracle_env_10g_CADEV 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

  • to see when crontab is changed. Linux/Unix
  • CPU speed on solaris Linux/Unix
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix
  • Search and Replace vi editor command. Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • To seee semaphores and shared memory segments in Solaris 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
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • copying/removing directory with all its subdirectory Linux/Unix
  • Distributed Transaction Troubleshooting. Oracle
  • oracle 11g RAC on vmware Oracle
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • Sample WW22 listener.ora Oracle
  • sql_plan9i.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme