Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • ORA-8031 issue and solution if it is occuring due to truncate. Oracle
  • All About oracle password and security from metalink Oracle
  • Session_info.ksh Linux/Unix
  • create database syntax Oracle
  • Histogram Overview Oracle
  • Display the top 5 salaries for each department using single SQL Oracle
  • Space padding in korn shell Linux/Unix
  • sid_wise_sql.sql Oracle
  • adding new line after specific pattern using sed Linux/Unix
  • Oracle 11g Training on 29JAN1010 Oracle
  • Day to day MYSQL DBA operations (Compared with Oracle DBA) MYSQL
  • shr1.sql for MTS or Shared server configuration Oracle
  • Move WordPress site from one hosting service to other. PHP/MYSQL/Wordpress
  • grep multuple patterns Linux/Unix
  • avail.sh ( find filesystem spae usage) 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

  • run this before doing any dbchange pvm_pre_change.sql Oracle
  • Virtual Indexes in Oracle Oracle
  • logminer and my_lbu Oracle
  • Good link for LIO in Oracle ( Logical IOs) Oracle
  • create trigger syntax Oracle
  • Trace a SQL session from another session using ORADEBUG Oracle

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
  • arch_configUOCIOTTO.ora Oracle
  • Changing default shell Linux/Unix
  • check_copy_progress.sh Linux/Unix
  • plan10g.sql good1 Oracle
  • default permission on ~/.ssh/authorized_keys2 or authorized_keys Linux/Unix
  • Privilege to describe the table. Oracle
  • Renaming Oracle Instance Name Oracle
  • Oracle Statspack survival Guide Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme