What are advantages fo Stored Procedures?



What are advantages fo Stored Procedures?..

Answer / 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

More Oracle General Interview Questions

What are the attributes of cursor?

0 Answers  


What is oracle datasource?

0 Answers  


How does one get the view definition of fixed views/tables?

0 Answers  


Can a parameter be passed to a cursor?

0 Answers  


what is the syntax of DELETE command?

8 Answers  






If any one has information regarding interview of NIC (National Informatics Centre),it would be of great help...

0 Answers   NIC,


How to write a query with an inner join in oracle?

0 Answers  


How to do clean up if create database failed?

0 Answers  


Does oracle charge for java?

0 Answers  


I have my backup RMAN script called backup_rman.sh. I am on the target database. My catalog username/password is rman/rman. My catalog db is called rman. How would you run this shell script from the O/S such that it would run as a background process?

1 Answers  


how to convert .db (extention) database file into .dmp (extention ) for oracle database ?

0 Answers   EDC,


What is archive log in Oracle?

0 Answers   MCN Solutions,


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)