Hello everyone,I am an Oracle novice. When I googled, I am getting some confusions.What is the main difference between procedure vs Stored procedure in Oracle PL/SQL?
You may write pl/sql program running from client machine stored it's source in a file with run command from SQL*Plus. This program may contain blocks, functions and procedures, some of the procedures can be hold in other files (for sake of interchangeability and modularity). But your procedures and/or functions can be hold not only in files, but they can be also stored in the database itself. These are stored procedures/functions. Stored function can be called similar way as you call the function build (written) in your plsql program: declare function something(...) is end; begin ... a:=something( ); end; but if you write stored function (or procedure), you will be able to call it from any program (in case of granted access to them). You may use it even in interactive queries sometimes: select something( ) from dual.
Sign up for STechies