Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Composite Index creation tip from Vivek Oracle
  • runsql_once.ksh Linux/Unix
  • Ports used by Oracle Software Oracle
  • shutdown linux Linux/Unix
  • Gathering statistics with DBMS_STATS Oracle
  • replacing ^M character when passing files from Windows to Unix Linux/Unix
  • 556976.1 Oracle Clusterware: Components installed Oracle
  • Paste command syntax Linux/Unix
  • purge_trc.sh Linux/Unix
  • Oracle 10g for solaris 10 Oracle
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • Kill a session dynanically using execute immediate Oracle
  • Finding locked objects Oracle
  • scripts to take listener.log backup Linux/Unix
  • dbinv.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: Passing from Unix to PLSQL using bind variables
Next Post: How to know current SID

Related Posts

  • process id based files and processes Linux/Unix
  • good linux notes Linux/Unix
  • scripts to take listener.log backup Linux/Unix
  • Sort with ASCII order and Numeric Order Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • Guide to Linux System Command Mastery Linux/Unix

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • SQL_PLAN.sql for checking real execution plan Oracle
  • Specify the Rollback segment to use in Transaction Oracle
  • Space padding in korn shell Linux/Unix
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • DBMS_Shared_pool pinning triggers Oracle
  • SQL Server: How to see historical transactions SQL Server
  • Very clear article about oracle dataguard Oracle
  • Oracle Connections expire_time and firewall Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme