greens plsql question

Upload: ratheesh-kumar

Post on 07-Apr-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/6/2019 Greens Plsql Question

    1/3

    1) What is the starting "oracle error number"?

    2) What is meant by forward declaration in functions?

    3) Can Commit,Rollback ,Savepoint be used in Database Triggers?If yes than HOW?If no Why?With Reasons

    4) Can we declare a column having number data type and its scale is larger thanpricesion ex: column_name NUMBER (10,100), column_name NUMBAER(10,-84)

    5) Explain how procedures and functions are called in a PL/SQL block ?

    6) Explain the two type of Cursors ?

    7) Explain the usage of WHERE CURRENT OF clause in cursors ?

    8) Explian rowid,rownum?What are the pseduocolumns we have?

    # Give the structure of the function ?

    # Give the structure of the procedure ?

    # How many types of database triggers can be specified on a table ? What are they ?

    # How packaged procedures and functions are called from the following?a. Stored procedure or anonymous blockb. an application program such a PRC *C, PRO* COBOL c. SQL *PLUS

    # How to avoid using cursors? What to use instead of cursor and in what cases todo so?

    # How to debug the procedure ?

    # How to disable multiple triggers of a table at at a time?

    # How we can create a table in PL/SQL block. insert records into it??? is it possible by some procedure or function?? please give example...

    # How we can create a table through procedure ?

    # In a Distributed Database System Can we execute two queries simultaneously ? Justify ?

    # In pl/sql functions what is use of out parameter even though we have return statement.

    # Whar are Integarity Constraints?

    # Is it possible to use Transaction control Statements such a ROLLBACK or COMMITin Database Trigger ? Why ?

    # Name the tables where characteristics of Package, procedure and functions arestored ?

    # Open C1; Fetch c1 into Z; Commit; Fetch c1 in to Z; end;

    # State the advantage and disadvantage of Cursor?

    # State the difference between implicit and explicit cursor's.

  • 8/6/2019 Greens Plsql Question

    2/3

    # What are % TYPE and % ROWTYPE ? What are the advantages of using these over datatypes?

    # What are advantages fo Stored Procedures

    # What are the PL/SQL Statements used in cursor processing ?

    # What are the Restrictions on Cursor Variables?

    # What are the components of a PL/SQL Block ?

    # What are the cursor attributes used in PL/SQL ?

    # What are the datatypes a available in PL/SQL ?

    # What are the modes of parameters that can be passed to a procedure ?

    # What are the return values of functions SQLCODE and SQLERRM ?

    # What are the two parts of a procedure ?

    # What are two parts of package ?

    # What are two virtual tables available during database trigger execution ?

    # What happens if a procedure that updates a column of table X is called in a database trigger of the same table ?

    # What is Overloading of procedures ?

    # What is PL/SQL ?

    # What is PL/SQL table ?

    # What is Pragma EXECPTION_INIT ? Explain the usage ?

    # What is Raise_application_error ?

    # What is a cursor ? Why Cursor is required ?

    # What is a cursor for loop ?

    # What is a database trigger ? Name some usages of database trigger ?

    # What is a stored procedure ?

    # What is an Exception ? What are types of Exception ?

    # What is difference between % ROWTYPE and TYPE RECORD ?

    # What is difference between a Cursor declared in a procedure and Cursor declared in a package specification ?

    # What is difference between a PROCEDURE & FUNCTION ?

    # What is difference between stored procedures and application procedures,stored

    function and application function?

    # What is pl/sql?what are the advantages of pl/sql?

  • 8/6/2019 Greens Plsql Question

    3/3

    # What is ref cursor.

    # What is the basic structure of PL/SQL ?

    # What is trigger,cursor,functions in pl-sql and we need sample programs about it?

    # What will happen after commit statement ?

    # What will the Output for this Coding> Declare Cursor c1 is select * from emp FORUPDATE; Z c1%rowtype; Begin

    # Where the Pre_defined_exceptions are stored ?

    # Write the order of precedence for validation of a column in a table ? I. doneusing Database triggers. ii. done using