Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Good links for x$ tables in oracle. Oracle
  • The most important Tuning Notes Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • Reading config file from other folder inside class Python/PySpark
  • get_vmstat.ksh Linux/Unix
  • findobj.sql Oracle
  • Recovering lost SYS password Oracle
  • Composite Index creation tip from Vivek Oracle
  • Deleting first line and lastline of a file using sed Linux/Unix
  • Oracle Material from OTN Oracle
  • How to connect to Oracle Database with Wallet with Python. Oracle
  • UNderstand and eliminate Latch contention. Oracle
  • Mutating Table Error while using database trigger Oracle
  • OEM-Commnds Oracle
  • Find Multiple levels of object dependencies : depen.sql Oracle

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

  • Unix command for system configuration Linux/Unix
  • Guide to Linux System Command Mastery Linux/Unix
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • send attachment from unix-shell script Linux/Unix
  • scripts to take listener.log backup Linux/Unix
  • Finding last recovered file on DR and remove all chanracters before any “/” 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
  • Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT) Oracle
  • find checksum of a file. Linux/Unix
  • Export Import with QUERY Oracle
  • Clean up Oracle
  • Virtual Indexes in Oracle Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • Free conference number from http://www.freeconference.com Oracle
  • initUOCIOTTO.ora Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme