Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Goog notes on X$ tables Oracle
  • OPENING A STANDBY DATABASE IN READ-ONLY MODE Oracle
  • How to Modify the statistics collection by MMON for AWR repository Oracle
  • Sending email with file attachment. Linux/Unix
  • handling filenname with space Linux/Unix
  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository Oracle
  • cache buffer chain latch Oracle
  • RAC with RHEL4 and 11g Oracle
  • How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema) Oracle
  • Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1 Oracle
  • sql_doing_fts.sql Oracle
  • Paste command syntax Linux/Unix
  • Unix command for system configuration Linux/Unix
  • ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME Oracle
  • tuning commmand for cpu, ip and memory stats 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

  • find_du.ksh to find # of files, their sizes in current folder and its subdolder Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • chk_space_SID.ksh Linux/Unix
  • Find total file sizes Linux/Unix
  • how to find VIP from ifconfig Linux/Unix
  • restarting network in linux 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
  • Process Map for CPU and Memory for OS processes Linux/Unix
  • How to hide author name in WordPress BLOG PHP/MYSQL/Wordpress
  • eplan9i.sql Oracle
  • TRUNCATE table and disabling referential constraints. Oracle
  • dbms_job.submit example Oracle
  • For Search and replace unix command. Linux/Unix
  • Find Time Consuming SQL Statements in Oracle 10g Oracle
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme