GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle  >  PL/SQL
Go To First  |  Previous Question  |  Next Question 
 PL/SQL  |  Question 169 of 241    Print  
What are the disadvantages of Packages and triggers??

  
Total Answers and Comments: 2 Last Update: November 19, 2007     Asked by: Pavan 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Kavitha
 

Disadvantages of Triggers
  
It is easy to view table relationships , constraints, indexes, stored procedure in database but triggers are difficult to view.
   Triggers execute invisible to client-application. They are not visible or can be traced in debugging code.
   It is hard to follow their logic as it they can be fired before or after the database insert/update happens.
   It is easy to forget about triggers and if there is no documentation it will be difficult to figure out for new developers for their existence.
   Triggers run every time when the database fields are updated and it is overhead on system. It makes system run slower.

Disadvantage of packages:
  
Unnecessary module loading.
   Unable to load large packages into memory.
   Unable to compile large packages.
   Lack of synonym support.
   No version control.



Above answer was rated as good by the following members:
radheshyambidada
August 20, 2007 14:09:39   #1  
hari_mech Member Since: August 2007   Contribution: 2    

RE: What are the disadvantages of Packages and trigger...
Disadvantages of Packages:
1. You cannot reference remote packaged variables directly or indirectly..
2. Inside package you cannot reference host variable..
3.
We are not able to grant a procedure in package..

Disadvantages of Trigger:
1. Writing more number of codes..


 
Is this answer useful? Yes | No
November 18, 2007 19:29:47   #2  
Kavitha        

RE: What are the disadvantages of Packages and trigger...

Disadvantages of Triggers

It is easy to view table relationships constraints indexes
stored procedure in database but triggers are difficult to view.

Triggers execute invisible to client-application. They are
not visible or can be traced in debugging code.

It is hard to follow their logic as it they can be fired
before or after the database insert/update happens.

It is easy to forget about triggers and if there is no
documentation it will be difficult to figure out for new developers for their
existence.

Triggers run every time when the database fields are updated
and it is overhead on system. It makes system run slower.


Disadvantage of packages:

Unnecessary module loading.

Unable to load large packages into memory.

Unable to compile large packages.

Lack of synonym support.

No version control.


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

 WHERE  CURRENT OF clause in an UPDATE,DELETE statement refers to the latest row fetched from a cursor. Database Triggers 
Latest Answer : When referencing the current row from an explicit cursor, use the WHERE CURRENT OF clause. This allows you to apply updates and deletes to the row currently being addressed, without the need to explicitly reference the ROWID. You must include the FOR ...

                Insert         Update          
Latest Answer : Triggers can be classified based on the below factors -(1) Trigger Event:INSERTUPDATEDELETE(2) Trigger Type:STATEMENT LevelROW Level(3) Trigger Timings:BEFOREAFTERINSTEAD OF ...

Is it possible to use Transaction control Statements such a ROLLBACK or COMMIT in Database Trigger ? Why ?
 It  is  not  possible.  As  triggers are defined for each table, if you use COMMIT   of    ROLLBACK  in  a  trigger,  it  

 The table columns are referred as OLD.column_name and NEW.column_name.For triggers related to INSERT only NEW.column_name values only available.For  triggers related to UPDATE only OLD.column_name 
Latest Answer : OLD and NEW are two virtual tables available during database trigger execution.UPDATE statement has access to  both old and new values.INSERT  statement has access only to new values. Old values are NULL for insert statement.DELETE ...

          I.  done using Database triggers.          ii. done using Integarity Constraints. I & ii. Exception 
Latest Answer : create table a ( b number, c number check (c >100) );create or replace trigger t1 before insert on a begindbms_output.put_line('this is before insert trigger'); end;create or replace trigger t2after insert on a begindbms_output.put_line('this ...

 In the standard package. Procedures, Functions & Packages ; 
Latest Answer : Predefined exceptions  are globally declared in standard package ...

The Same procedure name is repeated with parameters of different datatypes and  parameters  in  different  positions,  varying number of parameters is called overloading of 
Latest Answer : Definining two or more procedures with same name is called overloading of procedures. But they must differ in no or order or datatype family of formal arguments. ...

 The two parts of package are PACKAGE SPECIFICATION & PACKAGE BODY. Package Specification contains declarations that are global to the packages and local to the schema.Package  Body  
Latest Answer : A package usually has a specification and a body, stored separately in the database.The specification is the interface to your applications. It declares the types, variables, constants, exceptions, cursors, and subprograms available for use. The package ...

You have compiled some PL/SQL packages in your schema, and found aome errors in one procedure.how do you find which procedure produced the error?how do you find which section of the code produced the error and look at?
no answer 
Read Answers (9) | Asked by : Mohammad

Why Functions are used in oracle ?Can Functions Return more than 1 values?Why Procedures are used in oracle ?What are the Disadvantages of packages?What are the Global Variables in Packages?
Read Answers (18) | Asked by : sandeep kelkar


 Sponsored Links

 
Related Articles

Querying Data with Oracle XQuery

Querying Data with Oracle XQuery Starting with Oracle Database 10g Release 2 you can take advantage of a full featured native XQuery engine integrated with the database With Oracle XQuery you can accomplish various tasks involved in developing PHP Oracle XML applications operating on any kind of dat
 

Using Oracle XML DB Repository

Using Oracle XML DB Repository Another variation on accessing and manipulating XML content stored in Oracle database is provided by Oracle XML DB repository which is an essential component of Oracle XML DB mosgoogle NOTE Oracle XML DB repository also known as XML repository is a hierarchically organ
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

XML Processing in PHP and Oracle Applications

Processing XML in PHP Oracle Applications As mentioned there are two alternatives when it comes to performing XML processing in your PHP Oracle application You can perform any required XML processing using either PHP s XML extensions or PEAR XML packages or Oracle s XML features mosgoogle In the fol
 

PHP Oracle Web Development

PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax The book is written by Yuli Vaseliev a well known author of different web development and programming books PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax is a good starting b
 

Getting Started with Oracle and ODP.NET

ODP NET Developer’ s Guide by Jagadish Chatarji Pulakhandam Sunitha Paruchuri A practical guide for developers working with the Oracle Data Provider for NET and the Oracle Developer Tools for Visual Studio 2005 Application development with ODP NET Dealing with XML DB using ODP NET Oracle
 

PHP Oracle Web Development Review

PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax The book is written by Yuli Vaseliev a well known author of different web development and programming books The author is also an expert in open source technologies and SOA Service Oriented Architecture But besides
 

Step by Step Oracle PL-SQL Tutorial

This introductory tutorial to PL SQL will help you to understand the basic concepts of PL SQL Please review the following tutorials and practice the sample SQL Statements on your local Oracle Database Please note that you must learn these basic things before we actually start getting in to Advanced
 

SOA Disadvantages

SOA Disadvantages Service Oriented Architecture Disadvantages Applicability Service Oriented Architecture may not always be the best architectural choice because optimal utilization of SOA requires additional development and design attempts as well as infrastructure which translates into costs esc
 

Working with XML in Oracle

Working with XML in Oracle Introduction to XML Extensive markup language is the language which presents data in a human readable form of text The data can be anything from a purchase order or a stock quote or weather radar or a flight schedule it can be represented using XML XML is very similar to H
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape