Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • shr1.sql for MTS or Shared server configuration Oracle
  • Oracle Connections expire_time and firewall Oracle
  • cold backup scripts to copy locally Linux/Unix
  • Looping for remote servers and find its database from oratab file. Linux/Unix
  • currwait.sql Oracle
  • configUOCIOTTO.ora Oracle
  • on IBM-AIX for display Linux/Unix
  • Changing the Global Database Name Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • sql_doing_fts.sql Oracle
  • checking redhat linux version Linux/Unix
  • fkwoind.sql fkwoindex.sql Oracle
  • useful dg links Oracle
  • Order by with ROWNUM Oracle
  • Good Oracle Architecture In Short and point to point 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

  • on IBM-AIX for display Linux/Unix
  • How does one SELECT a value from a table into a Unix variable? From SQL to Shell Linux/Unix
  • cif crons Linux/Unix
  • Paste command syntax Linux/Unix
  • Debugging Shell FIles Linux/Unix
  • check_copy_progress.sh 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
  • Validating ORACLE_SID againt oratab file. Linux/Unix
  • Oracle Identifiers Oracle
  • USER_TABLES.Freelists Oracle
  • find_cons.sql Oracle
  • Roles and Stored Object behaviour Oracle
  • All About oracle password and security from metalink Oracle
  • move_arch_files.ksh Linux/Unix
  • Oracle 11g Environment Setup Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme