Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • SQL_PLAN.sql for checking real execution plan Oracle
  • Rename Oracle Instance Name Oracle
  • Oracle Standby Database Library Index from Metalink Oracle
  • Insert cause enqueue locks Oracle
  • Committing distributed transaction using commit force Oracle
  • Pending Distributed Transations Oracle
  • Goog notes on X$ tables Oracle
  • TRUNCATE table and disabling referential constraints. Oracle
  • SAN Linux/Unix
  • get_vmstat.ksh for Solaris Oracle
  • oracle Dba site Oracle
  • Building Our Own Namespaces with “Create Context” Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • eplan.sql Oracle
  • move_arch_files.ksh /* Good One */ Linux/Unix

executing Function from SQLPLUS prompt

Posted on 21-May-2006 By Admin No Comments on executing Function from SQLPLUS prompt

SQL> variable komal number

SQL> begin

2 :komal := add_me(45,12);

3 end;

4 /

PL/SQL procedure successfully completed.

SQL> print komal

KOMAL

———-

57

SQL> variable tejal number;

SQL> execute :tejal := add_me(10,20)

PL/SQL procedure successfully completed.

SQL> print tejal

TEJAL

———-

30

SQL>

Oracle, SQL scripts

Post navigation

Previous Post: Parallel DML
Next Post: copying/removing directory with all its subdirectory

Related Posts

  • tblwopk.sql tablewopk.sql Oracle
  • Optimizer SORT Operations Oracle
  • DBMS_SQL for alter session. Oracle
  • get_vmstat_linux Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • find_cons.sql Oracle

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 (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • chk_space_SID.ksh Linux/Unix
  • Restoring a user’s original password 1051962.101 Oracle
  • SAN Linux/Unix
  • CTAS with LONG Column for 7.x and 8 and 8i Oracle
  • UNderstand and eliminate Latch contention. Oracle
  • Read CSV file using PySpark Python/PySpark
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • Another export with Query Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme