Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Another export with Query Oracle
  • find_du.ksh to find # of files, their sizes in current folder and its subdolder Linux/Unix
  • How to choose Driver table in SQL statement Oracle
  • TRUNCATE table and disabling referential constraints. Oracle
  • How to find pinned objects from shared pool. (pinned via dbms_shared_pool.keep) Oracle
  • good note for shared pool tunnig Oracle
  • create trigger syntax Oracle
  • SQL Tracker by SID sqltrackerbysid.sql Oracle
  • Example of How To Resize the Online Redo Logfiles Note:1035935.6 Oracle
  • How to find where datafile is created dbf_info.sql Oracle
  • How to sort list of files on basis of their sizes. Linux/Unix
  • Jai Shree Ram Oracle
  • pvm_rbs1.sql (to collect rbs info from db) Oracle
  • move_arch_files.ksh Linux/Unix
  • How can I tell if ASO is installed ? Oracle

send attachment from unix-shell script

Posted on 10-May-2008 By Admin No Comments on send attachment from unix-shell script

#!/bin/ksh

ORACLE_HOME=/oracle/app/oracle/product/9.2.0.8;export ORACLE_HOME

ORACLE_SID=800P; export ORACLE_SID

$ORACLE_HOME/bin/sqlplus -s “/ as sysdba” < set time on

set timing on

set verify off

spool /db25/paresh/hourly_ratio.lst

select to_char(sysdate, ‘DD-MON-RRRR:HH24:MI:SS’) from dual;

prompt ‘Total distinct users and total user sessions’

select count(distinct username), count(1), round(count(1)/count(distinct username),1 )

from v$session where username is not null;

spool off

EXIT

EOF

mailx -s “ATLAS total distinct users and total sessions counts” pmehta@1800flowers.com,rmagesh@1800flowers.com,bingram@1800flowers.com

Linux/Unix, shell

Post navigation

Previous Post: temp_use.sql diplays usage of temp ts
Next Post: runsql_once.ksh

Related Posts

  • How to find Unix server conguraiton including Server Model number and underlying disk sub-system ( On Solaris) Linux/Unix
  • To find all disk io ( EMC as well as local) Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • copying/removing directory with all its subdirectory Linux/Unix
  • How to know Number of CPUs on Sun Box Linux/Unix
  • Single character replacement in Unix 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 (387)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (336)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024
  • Add new columns in dataframe30-Sep-2023

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • How does one SELECT a value from a table into a Unix variable? From SQL to Shell Linux/Unix
  • Oracle Connections expire_time and firewall Oracle
  • This is from Temi Oracle
  • AWR settings- MMON is not taking snapshot. Oracle
  • Good Site for Oracle Internals Oracle
  • Find Time Consuming SQL Statements in Oracle 10g Oracle
  • Error Handling in Proc Oracle
  • Kernel Parameter setting explaination for Processes Parameter Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme