Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR Oracle
  • Wait Based Tuning Step by step with SQL statement Oracle
  • How to connect to Oracle Database with Wallet with Python. Oracle
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • Small sample shell program Linux/Unix
  • Oracle Metalink useful notes Oracle
  • Drop database in Oracle 10g Oracle
  • Renaming the column name Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • standard Monitoring – 1 Oracle
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • cur_sql.sql Oracle
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • AWR settings- MMON is not taking snapshot. Oracle
  • Finding last recovered file on DR and remove all chanracters before any “/” Linux/Unix

Passing from Unix to PLSQL using bind variables

Posted on 29-Aug-2006 By Admin No Comments on Passing from Unix to PLSQL using bind variables

. $ENV_FILE

echo “Started test.ksh `date +%D-%T`”

V1=1;

V3=One;

$ORACLE_HOME/bin/sqlplus pvm/pvm<set serveroutput on;

variable pvm1 number;

exec :pvm1:=$V1;

variable pvm2 varchar2(30);

exec :pvm2:=’`date +%D-%T`’;

variable pvm3 varchar2(20);

exec :pvm3:=’$V3′;

exec prod_display(:pvm1, to_date(:pvm2, ‘MM/DD/RR-HH24:MI:SS’), :pvm3);

EOF

echo “Ended at `date +%D-%T`”

Linux/Unix, shell

Post navigation

Previous Post: get_vmstat.ksh for Solaris
Next Post: How to know current SID

Related Posts

  • check_copy_progress.sh Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • To see mem usage and CPU usage system wide. Linux/Unix
  • purge_trc.sh Linux/Unix
  • To Find Orphan OS processes. Linux/Unix
  • avail.sh ( find filesystem spae usage) 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 (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • import-export with multiple files Oracle
  • New Latest Param.sql for finding all hidden parameters also Oracle
  • Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR Oracle
  • Rownum with Order by Oracle
  • Absolute file number and relative file number Oracle
  • Does DBMS_JOB recompute the NEXT_DATE interval after or before Oracle
  • Vivek Tuning for Row Locks. Oracle
  • Library cahe Latches and internal explaination Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme