Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • CTAS with LONG Column for 7.x and 8 and 8i Oracle
  • longtx.sql with the flag whether session is blocking any DML locks or not. Oracle
  • RMAN : Consistent Backup, Restore and Recovery using RMAN Oracle
  • Oracle Material from OTN Oracle
  • online_ts_bkup.sql Oracle
  • Order by with ROWNUM Oracle
  • useful dg links Oracle
  • Remove duplicate rows from table Oracle
  • Running select from V$ views from remote server Linux/Unix
  • How to remove blank lines using vi editor command Linux/Unix
  • SQL_PROFILE – I explaination Oracle
  • fuser to check who is using diretory Linux/Unix
  • DBMS_PROFILER for tuning PLSQL programs. Oracle
  • To find explain plan for a statement that occurred in past. Oracle
  • sess1.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

  • Oracle GoldenGate lag monitoring shell script Linux/Unix
  • Adding addidional hard drive and attach it to a linux box. Linux/Unix
  • copying/removing directory with all its subdirectory Linux/Unix
  • restarting network in linux Linux/Unix
  • Looping for remote servers and find its database from oratab file. 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
  • SCRIPT TO LIST RECURSIVE DEPENDENCY BETWEEN OBJECTS UTLDTREE.sql Oracle
  • First Entry in RAC Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • True Session Wait Activity in Oracle 10g Verygood Oracle
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • Rename Tablespace Oracle
  • setting prompt display with .profile Linux/Unix
  • mutex in Oracle 10.2.0.2 or Oracle 10g Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme