What are advantages fo Stored Procedures?

Answer Posted / nishi

1 security

Stored procedures can help enforce data security. You can restrict the database operations that users can perform by allowing them to access data only through procedures and functions. For example, you can grant users access to a procedure that updates a table, but not grant them access to the table itself. When a user invokes the procedure, the procedure executes with the privileges of the procedure's owner. Because users only have the privilege to execute the procedure and not the privileges to query, update, or delete from the underlying tables, users can invoke the procedure, but they cannot arbitrarily manipulate table
data in any other way.

2 performance

Reduces network traffic as compared to no. of individual SQL sent Since procedure's complied form is available in the database, no compilation step required to execute the code.If procedure is present in SGA then retrieval from disk is not required and execution can begin immediately.

3 Memory allocation

Since stored procedures take advantage of shared memory capabilities of ORACLE, only a single copy of the procedure needs to be loaded into memory for execution by multiple users.

4 productivity

Stored procedures increase development productivity. By designing applications around a common set of procedures, you can avoid redundant coding and increase your productivity.

5 Integrity

By developing all of your applications around a common group of procedures, you can reduce the likelihood of committing coding errors.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can db_files > maxdatafiles since db_files is for instance and the later is for database

2175


What is a private synonym?

1088


What is oracle analytical function?

531


WHAT IS THE DEFINITION OF DEFAULT CUSTOMER IN AR?

1705


Explain the use of analyse option in exp command.

590






Why packages are used in oracle?

542


How can I create database in oracle?

571


How to drop a stored procedure in oracle?

592


How to use attributes of the implicit cursor in oracle?

565


What is pragma autonomous transaction in oracle?

520


hey friends, What are the steps I can do to transfer the database from Microsoft Access 2003 to oracle10g (or SQL) Best regards

1567


What is SQL Tuning Advisor in Oracle?

635


can u send the sql dumps to sivakumarr1987@gmail.com plz help me

2600


What are named parameters?

616


Write a syntax for update query in oracle?

622