Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Read CSV File using Python Python/PySpark
  • How can I tell if ASO is installed ? Oracle
  • Query to Generate aggregate on every 30 mins. Oracle
  • How to collect CPU usage on Linux using Shell script Linux/Unix
  • Load SPM baseline from AWR Oracle
  • SQL Server: How to see current transactions or requests SQL Server
  • Good link for LIO in Oracle ( Logical IOs) Oracle
  • Read CSV file using PySpark Python/PySpark
  • move_arch_files.ksh Linux/Unix
  • How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema) Oracle
  • Directory wise folder wise space usage Linux/Unix
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • Implementing Listener Security Oracle
  • Unix command for system configuration Linux/Unix
  • Monitor Long Running Job 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

  • fdisk -l explaination about Primary-Logical-Extended Partitions Linux/Unix
  • Important Solaris Commands Linux/Unix
  • shutdown linux Linux/Unix
  • Removing Blank lines from file using grep Linux/Unix
  • oracle 10g on linux Linux/Unix
  • cold backup scripts to copy locally 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 (392)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Ports used by Oracle Software Oracle
  • ORACLE_SID in sqlplus Oracle
  • Sample WW22 listener.ora Oracle
  • PLSQL Table Syntax 2 Oracle
  • Display the top 5 salaries for each department using single SQL Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • How to calculate PROCESSES parameter Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme