Skip to main content

Posts

Oracle Developer Technical Interview Questions

Here i am putting all the questions i had faced during my interviews ... Interview at “3i InfoTech”, Chennai:  1) What is flow of execution of WHEN-NEW-FORM-INSTANCE, WHEN-NEW-BLOCK-INSTANCE, and WHEN-NEW-ITEM-INSTANCE? 2) What is PRE-QUERY and POST-QUERY? When these triggers will fire? 3) If the object library with some blocks and triggers if a form inherited that object library if u doesn’t need some trigger to be inherited the can u delete that trigger from that form? 4) How u can call a report from a form? Which property u has set in runtime? 5) If u create a relation between two blocks in the form what are all triggers it will create? 6) What is a ref cursor? 7) To call a form which type of built-ins u has to use? 8) What is the main difference between expand and variable property for a text item in reports. 9) In a report layout there is accepted and rejected fields and it has a parameter when u run the report based on the parameter the output should sh...
Recent posts

Find the default date format for your current session

For input and output of dates, every Oracle Database instance has a default date  format model  (also called a  mask ) that is set by the NLS_DATE_FORMAT  initialization parameter . (Initialization parameters determine the default settings for Oracle Database instances. Users who have appropriate permissions can change some of these parameters on a per-database, per-instance, or per-session basis.) When you first query the data stored in a table column with a DATE datatype, Oracle Database displays it with a format mask of either DD-MON-YYYY or DD-MON-RR, depending on which is set as the default.

Relationship cardinality

Can be of three types: one-to-many, one- to-one, or many-to-many. One-to-many (1:M).  The most common type of relationship cardinality is a 1:M relationship. Consider the relationship between the  EMPLOYEE  and  DEPARTMENT  tables shown in Figure 1. The common column is DEPARTMENT_ID (which is the primary key in the  DEPARTMENT  table and the foreign key in the  EMPLOYEE  table). One individual DEPARTMENT_ID can relate to many rows in the  EMPLOYEE  table. This represents the business rule that one department can relate to one or many employees (or even no employees) and that an employee is associated with only one department (or, in some cases, no department). This business rule can be restated as follows:  Each employee in a department may be in one and only one department, and that department must exist in the department table. One-to-one (1:1).  A 1:1 relationship between the  DEPARTMENT  table and t...

Oracle Reports - Changing the current mode (Confine or Flex)

To set or override Confine mode:  In the Paper Layout view, click  Confine On or Confine Off  in the toolbar to toggle the mode: On: child objects cannot be moved outside their enclosing parent objects. Off: child objects can be moved outside their enclosing parent objects. To set or override Flex mode:  In the Paper Layout view, click  Flex On or  Flex Off in the toolbar to toggle the mode: On: parent borders "stretch" when child objects are moved against them. The child object maintains the same distance from the side it moves against. Off: parent borders remain fixed when child objects are moved against them.

Difference Between CASE and DECODE?

– CASE is a expression – DECODE is a function - CASE expression is ANSI SQL Statement - DECODE is specific to Oracle Syntax - CASE syntax contains WHEN and THEN  - DECODE will not have this - CASE allow expressions or Scalar Sub query Expressions inside the CASE statement - DECODE won't allow expressions inside the DECODE function

INDEX Definition

In Oracle, an  INDEX  is a database object intended to improve the performance of  SELECT  queries. Indexes are created on table columns, and the index stores all the values of the column under index segments. If the  SELECT  query uses an indexed column in any of the  WHERE  conditions, the query uses the index segment instead of performing a full table scan. This results in enhanced query performance.

The Oracle Server

The Oracle Server consists of an Oracle instance and an Oracle database. Oracle instance : Is a means to access an Oracle database. Its Always opens one and only one database. An Oracle instance is the combination of the background processes and memory structures. The instance must be started to access the data in the database. Every time an instance is started, a system global area (SGA) is allocated and Oracle background processes are started.The SGA is a memory area used to store database information that is shared by database processes. Oracle database : An Oracle database is a collection of data that is treated as a unit. The general purpose of a database is to store and retrieve related information. The database has a logical structure and a physical structure. The physical structure of the database is the set of operating system files in the database.

Capabilities of SQL SELECT Statements

A SELECT statement retrieves information from the database. You can do the following: Projection: You can use the projection capability in SQL to choose the columns in a table that you want returned by your query. You can choose as few or as many columns of the table as you require. Selection: You can use the selection capability in SQL to choose the rows in a table that you want returned by a query. You can use various criteria to restrict the rows that you see. Joining: You can use the join capability in SQL to bring together data that is stored in different tables by creating a link between them. Here Link is nothing but joining tables.

SQL Statements

Data retrieval SELECT Data manipulation language (DML) INSERT UPDATE DELETE MERGE Data definition language (DDL) CREATE ALTER DROP RENAME TRUNCATE Transaction control COMMIT ROLLBACK SAVEPOINT Data control language (DCL) GRANT REVOKE