Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Formatter Explain plan Output 1 Oracle
  • secure crt settings Linux/Unix
  • How to start CRS manually Oracle
  • dbms_job.submit example Oracle
  • move_arch_files.ksh Linux/Unix
  • SQL Tracker by SID sqltrackerbysid.sql Oracle
  • TNSNAMES entries details Oracle
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME Oracle
  • Transfer SQL Profiles from One database to other database. Oracle
  • SCRIPT TO LIST RECURSIVE DEPENDENCY BETWEEN OBJECTS UTLDTREE.sql Oracle
  • How to calculate PROCESSES parameter Oracle
  • Mutating Table Error while using database trigger Oracle
  • sid_wise_cursor.sql find open cursor basis on username or SID Oracle
  • checking redhat linux version 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

  • CPU speed on Linux Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • on IBM-AIX for display Linux/Unix
  • Removing Blank lines from file using grep Linux/Unix
  • Establishing trusted relationship between dbmonitor( central monitoring) and monitoring targets. Linux/Unix
  • Removing first line 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)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • 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

  • 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
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Vivek’s egrep commands to trace problem. (on linux x86-64) Linux/Unix
  • VIvek Encryption Package and Its Usage Oracle
  • Zip and unzip with tar Linux/Unix
  • How to find where datafile is created dbf_info.sql Oracle
  • create database syntax Oracle
  • How to find password change date for user Oracle
  • purge_trc.sh Linux/Unix
  • Find long Running Transaction Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme