Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • Another export with Query Oracle
  • cp_filesystem.sql Oracle
  • How to find Unix server conguraiton including Server Model number and underlying disk sub-system ( On Solaris) Linux/Unix
  • Query to Generate aggregate on every 30 mins. Oracle
  • How To Transfer Passwords Between Databases (ref note: 199582.1) Oracle
  • create database link syntax Oracle
  • pvmehta.com SQL scripts
    Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle Oracle
  • Rollback force for distributed transactions Oracle
  • temp_use.sql diplays usage of temp ts Oracle
  • Temporary Tablespace Information and restriction. Oracle
  • create database syntax Oracle
  • Process Map for CPU and Memory for OS processes Linux/Unix
  • SYSOPER Mystery Oracle
  • 556976.1 Oracle Clusterware: Components installed Oracle

runsql_once.ksh

Posted on 10-May-2008 By Admin No Comments on runsql_once.ksh

#!/bin/ksh

# This parameter will be for executing environment file.

$1

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

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

@$2

EXIT

EOF

Linux/Unix, shell

Post navigation

Previous Post: send attachment from unix-shell script
Next Post: Find sort details from Db find_sort.sql

Related Posts

  • Changing default shell Linux/Unix
  • find the files that are 1 day old. Linux/Unix
  • Search and replace editor command in vi Linux/Unix
  • Check_recovery.sh program to run sqlplus and return its values remotely. Linux/Unix
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • Validating ORACLE_SID againt oratab file. 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
  • Unix split command to split files Linux/Unix
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle
  • shr1.sql for MTS or Shared server configuration Oracle
  • CTAS with LONG Column for 9i and higher Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • longtx.sql with the flag whether session is blocking any DML locks or not. Oracle
  • Rename Oracle Instance Name Oracle
  • Nice notes on wait events Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme