Sample Questions Best site for GRE, LSAT, SAT, GMAT, TOEFL, CCNA, CCSA and interview sample questions  

Technical Sample Questions : C |  C++ |  Oracle |  Java | Unix |  Operating Systems |  Data Structure

Oracle Sample Questions ›› Oracle General Questions

Technical Sample Questions

Oracle Sample Questions : Oracle General Questions

  1. Differentiate between TRUNCATE and DELETE.

    Answer: The Delete command will log the data changes in the log file where as the truncate will simply remove the data without it.Hence Data removed by Delete command can be rolled back but not the data removed by TRUNCATE.Truncate is a DDL statement whereas DELETE is a DML statement.

  2. What is the maximum buffer size that can be specified using the DBMS_OUTPUT.ENABLE function?

    Answer: 1000000

  3. Can you use a commit statement within a database trigger?

    Answer: Yes, if you are using autonomous transactions in the Database triggers.

  4. What is an UTL_FILE? What are different procedures and functions associated with it?

    Answer: The UTL_FILE package lets your PL/SQL programs read and write operating system (OS) text files.It provides a restricted version of standard OS stream file input/output (I/O).
    Subprogram -Description
    FOPEN function-Opens a file for input or output with the default line size.
    IS_OPEN function -Determines if a file handle refers to an open file.
    FCLOSE procedure -Closes a file.
    FCLOSE_ALL procedure -Closes all open file handles.
    GET_LINE procedure -Reads a line of text from an open file.
    PUT procedure-Writes a line to a file.This does not append a line terminator.
    NEW_LINE procedure-Writes one or more OS-specific line terminators to a file.
    PUT_LINE procedure -Writes a line to a file.This appends an OS-specific line terminator.
    PUTF procedure -A PUT procedure with formatting.
    FFLUSH procedure-Physically writes all pending output to a file.
    FOPEN function -Opens a file with the maximum line size specified.

  5. Difference between database triggers and form triggers?

    Answer: Database triggers are fired whenever any database action like INSERT, UPATE, DELETE, LOGON LOGOFF etc occurs.Form triggers on the other hand are fired in response to any event that takes place while working with the forms, say like navigating from one field to another or one block to another and so on.

  6. What is OCI.What are its uses?

    Answer: OCI is Oracle Call Interface.When applications developers demand the most powerful interface to the Oracle Database Server, they call upon the Oracle Call Interface (OCI).OCI provides the most comprehensive access to all of the Oracle Database functionality.The newest performance, scalability, and security features appear first in the OCI API.If you write applications for the Oracle Database, you likely already depend on OCI.Some types of applications that depend upon OCI are:

    • PL/SQL applications executing SQL
    • C++ applications using OCCI
    • Java applications using the OCI-based JDBC driver
    • C applications using the ODBC driver
    • VB applications using the OLEDB driver
    • Pro*C applications
    • tributed SQL


    Answer: A precompiler is a tool that allows programmers to embed SQL statements in high-level source programs like C, C++, COBOL, etc.The precompiler accepts the source program as input, translates the embedded SQL statements into standard Oracle runtime library calls, and generates a modified source program that one can compile, link, and execute in the usual way.Examples are the Pro*C Precompiler for C, Pro*Cobol for Cobol, SQLJ for Java etc.

  8. What is syntax for dropping a procedure and a function?Are these operations possible?

    Answer: Drop Procedure/Function ; yes, if they are standalone procedures or functions.If they are a part of a package then one have to remove it from the package definition and body and recompile the package.

  9. Can a function take OUT parameters.If not why?

    Answer: yes, IN, OUT or IN OUT.

  10. Can the default values be assigned to actual parameters?

    Answer: Yes.In such case you don't need to specify any value and the actual parameter will take the default value provided in the function definition.

Next »

Oracle General Sample Question Number: 1-10|11-20|21-30|31-40|41-50|51-56
Sample Test Questions
GRE Sample Questions
CAT Sample Questions
GMAT Sample Questions
TOEFL Sample Questions
ACT Sample Questions
SAT Sample Questions
LSAT Sample Questions
PSAT Sample Questions
MCAT Sample Questions
PMP Sample Questions
GED Sample Questions
ECDL Sample Questions
DMV Sample Questions
CCNA Sample Questions
MCSE Sample Questions
Network+ Sample Questions
A+ Sample Questions
Technical Sample Questions
WASL Sample Questions
CISA Sample Questions

Other Sample Questions
Sample Interview Questions
Sample Teacher Interview Questions
Sample Citizenship Questions
Accuplacer Sample Questions
Science Bowl sample Questions
Driving Test Sample Questions
Sample Survey Questions Sample Essay Questions
Sample Behavioral Interview Questions

Copyright © 2004-2013, Best BSQ. All Rights Reserved.