You are on page 1of 85

Thursday, July 28, 2011 Oracle Forms Interview Questions & Answers - Oracle Forms FAQ- Part-4 1.

What is the difference between static and dynamic lov? The static lov contains the predetermined values while the dynamic lov contains values that come at run time 2. What are the different types of Record Groups? Query Record Groups NonQuery Record Groups State Record Groups 3.What are the different display styles of list items? Text_list Pop_list Combo box 4. How can you bypass the Oracle login screen? The first thing that the user sees when using runform is the Oracle logon prompt asking them for their username, password, and database to connect to. You can bypass this screen or customise it by displaying your own logon screen. Eg: -- ON-LOGON Trigger declare uname varchar2(10); pass varchar2(10); begin uname := 'username'; pass := 'password'; logon(uname, pass || '@connect_database'); end; Alternatively, edit the formsweb.cfg file located in ORACLE_HOME/forms/server creating a config like this: [my_cfg] userid=username/password@connect_database form=MY_FORM.fmx and after that, access the application like this: http://<>/forms/frmservlet?config=my_cfg 5. What are parameters? Parameters provide a simple mechanism for defining and setting the valuesof inputs that are required by a form at startup. Form parameters are variables of type char,number,date that you define at design time. 6. What are difference between post database commit and post-form commit? Post-form commit fires once during the post and commit transactions process, after the database commit occurs. The post-form-commit trigger fires after inserts, updates and deletes have been posted to the database but before the transactions have been finalized in the issuing the command. The post-database-commit trigger fires after oracle forms issues the commit to finalized transactions. 7. How Can you Maximize/ Minimize a Window in Forms? On MS-Windows, Forms run inside a Windows Multiple-Document Interface (MDI) window. You can use SET_WINDOW_PROPERTY on the window called FORMS_MDI_WINDOW to resize this MDI (or any other named) window. Examples: set_window_property(FORMS_MDI_WINDOW, WINDOW_STATE, MINIMIZE); set_window_property(FORMS_MDI_WINDOW, POSITION, 7, 15); set_window_property('my_window_name', WINDOW_STATE, MAXIMIZE); 8. What are the different modals of windows? Modalless windows Modal windows 9. What are modal windows? Modal windows are usually used as dialogs, and have restricted functionality compared to modelless windows. On some platforms for example operators cannot resize, scroll or iconify a modal window. 10. Can an Forms FMX be moved from one operating system to another? No, FMX files are operating system dependent. On the other hand, FMB's are not. So, you can just copy your FMB files to the new operating system and regenerate them.

11. How can you iterate through items and records in a specified block? You can use NEXT_FIELD to iterate (loop) through items in a specific block and NEXT_RECORD to iterate through records in a block. Code example: OriPos := TO_NUMBER(:System.Trigger_Record); First_Record; LOOP -- do processing IF (:System.Last_Record = 'TRUE') THEN Go_Record(OriPos); EXIT; ELSE Next_Record; END IF; END LOOP 12. How does one suppress or customize error messages in Forms? One can either set the message level using the system variable SYSTEM.MESSAGE_LEVEL or trap errors using the ONERROR or ON-MESSAGE triggers. MESSAGE_LEVEL: Set to 0, 5, 10, 15, 20, 25 to suppress all messages with severity below this level. The default level is 0. Messages with a level higher than 25 cannot be suppressed. See the "Forms Error Messages Manual" for more details about the various MESSAGE_LEVEL's: 0 - Default value. All types of messages from the other levels of severity. 5 - Reaffirms an obvious condition. 10 - Indicates that the operator has made a procedural mistake. 15 - Declares that the operator is attempting to perform a function for which the form is not designed. 20 - Indicates a condition where the operator cannot continue an intended action due to a problem with a trigger or another outstanding condition. 25 - Indicates a condition that could result in the form performing incorrectly. >25 - Indicates a message severity level that you cannot suppress via the SYSTEM.MESSAGE_LEVEL system variable. Examples: :SYSTEM.MESSAGE_LEVEL := '25'; COMMIT; :SYSTEM.MESSAGE_LEVEL := '0'; /* For suppressing FRM-40100: At first record. */ :SYSTEM.MESSAGE_LEVEL := '5'; FIRST_RECORD; :SYSTEM.MESSAGE_LEVEL := '0'; /* For suppressing FRM-40350: Query caused no records to be retrieved. */ :SYSTEM.MESSAGE_LEVEL := '5'; EXECUTE_QUERY; :SYSTEM.MESSAGE_LEVEL := '0'; 13. Forms dont allow to use restricted built-ins. What can be done to use these built-ins. How to get around the "can't use a restricted built-in in built-in XXX" message: 1. Create a TIMER at the point where you want the navigation to occur. Eg. create_timer('TIMER_X', 5, NO_REPEAT); 2. Code a WHEN-TIMER-EXPIRED trigger to handle the navigation DECLARE tm_name VARCHAR2(20); BEGIN tm_name := Get_Application_Property(TIMER_NAME); IF tm_name = 'TIMER_X' THEN Go_Item('ITEM_X'); END IF; END; Dirty but effective (didn't Oracle promise to fix this feature?). 14. Can one change the mouse pointer in Forms? The SET_APPLICATION_PROPERTY build-in in Oracle Forms allows one to change the mouse pointer. Example: SET_APPLICATION_PROPERTY(CURSOR_STYLE, BUSY); The following cursor styles are supported: BUSY - Specifies a busy symbol CROSSHAIR - Specifies a crosshair symbol

DEFAULT - Specifies an arrow symbol HELP - Specifies a help symbol/ Displayed as a hand in WebForms INSERTION - Specifies an insertion symbol HAND - Hand cursor pointer for Developer 6.0 and above 15. Why doesn't my messages show on the screen? Regardless of whether you call the MESSAGE() built-in with ACKNOWLEDGE, NO_ACKNOWLEDGE, or with no mode specification at all, your message may or may not be displayed. This is because messages are displayed asynchronously. To display messages immediately, use the SYNCHRONIZE build-in: message('...'); synchronize; This can also be used to execute a query while the user is looking at the results of a previous quer 1. What is use of APPCORE library? The APPCORE Contains packages & procedures for forms to support menu, toolbar and other standard behaviours. 2. What is use of APPDAYPK library? The APPDAYPK library contains the packages that control the Oracle Applications Calendar feature. The calendar (or the date picker) is a utility that oracle apps provide to pick the dates for a date type field. 3. What is use of FNDSQF library? It contains the routines for handling Message Dictionary, felxfields, prpfiles, concurrent processing, mulicurrency, WHO etc. 4. Which are the Following are some CLOSE_THIS_WINDOW, CLOSE_WINDOW, EXPORT, FOLDER_ACTION, KEY-COMMIT, KEY-EDIT, KEY-EXIT, KEY-HELP, LAST-RECORD, MENU_TO_APPCORE, STANDARD_ATTACHMENTS, WHEN-WINDOW-CLOSED, WHEN-FORM-NAVIGATE, ZOOM . Oracle forms triggers of the form triggers which that should must not not be be modified? modified.

5. Where does the FMB files(Forms source code) reside in Server? or What is the location of .FMB files in a server? $AU_TOP/forms/US 6. What is template form? Template Form is a form that is to be used for building a new form and this form references all the standard libraries like(FNDSQF,APPCORE,APPCORE2,APPDAYPK,CUSTOM) which are used to build a form as per the oracle standards. This Template form has been provided by Oracle. Navigation for this Template form is:

$AU_TOP/FORMS/US/TEMPLATE.fmb 7. What is use of custom library?

Custom.pll is used to implement any new pl/sql code that you would need to write in customizing forms. 8. Name the FMB has to be 9. ftp ftp add Add Assign And add What the the form directories where you have to placed on $AU_TOP/forms/US and FMX steps (.fmx) you to folder copy your Fmb and has to be placed in the to Fmx files? custom top! Form? server. location) function menu/submenu menu/submenu the user.

are the form (.fmb) to

have to follow $CUSTOM_TOP/forms/US (not to function to responsibility to this to mandatory but

register a folder in are kept in this

$AU_TOP/form/US form

fmb's a

this responsibility this

10. Why are views used in the data blocks of a standard form instead of mapping directly into the base tables? Because base tables have huge amount of data due to which if we work directly on the base tables, it will hit the performance. Also, views are simplified versions of the base tables which are easy to understand and hence to work upon. 1. What are OPEN_FORM, CALL_FORM, NEW_FORM? What are the differences between them? CALL_FORM : It calls the other form. but parent remains active, when called form completes the operation , it releases lock and control goes back to the calling form. When you call a form, Oracle Forms issues a savepoint for the called form. If the CLEAR_FORM function causes a rollback when the called form is current, Oracle Forms rolls back uncommitted changes to this savepoint. OPEN_FORM : When you call a form, Oracle Forms issues a savepoint for the called form. If the CLEAR_FORM function causes a rollback when the called form is current, Oracle Forms rolls back uncommitted changes to this savepoint. NEW_FORM : Exits the current form and enters the indicated form. The calling form is terminated as the parent form. If the calling form had been called by a higher form, Oracle Forms keeps the higher call active and treats it as a call to the new form. Oracle Forms releases memory (such as database cursors) that the terminated form was using. Oracle Forms runs the new form with the same Runform options as the parent form. If the parent form was a called form, Oracle Forms runs the new form with the same options as the parent form. 2. What is a visual attribute in Oracle Forms? Visual attributes are the font, color, and pattern properties that you set for form and menu objects that appear in your application's interface. 3.How many types of Master and Detail relationships are there in Oracle The various Master and Detail Relationships in oracle forms a) NonIsolated = The Master cannot be deleted when a child is b) Isolated = The Master can be deleted when the child is c) Cascading = The child gets deleted when the Master is Forms? are: existing existing deleted.

4. What are the triggers related to master-Details Forms. Following are three triggers which are created automatically as soon as we create a mater Details Block on oracle Forms. ON-CHECK-DELETE-MASTER ON-CLEAR-DETAILS ON-POPULATE-DETAILS 5. What Below are (a) (b) (c) (d) (e) 6. What are the the 5 different canvas Horizontal Vertical Tab are the types of Blocks in canvas types Stacked Content types available available in Tool in Oracle forms? Oracle Forms canvas canvas bar Toolbar canvas Oracle Forms?

Base Control

Block

Table block - non-database items

are

placed

based here

like

on Calculation

database table/views values,buttons,checkbox etc.

7. What are the The various Block a) Immediate Default Setting: The Detail b) Deffered with Auto Query: Oracle Forms defer block. c) Deffered with No Auto Query: The operator

Block Coordination Properties? Coordination Properties are records are shown when the Master Record are shown. fetching the detail records until the operator navigates to the detail must navigate to the detail block and explicitly execute a query

Various

8. What are the different windows events activated at runtimes? WHEN-WINDOW-ACTIVATED WHEN-WINDOW-CLOSED WHEN-WINDOW-DEACTIVATED WHEN-WINDOW-RESIZED Within these triggers, you can examine the built in system variable system. event_window to determine the name of the window for which the trigger fired. 9. So How are Visual Attributes, for Object groups we have Property Property Classes and Classes and Object Groups for property classes we have visual related? attributes.

10. What are the trigger associated with image items? When-image-activated fires when the operators double clicks on an image itemwhen-image-pressed fires when an operator clicks or double clicks on an image item. 1. What is trigger associated with the timer? When-timer-expired. 2. When Yes a form is invoked with call_form, Does oracle forms issues a save point?

3. What is new_form built-in? When one form invokes another form by executing new_form oracle form exits the first form and releases its memory before loading the new form calling new form completely replace the first with the second. If there are changes pending in the first form, the operator will be prompted to save them before the new form is loaded. 4. Can you execute a DDL statements from Oracle Forms? No. DDL (Data Definition Language) commands like CREATE, DROP and ALTER are not directly supported from Forms because your Oracle Forms are not suppose to manipulate the database structure. A statement like CREATE TABLE X (A DATE); will result in error: Encountered the symbol "CREATE" which is a reserved word. However, you can use the FORMS_DDL built-in to execute DDL statements. Eg: FORMS_DDL('CREATE TABLE X (A DATE)'); 5. Can you execute dynamic SQL from Oracle Forms? Yes, use the FORMS_DDL built-in or call the DBMS_SQL database package from Forms. Eg: FORMS_DDL('INSERT INTO X VALUES (' || col_list || ')'); Just note that FORMS_DDL will force an implicit COMMIT and may de-synchronize the Oracle Forms COMMIT mechanism. 6. Form Form What A: B: is the difference Insert into FORMS_DDL('insert between the following statements? emp(ename) values ('Scott '); into emp(ename) values('||''Scott')'); manually for Form A

User have to commit the form Once the Form B statement executes, it will be implicitly commited.

7. What are the vbx controls? Vbx control provide a simple method of building and enhancing user interfaces. The controls can use to obtain user inputs and display program outputs.vbx control where originally develop as extensions for the ms visual basic environments and include such items as sliders, rides and knobs. 8. What is the "LOV of Validation" Property of an item? What is the use of it? When LOV for Validation is set to True, Oracle Forms compares the current value of the text item to the values in the first column displayed in the LOV. Whenever the validation event occurs. If the value in the text item matches one of the values in the first column of the LOV, validation succeeds, the LOV is not displayed, and processing continues normally. If the value in the text item does not match one of the values in the first column of the LOV, Oracle Forms displays the LOV and uses the text item value as the search criteria to automatically reduce the list.

9. How do you use the same lov for 2 columns? We can use the same lov for 2 columns by passing the return values in global values and using the global values in the code 10. What are the difference between lov & list item? Lov is a property where as list item is an item. A list item can have only one column, lov can have one or more columns. COMMON QUESTIONS OF PL/SQL & CMM 1. What are the features of OOPS used in PL/SQL ? Ans: Inheritance Reusability Abstract Datatype Method Overloading 2. What are the built in packages available in PL/SQL ? Ans: DBMS_OUTPUT, DBMS_SQL, DBMS_STANDARDS, DBMS_UTL, DBMS_LOCK, DBMS_LOB, DBMS_JAVA, UTL_FILE, 3. Diff. In Function and Procedures? Ans: 1. Function must return a value where as procedure does not. 2. Function can be used in SQL statement where as Procedure does not. 4. What is the structure of the PL/SQL block? Ans: <> (Optional) Variable & Cursor Declaration <> Executable Statements <> (Optional) Exception handling End; 5. Can we use label for anonymous PL/SQL block? Ans: Yes, use it in <> structure 6. What are the exceptions in PL/SQL Block? Ans: CURSOR_ALREADY_OPEN, DUP_VAL_ON_INDEX, INVALID_CURSOR, INVALID_NUMBER, NO_DATA_FOUND, PROGRAM_ERROR, VALUE_ERROR, ZERO_DIVIDE 7. What are the types of Variable binding? Ans: Two types of binding 1. Early Binding (at compile time) 2. Late Binding (Runtime) 8. What are the PL/SQL table and nested table ? Ans: 9. What are the Scalar type of variables? Ans: Number, Char, Varchar2, rowed, urowid, raw, long, longraw, blob, clob, bfile, Nchar, nvarchar2, date 10. What are the user defined data types ? Ans: 1. Structured Types Object Types 2. Collection Types Varray Nested Tables 3. REFS (To object Types) 11. How can we use label in PL/SQL block? Ans: We can declare a label in <> format & can pass control to it using GOTO statement. 12. How can we know that proc has passed a value ? Ans: We can check it using IN or OUT or INOUT parameter. 13. What is the difference between REF Cursor & PL/SQL Table. Ans: REF Cursor is like Pointer whereas PL/SQL Table is like ARRAY. REF Cursor can pass to a procedure/function as a parameter directly whereas in PL/SQL table one record has to be passed each time. 14.

Below is the list of Questions related to PL/SQL. The complexity level of these questions are intermediate. 1.What are the valid values for system variable MODE? 2.:OLD and :NEW variables cannot be applicable in which triggers? 3.When we go for Procedures and when we go for Functions 4.In sql*plus,Some update statement is given without commit i am exit the form whether the records would be updated or not(If I given Autocommit to OFF) 5.While in Enter-Query mode,which method is used to call the different form. 6.Write the query to display the max. salary of the employee who is in the department which will have max. employees. 7.In Block Level, Key-Next-Item trigger is there and in Item Level When-Validate-Item trigger is present.What will be the hierarchy of trigger firing? 8.To which clause is used in Lexical Parameter. 9.Block was created on Complex View(i.e Join more than one table).User wants to insert into two joined tables.what to do? 10.In the Form,After entering new records I am giving Exit_form with no_commit and no_rollback mode,What will happen to the new record. 11.Whether INSERT_RECORD is mandatory in KEY-INSERT Trigger? 12.Whether it is possible to pass record group to query?If yes means through which parameter we can pass.If No means why is not possible. 13.What is the use of the Stacked Canvas? 14.In reports,I want to Change the field value based on some condition? What is built in used for this purpose in SRW package? 15.What is difference between Call_Form,Open_Form and New_Form. 16.Can we have List Item or Display Item in the Tree Block? 17.How to find whether the Object is there or not.Which Built in is used. 18.Write a Query to find the dept in which minimum 5 employees has to be there.Give the efficient Query? 19.What is difference between Decode and Case Statement? 20.What is the difference between :SYSTEM.CURRENT_ITEM and :SYSTEM.CURSOR_ITEM? 21. begin select 'Oracle' into local_variable from dual 1 =2 if sql%notfound then dbms_output.put_line('in Sql not found'); end if; exception when no_data_found then dbms_output.put_line('in Exception'); end; what will be output of this query and why is it so? at is an SQL *FORMS? Oracle Forms is part of Oracle's Internet Developer Suite. Its earlier versions were called SQL*Forms............... Read answer

How do you control the constraints in forms? This can be done by selecting the Use Constrain Property to ON............ Read answer When will ON-VALIDATE-FIELD trigger executed? ON-VALIDATE-FIELD triggers are used for field validation. It fires when the field validation status is New or changed............... Read answer What is the difference between system.current_field and system.cursor_field? The only difference between these two is that System.current_field gives name of the field and................ Read answer What are dynamic reports? How will you create them? Following steps should be followed to build a Dynamic Report: Create a temporary table first.............. Read answer Difference between Oracle Forms and Apps Forms. Oracle FormsOracle Forms renders applications using metadata stored in an .fmx file. It runs client-side PL/SQL................. Read answer Sequence of firing triggers in forms The following sequence should be used to fire triggers when a form opens: 1. Pre-Form 2. PreBlock.............. Read answer What is a record Group? What are different types of record group? A record group is an oracle forms data structure that has a column/row framework similar to a database table................ Read answer Also read Difference between open_form and call_form Open_form opens the indicated form. Call_form not just opens the indicated form, but also keeps the parent form alive............... Oracle Form What is an SQL *FORMS?, How do you control the constraints in forms?, When will ON-VALIDATE-FIELD trigger executed?, What is the difference between system.current_field and system.cursor_field?............... Use of Roles in oracle Roles in Oracle can be used to grant privileges to a specific group of users for security. The database manager is usually responsible for granting privileges to a Role.......... Oracle large objects What is large object in oracle? Explain its purposes, Explain types of large objects in oracle, i.e. BLOB, LLOB,NCLOB and BFILE............

Oracle Security Explain the security features in Oracle, What are roles? How can we implement roles?, What is user Account in Oracle database?, What is a trace file and how is it created?, What are Tablespace Quota and default tablespace?............

1.

What are the various types of reports ? * Tabular, Master Detail, Form, Form Letter, Mailing Labels, Matrix 2. What is the difference between Master - Detail Report and report created by breaks ? * Master/detail data models are very similar to break report data models. However, a master/detail data model is created using two queries, each of which owns at least one group, and a data link. A break report data model is created using one query and at least two groups. While reports based on a single query are usually more efficient than reports based on multiple queries, sometimes the structure of your data tables may require you to link multiple tables. 3. What are Anchors ? * An anchor defines the relative position of an object to the object to which it is anchored. Anchors are used to determine the vertical and horizontal positioning of a child object relative to its parent. Since the size of some layout objects may change when the report runs (and data is actually fetched), you need anchors to define where you want objects to appear relative to one another. 4. What are the various types of anchors in Reports ? A There are two types of anchors in Oracle Reports: * implicit (anchors that Oracle Reports creates when a report is run) * explicit (anchors you create) Implicit Anchors : At runtime, Oracle Reports generates an implicit anchor for each layout object that does not already have an explicit anchor. It determines for each layout object which objects, if any, can overwrite it, then creates an anchor from the layout object to the closest object that can overwrite it. This prevents the object from being overwritten. The implicit anchor functionality saves you from having to define the positioning of each object. Implicit anchors are not visible in the Layout editor. However, you can specify that the Object Navigator display anchoring information using the Object Navigator Options dialog. Explicit Anchors : Create an anchor in the Layout editor by clicking on the Anchor tool, dragging from one edge of the child to the one of the parent's edges, then specifying the anchor's properties in its property sheet. Any anchor you create for an object will override its implicit anchoring. Explicit anchors are always visible in the Layout editor unless you specify otherwise via the Layout Options dialog 9. What are the various report triggers ? What is their order of firing ? A There are eight report triggers. Of these there are five global triggers called the Report Triggers. They are fired in the following order : * Before Parameter Form * After Parameter Form * Before Report * Between Pages * After Report Apart from the above Five Report Triggers, there are three other types of triggers : * Validation Triggers * Format Triggers * Action Triggers Before Form : Fires before the Runtime Parameter Form is displayed. From this trigger, you can access and change the values of parameters, PL/SQL global variables, and report-level columns. (Note : If the Runtime Parameter Form is suppressed, this trigger still fires. Consequently, you can use this trigger for validation of command line parameters). After Form : Fires after the Runtime Parameter Form is displayed. From this trigger, you can access parameters and check their values. This trigger can also be used to change parameter values or, if an error occurs, return to the Runtime Parameter Form. Columns from the data model are not accessible from this trigger. (Note : If the Runtime Parameter Form is suppressed, the After Form trigger still fires. Consequently, you can use this trigger for validation of command line parameters or other data). Before Report : Fires before the report is executed but after queries are parsed and data is fetched. Between Pages : Fires before each page of the report is formatted, except the very first page. This trigger can

be used for customized page formatting. (Note : In the Previewer, this trigger only fires the first time that you go to a page. If you subsequently return to the page, the trigger does not fire again.) After Report : Fires after you exit the Previewer, or after report output is sent to a specified destination, such as a file, a printer, or an Oracle*Mail userid. This trigger can be used to clean up any initial processing that was done, such as deleting tables. Note, however, that this trigger always fires, whether or not your report completed successfully. Validation Triggers : Validation Triggers are PL/SQL functions that are executed when parameter values are specified on the command line and when you accept the Runtime Parameter Form. (Notice that this means each Validation Trigger may fire twice when you execute the report). Validation Triggers are also used to validate the Initial Value of the parameter in the Parameter property sheet. Format Triggers : Format Triggers are PL/SQL functions executed before the object is formatted. The trigger can be used to dynamically change the formatting attributes of the object. Action Triggers : Action Triggers are PL/SQL procedures executed when a button is selected in the Previewer. The trigger can be used to dynamically call another report (drill down) or execute any other PL/SQL. 19. What are Placeholder Columns ? A A placeholder is a "dummy" column for which you can conditionally set the datatype and value via PL/SQL or a user exit. Placeholder columns are useful when you want to selectively populate a column with a value (e.g., each time the nth record is fetched, or each time a record is fetched containing a specific value, etc.). 20. What are the various Module Types in Reports ? A You can build three types of modules with Oracle Reports: * external queries, which are ANSI-standard SQL SELECT statements that can be referenced by modules * external PL/SQL libraries, which are collections of PL/SQL source code that can be referenced by modules * reports, which are collections of report-level objects and references to external queries and PL/SQL libraries (optional) that can be referenced by modules 22. What are Physical and Logical pages in Reports ? A A report page can have any length and any width. Because printer pages may be smaller or larger than your report's "page," the concept of physical and logical pages is used. Physical Page : A physical page (or panel) is the size of a page that will be output by your printer. Logical Page : A logical page is the size of one page of your actual report; one logical page may be made up of multiple physical pages. The Previewer displays the logical pages of your report output, one at a time. 23. What are the various page layout sections in Oracle Reports ? A A report has three sections : the report header pages, report body/margin pages, and report trailer pages. 27. What are various types of parameters ? A There are two types of parameters: * default (called system parameters) * user-created (called bind and lexical parameters) 30. How do you reference parameters and columns in reports ? A In two ways : * As bind references * As lexical references 31. What are Bind Referencing and Lexical Referencing ? * Bind Referencing : Bind references are used to replace a single value in SQL or PL/SQL, such as a character string, number, or date. Use bind reference when you want the parameter to substitute only one value at runtime. Specifically, bind references may be used to replace expressions in SELECT, WHERE, GROUP BY, ORDER BY, HAVING, CONNECT BY, and START WITH clauses of queries. Lexical Referencing : Lexical references are placeholders for text that you embed in a SELECT statement. Use Lexical reference when you want the parameter to substitute multiple values at runtime. You can use lexical references to replace the clauses appearing after SELECT, FROM, WHERE, GROUP BY, ORDER BY, HAVING, CONNECT BY, and START WITH. 33. Can you create a group without any break columns ? * No.

35. Types of Matrix report ? * 1. Single query 2. Multi query 3. Nested Query 4. Matrix Break 37. In Reports, how can you print one record per page in the output ? * Set the Maximum records per page property of the Repeating frame to 1. 38. How do you print a Report 2.5 report in character mode ? * Set MODE = 'Character' in the Parameter form 39. What are widow lines ? * Widow lines are the minimum number of lines of the boilerplate text or field that should appear on the logical page where the text starts to print. If the number of lines specified for this property cannot fit on the logical page, then all lines of the boilerplate are moved to the next page. 40. What are widow records ? * Widow records are the minimum number of instances (records) that should appear on the logical page where the repeating frame starts to print. If the number of instances specified for this property cannot fit on the logical page where the repeating frame is initially triggered to print, then the repeating frame will start formatting on the next page. 41. What is 'page protect' property for objects ? * Page protect property for an object indicates whether to try to keep the entire object and its contents on the same logical page. Checking Page Protect means that if the contents of the object cannot fit on the current logical page, the object and all of its contents will be moved to the next logical page. 42. What is the 'Print Condition Type' property ? * 'Print Condition Type' property specifies the frequency with which you want the object to appear in the report. The Print Condition Type options indicate the logical page(s) on which the object should be triggered to print with regard to the Print Condition Object. 44. What are the various values of the 'Print Condition Type' property in Reports ? * The various values are : All : All means the object and all of its contents will be printed on all logical pages of the Print Condition Object. The object will be repeated on any overflow pages of the Print Condition Object and will be truncated at the logical page boundary, if necessary. All but First : All but First means the object and all of its contents will be printed on all logical pages of the Print Condition Object except the first logical page. The object will be formatted only on overflow pages of the Print Condition Object and will be truncated at the logical page boundary, if necessary. All but Last : All but Last means the object and all of its contents will be printed on all logical pages of the Print Condition Object except the last logical page. The object will be repeated on any overflow pages of the Print Condition Object except the last one and will be truncated at the logical page boundary, if necessary. *Default : Default means that Oracle Reports will use object positioning to set the Print Condition Type to either *First or *Last for you. (The asterisk indicates that Oracle Reports specified the setting for you.) First : First means that the object and all of its contents will only be printed on the first logical page of the Print Condition Object. The object will be formatted and will overflow to subsequent pages, if necessary. Last : Last means that the object and all of its contents will only be printed on the last logical page of the Print Condition Object. The object will be formatted after the Print Condition Object and will overflow to subsequent pages, if necessary. * For repeating frames, the print condition type property refers to every logical page of every instance (record) of the repeating frame. If you specify a Print Condition Type setting of All and a Print Condition Object setting of Enclosing Object for a field F_1, it prints in every instance of repeating frame R_1 on every logical page. If you specify a Print Condition Type setting of All but First in the above case , then the field will be printed only in those cases where a single instance (row or record) of the repeating frame spans across more than one page (which is normally not the case since many records are there in a single logical page and not one record in many pages). In such a case the field will be printed on all subsequent pages of this instance except the first page. 43. What is the 'Print Condition Object' property ? * 'Print Condition Object' property specifies the object on which to base the Print Condition Type of the current object. For example, if you specify a Print Condition Type of All and a Print Condition Object of Anchoring Object, the current object will be triggered to print on every logical page on which its anchoring object (parent

object) appears. 45. What are the various values of the 'Print Condition Object' property in Reports ? * The various values are : Anchoring Object : Anchoring Object is the parent object to which the current object is implicitly or explicitly anchored. Enclosing Object : Enclosing Object is the object that encloses the current object. 46. What is the horizontal of vertical sizing property of objects ? * Horizontal of vertical sizing property specifies how the horizontal or vertical size of the object may change at runtime to accommodate the objects or data within it. 47. What are the various values of the horizontal of vertical sizing property ? * The various values are : Contract : Contract means the vertical size of the object decreases, if the formatted objects or data within it are short enough, but it cannot increase to a height greater than that shown in the editor. Note : Truncation of data may occur. (You can think of this option as meaning "only contract, do not expand.") Expand : Expand means the vertical size of the object increases, if the formatted objects or data within it are tall enough, but it cannot decrease to a height less than that shown in the editor. (You can think of this option as meaning "only expand, do not contract.") Fixed : Fixed means the height of the object is the same on each logical page, regardless of the size of the objects or data within it. Note : Truncation of data may occur. The height of the object is defined to be its height in the editor. Variable : Variable means the object may expand or contract vertically to accommodate the objects or data within it (with no extra space), which means the height shown in the editor has no effect on the object's height at runtime. 51. How do you display a message in reports ? * SRW.Message 54. What are the various values of 'Print Panel Order' property of report ? * The various values are : Across/Down : Across/Down means the physical pages of the report body will print left-to-right then top-tobottom. Down/Across : Down/Across means the physical pages of the report body will print top-to-bottom and then leftto-right. 55. What is the 'Print Direction' Property of Repeating frames ? * 'Print Direction' Property specifies the direction in which successive instances of the repeating frame appear. 56. What are the various values of the 'Print Direction' Property of Repeating frames ? * The various values are : Across : Across means that each instance of the repeating frame subsequent to the first instance is printed to the right of the previous instance across the logical page. Across/Down : Across/Down means that each instance of the repeating frame subsequent to the first instance is printed to the right of the previous instance until an entire instance cannot fit between the previous instance and the right margin of the logical page. At that time, Oracle Reports prints the instance below the left-most instance on the logical page, provided there is enough vertical space left on the logical page for the instance to print completely. Down : Down means that each instance of the repeating frame subsequent to the first instance is printed below the previous instance down the logical page. Down/Across : Down/Across means that each instance of the repeating frame subsequent to the first instance is printed below the previous instance until an entire instance cannot fit inside the bottom margin of the logical page. At that time, Oracle Reports prints the instance to the right of the topmost instance on the logical page, provided there is enough horizontal space left on the logical page for the instance to print completely. 59. What is the 'Keep with Anchoring Object' object property ? * 'Keep with Anchoring Object' object property indicates whether to keep an object and the object to which it is anchored on the same logical page. Checking Keep with Anchoring Object means that if the object, its anchoring object, or both cannot fit on the logical page, they will be moved to the next logical page.

60. What is 'Page Break Before' object property ? * 'Page Break Before' object property indicates that you want the object to be formatted on the page after the page on which it is initially triggered to print. Note that this does not necessarily mean that all the objects below the object with Page Break Before will move to the next page. 61. What is 'Page Break After' object property ? * 'Page Break After' object property indicates that you want all children of the object to be moved to the next page. In other words, any object that is a child object of an anchor (implicit or explicit) to this object will be treated as if it has Page Break Before set. Note that this does not necessarily mean that all the objects below the object with Page Break After will move to the next page. 63. What is the 'Break Order' property of columns ? * The 'Break Order' property is the order in which to display the column's values. This property applies only to columns that identify distinct values of user-created groups (i.e., break groups). The order of column values in a default group is determined by the ORDER BY clause of the query. For column values in user-created groups, however, you must use Break Order to specify how to order the break column's values. 64. What are the various types of links ? * The Data Link tool draws a link between a parent group and a child query. Creating a link is a drag and drop operation. Clicking and dragging from one column to another creates a link between those two columns (column to column link). Clicking and dragging from one query to another creates all possible links between columns selected by the queries based on database constraints (query to query link). Clicking and dragging between two groups creates a group-to-group link (i.e., a link with no columns). 65. Name some of the procedures in the SRW package ? * SRW.Message, SRW.User_Exit, SRW.Do_Sql, SRW.Run_Report 66. What are the various report layout regions ? * There are three report regions in the Layout editor : * header * body/margin * trailer Header : The report header pages appear once at the beginning of each report on a set of separate pages. They can contain text, graphics, data, and computations. Body/Margin : The body/margin pages appear between the header and trailer pages, and are the bulk of the report. Each physical page in this section consists of a body and a margin. The body contains the majority of the report's text, graphics, data, and computations. A top and bottom margin appear on each page, until all data within the body has been formatted. A margin may include text, graphics, page numbers, page totals, and grand totals. The default margin size is one half inch each for the top and bottom margins and zero for the left and right margins. Trailer : The report trailer pages appear once at the end of each report on a set of separate pages. They can contain text, graphics, data, and computations. 70. What is more efficient : Maximum rows or Group Filter ? * Maximum Rows in the Query property sheet restricts the number of records fetched by the query. A group filter determines which records to include and which records to exclude. Since Maximum Rows actually restricts the amount of data retrieved, it is faster than a group filter in most cases. If you are using a Filter of Last or Conditional, Oracle Reports must retrieve all of the records in the group before applying the filter criteria. As a result, Maximum Rows or a Filter of First is faster. OMMON QUESTIONS OF PL/SQL & CMM 1. What are the features of OOPS used in PL/SQL ? Ans: Inheritance Reusability Abstract Datatype Method Overloading 2. What are the built in packages available in PL/SQL ? Ans: DBMS_OUTPUT, DBMS_SQL, DBMS_STANDARDS, DBMS_UTL, DBMS_LOCK, DBMS_LOB, DBMS_JAVA, UTL_FILE, 3. Diff. In Function and Procedures? Ans: 1. Function must return a value where as procedure does not. 2. Function can be used in SQL statement where as Procedure does not.

4. What is the structure of the PL/SQL block? Ans: <> (Optional) Variable & Cursor Declaration <> Executable Statements <> (Optional) Exception handling End; 5. Can we use label for anonymous PL/SQL block? Ans: Yes, use it in <> structure 6. What are the exceptions in PL/SQL Block? Ans: CURSOR_ALREADY_OPEN, DUP_VAL_ON_INDEX, INVALID_CURSOR, INVALID_NUMBER, NO_DATA_FOUND, PROGRAM_ERROR, VALUE_ERROR, ZERO_DIVIDE 7. What are the types of Variable binding? Ans: Two types of binding 1. Early Binding (at compile time) 2. Late Binding (Runtime) 8. What are the PL/SQL table and nested table ? Ans: 9. What are the Scalar type of variables? Ans: Number, Char, Varchar2, rowed, urowid, raw, long, longraw, blob, clob, bfile, Nchar, nvarchar2, date 10. What are the user defined data types ? Ans: 1. Structured Types Object Types 2. Collection Types Varray Nested Tables 3. REFS (To object Types) 11. How can we use label in PL/SQL block? Ans: We can declare a label in <> format & can pass control to it using GOTO statement. 12. How can we know that proc has passed a value ? Ans: We can check it using IN or OUT or INOUT parameter. 13. What is the difference between REF Cursor & PL/SQL Table. Ans: REF Cursor is like Pointer whereas PL/SQL Table is like ARRAY. REF Cursor can pass to a procedure/function as a parameter directly whereas in PL/SQL table one record has to be passed each time. 14.

Thursday, July 21, 2011 Oracle Reports Interview Questions & Answers Part-1

Questions:

Interview Questions on Oracle Reports Part-1 Oracle Reports - Technical Interview Questions & Answers D2K Technical Interview Questions And Answers Part-1

1. How many different layouts are available in Reports? Ans: There are eight different layout formats: 1. Tabular 2. Form Like 3. Form Letter 4. Mailing Label 5. Group Left 6. Group Above 7. Matrix 8. Matrix with group 2. How many different triggers are available in Report? Ans: There are five types of triggers in report 6i 1) Before report trigger 2) After report trigger 3) Before Parameter trigger 4) After parameter trigger 5) Between pages trigger 3.What is the Firing sequence of report trigger? Ans: The reports triggers are fired in the following sequence. *Before * * * * After Report Parameter After Before Between Parameter Form Form Report Pages

4. What is the difference between After Parameter Trigger and Before Report Trigger? Ans: After parameter Trigger: It will fire after the parameter form is displayed.here we can do validation on parameter values. Before Report Trigger: It will fire before the report is executed and after the query is parsed and date is fetched. 5. What is the Format Trigger? Ans: Format Trigger is a PL/SQL function. This trigger is going to fire before an object is printed in report output. it return boolean-true then go to print -false then don't print. 6. What happens when Flex mode is on ? When flex mode is on, reports automatically resizes the parent when the child is resized. 7. What happens when confine mode on ? When confine mode is on, the object cannot be moved outside its parent in the layout. 8. What is a lexical parameter?

Lexical Parameter is used to replace the where, order by conditions at run time. 9. What are bind variables? Bind variables are used in oracle reports for replacing the single parameter in the select statement. 10. What is the minimum number of groups required for a matrix report? The minimum of groups required for a matrix report are 4 11. What is the use of an Anchor in Reports? Anchor is used to make fixed distance between two objects in Reports Layout. 12. What is the difference between Frame and Repeating Frame? Frames are used to surround other objects and protect them from being overwritten or pushed by other objects. For example a frame might be used to surround all objects owned by a group to surround column headings or to surround summaries. When you default the layout for a report Report Builder creates frames around report objects as needed; you can also create a frame manually in the Layout Model view. Repeating frames surround all of the fields that are created for a groups columns. The repeating frame prints (is fired) once for each record of the group. When you default the layout for a report Report Builder creates repeating frames around fields as needed; you can also create a repeating frame manually in the Layout Model view. 13. What are different types of column in reports? There are three types of columns in Oracle report: 1) Placeholder Column: Placeholder column is used to store a value for a variable. 2) Formula Column: Used For doing mathematical calculations and returning one value 3) Summary Column: The summary columns perform aggregate functions such as SUM, COUNT, MAX, MIN, AVG, and the like. 14. Can u have more than one layout in report? It is possible to have more than one layout in a report by using the additional layout option in the layout editor. Thursday, July 21, 2011 Oracle Reports Interview Questions & Answers Part -2

Questions:

Interview Questions on Oracle Reports Part-2 Oracle Reports Technical Interview Questions & Answers Part-2 D2K Technical Interview Questions And Answers Part-2

1.What are the various types of reports ? There are 8 Types of reports in oracle report. 1.Tabular 2. Form Like 3. Form Letter 4. Mailing Label 5. Group Left 6. Group Above 7. Matrix 8. Matrix with group

2. What are Anchors in Oracle Reports? An anchor defines the relative position of an object to the object to which it is anchored. Anchors are used to determine the vertical and horizontal positioning of a child object relative to its parent. Since the size of some layout objects may change when the report runs (and data is actually fetched), you need anchors to define where you want objects to appear relative to one another.

3. What are the various types of anchors in Reports ? A * There implicit are (anchors two that types Oracle of Reports anchors creates when in a Oracle report is Reports: run)

* explicit (anchors you create) 4. What is an Implicit Anchor? Implicit Anchors : At runtime, Oracle Reports generates an implicit anchor for each layout object that does not already have an explicit anchor. It determines for each layout object which objects, if any, can overwrite it, then creates an anchor from the layout object to the closest object that can overwrite it. This prevents the object from being overwritten. The implicit anchor functionality saves you from having to define the positioning of each object. Implicit anchors are not visible in the Layout editor. However, you can specify that the Object Navigator display anchoring information using the Object Navigator Options dialog.

5. What is an Explicit Anchor? Explicit Anchors : Create an anchor in the Layout editor by clicking on the Anchor tool, dragging from one edge of the child to the one of the parent's edges, then specifying the anchor's properties in its property sheet. Any anchor you create for an object will override its implicit anchoring. Explicit anchors are always visible in the Layout editor unless you specify otherwise via the Layout Options dialog 6. What are the various report triggers ? What is their order of firing ? A There are eight report triggers. Of these there are five global triggers called the Report Triggers. They are fired in the following order : * Before Parameter Form * After Parameter Form * Before Report * Between Pages * After Report 7. Apart from the global report triggers what are the other triggers used in Oracle Reports? Apart from the Five Global Report Triggers, there are three other types of triggers : * * * Validation Format Action Triggers Triggers Triggers

8. What is Before Form Trigger? What is the importance of Before Form Trigger? Before Form : It Fires before the Runtime Parameter Form is displayed. Using this trigger, you can access and change the values of parameters, PL/SQL global variables, and report-level columns. (Note : If the Runtime Parameter Form is suppressed, this trigger still fires. Consequently, you can use this trigger for validation of command line parameters). 9. What is After Form Trigger? What is the importance of After Form Trigger?

After Form : It Fires after the Runtime Parameter Form is displayed. Using this trigger, you can access parameters and check their values. This trigger can also be used to change parameter values or, if an error occurs, return to the Runtime Parameter Form. Columns from the data model are not accessible from this trigger. (Note : If the Runtime Parameter Form is suppressed, the After Form trigger still fires. Consequently, you can use this trigger for validation of command line parameters or other data). 10. What is Before Report Trigger? What is the importance of Before Report Trigger? Before Report : Fires before the report is executed but after queries are parsed and data is fetched. 11. What is Between Pages Trigger? What is the importance of Between Pages Trigger?

Between Pages : Fires before each page of the report is formatted, except the very first page. This trigger can be used for customized page formatting. (Note : In the Previewer, this trigger only fires the first time that you go to a page. If you subsequently return to the page, the trigger does not fire again.) 12. What is After Report Trigger? What is the importance of After Report Trigger? After Report : Fires after you exit the Previewer, or after report output is sent to a specified destination, such as a file, a printer, or an Oracle*Mail userid. This trigger can be used to clean up any initial processing that was done, such as deleting tables. Note, however, that this trigger always fires, whether or not your report completed successfully. 13. What is Validation Trigger? What is the importance of Validation Trigger? Validation Triggers : Validation Triggers are PL/SQL functions that are executed when parameter values are specified on the command line and when you accept the Runtime Parameter Form. (Notice that this means each Validation Trigger may fire twice when you execute the report). Validation Triggers are also used to validate the Initial Value of the parameter in the Parameter property sheet. 14. What is Format Trigger? What is the importance of Format Trigger?

Format Triggers : Format Triggers are PL/SQL functions executed before the object is formatted. The trigger can be used to dynamically change the formatting attributes of the object. 15. What is Action Trigger? What is the importance of Action Trigger? Action Triggers : Action Triggers are PL/SQL procedures executed when a button is selected in the Previewer. The trigger can be used to dynamically call another report (drill down) or execute any other PL/SQL. Thursday, July 21, 2011 Oracle Reports Interview Questions & Answers Part -3 Questions:

Interview Questions on Oracle Reports Part-3 Oracle Reports Technical Interview Questions & Answers Part-3 D2K Technical Interview Questions And Answers Part-3

1. What are Placeholder Columns ? A placeholder is a "dummy" column for which you can conditionally set the datatype and value via PL/SQL or a user exit. Placeholder columns are useful when you want to selectively populate a column with a value (e.g., each time the nth record is fetched, or each time a record is fetched containing a specific value, etc.).

2. What are the various Module Types in Reports ? A You can build three types of modules with Oracle Reports:

* external queries, which are ANSI-standard SQL SELECT statements that can be referenced by modules * external PL/SQL libraries, which are collections of PL/SQL source code that can be referenced by modules * reports, which are collections of report-level objects and references to external queries and PL/SQL libraries (optional) that can be referenced by modules

3. What are Physical and Logical pages in Reports ? A report page can have any length and any width. Because printer pages may be smaller or larger than your report's "page," the concept of physical and logical pages is used.

Physical Page : A physical page (or panel) is the size of a page that will be output by your printer. Logical Page : A logical page is the size of one page of your actual report; one logical page may be made up of multiple physical pages. The Previewer displays the logical pages of your report output, one at a time. 4. What are the various page layout sections in Oracle Reports ? A report has three sections :

the report header pages, report body/margin pages, and report trailer pages.

5. What are various types of parameters ? There are two types of parameters:

default (system parameters) user-created (bind and lexical parameters)

6. How do you reference parameters and columns in reports ? There are two ways to reference a parameter in Oracle reports: * As bind references * As lexical references 7. What are Bind Referencing and Lexical Referencing ? Bind Referencing : Bind references are used to replace a single value in SQL or PL/SQL, such as a character string, number, or date. Use bind reference when you want the parameter to substitute only one value at runtime. Specifically, bind references may be used to replace expressions in SELECT, WHERE, GROUP BY, ORDER BY, HAVING, CONNECT BY, and START WITH clauses of queries.

Lexical Referencing : Lexical references are placeholders for text that you embed in a SELECT statement. Use Lexical reference when you want the parameter to substitute multiple values at runtime. You can use lexical references to

replace the clauses appearing after SELECT, FROM, WHERE, GROUP BY, ORDER BY, HAVING, CONNECT BY, and START WITH. 8. What are the Types of Matrix report ? 1. 2. 3. 4. Single query Multi query Nested Query Matrix Break

9. What are widow lines ? Widow lines are the minimum number of lines of the boilerplate text or field that should appear on the logical page where the text starts to print. If the number of lines specified for this property cannot fit on the logical page, then all lines of the boilerplate are moved to the next page. 10. What are widow records ? Widow records are the minimum number of instances (records) that should appear on the logical page where the repeating frame starts to print. If the number of instances specified for this property cannot fit on the logical page where the repeating frame is initially triggered to print, then the repeating frame will start formatting on the next page. 11. What is 'page protect' property for objects ? Page protect property for an object indicates whether to try to keep the entire object and its contents on the same logical page. Checking Page Protect means that if the contents of the object cannot fit on the current logical page, the object and all of its contents will be moved to the next logical page. 12. What is the 'Print Condition Type' property ? 'Print Condition Type' property specifies the frequency with which you want the object to appear in the report. The Print Condition Type options indicate the logical page(s) on which the object should be triggered to print with regard to the Print Condition Object. 13. What is the 'Print Condition Object' property ? 'Print Condition Object' property specifies the object on which to base the Print Condition Type of the current object. For example, if you specify a Print Condition Type of All and a Print Condition Object of Anchoring Object, the current object will be triggered to print on every logical page on which its anchoring object (parent object) appears. 14. What are the various values of the 'Print Condition Object' property in Reports ? The various values are :

Anchoring Object : Anchoring Object is the parent object to which the current object is implicitly or explicitly anchored. Enclosing Object : Enclosing Object is the object that encloses the current object.

15. What is the horizontal of vertical sizing property of objects ? Horizontal of vertical sizing property specifies how the horizontal or vertical size of the object may change at runtime to accommodate the objects or data within it. Friday, July 22, 2011 Oracle Reports Interview Questions & Answers Part-6

Questions:

Interview Questions on Oracle Reports Part-6 Oracle Reports Technical Interview Questions & Answers Part-6 D2K Technical Interview Questions And Answers Part-6

1.What is the difference between Conditional Formatting and format trigger? Both provide the similar functionality. They are used to format the output based on particular conditions. Format triggers provide a wide variety of options when compared to conditional formatting(GUI). In format Triggers we have the option to write PL/SQL code where as conditional formatting is GUI based which provide limited options. 2.What is Flex mode and Confine mode? Confine mode On: child objects cannot be moved outside their enclosing parent objects. Off: child objects can be moved outside their enclosing parent objects. Flex mode: On: parent borders "stretch" when child objects are moved against them. 4. What is Page Break? To limit the records per page. 5. What is Page Protector property in oracle reports ? The Page Protect property indicates whether to try to keep the entire object and its contents on the same logical page. Setting Page Protect to Yes means that if the contents of the object cannot fit on the current logical page, the object and all of its contents will be moved to the next logical page. Ex: if you set yes, the object information prints another page. 6.How do you mail the output of a report? You can use following methogs to mail the output of a report. 1. Use UTL_SMTP (refer to Scripts tab for more details) 2. Use MAILX called in a shell script registered as a concurrent program with parameters File name and path. 7. What is Print Direction? The Print Direction property is the direction in which successive instances of the repeating frame appear. 8. What is Vertical and Horizental Elasticity The Horizontal Elasticity property is determins how the horizontal size of the object will change at runtime to accommodate the objects or data within it: 9. What is Formula Column? A formula column performs a user-defined computation on another column(s) data, including placeholder columns. 10. How do you display only one record on each page in a report? Give Page Break in the Format trigger of the repeating frame. 11. What is Summary columns? A summary column performs a computation on another column's data. Using the Report Wizard or Data Wizard, you can create the following summaries: sum, average, count, minimum, maximum, % total. You can also create a summary column manually in the Data Model view, and use the Property Palette to create the following additional summaries: first, last, standard deviation, variance. 12. What is Boilerplate? Boilerplate is any text or graphics that appear in a report every time it is run. Report Builder will create one boilerplate object for each label selected in the Report Wizard (it is named B_ Column name). Also, one boilerplate object is sometimes created for each report summary. A boilerplate object is owned by the object surrounding it, unless otherwise noted.

13. What is Data Link When we join multiple queries in a report the join condition is stored in the data link section Data links relates the results of multiple queries. A data link (or parent-child relationship) causes the child query to be executed once for each instance of its parent group. When you create a data link in the Data Model view of your report, Report Builder constructs a clause (as specified in the link's Property Palette) that will be added to the child query's SELECT statement at runtime. You can view the SELECT statements for the individual parent and child queries in the Builder, but can not view the SELECT statement that includes the clause created by the data link you define. 14. What is Break Column? We can break a column through data model , it is Displayed once for a group 15. How can you grey out/ highlight /hide some records based on conditions in a report? You can use Conditional formatting to achieve it. 16. How do u call Report from form? Use RUN_PRODUCT and RUN_REPORT_OBJECT to call a report from Oracle Forms. 17. What is Report Bursting?The capability of producing multiple copies of a given report or portion of it in different output formats is referred to as report bursting. Reports bursting offers you to deliver a single report to multiple destinations simultaneously. It offers you to create multiple reports out of one single report model. For example, you can create just one employee report for all your departments and send an email with a PDF-attachment containing the report to each manager. Each report would contain only the relevant department information for that particular manager. Using the reports bursting functionality will reduce the overhead since you will only have a single data fetch and report format. 18. What is Additional Layout? Additional layout is created for two different formats using same query and groups without modifying default layout created by report wizard., we can use both layouts according to user requirement. 19. How do you write the report output to Excel file or text file? You can use the following methods to write the output of oracle reports to Excel or text file. 1.Use TEXT_IO package 2.Use SPOOL in After Report trigger 3.Use UTL Package Labels

AOL Concepts (4) Concurrent Programs (5) Customer Interface (1) EBS Tutorials (10) Handy Scripts (40) Key Tables In Oracle Apps (5) Metadata Tables (2) OAF Interview (9) OAF Tutorials (11) Oracle AP (8) Oracle APIs (1) Oracle Application Object Library (19) Oracle Applications (6) Oracle Apps Interviews (15) Oracle Apps Tips (2) Oracle Apps Tutorials (69) Oracle AR (18) Oracle Assets (1) Oracle Database Key Tables (3) Oracle EBS (5) Oracle Financials (2)

Oracle Forms And Reports (16) Oracle Forms Interview Questions (4) Oracle Forms Tutorials (5) Oracle GL (3) Oracle Human Resources (1) Oracle Inventory (1) Oracle Payroll (1) Oracle POTutorials (1) Oracle Purchasing (4) Oracle Reports Interview (6) Oracle System Administrator (1) Oracle Workflow (1) Organizations (1) Performance Tuning (1) PL/SQL Interview Questions (8) PL/SQL Scripts (32) PL/SQL Tutorials (35) Procedures And Functions (2) Shell Script (1) SQL And PL/SQL Interview (35) SQL Interview (44) SQL Scripts (31) SQL Tutorials (35) Unix/Linux Commands (2) Value Sets (1)

Recent Posts Friday, July 22, 2011 Oracle Reports Interview Questions & Answers Part-4 Questions:

Interview Questions on Oracle Reports Part-4 Oracle Reports Technical Interview Questions & Answers Part-4 D2K Technical Interview Questions And Answers Part-4

1.What are the various values of the horizontal of vertical sizing property ? The various values are : Contract : Contract means the vertical size of the object decreases, if the formatted objects or data within it are short enough, but it cannot increase to a height greater than that shown in the editor. Note : Truncation of data may occur. (You can think of this option as meaning "only contract, do not expand.") Expand : Expand means the vertical size of the object increases, if the formatted objects or data within it are tall enough, but it cannot decrease to a height less than that shown in the editor. (You can think of this option as meaning "only expand, do not contract.") Fixed : Fixed means the height of the object is the same on each logical page, regardless of the size of the objects or data within it. Note : Truncation of data may occur. The height of the object is defined to be its height in the editor. Variable : Variable means the object may expand or contract vertically to accommodate the objects or data within it (with no extra space), which means the height shown in the editor has no effect on the object's height at runtime. 2. How do you display a message in reports ? Using SRW.Message

3. What are the various values of 'Print Panel Order' property of report ? The various values are :

Across/Down : Across/Down means the physical pages of the report body will print left-to-right then top-tobottom. Down/Across : Down/Across means the physical pages of the report body will print top-to-bottom and then leftto-right.

4. What is the 'Print Direction' Property of Repeating frames ? 'Print Direction' Property specifies the direction in which successive instances of the repeating frame appear. 5. What are the various values of the 'Print Direction' Property of Repeating frames ? Following are the various values :

Across : Across means that each instance of the repeating frame subsequent to the first instance is printed to the right of the previous instance across the logical page. Across/Down : Across/Down means that each instance of the repeating frame subsequent to the first instance is printed to the right of the previous instance until an entire instance cannot fit between the previous instance and the right margin of the logical page. At that time, Oracle Reports prints the instance below the left-most instance on the logical page, provided there is enough vertical space left on the logical page for the instance to print completely. Down : Down means that each instance of the repeating frame subsequent to the first instance is printed below the previous instance down the logical page. Down/Across : Down/Across means that each instance of the repeating frame subsequent to the first instance is printed below the previous instance until an entire instance cannot fit inside the bottom margin of the logical page. At that time, Oracle Reports prints the instance to the right of the topmost instance on the logical page, provided there is enough horizontal space left on the logical page for the instance to print completely.

6. What is the 'Keep with Anchoring Object' object property ? 'Keep with Anchoring Object' object property indicates whether to keep an object and the object to which it is anchored on the same logical page. Checking Keep with Anchoring Object means that if the object, its anchoring object, or both cannot fit on the logical page, they will be moved to the next logical page. 7. What is 'Page Break Before' object property ? 'Page Break Before' object property indicates that you want the object to be formatted on the page after the page on which it is initially triggered to print. Note that this does not necessarily mean that all the objects below the object with Page Break Before will move to the next page. 8. What is 'Page Break After' object property ? 'Page Break After' object property indicates that you want all children of the object to be moved to the next page. In other words, any object that is a child object of an anchor (implicit or explicit) to this object will be treated as if it has Page Break Before set. Note that this does not necessarily mean that all the objects below the object with Page Break After will move to the next page. 9. What is the 'Break Order' property of columns ? The 'Break Order' property is the order in which to display the column's values. This property applies only to columns that identify distinct values of user-created groups (i.e., break groups). The order of column values in a default group is determined by the ORDER BY clause of the query. For column values in user-created groups, however, you must use Break Order to specify how to order the break column's values. 10. What are the various types of links ? The Data Link tool draws a link between a parent group and a child query. Creating a link is a drag and drop operation. Clicking and dragging from one column to another creates a link between those two columns (column to column link).

Clicking and dragging from one query to another creates all possible links between columns selected by the queries based on database constraints (query to query link). Clicking and dragging between two groups creates a group-togroup link (i.e., a link with no columns). 11. Name some of the procedures in the SRW package ? * SRW.Message, SRW.User_Exit, SRW.Do_Sql, SRW.Run_Report 12. What are the various report layout regions ? There are three report regions in the Layout editor :

header body/margin trailer

13. In Brief Describe the various report layout regions? Header : The report header pages appear once at the beginning of each report on a set of separate pages. They can contain text, graphics, data, and computations. Body/Margin : The body/margin pages appear between the header and trailer pages, and are the bulk of the report. Each physical page in this section consists of a body and a margin. The body contains the majority of the report's text, graphics, data, and computations. A top and bottom margin appear on each page, until all data within the body has been formatted. A margin may include text, graphics, page numbers, page totals, and grand totals. The default margin size is one half inch each for the top and bottom margins and zero for the left and right margins. Trailer : The report trailer pages appear once at the end of each report on a set of separate pages. They can contain text, graphics, data, and computations. 14. What is more efficient : Maximum rows or Group Filter ? Maximum Rows in the Query property sheet restricts the number of records fetched by the query. A group filter determines which records to include and which records to exclude. Since Maximum Rows actually restricts the amount of data retrieved, it is faster than a group filter in most cases. If you are using a Filter of Last or Conditional, Oracle Reports must retrieve all of the records in the group before applying the filter criteria. As a result, Maximum Rows or a Filter of First is faster. Friday, July 22, 2011 Oracle Reports Interview Questions & Answers Part-5

Questions:

Interview Questions on Oracle Reports Part-5 Oracle Reports Technical Interview Questions & Answers Part-5 D2K Technical Interview Questions And Answers Part-5

1. What is SRW Package? The Report builder Built in package know as SRW Package (Sql Report Writer) This package extends reports, Control report execution, output message at runtime, Initialize layout fields, Perform DDL statements used to create or Drop temporary table, Call User Exit, to format width of the columns, to page break the column, to set the colors Ex: SRW.DO_SQL, Its like DDL command, we can create table, views, etc. 2. What is SRW package and some procedures in SRW? It is the standard reports package and it has many procedures like USER_EXITS, DO_SQL, RUN_REPORT, MESSAGE,TRACE, BREAK, SET_ATTR. 3. Where in reports do you set the context information (like org_id)? SRW.INIT

4. What is User Parameters? Parameter, which is created by user. For to restrict values with where clause in select statement. We can use Lovs in user parameter with static and Dynamic Select Statement. 5. What is System Parameters? These are built-in parameters provided by Oracle corporation. BACKGROUND: Is whether the report should run in the foreground or the background. COPIES Is the number of report copies that should be made when the report is printed. CURRENCY Is the symbol for the currency indicator (e.g., " $?). DECIMAL Is the symbol for the decimal indicator (e.g., "."). DESFORMAT Is the definition of the output device's format (e.g., landscape mode for a printer). This parameter is used when running a report in a character-mode environment, and when sending a bitmap report to a file (e.g. to create PDF or HTML output). DESNAME Is the name of the output device (e.g., the file name, printer's name, mail userid). DESTYPE Is the type of device to which to send the report output (screen, file, mail, printer, or Screen using PostScript format). MODE Is whether the report should run in character mode or bitmap. ORIENTATION Is the print direction for the report (landscape, portrait, default). PRINTJOB Is whether the Print Job dialog box should appear before the report is run. THOUSANDS Is the symbol for the thousand's indicator (e.g., ","). 6. How can you print barcodes in oracle reports? By installing the Barcode Font and using the Chart field in the Layout. 7. What are Format triggers? Format triggers enable you to modify the display of objects dynamically at run time or to suppress display altogether for Headings, repeating frames, field and boilerplate object. Example: i) To format the max (Sal) for particular department. ii) To format the Sal column with a Dollar ($) prefix. iii) To format Date formats.etc 8. What is Data Model? Data Model is logical group of the Report Objects through query and Data model tools. Once query is compiled report automatically generates group. The queries build the groups and then Groups are used to populate the report. The only function of queries in report is to create the groups. The Report Editor's Data Model view enables you to define and modify the data model objects for a report. 9. How do you call a concurrent program or another report from a report? We can use FND_SUBMIT.REQUEST() to call a concurrent program from a report. Use SRW.RUN_REPORT() to run a report directly without registering it as a concurrent program. 10. What is Layout model? Layout Model is to physically arrange Data model group objects on the Report. The Report Editor's Layout Model view enables you to define and modify the layout model objects for a report. In this view, objects and their property settings are represented symbolically to highlight their types and relationships. 11. What is Live Previewer? The Live Previewer is a work area in which you can preview your report and manipulate the actual or live data at the same time. In the Live Previewer you can customize reports interactively, meaning that you can see the results immediately as you make each change. To activate buttons in the Live Previewer, you must display the report output in the Runtime Previewer. In order to edit your report, such as changing column size, move columns, align columns insert page numbers, edit text, change colors, change fonts set format masks, insert field the Live Previewer must be in Flex Mode. 12. What is Parameter Form The Parameter Form view is the work area in which you define the format of the report's Runtime Parameter Form. To do this, you define and modify parameter form objects (fields and boilerplate).When you run a report, Report Builder uses the Parameter Form view as a template for the Runtime Parameter Form. Fields and boilerplate appear in the Runtime Parameter Form exactly as they appear in the Parameter Form view. If you do not define a Runtime Parameter Form in the Parameter Form view, Report Builder displays a default Parameter Form for you at runtime. 13. What are user exits in reports and name a few? User exits provided a way to pass control from Reports Builder to a program you have written, which performs some function, and then returns control to Reports Builder. Ex: SRW.DO_SQL, SRW.USER_EXIT. 14. What is Group? Groups are created to organize the columns in your report. When you create a query, Report Builder automatically creates a group that contains the columns selected by the query. You create additional groups to produce break levels in the report, either manually or by using the Report Wizard to create a group above or group left report.

15. What is Template? Templates define common characteristics and objects that you want to apply to multiple reports. For example, you can define a template that includes the company logo and sets fonts and colors for selected areas of a report. Creation of Template: In Report editor , open a existing Template or Create a new Template and save it concerned directory. Then Edit CAGPREFS.ORA File , and Specify which type of Template are u going to develop. Ex. Tabular, form, matrix Then give your developed template *.tdf file name. Develop Report with Newly developed Template. 16. How can you display one record per page? Set Repeating Frame Properties : Maximum records per page=1 And it will override group filter property. 18. What are the Non_query fields? Following are the non_query fields: Aggregated Information, Calculated information, A string Function 19. How Can I highlight and change all the format masks and print conditions of a bunch of fields all at once? If you want to highlight a bunch of objects then right click and select "properties", Oracle gives you a stacked set of the individual properties forms for each of the selected objects. While this may be useful for some objects, it requires changing values individually for each object. However, you can select the group of fields and then select "Common properties" from the "Tools" menu which will allow you to set the format mask , print conditions etc. for the whole set of objects at once. ORACLE Interview Questions and Answers (Part 1)

What are the components of physical database structure of Oracle database? What are the components of logical database structure of Oracle database? What is a tablespace? What is SYSTEM tablespace and when is it created? Explain the relationship among database, tablespace and data file. What is schema? What are Schema Objects? Can objects of the same schema reside in different tablespaces? Can a tablespace hold objects from different schemes? What is Oracle table? What is an Oracle view? What is Partial Backup ? What is Mirrored on-line Redo Log ? What is Full Backup ? Can a View based on another View ? Can a Tablespace hold objects from different Schemes ? Can objects of the same Schema reside in different tablespaces.? What is the use of Control File ? Do View contain Data ? What are the Referential actions supported by FOREIGN KEY integrity constraint ? What are the type of Synonyms? What is a Redo Log ? What is an Index Segment ? Explain the relationship among Database, Tablespace and Data file.? What are the different type of Segments ? What are Clusters ? What is an Integrity Constrains ? What is an Index ? What is an Extent ? What is a View ? What is Table ?

Can a view based on another view? What are the advantages of views? What is an Oracle sequence? What is a synonym? What are the types of synonyms? What is a private synonym? What is a public synonym? What are synonyms used for? What is an Oracle index? How are the index updates? What is a Tablespace? What is Rollback Segment ? What are the Characteristics of Data Files ? How to define Data Block size ? What does a Control file Contain ? What is difference between UNIQUE constraint and PRIMARY KEY constraint ? What is Index Cluster ? What is the effect of setting the value "ALL_ROWS" for OPTIMIZER_GOAL parameter of the ALTER SESSION command ? What are the factors that affect OPTIMIZER in choosing an Optimization approach ? What is the effect of setting the value "CHOOSE" for OPTIMIZER_GOAL, parameter of the ALTER SESSION Command ? How does one create a new database? (for DBA) What database block size should I use? (for DBA) What are the different approaches used by Optimizer in choosing an execution plan ? What does ROLLBACK do ? How does one coalesce free space?(for DBA) How does one prevent tablespace fragmentation? (for DBA) Where can one find the high water mark for a table? (for DBA) What is COST-based approach to optimization ? What does COMMIT do ? How are extents allocated to a segment? (for DBA) Can one rename a database user (schema)? (for DBA) Define Transaction ? What is Read-Only Transaction ? What is a deadlock ? Explain . What is a Schema ? What is a cluster Key ? What is Parallel Server ? What are the basic element of Base configuration of an oracle Database ? What is clusters ? What is an Index ? How it is implemented in Oracle Database ? What is a Database instance ? Explain WWhat is the use of ANALYZE command ? What is default tablespace ? What are the system resources that can be controlled through Profile ? What is Tablespace Quota ? What are the different Levels of Auditing ? What is Statement Auditing ? What are the database administrators utilities avaliable ? How can you enable automatic archiving ? What are roles? How can we implement roles ? What are Roles ? What are the use of Roles ? What is Privilege Auditing ? What is Object Auditing ? What is Auditing ? How does one see the uptime for a database? (for DBA Where are my TEMPFILES, I don't see them in V$DATAFILE or DBA_DATA_FILE? (for DBA

How do I find used/free space in a TEMPORARY tablespace? (for DBA What is a profile ? How will you enforce security using stored procedures? How can one see who is using a temporary segment? (for DBA How does one get the view definition of fixed views/tables? What are the dictionary tables used to monitor a database spaces ? How can we specify the Archived log file name format and destination? What is user Account in Oracle database? When will the data in the snapshot log be used? What dynamic data replication? What is Two-Phase Commit ? How can you Enforce Referential Integrity in snapshots ? What is a SQL * NET? What is a SNAPSHOT ? What is the mechanism provided by ORACLE for table replication ? What is snapshots? What are the various type of snapshots? Describe two phases of Two-phase commit ? What is snapshot log ? What are the benefits of distributed options in databases? What are the options available to refresh snapshots ? What is a SNAPSHOT LOG ? What is Distributed database ? How can we reduce the network traffic? Differentiate simple and complex, snapshots ? What are the Built-ins used for sending Parameters to forms? Can you have more than one content canvas view attached with a window? Is the After report trigger fired if the report execution fails? Does a Before form trigger fire when the parameter form is suppressed? What is SGA? What is a shared pool? What is mean by Program Global Area (PGA)? What is a data segment? What are the factors causing the reparsing of SQL statements in SGA? What are clusters? What is cluster key? Do a view contain data? What is user Account in Oracle database? How will you enforce security using stored procedures? What are the dictionary tables used to monitor a database space? Can a property clause itself be based on a property clause? If a parameter is used in a query without being previously defined, what diff. exist betw. report 2.0 and 2.5 when the query is applied? What are the sql clauses supported in the link property sheet? What is trigger associated with the timer? What are the trigger associated with image items? What are the different windows events activated at runtimes? When do you use data parameter type? What is difference between open_form and call_form? What is new_form built-in? What is the "LOV of Validation" Property of an item? What is the use of it? What is the diff. when Flex mode is mode on and when it is off? What is the diff. when confine mode is on and when it is off? What are visual attributes? Which of the two views should objects according to possession? What are the two types of views available in the object navigator(specific to report 2.5)? What are the vbx controls?

What is the use of transactional triggers? How do you create a new session while open a new form? What are the ways to monitor the performance of the report? If two groups are not linked in the data model editor, What is the hierarchy between them? An open form can not be execute the call_form procedure if you chain of called forms has been initiated by another open form? Explain about horizontal, Vertical tool bar canvas views? What is the purpose of the product order option in the column property sheet? What is the use of image_zoom built-in? How do you reference a parameter indirectly? What is a timer? What are the two phases of block coordination? What are Most Common types of Complex master-detail relationships? What is a text list? What is term? What is use of term? What is pop list? What is the maximum no of chars the parameter can store? What are the default extensions of the files created by library module? What are the Coordination Properties in a Master-Detail relationship? How do you display console on a window ? What are the different Parameter types? State any three mouse events system variables? What are the types of calculated columns available? Explain about stacked canvas views? How does one do off-line database backups? (for DBA What is the difference between SHOW_EDITOR and EDIT_TEXTITEM? What are the built-ins that are used to Attach an LOV programmatically to an item? How does one do on-line database backups? (for DBA How does one backup a database using RMAN? (for DBA What are the different file extensions that are created by oracle reports? What is strip sources generate options? How does one put a database into ARCHIVELOG mode? (for DBA What is the basic data structure that is required for creating an LOV? How does one backup archived log files? (for DBA Does Oracle write to data files in begin/hot backup mode? (for DBA What is the Maximum allowed length of Record group Column? Which parameter can be used to set read level consistency across multiple queries? What are the different types of Record Groups?

ORACLE Interview Questions and Answers (Part 2)

From which designation is it preferred to send the output to the printed? what are difference between post database commit and post-form commit? What are the different display styles of list items? Which of the above methods is the faster method? With which function of summary item is the compute at options required? What are parameters? What are the three types of user exits available ? How many windows in a form can have console? What is an administrative (privileged) user? (for DBA What are the two repeating frame always associated with matrix object? What are the master-detail triggers?\ How does one connect to an administrative user? (for DBA How does one create a password file? (for DBA Is it possible to modify an external query in a report which contains it? Does a grouping done for objects in the layout editor affect the grouping done in the data model editor?

How does one add users to a password file? (for DBA If a break order is set on a column would it affect columns which are under the column? Why are OPS$ accounts a security risk in a client/server environment? (for DBA Do user parameters appear in the data modal editor in 2.5? Can you pass data parameters to forms? Is it possible to link two groups inside a cross products after the cross products group has been created? What are the different modals of windows? What are modal windows? What are the different default triggers created when Master Deletes Property is set to Non-isolated? What are the different default triggers created when Master Deletes Property is set to isolated? What are the different default triggers created when Master Deletes Property is set to Cascade? What is the diff. bet. setting up of parameters in reports 2.0 reports2.5? What are the difference between lov & list item? What is the advantage of the library? What is lexical reference? How can it be created? What is system.coordination_operation? What is synchronize? What use of command line parameter cmd file? What is a Text_io Package? What is forms_DDL? How is link tool operation different bet. reports 2 & 2.5? What are the different styles of activation of ole Objects? How do you reference a Parameter? What is the difference between object embedding & linking in Oracle forms? Name of the functions used to get/set canvas properties? What are the built-ins that are used for setting the LOV properties at runtime? What are the built-ins used for processing rows? What are built-ins used for Processing rows? What are the built-in used for getting cell values? What are the built-ins used for Getting cell values? Atleast how many set of data must a data model have before a data model can be base on it? To execute row from being displayed that still use column in the row which property can be used? What are different types of modules available in oracle form? What is the remove on exit property? What is WHEN-Database-record trigger? What is a difference between pre-select and pre-query? What are built-ins associated with timers? What are the built-ins used for finding object ID functions? What are the built-ins used for finding Object ID function? Any attempt to navigate programmatically to disabled form in a call_form stack is allowed? Use the Add_group_row procedure to add a row to a static record group 1. true or false? What third party tools can be used with Oracle EBU/ RMAN? (for DBA Why and when should one tune? (for DBA How can a break order be created on a column in an existing group? What are the various sub events a mouse double click event involves? What is the use of place holder column? What are the various sub events a mouse double click event involves? What is the use of hidden column? What are the various sub events a mouse double click event involves? What database aspects should be monitored? (for DBA Where should the tuning effort be directed? (for DBA What are the various sub events a mouse double click event involves? What are the various sub events a mouse double click event involves? What are the default parameter that appear at run time in the parameter screen? What are the various sub events a mouse double click event involves? What are the built-ins used for Creating and deleting groups? What are different types of canvas views? What are the different types of Delete details we can establish in Master-Details? What is relation between the window and canvas views? What is a User_exit?

How is it possible to select generate a select set for the query in the query property sheet? How can values be passed bet. precompiler exits and Oracle call interface? How can a square be drawn in the layout editor of the report writer? How can a text file be attached to a report while creating in the report writer? How can I message to passed to the user from reports? Does one need to drop/ truncate objects before importing? (for DBA How can a button be used in a report to give a drill down facility? Can one import/export between different versions of Oracle? (for DBA What are different types of images? Can one export to multiple files?/ Can one beat the Unix 2 Gig limit? (for DBA What is bind reference and how can it be created? How can one improve Import/ Export performance? (for DBA Give the sequence of execution of the various report triggers? What are the common Import/ Export problems? (for DBA Why is it preferable to create a fewer no. of queries in the data model? Where is the external query executed at the client or the server? Where is a procedure return in an external pl/sql library executed at the client or at the server? What is coordination Event? What is the difference between OLE Server & Ole Container? What is an object group? What is an LOV? At what point of report execution is the before Report trigger fired? What are the built -ins used for Modifying a groups structure? What is an user exit used for? What is the User-Named Editor? My database was terminated while in BACKUP MODE, do I need to recover? (for DBA What is a Static Record Group? What is a record group? My database is down and I cannot restore. What now? (for DBA I've lost my REDOLOG files, how can I get my DB back? (for DBA What is a property clause? What is a physical page ? & What is a logical page ? I've lost some Rollback Segments, how can I get my DB back? (for DBA What are the differences between EBU and RMAN? (for DBA How does one create a RMAN recovery catalog? (for DBA How can a group in a cross products be visually distinguished from a group that does not form a cross product? What is the frame & repeating frame? What is a combo box? What are three panes that appear in the run time pl/sql interpreter? What are the two panes that Appear in the design time pl/sql interpreter? What are the two ways by which data can be generated for a parameters list of values? What are the various methods of performing a calculation in a report ? What are the default extensions of the files created by menu module? What are the default extensions of the files created by forms modules? To display the page no. for each page on a report what would be the source & logical page no. or & of physical page no.? It is possible to use raw devices as data files and what is the advantages over file. system files ? What are disadvantages of having raw devices ? What is the significance of having storage clause ? What is the use of INCTYPE option in EXP command ? What is the use of FILE option in IMP command ? What is a Shared SQL pool? What is hot backup and how it can be taken? List the Optional Flexible Architecture (OFA) of Oracle database? or How can we organize the tablespaces in Oracle database to have maximum performance ? How to implement the multiple control files for an existing database ? What is advantage of having disk shadowing/ Mirroring ?

How will you force database to use particular rollback segment ? Why query fails sometimes ? What is the use of RECORD LENGTH option in EXP command ? How will you monitor rollback segment status ? What is meant by Redo Log file mirroring ? How it can be achieved? Which parameter in Storage clause will reduce no. of rows per block? What is meant by recursive hints ? What is the use of PARFILE option in EXP command ? What is the difference between locks, latches, enqueues and semaphores? (for DBA What is a logical backup? Where can one get a list of all hidden Oracle parameters? (for DBA What is a database EVENT and how does one set it? (for DBA What is a Rollback segment entry ? What database events can be set? (for DBA How can one dump internal database structures? (for DBA What are the different kind of export backups? How free extents are managed in Ver 6.0 and Ver 7.0 ? What is the use of RECORD option in EXP command? What is the use of ROWS option in EXP command ? What is the use of COMPRESS option in EXP command ? How will you swap objects into a different table space for an existing database ? How does Space allocation table place within a block ? What are the factors causing the reparsing of SQL statements in SGA? What is dictionary cache ? What is a Control file ? What is Database Buffers ? How will you create multiple rollback segments in a database ? What is cold backup? What are the elements of it? What is meant by redo log buffer ? How will you estimate the space required by a non-clustered tables? How will you monitor the space allocation ? What is meant by free extent ? What is the use of IGNORE option in IMP command ? What is the use of ANALYSE ( Ver 7) option in EXP command ? What is the use of ROWS option in IMP command ? What is the use of INDEXES option in EXP command ? What is the use of INDEXES option in IMP command ? What is the use of GRANT option in EXP command? What is the use of GRANT option in IMP command ? What is the use of FULL option in EXP command ? What is the use of SHOW option in IMP command ? What is the use of CONSTRAINTS option in EXP command ? What is the use of CONSISTENT (Ver 7) option in EXP command ? What are the different methods of backing up oracle database ? What is the difference between ON-VALIDATE-FIELD trigger and a POST-CHANGE trigger ? When is PRE-QUERY trigger executed ? How do you trap the error in forms 3.0 ? How many pages you can in a single form ? While specifying master/detail relationship between two blocks specifying the join condition is a must ? True or False. ? EXIT_FORM is a restricted package procedure ?a. True b. False What is the usage of an ON-INSERT,ON-DELETE and ON-UPDATE TRIGGERS ? What are the types of Pop-up window ? What is an SQL *FORMS ? How do you control the constraints in forms ?

ORACLE Interview Questions and Answers (Part 3)

What is the difference between restricted and unrestricted package procedure ? A query fetched 10 records How many times does a PRE-QUERY Trigger and POST-QUERY Trigger will get executed ? Give the sequence in which triggers fired during insert operations, when the following 3 triggers are defined at the same block level ? State the order in which these triggers are executed ? What the PAUSE package procedure does ? What do you mean by a page ? What are the type of User Exits ? What is the difference between an ON-VALIDATE-FIELD trigger and a trigger ? Can we use a restricted package procedure in ON-VALIDATE-FIELD Trigger ? Is a Key startup trigger fires as result of a operator pressing a key explicitly ? Can we use GO-BLOCK package in a pre-field trigger ? Can we create two blocks with the same name in form 3.0 ? What is Post-Block is a. ??? What does an on-clear-block Trigger fire? Name the two files that are created when you generate the form give the filex extension ? What package procedure used for invoke sql *plus from sql *forms ? What is the significance of PAGE 0 in forms 3.0 ? What are the different types of key triggers ? What is the difference between a Function Key Trigger and Key Function Trigger ? Committed block sometimes refer to a BASE TABLE ? Error_Code is a package proecdure ? When is cost based optimization triggered? (for DBA How can one optimize %XYZ% queries? (for DBA What Enter package procedure does ? Where can one find I/O statistics per table? (for DBA My query was fine last week and now it is slow. Why? (for DBA Why is Oracle not using the damn index? (for DBA When should one rebuild an index? (for DBA What are the unrestricted procedures used to change the popup screen position during run time ? What is an Alert ? Deleting a page removes information about all the fields in that page ? a. True. b. False? Two popup pages can appear on the screen at a time ?Two popup pages can appear on the screen at a time ? a. True. b. False? Classify the restricted and unrestricted procedure from the following: ... What is an User Exits ? What is a Trigger ? What is a Package Procedure ? What is the maximum size of a form ? What is the difference between system.current_field and system.cursor_field ? List the system variables related in Block and Field? What are the types of TRIGGERS ? Identify package function from the following ? Can you attach an lov to a field at run-time? if yes, give the build-in name.? Is it possible to attach same library to more than one form? Can you attach an lov to a field at design time? List the windows event triggers available in Forms 4.0? What are the triggers associated with the image item? What is a visual attribute? How many maximum number of radio buttons can you assign to a radio group? How do you pass the parameters from one form to another form? What is a Layout Editor? List the Types of Items? List system variables available in forms 4.0, and not available in forms 3.0? What are the display styles of an alert? What built-in is used for showing the alert during run-time? What built-in is used for changing the properties of the window dynamically?

What are the different types of windows? What is a predefined exception available in forms 4.0? What is a radio Group? What are the different type of a record group? What are the menu items that oracle forms 4.0 supports? Give the equivalent term in forms 4.0 for the following. Page, Page 0? What triggers are associated with the radio group? What are the triggers associated with a check box? Can you attach an alert to a field? Can a root window be made modal? What is a list item? List some built-in routines used to manipulate images in image_item? Can you change the alert messages at run-time? What is the built-in used to get and set lov properties during run-time? What is the built-in routine used to count the no of rows in a group? Give the Types of modules in a form? Write the Abbreviation for the following File Extension 1. FMB 2. MMB 3. PLL? List the built-in routine for controlling window during run-time? List the built-in routine for controlling window during run-time? What is the built-in function used for finding the alert? List the editors availables in forms 4.0? What buil-in routines are used to display editor dynamicaly? What is an Lov? What is a record Group? Give built-in routine related to a record groups? List the built-in routines for the controlling canvas views during run-time? System.effective_date system variable is read only True/False? What are the built_in used to trapping errors in forms 4? What is Oracle Financials? (for DBA What are the design facilities available in forms 4.0? What is the most important module in Oracle Financials? (for DBA What are the types of canvas-views? What is the MultiOrg and what is it used for? (for DBA What is the difference between Fields and FlexFields? (for DBA Explain types of Block in forms4.0? What is an Alert? What are the built-in routines is available in forms 4.0 to create and manipulate a parameter list? What is a record Group? What is a Navigable item? What is a library in Forms 4.0? How image_items can be populate to field in forms 4.0? What is the content view and stacked view? What is a Check Box? What is a canvas-view? Explain the following file extension related to library? Explain the usage of WHERE CURRENT OF clause in cursors ? Name the tables where characteristics of Package, procedure and functions are stored ? Explain the two type of Cursors ? What are two parts of package ? What are two virtual tables available during database trigger execution ? What is Fine Grained Auditing? (for DBA What is a package ? What are the advantages of packages ? What is Pragma EXECPTION_INIT ? Explain the usage ? What is Fine Grained Access Control? (for DBA What is a Virtual Private Database? (for DBA What is Raise_application_error ? What is Oracle Label Security? (for DBA

Give the structure of the procedure ? What is OEM (Oracle Enterprise Manager)? (for DBA Question What is PL/SQL ? What are the components of OEM? (for DBA What happens if a procedure that updates a column of table X is called in a database trigger of the same table ? Is it possible to use Transaction control Statements such a ROLLBACK or COMMIT in Database Trigger ? Why ? How many types of database triggers can be specified on a table ? What are they ? What are the modes of parameters that can be passed to a procedure ? Where the Pre_defined_exceptions are stored ? Write the order of precedence for validation of a column in a table ? Give the structure of the function ? Explain how procedures and functions are called in a PL/SQL block ? What are advantages fo Stored Procedures? What is an Exception ? What are types of Exception ? What are the PL/SQL Statements used in cursor processing ? What are the components of a PL/SQL Block ? What is a database trigger ? Name some usages of database trigger ? What is a cursor ? Why Cursor is required ? What is a cursor for loop ? What will happen after commit statement ? How packaged procedures and functions are called from the following? a. Stored procedure or anonymous block b. an application program such a PRC *C, PRO* COBOL c. SQL *PLUS?? What is a stored procedure ? What are the components of a PL/SQL block ? What is difference between a PROCEDURE & FUNCTION ? What is difference between a Cursor declared in a procedure and Cursor declared in a package specification ? What are the cursor attributes used in PL/SQL ? What are % TYPE and % ROWTYPE ? What are the advantages of using these over datatypes? What is difference between % ROWTYPE and TYPE RECORD ? What are the different types of PL/SQL program units that can be defined and stored in ORACLE database ? What are the advantages of having a Package ? What are the uses of Database Trigger ? What is a Procedure ? What is a Package ? What is difference between Procedures and Functions ? What is Database Trigger ? Can the default values be assigned to actual parameters? Can a primary key contain more than one columns? What is an UTL_FILE.What are different procedures and functions associated with it? What are ORACLE PRECOMPILERS? Differentiate between TRUNCATE and DELETE? What is difference between a formal and an actual parameter? What should be the return type for a cursor variable.Can we use a scalar data type as return type? What are different Oracle database objects? What is difference between SUBSTR and INSTR? Display the number value in Words? What is difference between SQL and SQL*PLUS? What are various joins used while writing SUBQUERIES? What a SELECT FOR UPDATE cursor represent.? What are various privileges that a user can grant to another user? Display the records between two range? minvalue.sql Select the Nth lowest value from a table? What is difference between Rename and Alias? Difference between an implicit & an explicit cursor.? What is a OUTER JOIN? What is a cursor? What is the purpose of a cluster?

What is OCI. What are its uses? How you open and close a cursor variable.Why it is required? Display Odd/ Even number of records? What are various constraints used in SQL? Can cursor variables be stored in PL/SQL tables.If yes how. If not why? Difference between NO DATA FOUND and %NOTFOUND? Can you use a commit statement within a database trigger? What WHERE CURRENT OF clause does in a cursor?

ORACLE Interview Questions and Answers (Part 4)

There is a string 120000 12 0 .125 , how you will find the position of the decimal place? What are different modes of parameters used in functions and procedures? How you were passing cursor variables in PL/SQL 2.2? When do you use WHERE clause and when do you use HAVING clause? Difference between procedure and function.? Which is more faster - IN or EXISTS? What is syntax for dropping a procedure and a function .Are these operations possible? How will you delete duplicating rows from a base table? Difference between database triggers and form triggers? What is a cursor for loop? How you will avoid duplicating records in a query? What is a view ? What is use of a cursor variable? How it is defined? How do you find the numbert of rows in a Table ? What is the maximum buffer size that can be specified using the DBMS_OUTPUT.ENABLE function? What are cursor attributes? There is a % sign in one field of a column. What will be the query to find it? What is ON DELETE CASCADE ? What is the fastest way of accessing a row in a table ? What is difference between TRUNCATE & DELETE ? What is a transaction ? What are the advantages of VIEW ? How will you a activate/deactivate integrity constraints ? Where the integrity constraints are stored in Data Dictionary ? What is the Subquery ? How to access the current value and next value from a sequence ? Is it possible to access the current value in a session before accessing next value ? What are the usage of SAVEPOINTS ?value in a session before accessing next value ? What is ROWID ?in a session before accessing next value ? Explain Connect by Prior ?in a session before accessing next value ? How many LONG columns are allowed in a table ? Is it possible to use LONG columns in WHERE clause or ORDER BY ? What is Referential Integrity ? What is a join ? Explain the different types of joins ? If an unique key constraint on DATE column is created, will it validate the rows that are inserted with SYSDATE ? How does one stop and start the OMS? (for DBA What is an Integrity Constraint ? How does one create a repository? (for DBA If a View on a single base table is manipulated will the changes be reflected on the base table ? The following describes means to create a OEM V1.x (very old!!!) repository on WindowsNT: What is a database link ? How does one list one's databases in the OEM Console? (for DBA What is CYCLE/NO CYCLE in a Sequence ? What is correlated sub-query ? What are the data types allowed in a table ? What is difference between CHAR and VARCHAR2 ? What is the maximum SIZE allowed for each type ?

Can a view be updated/inserted/deleted? If Yes under what conditions ? What are the different types of Coordinations of the Master with the Detail block? Use the ADD_GROUP_COLUMN function to add a column to a record group that was created at design time? I) TRUE II)FALSE Use the ADD_GROUP_ROW procedure to add a row to a static record group? I) TRUE II)FALSE maxvalue.sql Select the Nth Highest value from a table? Find out nth highest salary from emp table? How you will avoid your query from using indexes? What utility is used to create a physical backup? What are the Back ground processes in Oracle and what are they. How many types of Sql Statements are there in Oracle What is a Transaction in Oracle Key Words Used in Oracle What are Procedure,functions and Packages What are Database Triggers and Stored Procedures How many Integrity Rules are there and what are they What are the Various Master and Detail Relation ships. What are the Various Block Coordination Properties What is in all those X$ tables? (for DBA What are the Different Optimisation Techniques How does one change an Oracle user's password?(for DBA How does one create and drop database users? Who created all these users in my database?/ Can I drop this user? (for DBA How does one enforce strict password control? (for DBA How does one switch to another user in Oracle? (for DBA What are snap shots and views What are the OOPS concepts in Oracle. What is the difference between candidate key, unique key and primary key What is concurrency Previleges and Grants Table Space,Data Files,Parameter File, Control Files Physical Storage of the Data What are the Pct Free and Pct Used What is Row Chaining What is a 2 Phase Commit What is the difference between deleting and truncating of tables What are mutating tables What are Codd Rules What is Normalisation What is the Difference between a post query and a pre query Deleting the Duplicate rows in the table Can U disable database trigger? How? What is pseudo columns ? Name them? How many columns can table have? Is space acquired in blocks or extents ? what is clustered index? what are the datatypes supported By oracle (INTERNAL)? What are attributes of cursor? Can you use select in FROM clause of SQL select ? Which trigger are created when master -detail rela? which system variables can be set by users? What are object group? What are referenced objects? Can you store objects in library? Is forms 4.5 object oriented tool ? why? Can you issue DDL in forms? What is SECURE property?

What are the types of triggers and how the sequence of firing in text item Can you store pictures in database? How? What are property classes ? Can property classes have trigger? If you have property class attached to an item and you have same trigger written for the item . Which will fire first? What are record groups ? Can record groups created at run-time? What are ALERT? Can a button have icon and lable at the same time ? What is mouse navigate property of button? What is FORMS_MDI_WINDOW? What are timers ? when when-timer-expired does not fire? Can object group have a block? How many types of canvases are there. What are user-exits? Can you pass values to-and-fro from foreign function ? how ? What is IAPXTB structure ? Can you call WIN-SDK thruo' user exits? Does user exits supports DLL on MSWINDOWS ? What is path setting for DLL? How is mapping of name of DLL and function done? what is precompiler? Can you connect to non - oracle datasource ? How? What are key-mode and locking mode properties? level ? What are savepoint mode and cursor mode properties ? level? Can you replace default form processing ? How ? What is transactional trigger property? What is OLE automation ? What does invoke built-in do? What are OPEN_FORM,CALL_FORM,NEW_FORM? diff? What is call form stack? Can u port applictions across the platforms? how? What is a visual attribute? Diff. between VAT and Property Class? imp Which trigger related to mouse? What is Current record attribute property? Can you change VAT at run time? Can you set default font in forms? What is On-line Redo Log? Which parameter specified in the DEFAULT STORAGE clause of CREATE TABLESPACE cannot be altered after creating the tablespace? What are the steps involved in Database Startup ? What are the steps involved in Instance Recovery ? Can Full Backup be performed when the database is open ? What are the different modes of mounting a Database with the Parallel Server ? What are the advantages of operating a database in ARCHIVELOG mode over operating it in NO ARCHIVELOG mode ? What are the steps involved in Database Shutdown ? What is Archived Redo Log ? What is Restricted Mode of Instance Startup ? Can you have OLE objects in forms? Can you have VBX and OCX controls in forms ? What are the types of windows (Window style)? What is OLE Activation style property? Can you change the mouse pointer ? How? How many types of columns are there and what are they Can you have more than one layout in report? Can you run the report with out a parameter form ? What is the lock option in reports layout?

What is Flex ? What are the minimum number of groups required for a matrix report What is a Synonym ? What is a Sequence ? What is a Segment ? What is schema? Describe Referential Integrity ? What is Hash Cluster ? What is a Private Synonyms ? What is Database Link ? What is index cluster? What is hash cluster? When can hash cluster used? When can hash cluster used? What are the types of database links? What is private database link? What is public database link? What is network database link? What is data block? How to define data block size? What is row chaining? What is an extent? What are the different types of segments? What is a data segment? What is an index segment? What is rollback segment? What are the uses of rollback segment? What is a temporary segment? What is a datafile? What are the characteristics of data files? What is a redo log? What is the function of redo log? What is the use of redo log information? What does a control file contains? What is the use of control file?

ORACLE Interview Questions and Answers (Part 5)

Is it possible to split the print reviewer into more than one region? Is it possible to center an object horizontally in a repeating frame that has a variable horizontal size? For a field in a repeating frame, can the source come from the column which does not exist in the data group which forms the base for the frame? Can a field be used in a report without it appearing in any data group? The join defined by the default data link is an outer join yes or no? Can a formula column referred to columns in higher group? Can a formula column be obtained through a select statement? Is it possible to insert comments into sql statements return in the data model editor? Is it possible to disable the parameter from while running the report? When a form is invoked with call_form, Does oracle forms issues a save point? Explain the difference between a hot backup and a cold backup and the benefits associated with each. You have just had to restore from backup and do not have any control files. How would you go about bringing up this database? How do you switch from an init.ora file to a spfile? Explain the difference between a data block, an extent and a segment. Give two examples of how you might determine the structure of the table DEPT. Where would you look for errors from the database engine? Compare and contrast TRUNCATE and DELETE for a table. Give the reasoning behind using an index.

Give the two types of tables involved in producing a star schema and the type of data they hold. What type of index should you use on a fact table? Give two examples of referential integrity constraints. A table is classified as a parent table and you want to drop and re-create it. How would you do this without affecting the children tables? Explain the difference between ARCHIVELOG mode and NOARCHIVELOG mode and the benefits and disadvantages to each. What command would you use to create a backup control file? Give the stages of instance startup to a usable state where normal users may access it. What column differentiates the V$ views to the GV$ views and how? How would you go about generating an EXPLAIN plan? How would you go about increasing the buffer cache hit ratio? Explain an ORA-01555 Explain the difference between $ORACLE_HOME and $ORACLE_BASE. How would you determine the time zone under which a database was operating? Explain the use of setting GLOBAL_NAMES equal to TRUE. What command would you use to encrypt a PL/SQL application? Explain the difference between a FUNCTION, PROCEDURE and PACKAGE. Explain the use of table functions. Name three advisory statistics you can collect. Where in the Oracle directory tree structure are audit traces placed? Explain materialized views and how they are used. When a user process fails, what background process cleans up after it? What background process refreshes materialized views? How would you determine what sessions are connected and what resources they are waiting for? Describe what redo logs are. How would you force a log switch? Give two methods you could use to determine what DDL changes have been made. What does coalescing a tablespace do? What is the difference between a TEMPORARY tablespace and a PERMANENT tablespace? Name a tablespace automatically created when you create a database. When creating a user, what permissions must you grant to allow them to connect to the database? How do you add a data file to a tablespace How do you resize a data file? What view would you use to look at the size of a data file? What view would you use to determine free space in a tablespace? How would you determine who has added a row to a table? How can you rebuild an index? Explain what partitioning is and what its benefit is. You have just compiled a PL/SQL package but got errors, how would you view the errors? How can you gather statistics on a table? How can you enable a trace for a session? What is the difference between the SQL*Loader and IMPORT utilities? Name two files used for network connection to a database. What is the function of Optimizer ? What is Execution Plan ? Can one resize tablespaces and data files? (for DBA) What is SAVE POINT ? What are the values that can be specified for OPTIMIZER MODE Parameter ? Can one rename a tablespace? (for DBA) What is RULE-based approach to optimization ? What are the values that can be specified for OPTIMIZER_GOAL parameter of the ALTER SESSION Command ? ) How does one create a standby database? (for DBA) How does one give developers access to trace files (required as input to tkprof)? (for DBA) What are the responsibilities of a Database Administrator ? What is a trace file and how is it created ? What are the roles and user accounts created automatically with the database? What are the minimum parameters should exist in the parameter file (init.ora) ?

Why and when should I backup my database? (for DBA What strategies are available for backing-up an Oracle database? (for DBA What is the difference between online and offline backups? (for DBA What is the difference between restoring and recovering? (for DBA How does one backup a database using the export utility? (for DBA What are the built_ins used the display the LOV? How do you call other Oracle Products from Oracle Forms? What is the main diff. bet. Reports 2.0 & Reports 2.5? What are the Built-ins to display the user-named editor? How many number of columns a record group can have? What is a Query Record Group? What does the term panel refer to with regard to pages? What is a master detail relationship? What is a library? What is an anchoring object and what is its use? What are the various sub events a mouse double click event involves? Use the add_group_column function to add a column to record group that was created at a design time? What are the various sub events a mouse double click event involves? What are the various sub events a mouse double click event involves? What is the use of break group? What are the various sub events a mouse double click event involves? What tuning indicators can one use? (for DBA 813. What tools/utilities does Oracle provide to assist with performance tuning? (for DBA What is STATSPACK and how does one use it? (for DBA What are the common RMAN errors (with solutions)? (for DBA How can you execute the user defined triggers in forms 3.0 ? What ERASE package procedure does ? What is the difference between NAME_IN and COPY ? What package procedure is used for calling another form ? When the form is running in DEBUG mode, If you want to examine the values of global variables and other form variables, What package procedure command you would use in your trigger text ? The value recorded in system.last_record variable is of type a. Number b. Boolean c. Character. ? What is mean by Program Global Area (PGA) ? What is hit ratio ? How do you implement the If statement in the Select Statement How many types of Exceptions are there What are the inline and the precompiler directives How do you use the same lov for 2 columns How many minimum groups are required for a matrix report What is the difference between static and dynamic lov How does one manage Oracle database users? (for DBA 831. How does one tune Oracle Wait events? (for DBA What is the difference between DBFile Sequential and Scattered Reads?(for DBA What is the use of PARFILE option in EXP command ? What is the use of TABLES option in EXP command ? What is the OPTIMAL parameter? How does one use ORADEBUG from Server Manager/ SQL*Plus? (for DBA Are there any undocumented commands in Oracle? (for DBA If the maximum record retrieved property of the query is set to 10 then a summary value will be calculated? What are the different objects that you cannot copy or reference in object groups? What is an OLE? Can a repeating frame be created without a data group as a base? Is it possible to set a filter condition in a cross product group in matrix reports? What is Overloading of procedures ? What are the return values of functions SQLCODE and SQLERRM ? What is Pragma EXECPTION_INIT ? Explain the usage ? What are the datatypes a available in PL/SQL ? What are the two parts of a procedure ? What is the basic structure of PL/SQL ?

What is PL/SQL table ? WHAT IS RMAN ? (for DBA WHY USE RMAN ? (for DBA Explain UNION,MINUS,UNION ALL, INTERSECT ? Should the OEM Console be displayed at all times (when there are scheduled jobs)? (for DBA Difference between SUBSTR and INSTR ? What kind of jobs can one schedule with OEM? (for DBA What are the pre requisites ? How does one backout events and jobs during maintenance slots? (for DBA What are the types of SQL Statement ? What is the Oracle Intelligent Agent? (for DBA How does one start the Oracle Intelligent Agent? (for DBA Where can one get more information about TCL? (for DBA Are there any troubleshooting tips for OEM? (for DBA What is import/export and why does one need it? (for DBA what is a display item? How does one use the import/export utilities? (for DBA What are the types of visual attribute settings? Can one export a subset of a table? (for DBA What are the two ways to incorporate images into a oracle forms application? Can one monitor how fast a table is imported? (for DBA Can one import tables to a different tablespace? (for DBA What do you mean by a block in forms4.0? How is possible to restrict the user to a list of values while entering values for parameters? What is SQL*Loader and what is it used for? (for DBA How does one use the SQL*Loader utility? (for DBA How can a cross product be created? Is there a SQL*Unloader to download data to a flat file? (for DBA Can one load variable and fix length data records? (for DBA Can one modify data as it loads into the database? (for DBA Can one load data into multiple tables at once? (for DBA What is the difference between boiler plat images and image items? What are the triggers available in the reports? Why is a Where clause faster than a group filter or a format trigger? Can one selectively load only the records that one need? (for DBA Can one skip certain columns while loading data? (for DBA How does one load multi-line records? (for DBA How can get SQL*Loader to COMMIT only at the end of the load file? (for DBA Can one improve the performance of SQL*Loader? (for DBA How does one use SQL*Loader to load images, sound clips and documents? (for DBA What is the difference between the conventional and direct path loader? (for DBA What are the various types of Exceptions ? Can we define exceptions twice in same block ? What is the difference between a procedure and a function ? Can you have two functions with the same name in a PL/SQL block ? Can you have two stored functions with the same name ? Can you call a stored function in the constraint of a table ? What are the various types of parameter modes in a procedure ? What is Over Loading and what are its restrictions ? Can functions be overloaded ? Can 2 functions have same name & input parameters but differ only by return datatype What are the constructs of a procedure, function or a package ? Why Create or Replace and not Drop and recreate procedures ? Can you pass parameters in packages ? How ? What are the parts of a database trigger ? What are the various types of database triggers ? What is the advantage of a stored procedure over a database trigger ?

What is the maximum no. of statements that can be specified in a trigger statement ? Can views be specified in a trigger statement ? What are the values of :new and :old in Insert/Delete/Update Triggers ? What are cascading triggers? What is the maximum no of cascading triggers at a time? What are mutating triggers ? What are constraining triggers ? Describe Oracle database's physical and logical structure ? Can you increase the size of a tablespace ? How ? What is the use of Control files ? What is the use of Data Dictionary ? What are the advantages of clusters ? What are the disadvantages of clusters ? Can Long/Long RAW be clustered ? Can null keys be entered in cluster index, normal index ? Can Check constraint be used for self referential integrity ? How ? What are the min. extents allocated to a rollback extent ? What are the states of a rollback segment ? What is the difference between partly available and needs recovery ? What is the difference between unique key and primary key ? An insert statement followed by a create table statement followed by rollback ? Will the rows be inserted ? Can you define multiple savepoints ? Can you Rollback to any savepoint ? What is the maximum no. of columns a table can have ? What is the significance of the & and && operators in PL SQL ? Can you pass a parameter to a cursor ? What are the various types of RollBack Segments ? Can you use %RowCount as a parameter to a cursor ? Is the query below allowed : Select sal, ename Into x From emp Where ename = 'KING' (Where x is a record of Number(4) and Char(15)) Is the assignment given below allowed : ABC = PQR (Where ABC and PQR are records) Is this for loop allowed : For x in &Start..&End Loop How many rows will the following SQL return : Select * from emp Where rownum How many rows will the following SQL return : Select * from emp Where rownum = 10; Which symbol preceeds the path to the table in the remote database ? Are views automatically updated when base tables are updated ? Can a trigger written for a view ? If all the values from a cursor have been fetched and another fetch is issued, the output will be : error, last record or first record ? A table has the following data : [[5, Null, 10]]. What will the average function return ? Is Sysdate a system variable or a system function? Consider a sequence whose currval is 1 and gets incremented by 1 ... Definition of relational DataBase by Dr. Codd (IBM)? What is Multi Threaded Server (MTA) ? Which are initial RDBMS, Hierarchical & N/w database ? What is Functional Dependency What is Auditing ? While designing in client/server what are the 2 imp. things to be considered ? When to create indexes ? How can you avoid indexes ? What is the result of the following SQL ... Can database trigger written on synonym of a table and if it can be then what would be the effect if original table is accessed. Can you alter synonym of view or view ? Can you create index on view What is the difference between a view and a synonym ? What is the difference between alias and synonym ? What is the effect of synonym and table name used in same Select statement ? What's the length of SQL integer ?

What is the difference between foreign key and reference key ? Can dual table be deleted, dropped or altered or updated or inserted ? If content of dual is updated to some value computation takes place or not ? If any other table same as dual is created would it act similar to dual? For which relational operators in where clause, index is not used ? Assume that there are multiple databases running on one machine. How can you switch from one to another ? What are the advantages of Oracle ? What is a forward declaration ? What is its use ? What are actual and formal parameters ? What are the types of Notation ? What all important parameters of the init.ora are supposed to be increased if you want to increase the SGA size ? If I have an execute privilege on a procedure in another users schema, can I execute his procedure even though I do not have privileges on the tables within the procedure ? What are various types of joins ? What is a package cursor ? If you insert a row in a table, then create another table and then say Rollback. In this case will the row be inserted ? What are the various types of queries ?? What is a transaction ? What is implicit cursor and how is it used by Oracle ? Which of the following is not a schema object : Indexes, tables, public synonyms, triggers and packages ? What is PL/SQL? Is there a PL/SQL Engine in SQL*Plus? Is there a limit on the size of a PL/SQL block? Can one read/write files from PL/SQL? How can I protect my PL/SQL source code?

Oracel Interview Question Only (1)

What is Referential Integrity rule? Differentiate between Delete & Truncate command. Implicit Cursor & Explicit Cursor. Ref. key & Foreign key. Where & Having Clause. What are various kinds of Integrity Constraints in Oracle? What are various kind of joins? What is Raise_Application_Error? What are various kinds of exceptions in Oracle? Normal Forms What is meant by Scrollable cursor? The use of HAVING , WHERE and GROUPBY in one SQL? What is meant by SORTING and GROUPING? What are the different types of OUTER JOINS? Explain the UNION operation in SQL . What is meant by OUTER JOIN? What is a Non- corelated subquery? What is a corelated subquery? What do you know about subqueries? What is the theory behind the JOIN statement in DB2? What are the different types of SQL? How to drop the column in a table? How to drop the index? What are the different tablespaces in database? What is the maximum number of triggers, can apply to a single table? What is the output of SIGN function? What are the more common pseudo-columns? Other way to replace query result null value with a text? What are PL/SQL Cursor Exceptions?

Any three PL/SQL Exceptions? Any three PL/SQL Exceptions? Which date function returns number value? Display Odd/ Even number of records? Display the number value in Words? To view installed Oracle version information? Find out nth highest salary from emp table? Implicit Cursor attributes? Explicit Cursor attributes? Display the records between two range I know the nvl function only allows the same data type(ie. number or char or date Nvl(comm, 0)), if commission is null then the text Not Applicable want to display, instead of blank space. How do I write the query??? How do I display row number with records? How do I eliminate the duplicate rows? If a view on a single base table is manipulated will the changes be reflected on the base table? If Yes - under what conditions? Can a view be updated/inserted/deleted? What are the advantages of VIEW? What is CYCLE/NO CYCLE in a Sequence? Is it possible to access the current value in a session before accessing next value? How to access the current value and next value from a sequence? What is a database link? If unique key constraint on DATE column is created, will it validate the rows that are inserted with SYSDATE? How will you activate/deactivate integrity constraints? Where the integrity constraints are stored in data dictionary? What are the pre-requisites to modify datatype of a column and to add a column with NOT NULL constraint? Is it possible to use LONG columns in WHERE clause or ORDER BY? How many LONG columns are allowed in a table? What is the maximum SIZE allowed for each type? What is difference between CHAR and VARCHAR2? What are the data types allowed in a table? What is ON DELETE CASCADE? What is the usage of SAVEPOINTS? What is referential integrity constraint? What is an integrity constraint? What is the fastest way of accessing a row in a table? What is ROWID? Explain UNION, MINUS, UNION ALL and INTERSECT? Difference between SUBSTR and INSTR? Explain CONNECT BY PRIOR? What is correlated sub-query? What is the sub-query? Explain the different types of joins? What is a join? What is difference between TRUNCATE & DELETE? What is a transaction? What are the types of SQL statement? Which datatype is used for storing graphics and images? LONG RAW data type is used for storing BLOB's (binary large objects).? What is a pseudo column. Give some examples? It is a column that is not an actual column in the table? eg USER, UID, SYSDATE, ROWNUM, ROWID, NULL, AND LEVEL.? What are the differences you have seen while installing Oracle on NT and Unix platform? What utility is used to create a logical backup? export

(Continued on next question...)

Other Interview Questions

Is it possible to split the print reviewer into more than one region? Is it possible to center an object horizontally in a repeating frame that has a variable horizontal size? For a field in a repeating frame, can the source come from the column which does not exist in the data group which forms the base for the frame? Can a field be used in a report without it appearing in any data group? The join defined by the default data link is an outer join yes or no? Can a formula column referred to columns in higher group? Can a formula column be obtained through a select statement? Is it possible to insert comments into sql statements return in the data model editor? Is it possible to disable the parameter from while running the report? When a form is invoked with call_form, Does oracle forms issues a save point? Explain the difference between a hot backup and a cold backup and the benefits associated with each. You have just had to restore from backup and do not have any control files. How would you go about bringing up this database? How do you switch from an init.ora file to a spfile? Explain the difference between a data block, an extent and a segment. Give two examples of how you might determine the structure of the table DEPT. Where would you look for errors from the database engine? Compare and contrast TRUNCATE and DELETE for a table. Give the reasoning behind using an index. Give the two types of tables involved in producing a star schema and the type of data they hold. What type of index should you use on a fact table? Give two examples of referential integrity constraints. A table is classified as a parent table and you want to drop and re-create it. How would you do this without affecting the children tables? Explain the difference between ARCHIVELOG mode and NOARCHIVELOG mode and the benefits and disadvantages to each. What command would you use to create a backup control file? Give the stages of instance startup to a usable state where normal users may access it. What column differentiates the V$ views to the GV$ views and how? How would you go about generating an EXPLAIN plan? How would you go about increasing the buffer cache hit ratio? Explain an ORA-01555 Explain the difference between $ORACLE_HOME and $ORACLE_BASE. How would you determine the time zone under which a database was operating? Explain the use of setting GLOBAL_NAMES equal to TRUE. What command would you use to encrypt a PL/SQL application? Explain the difference between a FUNCTION, PROCEDURE and PACKAGE. Explain the use of table functions. Name three advisory statistics you can collect. Where in the Oracle directory tree structure are audit traces placed? Explain materialized views and how they are used. When a user process fails, what background process cleans up after it? What background process refreshes materialized views? How would you determine what sessions are connected and what resources they are waiting for? Describe what redo logs are. How would you force a log switch? Give two methods you could use to determine what DDL changes have been made. What does coalescing a tablespace do? What is the difference between a TEMPORARY tablespace and a PERMANENT tablespace? Name a tablespace automatically created when you create a database. When creating a user, what permissions must you grant to allow them to connect to the database? How do you add a data file to a tablespace How do you resize a data file? What view would you use to look at the size of a data file? What view would you use to determine free space in a tablespace?

How would you determine who has added a row to a table? How can you rebuild an index? Explain what partitioning is and what its benefit is. You have just compiled a PL/SQL package but got errors, how would you view the errors? How can you gather statistics on a table? How can you enable a trace for a session? What is the difference between the SQL*Loader and IMPORT utilities? Name two files used for network connection to a database. What is the function of Optimizer ? What is Execution Plan ? Can one resize tablespaces and data files? (for DBA) What is SAVE POINT ? What are the values that can be specified for OPTIMIZER MODE Parameter ? Can one rename a tablespace? (for DBA) What is RULE-based approach to optimization ? What are the values that can be specified for OPTIMIZER_GOAL parameter of the ALTER SESSION Command ? ) How does one create a standby database? (for DBA) How does one give developers access to trace files (required as input to tkprof)? (for DBA) What are the responsibilities of a Database Administrator ? What is a trace file and how is it created ? What are the roles and user accounts created automatically with the database? What are the minimum parameters should exist in the parameter file (init.ora) ? Why and when should I backup my database? (for DBA What strategies are available for backing-up an Oracle database? (for DBA What is the difference between online and offline backups? (for DBA What is the difference between restoring and recovering? (for DBA How does one backup a database using the export utility? (for DBA What are the built_ins used the display the LOV? How do you call other Oracle Products from Oracle Forms? What is the main diff. bet. Reports 2.0 & Reports 2.5? What are the Built-ins to display the user-named editor? How many number of columns a record group can have? What is a Query Record Group? What does the term panel refer to with regard to pages? What is a master detail relationship? What is a library? What is an anchoring object and what is its use? What are the various sub events a mouse double click event involves? Use the add_group_column function to add a column to record group that was created at a design time? What are the various sub events a mouse double click event involves? What are the various sub events a mouse double click event involves? What is the use of break group? What are the various sub events a mouse double click event involves? What tuning indicators can one use? (for DBA 813. What tools/utilities does Oracle provide to assist with performance tuning? (for DBA What is STATSPACK and how does one use it? (for DBA What are the common RMAN errors (with solutions)? (for DBA How can you execute the user defined triggers in forms 3.0 ? What ERASE package procedure does ? What is the difference between NAME_IN and COPY ? What package procedure is used for calling another form ? When the form is running in DEBUG mode, If you want to examine the values of global variables and other form variables, What package procedure command you would use in your trigger text ? The value recorded in system.last_record variable is of type a. Number b. Boolean c. Character. ? What is mean by Program Global Area (PGA) ? What is hit ratio ? How do you implement the If statement in the Select Statement How many types of Exceptions are there What are the inline and the precompiler directives

How do you use the same lov for 2 columns How many minimum groups are required for a matrix report What is the difference between static and dynamic lov How does one manage Oracle database users? (for DBA 831. How does one tune Oracle Wait events? (for DBA What is the difference between DBFile Sequential and Scattered Reads?(for DBA What is the use of PARFILE option in EXP command ? What is the use of TABLES option in EXP command ? What is the OPTIMAL parameter? How does one use ORADEBUG from Server Manager/ SQL*Plus? (for DBA Are there any undocumented commands in Oracle? (for DBA If the maximum record retrieved property of the query is set to 10 then a summary value will be calculated? What are the different objects that you cannot copy or reference in object groups? What is an OLE? Can a repeating frame be created without a data group as a base? Is it possible to set a filter condition in a cross product group in matrix reports? What is Overloading of procedures ? What are the return values of functions SQLCODE and SQLERRM ? What is Pragma EXECPTION_INIT ? Explain the usage ? What are the datatypes a available in PL/SQL ? What are the two parts of a procedure ? What is the basic structure of PL/SQL ? What is PL/SQL table ? WHAT IS RMAN ? (for DBA WHY USE RMAN ? (for DBA Explain UNION,MINUS,UNION ALL, INTERSECT ? Should the OEM Console be displayed at all times (when there are scheduled jobs)? (for DBA Difference between SUBSTR and INSTR ? What kind of jobs can one schedule with OEM? (for DBA What are the pre requisites ? How does one backout events and jobs during maintenance slots? (for DBA What are the types of SQL Statement ? What is the Oracle Intelligent Agent? (for DBA How does one start the Oracle Intelligent Agent? (for DBA Where can one get more information about TCL? (for DBA Are there any troubleshooting tips for OEM? (for DBA What is import/export and why does one need it? (for DBA what is a display item? How does one use the import/export utilities? (for DBA What are the types of visual attribute settings? Can one export a subset of a table? (for DBA What are the two ways to incorporate images into a oracle forms application? Can one monitor how fast a table is imported? (for DBA Can one import tables to a different tablespace? (for DBA What do you mean by a block in forms4.0? How is possible to restrict the user to a list of values while entering values for parameters? What is SQL*Loader and what is it used for? (for DBA How does one use the SQL*Loader utility? (for DBA How can a cross product be created? Is there a SQL*Unloader to download data to a flat file? (for DBA Can one load variable and fix length data records? (for DBA Can one modify data as it loads into the database? (for DBA Can one load data into multiple tables at once? (for DBA What is the difference between boiler plat images and image items? What are the triggers available in the reports? Why is a Where clause faster than a group filter or a format trigger? Can one selectively load only the records that one need? (for DBA

Can one skip certain columns while loading data? (for DBA How does one load multi-line records? (for DBA How can get SQL*Loader to COMMIT only at the end of the load file? (for DBA Can one improve the performance of SQL*Loader? (for DBA How does one use SQL*Loader to load images, sound clips and documents? (for DBA What is the difference between the conventional and direct path loader? (for DBA What are the various types of Exceptions ? Can we define exceptions twice in same block ? What is the difference between a procedure and a function ? Can you have two functions with the same name in a PL/SQL block ? Can you have two stored functions with the same name ? Can you call a stored function in the constraint of a table ? What are the various types of parameter modes in a procedure ? What is Over Loading and what are its restrictions ? Can functions be overloaded ? Can 2 functions have same name & input parameters but differ only by return datatype What are the constructs of a procedure, function or a package ? Why Create or Replace and not Drop and recreate procedures ? Can you pass parameters in packages ? How ? What are the parts of a database trigger ? What are the various types of database triggers ? What is the advantage of a stored procedure over a database trigger ? What is the maximum no. of statements that can be specified in a trigger statement ? Can views be specified in a trigger statement ? What are the values of :new and :old in Insert/Delete/Update Triggers ? What are cascading triggers? What is the maximum no of cascading triggers at a time? What are mutating triggers ? What are constraining triggers ? Describe Oracle database's physical and logical structure ? Can you increase the size of a tablespace ? How ? What is the use of Control files ? What is the use of Data Dictionary ? What are the advantages of clusters ? What are the disadvantages of clusters ? Can Long/Long RAW be clustered ? Can null keys be entered in cluster index, normal index ? Can Check constraint be used for self referential integrity ? How ? What are the min. extents allocated to a rollback extent ? What are the states of a rollback segment ? What is the difference between partly available and needs recovery ? What is the difference between unique key and primary key ? An insert statement followed by a create table statement followed by rollback ? Will the rows be inserted ? Can you define multiple savepoints ? Can you Rollback to any savepoint ? What is the maximum no. of columns a table can have ? What is the significance of the & and && operators in PL SQL ? Can you pass a parameter to a cursor ? What are the various types of RollBack Segments ? Can you use %RowCount as a parameter to a cursor ? Is the query below allowed : Select sal, ename Into x From emp Where ename = 'KING' (Where x is a record of Number(4) and Char(15)) Is the assignment given below allowed : ABC = PQR (Where ABC and PQR are records) Is this for loop allowed : For x in &Start..&End Loop How many rows will the following SQL return : Select * from emp Where rownum How many rows will the following SQL return : Select * from emp Where rownum = 10; Which symbol preceeds the path to the table in the remote database ? Are views automatically updated when base tables are updated ? Can a trigger written for a view ?

If all the values from a cursor have been fetched and another fetch is issued, the output will be : error, last record or first record ? A table has the following data : [[5, Null, 10]]. What will the average function return ? Is Sysdate a system variable or a system function? Consider a sequence whose currval is 1 and gets incremented by 1 ... Definition of relational DataBase by Dr. Codd (IBM)? What is Multi Threaded Server (MTA) ? Which are initial RDBMS, Hierarchical & N/w database ? What is Functional Dependency What is Auditing ? While designing in client/server what are the 2 imp. things to be considered ? When to create indexes ? How can you avoid indexes ? What is the result of the following SQL ... Can database trigger written on synonym of a table and if it can be then what would be the effect if original table is accessed. Can you alter synonym of view or view ? Can you create index on view What is the difference between a view and a synonym ? What is the difference between alias and synonym ? What is the effect of synonym and table name used in same Select statement ? What's the length of SQL integer ? What is the difference between foreign key and reference key ? Can dual table be deleted, dropped or altered or updated or inserted ? If content of dual is updated to some value computation takes place or not ? If any other table same as dual is created would it act similar to dual? For which relational operators in where clause, index is not used ? Assume that there are multiple databases running on one machine. How can you switch from one to another ? What are the advantages of Oracle ? What is a forward declaration ? What is its use ? What are actual and formal parameters ? What are the types of Notation ? What all important parameters of the init.ora are supposed to be increased if you want to increase the SGA size ? If I have an execute privilege on a procedure in another users schema, can I execute his procedure even though I do not have privileges on the tables within the procedure ? What are various types of joins ? What is a package cursor ? If you insert a row in a table, then create another table and then say Rollback. In this case will the row be inserted ? What are the various types of queries ?? What is a transaction ? What is implicit cursor and how is it used by Oracle ? Which of the following is not a schema object : Indexes, tables, public synonyms, triggers and packages ? What is PL/SQL? Is there a PL/SQL Engine in SQL*Plus? Is there a limit on the size of a PL/SQL block? Can one read/write files from PL/SQL? How can I protect my PL/SQL source code?

Oracel Interview Question Only (2)

What are the differences between database designing and database modeling? If the large table contains thousands of records and the application is accessing 35% of the table which method to use: index searching or full table scan? In which situation whether peak time or off peak time you will execute the ANALYZE TABLE command. Why? How to check to memory gap once the SGA is started in Restricted mode? All the users are complaining that their application is hanging. How you will resolve this situation in OLTP?

If the SQL * Plus hangs for a long time, what is the reason? Shall we create procedures to fetch more than one record? How do you increase the performance of %LIKE operator? You are regularly changing the package body part. How will you create or what will you do before creating that package? How can you see the source code of the package? Dual table explain. Is any data internally storing in dual table. Lot of users are accessing select sysdate from dual and they getting some millisecond differences. If we execute SELECT SYSDATE FROM EMP; what error will we get. Why? In exception handling we have some NOT_FOUND and OTHERS. In inner layer we have some NOT_FOUND and OTHERS. While executing which one whether outer layer or inner layer will check first? What is mutated trigger, is it the problem of locks. In single user mode we got mutated error, as a DBA how you will resolve it? Schema A has some objects and created one procedure and granted to Schema B. Schema B has the same objects like schema A. Schema B executed the procedure like inserting some records. In this case where the data will be stored whether in Schema A or Schema B? What is bulk SQL? How to do the scheduled task/jobs in Unix platform? If the entire disk is corrupted how will you and what are the steps to recover the database? How will you monitor rollback segment status? List the sequence of events when a large transaction that exceeds beyond its optimal value when an entry wraps and causes the rollback segment to expand into another extend? What is redo log file mirroring? How can we plan storage for very large tables When will be a segment released ? What are disadvantages of having raw devices? List the factors that can affect the accuracy of the estima? What is the difference between $$DATE$$ & $$DBDATE$$$$DBDATE$$ retrieves the current database date$ $date$$ retrieves the current operating system How to prevent unauthorized use of privileges granted to a Role ? What is a deadlock and Explain? What are the basic element of base configuration of an Oracle database? What is an index and How it is implemented in Oracle database? What is the use of redo log information? What is a schema? What is Parallel Server? What is a database instance and Explain? What is a datafile? What is a temporary segment? What are the uses of rollback segment

Explain the difference between trigger and stored procedure. Latest answer: Trigger in act which is performed automatically before or after a event occur. Stored procedure is a set of functionality which is executed when it is explicitly invoked................. Read answer Explain Row level and statement level trigger. Latest answer: Row Level Trigger is fired each time row is affected by Insert, Update or Delete command. If statement doesnt affect any row, no trigger action happens................ Read answer Oracle interview questions - Jan 04, 2011 at 05:16 PM by Rahul Hot backup vs. cold backup What are actual and formal parameters? Can we protect our PL/SQL source code? Explain an Exception and its types.

Write a PL/SQL program for a trigger. Latest answer: PL/SQL program for tracking operation on a emp table Create or Replace Trigger EmpTracking Before Insert or Delete or Update on Emp.................. Read answer Advantage of a stored procedure over a database trigger. Latest answer: Stored procedure is a set of pre-compiled SQL statements, executed when it is called in the program. Triggers are similar to stored procedure except it is executed automatically when any operations are occurred on the table.................. Read answer What are cascading triggers? Latest answer: A Trigger that contains statements which cause invoking of other Triggers are known as cascading triggers. Heres the order of execution of statements in case of cascading triggers:................ Read answer Oracle interview questions and answers for freshers and experienced Relational database What is Rational database? Flat database vs. Rational database Features of Rational database Dr. Codd defined thirteen standards which must be met before a database can be considered to be a relational database. What was that? Explain how data is arranged in a rational database with an example.............. Data manipulation language Overview of Data Manipulation Language Explain how to retrieve information using SELECT. Add information using INSERT Change information using UPDATE Remove information using DELETE Use Subqueries as your search condition............ Oracle displaying & aggregating data What are aggregate functions in SQL? What are those functions? Using ROLLUP to aggregate data in SQL Define, syntax and an example with output for:SUM function, AVG (average) function, COUNT function, Max and Min function.............. SQL number functions Define, syntax and an example with output for: ABS(number), CEIL(number), FLOOR(number), MOD(number, divisor), POWER(number, power), SIGN(number), ROUND(number, precision), SQRT(number), TRUNC(number, precision)..................... SQL single-row character CONCAT(string1, string2), INITCAP(string), LENGTH(string), LPAD(string, #,padding_char), RPAD(string, #,padding_char), LTRIM(string,searchString), RTRIM(string,searchString), REPLACE(string,searchString,replacement), SUBSTR(string,start,length), UPPER(string), LOWER(string)........... SQL single-row date functions SYSDATE, ADD_MONTHS(Date, months_to_add), LAST_DAY(Date), MONTHS_BETWEEN(Date1, Date2)...........

Subqueries Explain subqueries with an example - A subquery is a query within a query. The inner query is processed first. They are most commonly used to return data from multiple tables when the exact value is not known............... SQL*Plus What is SQL*Plus? Explain its features Explain how to use the SQL*Plus utility. What are the basic SQL*Plus commands? What is AFIEDT.BUF? Difference between ? and HELP. Explain how to enable the SQL*Plus HELP facility. Difference between @ and @@. Difference between & and &&. Difference between ! and HOST How can one prevent SQL*Plus connection warning messages?............ Oracle database tables What is a Database Table? How many types of tables supported by Oracle? Explain them. Can you explain how to create a aew table in your schema? Explain with an example how to create a new table by selecting rows from another table. Depict a sample script for renaming an existing table. Sample script to drop an existing table. How to Add a new column to an existing table?........... Oracle constraints Oracle constraints - overview. What are the types of constraints avaialable in oracle Explain Oracle "Check" constraint. Explain Not Null constraint. Explain primary key constraint. Explain oracle foreign key constraint. Explain unique Constraint. Explain with an example how to alter oracle table constraint.......... Restricting and sorting data in oracle Explain how to limit the rows that are retrieved by a query. Explain how to sort the rows that are retrieved by a query. What are the comparison operators in oracle. List them with description............... Working with multiple tables joins What are joins? Explain its characteristic features Types of joins. Define, write syntax and an example for each type............ Working with multiple tables Define subquery. Explain with an example What is correlated query? Explain its uses. What are Set Operators? Explain union and union all with an example for each........... PL/SQL Define PL/SQL. Explain its purpose Advantages of PL/SQL Main Features of PL/SQL PL/SQL Architecture Basic Structure of PL/SQL Variables and Types............

PL/SQL control structures Conditional control: IF and CASE Statements. Iterative Control: LOOP and EXIT Statements. GOTO statement takes the control to the labeled statement........... PL/SQL collections What is a Collection? Nested Tables vs. Associative Arrays Nested Tables vs. Varrays Explain the methods exist for collections. - EXISTS , COUNT , LIMIT , FIRST and LAST , PRIOR and NEXT , EXTEND, TRIM , DELETE.............. PL/SQL record data type What is a PL/SQL Record data type? Define and declare Records Different Types of Records - Table-based, Cursor-based, Programmer-defined Benefits of using Records Guidelines for using Records........... PL/SQL cursors What are Cursors? Define cursor attributes: %FOUND, %NOTFOUND, %ROWCOUNT, and %ISOPEN What are cursor variables? Explain with an example Significance of SELECT FOR UPDATE clause. Write syntax Significance of WHERE CURRENT OF clause. Write syntax......... PL/SQL error handling Overview of PL/SQL Error Handling Advantages of PL/SQL Exceptions Explain some of the commonly used Predefined PL/SQL Exceptions. What is user-defined exception? Explain it with an example. Explain how PL/SQL exceptions are raised......... PL/SQL subprograms What are PL/SQL Subprograms? Advantages of PL/SQL Subprograms. PL/SQL has two types of subprograms called procedures and functions. Explain them. How does subprogram pass information? What are actual and formal subprogram parameters? Explain with an example Define three parameter modes, IN (the default), OUT, and IN OUT that can be used with any subprogram............ PL/SQL packages What is a PL/SQL package? Advantages of PL/SQL Packages What are the types and layers of Packages? Explain them PL/SQL Packages features Guidelines for writing packages........ PL/SQL triggers What is a Trigger? Syntax of Triggers Types of PL/SQL Triggers How to obtain information about any trigger? What is CYCLIC CASCADING in a TRIGGER?............ PL/SQL sequences

Define PL/SQL sequences and write syntax for a sequence How do we set the LASTVALUE value in an Oracle Sequence? What does cache and no cache options mean while creating a sequence?......... Oracle/PLSQL indexes What is an Index? Explain how to create an Index. What is Function-Based Index? Create a Function-Based Index........ Users in oracle Types of users - a local user, an external user, or a global user Explain how to create users through Sql Plus. How to delete an Oracle applications user?........... Oracle database performance tuning Explain the purpose of tuning oracle database. Could you explain the areas where tuning of database is required? What are the tools provided by oracle to assist performace tuning? Explain them in brief What is cost based optimization? When is it triggered? Explain the factor that can cause the execution plan of a query to change What is index monitoring feature in oracle? Explain how to use it for index optimization........... Oracle advanced replication What is replication? Explain its purpose. Oracle Server supports two different forms of replication: basic and advanced replication. Explain difference between these. What is the difference between a snapshot and a materialized view? Describe how to implement basic snapshot replication. What object types can and cannot be replicated in oracle? Describe how to monitor replication............. Oracle forms What is oracle forms and what is it used for? Explain how to iterate through items and records in a specified block in oracle form. How to bypass the oracle login screen......... Oracle HTTP Server (Apache) What is the Oracle HTTP Server? How does it work? Explain how to start and stop the Oracle HTTP Server. Explain how to publish static HTML pages on the Oracle HTTP Server. Explain how to execute standard CGI-BIN programs from the Oracle HTTP Server. Explain how to password protect certain directories........... Oracle export and import utilities What is import/export? Explain its usage. Explain how to use the import/export utilities. Can we export a subset of a table? Explain how Can we monitor how fast a table is imported? How? Explain how to import tables to a different tablespace? Explain how to improve Import/Export performance? Describe the common Import/Export problems........... Oracle ODBC connectivity What is ODBC? Explain its purposes Difference between ODBC and Net8. What do I need to get ODBC to work?

Explain how to create a Data Source. Explain how to trace ODBC calls. What is ODBC SQLPASSTHROUGH option? How to attach an Oracle table in MS-Access? Explain how to get Oracle data into MS-Excel........... Personal oracle lite (POL) How compatible is Oracle Lite with the standard oracle server? What is personal oracle lite? Explain how to connect to a POL database Explain how to write Java Stored Procedures Explain how to replicate data using Oracle Lite............. Oracle database backup and recovery Why and when should I backup my database? What strategies are available for backing-up an Oracle database? Difference between online and offline backups. Difference between restoring and recovering Explain how to backup a database using the export utility Explain how to put a database into ARCHIVELOG mode Explain how to do off-line database backups.......... Oracle database Explain how to create a new database Explain how to rename a database Explain how to resize tablespaces and data files Explain how to find the overall database size Explain how to find used/free space in a TEMPORARY tablespace What is ORADEBUG? Explain its uses? Explain how to dump internal database structures........... Oracle parallel query (OPQ) What is Oracle Parallel Query? Difference between Parallel Query and Parallel Server Explain how to invoke Parallel Query Explain how to disable Parallel Query Can single-processor systems benefit from Parallel Query? Explain.......... Oracle web cache What is the Oracle Web Cache? Difference between the Database and Web Cache Explain how to install and configure the Web Cache Explain how to stop and start the Web Cache.............. Oracle spatial What is Oracle Spatial? Difference between Oracle Spatial and Locator Difference between the Relational and Object Spatial model Explain how to install Oracle Spatial........... Oracle real application clusters What is RAC and how is it different from non RAC databases? Can any application be deployed on RAC? Explain Explain how to convert a single instance database to RAC How do we stop and start RAC instances?

Can we test if a database is running in RAC mode? How? How can we keep track of active instances?......... Peoplesoft on oracle What is a PeopleSoft database? How does the PeopleSoft database interact with the Oracle database? What is the order of installing PeopleSoft on Oracle? How can the client workstation connect to a PeopleSoft database? What is the sizing of a generic PeopleSoft HRMS database?.......... What is a JOIN? Explain types of JOIN in oracle. Latest answer: A JOIN is used to match/equate different fields from 2 or more tables using primary/foreign keys. Output is based on type of Join and what is tobe queries...................... Read answer What is a join, explain the types of joins? Latest answer: A join is a query that extracts data from two or more tables, views or snapshots........... Read answer Explain the types of joins. Latest answer: Types of joins are: Equijoins, Non-equijoins, self join, outer join. A Join is used to create query using two or more tables and views.......... Read answer What is object data type in oracle? Latest answer: Object data type is created using object type in oracle. The object data type can only be created using SQL data type such as Number, Varchar 2, Date etc................. Read answer What is composite data type? Latest answer: Collections are usually referred to as Composite Data types. Composite type is one that has components in it. A variable of a composite type contains one or more scalar types................ Read answer Differences between CHAR and NCHAR in Oracle. Latest answer: CHAR and NCHAR are character data types which and have a fixed length. However, CHAR has a specified size in bytes by default and NCHAR has a size specified in characters by default................ Read answer Differences between CHAR and VARCHAR2 in Oracle. Latest answer: CHAR values have a fixed length. They are padded with space characters to match the specified length........... Read answer Differences between DATE and TIMESTAMP in Oracle Latest answer: TIMESTAMP and DATE vary in formats as follows: DATE stores values as century, year, month, date, hour, minute, and second............ Read answer Define CLOB and NCLOB datatypes.

Latest answer: Both CLOB and NCLOB are used to store huge character data in the database, CLOBs store singlebyte character set data............ Read answer What is the BFILE datatypes? Latest answer: The BFILE datatype is used to store unstructured binary data outside the database. The column of BFILE type stores file locator that points the OS file which actually stores data........... Read answer What is Varrays? Latest answer: Varrays, variable length array is quite similar to array of C++ or Java. It has fixed upper-bound size that has to be specified while it is declared.......... Read answer What are LOB datatypes? Latest answer: The LOB datatypes such as BLOB, CLOB, NCLOB and BFile can store large blocks of unstructured data such as graphics, image, video clips etc............ Read answer What is a cursor? What are its types? Latest answer: Oracle engine uses private working area to process queries. This work area is called as cursor. The data that is stored in the cursor is called as Active Data Set............. Read answer Explain the attributes of implicit cursor Latest answer: There are four attributes of implicit cursor in oracle: SQL%IsOPEN - Implicit cursor always returns FALSE as it gets closed automatically........... Read answer Explain the attributes of explicit cursor. Latest answer: There are four attributes of explicit cursor in oracle. %IsOPEN - This evaluates TRUE when cursor is open else FALSE.......... Read answer What is the ref cursor in Oracle? Latest answer: Cursor is a reference type in oracle. We can allocate different storage locations to the cursor when the program runs............ Read answer What are the drawbacks of a cursor? Latest answer: Implicit cursors are less efficient than explicit cursors, Implicit cursors are more vulnerable to data errors.................. Read answer What is a cursor variable? Latest answer: A cursor variable is capable to get associated with different SELECT statements at run time. It is a reference type which is quite similar to pointer in C. In order to use cursor variable........... Read answer Business object interview questions

Latest answer: Differentiate between Data Mining and Data warehousing. What is Data purging? What are CUBES? What are OLAP and OLTP? What are the different problems that Data mining can solve? What are different stages of Data mining?..................... . Read answer OLAP interview questions Latest answer: Explain the concepts and capabilities of OLAP. Explain the functionality of OLAP. What are MOLAP and ROLAP? Explain the role of bitmap indexes to solve aggregation problems. Explain the encoding technique used in bitmaps indexes. What is Binning? What is candidate check?.................. Read answer Next>> Part 1 | Part 2 | Part 3 | Part 4 | part 5 | part 6 | part 7 | part 8 | part 9

Download Oracle interview questions and answers pdf

Test your oracle knowledge with our multiple choice questions!

Oracle interview questions Hot backup vs. cold backup A database backup while it is still up and running is a Hot backup and it must be in archive log mode. A cold backup is a backup while it is shut down. The database does not require being in archive log mode in this mode. The benefit of a hot backup is that the database is still available for use while the backup is occurring. A cold backup is easier to administer the backup and recovery process. Cold backups does not require being in archive log mode and thus slight performance gain as the database is not writing archive logs to disk. What are actual and formal parameters? Actual Parameters The variables or expressions referenced in the parameter list of a subprogram call are actual parameters. Following procedure call lists two actual parameters named empno and amt: raise_sal(empno, amt); Formal Parameters The variables declared in a subprogram specification and referenced in the subprogram body are formal parameters. Following procedure declares two formal parameters named empid and amt: PROCEDURE raise_sal(empid INTEGER, amt REAL) IS current_salary REAL; Oracle interview questions Can we protect our PL/SQL source code? Yes, we can protect. PL/SQL V2.2 implements a binary wrapper for PL/SQL programs to protect the source code. The utility available in this version transforms the PL/SQL source code into portable binary object code and thus protect from exposing your proprietary algorithms and methods.

Explain an Exception and its types. Exception is the error handling part of PL/SQL block. Exception is of two types: Predefined and user defined. Some of Predefined exceptions are

ZERO_DIVIDE NO_DATA_FOUND TOO_MANY_ROWS LOGON_DENIED CURSOR_ALREADY_OPEN INVALID_NUMBER NOT_LOGGED_ON STORAGE_ERROR PROGRAM-ERROR TIMEOUT_ON_RESOURCE VALUE_ERROR DUP_VAL_ON_INDEX INVALID_CURSOR.

More oracle interview questions Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Oracle Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question Question 1: How to retrieve 5th highest sal from emp table? 2: What is $FLEX$ and $PROFILES$? Where are they used? 3: Explain how to pass values from one table to another by using Bulk collect. 4: How to call a trigger inside a stored procedure? 5: What is WATER MARK IN oracle? Explain the significance of High water mark. 6: What is an object groups? 7: Difference between clustering and mirroring 8: Difference between paging and fragmentation 9: Can you explain how to insert an image in table in oracle? 10: How to find out second largest value in the table? 11: Disadvantage of user defined function in oracle. 12: Explain the significance of cluster table or non cluster table. 13: What is pragma restrict_reference in oracle 9i? When do we use it? 14: Why can't we assign not null constraint as table level constraint in oracle? 15: Explain the use of between page triggers in REPORTS. 16: How to delete all duplicate records from a table using subquery? 17: How many types of trigger can be used in a table at a time? What are they? 18: What is partitioned table? What are its types? Explain its purpose and how to create. 19: What is the role of Archiver [ARCn]. 20: Structural difference between bitmap and btree index in oracle. 21: Can you explain how to convert oracle table data into excel sheet? 22: When should we go for hash partitioning? 23: What is Materialized view? What is a snapshot? 24: What are the advantages of running a database in NO archive log mode? 25: What are the advantages of running a database in archive log mode? 26: What is dba_segment in oracle? 27: Purpose of using Nextval while creating the sequence. 28: What is forall Statement? Explain with an example 29: What is flashback Query? Explain its uses with an example 30: What is the tablespace in Oracle? Purpose and significance 31: How to use sequence and what use of sequence cache? 32: Difference between formula column and place holder. 33: How to create placeholder columns in oracle? 34: What is autonomous transaction? 35: How to create LOV in Oracle forms? 36: Which sql command to be used to get a print out from oracle? 37: What is sql*loader parameters and where do we use it? 38: Explain how to see the report output in excel sheet in oracle applications. 39: Can we restore a Table that accidentally dropped? How? 40: What is the use of Data Link in Reports?

Oracle Oracle Oracle Oracle Oracle Oracle

Question Question Question Question Question Question

41: 42: 43: 44: 45: 46:

What are the types of triggers available in Oracle Reports? What are the triggers associated with image items? Explain them Explain how to view the status of the Rollback segment in oracle. What is the use of NOARCHIEVELOG parameter in oracle database? How the SMON process is used to write into LOG files? What are the types of calculated columns available? Explain them

What is implicit cursor in Oracle? Latest answer: An implicit cursor is a cursor which is internally created by Oracle, It is created by Oracle for each individual SQL........... Read answer Can you pass a parameter to a cursor? Explain with an explain Latest answer: Yes, explicit cursors can take parameters........... Read answer What is a package cursor? Latest answer: In a package cursor, the SQL statement for the cursor is attached dynamically at runtime from calling procedures............ Read answer Explain why cursor variables are easier to use than cursors. Latest answer: They are easier to define as there is no need to specify a query statement, The query can also be specified dynamically at the opening time........... Read answer What is locking, advantages of locking and types of locking in oracle? Latest answer: Locking protect table when several users are accessing the same table. Locking is a concurrency control technique in oracle. It helps in data integrity while allowing maximum.......... Read answer What are transaction isolation levels supported by Oracle? Latest answer: READ COMMITTED: If row locks are obtained by a certain transaction, then any other transaction that contains DML needs to wait until the row locks have been released by that particular transaction............. Read answer Explain how to view existing locks on the database. Latest answer: A number of data locks need to be monitored, in order to maintain a good performance level for all sessions, along with the time for which they last............ Read answer Explain how to lock and unlock a user account in Oracle. Latest answer: SQL> ALTER USER user_name ACCOUNT LOCK; SQL> ALTER USER user_name ACCOUNT UNLOCK; Read answer What are background processes in oracle? Latest answer: Oracle uses background process to increase performance : Database writer, DBWn, Log Writer, LGWR, Checkpoint, CKPT, System Monitor, SMON, Process Monitor, PMON, Archiver, ARCn........... Read answer What is SQL*Loader?

Latest answer: It is a database tool that allows data to be loaded from external files into database tables, It is available as part of the free Oracle 10g Expression Edition.......... Read answer What is a SQL*Loader Control File? Latest answer: A SQL*Loader control file contains the following specification: location of the input data file, format of the input date file, target table where the data should be loaded............ Read answer Explain oracle memory structures. Latest answer: Two memory area: System global area(SGA), Program Global Area(PGA).......... Read answer What is Program Global Area (PGA)? Latest answer: The PGA is a memory area that contains data and control information for the Oracle server processes. This area consists of the following components:............. Read answer What is a shared pool? Latest answer: It is the area in SGA that allows sharing of parsed SQL statements among concurrent users........... Read answer What is snapshot in oracle? Latest answer: A recent copy of a table or a subset of rows or cols of a table is called as snapshot in oracle. A snapshot is more useful in distributed computing environment. We can create.......... Read answer What is a synonym? Latest answer: Synonym simplifies the use of the table, the table for which synonym is created can be referred by synonym name............ Read answer What is a schema? Latest answer: Schema represents structure of the database. Database has two main types of schemas partitioned : Physical schema: Describes the database design at the physical level............. Read answer Explain how to list all indexes in your schema. Latest answer: The list of all indexes in a schema can be obtained through the USER_INDEXES view with a SELECT statement:........... Read answer What are Schema Objects? Latest answer: Schema objects are the logical database structure that represents database's data. Schema objects include tables, views, sequences, synonyms, indexes, clusters, database............ Read answer What is an Archiver? Latest answer: Archiving is the process of removing of old data and unused data from the main databases. This process keeps databases smaller, more manageable and thus acquires............. Read answer

What is a sequence in oracle? Latest answer: A Sequence is a user created database object. A sequence can be shared by multiple users to generate unique integers. This object is used to create a primary key value............... Read answer Difference between a hot backup and a cold backup Latest answer: Cold Backup : In this type of backup, after the database is shut down, DBA exits the SVRMGR utility and copies the log files, data files and control files onto a backup media........... Read answer How to retrieve 5th highest sal from emp table? SELECT DISTINCT (emp1.sal) FROM EMP emp1 WHERE &N = (SELECT COUNT (DISTINCT (emp2.sal)).......... Read answer What is $FLEX$ and $PROFILES$? Where are they used? $FLEX$ is used to get a value used in the previous value set. It is usually used to retrieve the Flex value contained in an AOL value.......... Read answer How to call a trigger inside a stored procedure? A trigger cannot be called within a stored procedure. Triggers are executed automatically as a result of DML or DDl commands............ Read answer What is WATER MARK IN oracle? Explain the significance of High water mark. WATER MARK is a divided segment of used and free blocks. Blocks which are below high WATER MARK i.e. used blocks, have at least once........... Read answer What is an object groups? Object group is a container for a group of objects.......... Read answer Difference between clustering and mirroring Clustering means one than one database server configured for the same user connection. When users connect, one of the servers responds.......... Read answer Difference between paging and fragmentation Paging is a concept occurring in memory, whereas, Fragmentation occurs on disk level.......... Read answer Can you explain how to insert an image in table in oracle? Insert image into a table: Create the following table: create table pics_table (bfile_id number,......... Read answer How to find out second largest value in the table? SELECT * FROM EMP WHERE SAL IN (SELECT MAX(SAL) FROM EMP......... Read answer

Disadvantage of user defined function in oracle. Disadvantage of UDF in Oracle: Oracle does not support calling UDFs with Boolean parameters or return types.......... Read answer Explain the significance of cluster table or non cluster table. A Cluster provides an alternate method of storing table data. It is made up of a group of tables that share the same data......... Read answer What are the purposes of Import and Export utilities? Latest answer: Import and Export utilities are helpful in following ways: They can be used for backup and recovery process, they can also be used while moving database between two different............... Read answer Difference between ARCHIVELOG mode and NOARCHIVELOG mode Latest answer: There are two modes in which the hot backup works: ARCHIEVELOG mode, NOARCHIVELOG mode........ Read answer What are the original Export and Import Utilities? Latest answer: The import and export utilities of oracle provide a very simple way to transfer data objects between Oracle databases. These may reside on heterogeneous software and hardware............ Read answer What are data pump Export and Import Modes? Latest answer: Data pump export and import modes are used to determine the type and portions of database to be exported and imported:............... Read answer What are SQLCODE and SQLERRM and why are they important for PL/SQL developers? Latest answer: When a SQL statement raises an exception, Oracle captures the error codes by using the SQLCODE and SQLERRM globally-defined variables............... Read answer Explain user defined exceptions in oracle. Explain the concepts of Exception in Oracle. Explain its type. Latest answer: Exceptions in oracle occur when unwanted situations happen during the execution of a program. They can occur due to system error, user error or application error............. Read answer How exceptions are raised in oracle? Latest answer: Internal exceptions are raised implicitly by the run-time system. However, user-defined exceptions must be raised explicitly by RAISE statements................ Read answer What is tkprof and how is it used? Latest answer: Tkprof is a performance diagnosing utility available to DBAs. It formats a trace file into a more readable format for performance analysis. So that the DBA can identify and resolve............... Read answer

What is Oracle Server Autotrace? Latest answer: The Autotrace feature of Oracle server generates two statement execution reports which are useful for performance tuning. They are: Statement execution path.............. Read answer Explain the different types of queries in Oracle. Latest answer: Session Queries are implicitly constructed and executed by a Session based on input parameters.Input parameters are used to perform the most common data source actions on objects............ Read answer What is SQL*Plus? Latest answer: SQL*Plus is an interactive and batch query tool, it gets installed with every Oracle Database Server or Client installation............. Read answer Explain how to change SQL*Plus system settings. Latest answer: The SET command can be used to change the settings in the SQl*PLUS environment : SET AUTOCOMMIT OFF: Turns off the auto-commit feature, SET FEEDBACK OFF............ Read answer What are SQL*Plus Environment variables? Latest answer: The behaviour of SQL PLUS depends on some environmental variables predefined in the OS: ORACLE_HOME: This variable stores the home directory where the Oracle client............. Read answer What is Output Spooling in SQL*Plus? Latest answer: The spooling feature facilitates copying of all the contents of the command line SQL*Plus to a specified file. This feature is called Spooling............ Read answer What is Input Buffer in SQL*Plus? Latest answer: Input buffer feature of the command-line SQL*Plus tool allows a revision of multiple-line command and rerunning it with a couple of simple commands. The last SQL statement is........... Read answer What is a subquery in Oracle? Latest answer: When a query needs to be run which has a condition that needs to be a result of another query then, the query in the condition part of the main one is called a sub-query............... Read answer What is Data Block? Latest answer: Data blocks are also called logical blocks, Oracle blocks, or pages. At the finest level of granularity, Oracle stores data in data blocks............ Read answer Explain the difference between a data block, an extent and a segment. Latest answer: A data block is the smallest unit of logical storage for a database object. As objects grow they take chunks of additional storage that are composed of contiguous data blocks............. Read answer What are the uses of Rollback Segment?

Latest answer: Rollback segments undo changes when a transaction is rolled back, they also ensure that transactions leave the uncommitted changes unnoticed.............. Read answer What is Rollback Segment in oracle? Latest answer: Rollback Segment in oracle is used to store "undo" information temporarily......... Read answer What are the different types of Segments? Latest answer: Data Segment, Index Segment, Rollback Segment, and Temporary Segment........... Read answer Explain difference between SQL and PL/SQL. Latest answer: PL/SQL is a transaction processing language that offers the following advantages:

support for SQL - SQL is flexible, powerful and easy to learn. support for object-oriented programming...............

<Previous Next>> Part 1 | Part 2 | Part 3 | Part 4 | part 5 | part 6 | part 7 | part 8 | part 9 Write a PL/SQL program for a function returning total tax collected from a particular place. Latest answer: PL/SQL program Create of Replace Function Tax-Amt Place varchar2, Return Number is............ Read answer What are the types PL/SQL code blocks? Latest answer: Anonymous Block, Stored Program Unit, Trigger........... Read answer Advantages of PL/SQL Latest answer: Support SQL data manipulation, provide facilities like conditional checking, branching and looping............. Read answer What is WebDB? Latest answer: WebDB is a tool written in PL/SQL, used to develop HTML based application that can easily interact with Oracle data................... Read answer What is Nested Table? Latest answer: Nested Table is a table inside a table. It can have several rows for each row of its parent table............ Read answer What is clusters? Latest answer: Clusters group together tables that share common columns. These tables are often used together......... Read answer Explain how to add a new column to an existing Table in Oracle.

Latest answer: Use the ALTER TABLE command to do this ALTER TABLE employee ADD (department VARCHAR2);......... Read answer How many types of Tables supported by Oracle? Explain them Latest answer: Ordinary (heap-organized) table, Clustered table, Index-organized table, Partitioned table........... Read answer Explain how to view all columns in an Existing Table. Latest answer: Use the command DESC and the table name to view the information about the columns.......... Read answer Explain how to recover a dropped Table in Oracle. Latest answer: select * from recyclebin where original_name = 'table_name'; Then u can use flashback table table_name to before drop;..................... Read answer What is an Oracle Recycle Bin? Latest answer: The tables that have been dropped can be retrieved back using the reycle bin feature of Oracle, they can be recovered back by the Flashback Drop action............ Read answer What is an External Table? Latest answer: A table with its data stored outside the database as an OS file is an external table........... Read answer Describe how to load data through External Tables. Latest answer: Create an external table with columns matching data fields in the external file........... Read answer What is the role of Archiver [ARCn]? ARCn is an oracle background process responsible for copying the entirely filled online redo log file to the archive log......... Read answer Structural difference between bitmap and btree index in oracle. Btree It is made of branch nodes and leaf nodes. Branch nodes holds prefix key value along with the link to the leaf node. The leaf node in turn........ Read answer Can you explain how to convert oracle table data into excel sheet? There are 2 ways to do so: 1. Simply use the migration wizard shipped with Oracle......... Read answer When should we go for hash partitioning? Scenarios for choosing hash partitioning: Not enough knowledge about how much data maps into a give range........... Read answer

What is Materialized view? What is a snapshot? What are the similarities and differences between Materialized views and snapshots? A materialized view is a database object that contains the results of a query. A snapshot is similar to materialized view.......... Read answer What are the advantages of running a database in NO archive log mode? 1. Less disk space is consumed 2. Causes database to freeze if disk gets full........ Read answer What are the advantages of running a database in archive log mode? It makes it possible to recover database even in case of disk failure............ Read answer What is dba_segment in oracle? DBA_SEGMENTS tells about the space allocated for all segments in the database for storage......... Read answer <<Previous Next>> Part 1 | Part 2 | Part 3 | Part 4 | part 5 | part 6 | part 7 | part 8 | part 9

What are the database objects in oracle?Explain them Latest answer: Table: Composed of rows and column that stores data, View : Represents subset of data from one or more tables........... Read answer Explain the difference between rowid and rownum. Latest answer: RowId represents a row in a table internally. It can be used for fast access to the row. Rownum is a function of the result set........... Read answer. What is a Tablespace? Latest answer: Tablespaces is a logical storage unit. It is used to group related logical structures together........ Read answer Components of logical database structure of Oracle database Latest answer: Tablespaces, Database's schema objects.......... Read answer What is the use of Data Dictionary in oracle? Latest answer: Data Dictionary is used to store information about various physical and logical Oracle structures, e.g.Tables, Tablespaces, datafiles, etc......... Read answer Explain how to assign a Tablespace to a user in Oracle. What are the Predefined Tablespaces in a database? Latest answer: SYSTEM Tablespace, SYSAUX Tablespace, UNDO Tablespace, TEMP Tablespace......... Read answer What are elements of database logical layers?

Latest answer: The logical layer of the database consists of the following elements:........... Read answer What is Data-Dictionary Cache? Latest answer: Data-Dictionary Cache keeps information about the logical and physical structure of the database.......... Read answer Explain the characteristics of Data Files in oracle. Latest answer: One or more data files form a logical unit of database storage called a tablespace........... Read answer Define primary key and foreign key. Latest answer: A column or combination of columns that identify a row of data in a table is Primary Key. A key in a table that identifies records in other table in called a foreign key........... Read answer What are constraints? Latest answer: It is the rules that prevent the invalid entry into the table. They are stored in the data dictionary. They can be defined either at column level or table level........... Read answer Define referential integrity. Latest answer: Referential integrity is the rules that governs the relationships between primary keys and foreign keys of the tables and ensure data consistency. It ensures the value of foreign key be............ Read answer Purpose of using Nextval while creating the sequence. NextVal gives you the available number in the sequence asked for.......... Read answer What is forall Statement? Explain with an example The FORALL binds input as a collection and sends them to the SQL engine for processing........... Read answer What is flashback Query? Explain its uses with an example Oracle Flashback Query allows users to see a consistent view of the database as it was at a point in the past.......... Read answer What is the tablespace in Oracle? Purpose and significance A tablespace is a logical container unit within an Oracle database. It does not exist physically on a filesystem,......... Read answer How to use sequence and what use of sequence cache? Seqences are often used to generate autonumber fields. A sequence is an object in Oracle used to create a number sequence,........... Read answer Difference between formula column and place holder.

Difference between formula column and place holder.......... Read answer How to create placeholder columns in oracle? Steps to create placeholder columns: Click inside the container group at the position where you want the column to be placed............ Read answer What is autonomous transaction? Autonomous transactions have the ability to leave the context of calling transaction, then perform an independent transaction.......... Read answer How to create LOV in Oracle forms? List of Values(LOV) are used either when a selected list is too long and hence would not be appropriate for a drop down, but needs a search form to select the value........... Read answer Which sql command to be used to get a print out from oracle? PRINT: <variablename>....... Explain how to DISABLE and ENABLE constraint. Latest answer: Disable a constraint by using the DISABLE clause, Enable a constraint by using the ENABLE clause........... . Read answer What are the different Levels of Auditing? Explain them Latest answer: Statement Auditing, Privilege Auditing, and Object Auditing........... Read answer Define Statement Auditing, Privilege Auditing and Object Auditing in oracle. Latest answer: Statement auditing is the auditing of the powerful system privileges without regard to specifically named objects............. Read answer What is a profile in oracle? Latest answer: A profile is assigned to each database user that states its limitation on various system resources.......... Read answer What dynamic data replication? Latest answer: Dynamic data replication is the way in which updating or inserting records in remote database through database triggers............ Read answer What is Two-Phase Commit? Latest answer: Two-Phase Commit has two phases, a prepare phase and a commit phase.......... Read answer Explain how to start a new transaction in Oracle.

Latest answer: Oracle server implicitly starts a new transaction with the following two conditions: The first executable statement of a new user session automatically starts a new transaction............. Read answer Explain how to end the current transaction in Oracle. Latest answer: Following commands could be run to explicitly end the current transaction: COMMIT and ROLLBACK............ Read answer Explain how save point works. Delete Vs TRUNCATE VS Drop Latest answer: The DELETE command is used to remove some or all rows from a table. After performing a DELETE operation you need to COMMIT or ROLLBACK the transaction to make the............ Read answer What is a READ WRITE transaction in Oracle? Latest answer: The read consistency is set at the statement level in a READ WRITE transaction.............. Read answer What are the system predefined user roles? Latest answer: Oracle 10g XE comes with 3 predefined roles: CONNECT, RESOURCE, DBA............. Read answer Explain the purpose of Rollback and commit statements. Latest answer: Rollback and commit statement controls database transactions. Both statements ensure the data consistency. They allow users to preview the data before making permanent............ Read answer What are internal user accounts in Oracle? Latest answer: There are a few predefined accounts set by the System in Oracle........... Read answer Describe how to revoke CREATE SESSION privilege from a user. Latest answer: If a CREATE SESSION privilege has been taken from a user, then REVOKE can be used as follows:.......... Read answer What is sql*loader parameters and where do we use it? SQL Loader is used for the following: Load data across a network. Load data from multiple data files during a single load session......... Read answer Explain how to see the report output in excel sheet in oracle applications. It is a two step process: 1. Export Oracle Report to text file........... Read answer Can we restore a Table that accidentally dropped? How? An accidently dropped table can only be recovered from the backup. It is easier to recover tables in Oracle 10g........... Read answer

What is the use of Data Link in Reports? Data links are used to establish parent-child relationships between queries.......... Read answer What are the types of triggers available in Oracle Reports? Types of triggers in Oracle reports: - 1 before parameter form 2 after parameter form.......... Describe the purpose of view in oracle Latest answer: The purpose of views is defined below: Views hide data complexity, views add security by restricting access to the columns of a table........... Read answer What is a dynamic performance view in Oracle? Latest answer: The dynamic performance views are the views that get continuously updated even while the database is open or in use.......... Read answer What are Group Functions in Oracle? Latest answer: COUNT(), MIN(column_name), MAX(column_name), AVG(column_name)........ Read answer WHERE clause vs HAVING clause. Latest answer: HAVING clause is used with group function and it is written after GROUP BY clause. The WHERE clause is used when you want to specify a condition for columns........... Read answer Function VS Procedure Latest answer: A FUNCTION always returns a value using the return statement while a PROCEDURE may return one or more values through parameters or may not return at all........... Read answer What is a union, intersect, minus? Latest answer: UNION: Union operator is used to return all rows from multiple tables and eliminate duplicate rows. The number of columns and the datatypes of the columns must be identical in all............ Read answer Explain the characteristics of function object in Oracle Latest answer: A function can allow one or more or no parameter, a function must have explicit return statement, data type of the return value must be declared in the functions header.............. . Read answer What are the triggers associated with image items? Explain them There are 2 triggers associated with image items: When-Image-Activated: Triggered when image is double clicked......... Read answer Explain how to view the status of the Rollback segment in oracle. SELECT segment_name, status FROM sys.dba_rollback_segs;......... Read answer

What is the use of NOARCHIEVELOG parameter in oracle database? On media failures while the database in NOARCHIVELOG mode, only database to the point of the most recent full database........... Read answer <<Previous Next>> Part 1 | Part 2 | Part 3 | Part 4 | part 5 | part 6 | part 7 | part 8 | part 9 What are the kinds of roles in oracle? Latest answer: Connect: This role allows access to the table belonging to other users. It allows using Select, Insert, Update and Delete command......... Read answer What are the privilege types? Latest answer: The privileges can be of system or object level. SYSTEM level privileges can be assigned by the DBA and the object level privileges are assigned by the owner of the particular object.............. Read answer Explain how to grant DML privilege on a table. Latest answer: A system privilege is the right to perform an action on any schema objects of a particular type............... Read answer What is the purpose of Indexes? Latest answer: Oracle uses indexes to avoid the need for large-table, full-table scans and disk sorts, which are required when the SQL optimizer cannot find an efficient way to service the SQL......... Read answer What is an initialization parameter file in Oracle? Latest answer: The initialization parameter file contains a list of initialization parameters........ Read answer What are layers in Oracle Architecture? Latest answer: The Oracle database has a logical layer and a physical layer. The physical layer consists of the files that reside on the disk and logical layer map the data to these files of physical.......... Read answer What is a static data dictionary in Oracle? Latest answer: The information in data dictionary can be accessed through data dictionary views as they are not directly accessible............ Read answer What is a database buffer cache? Latest answer: Database buffer cache is a component of SGA. It has the responsibility to cache most recent accessed data. It keeps the transaction in the buffer cache till it is written on the disk............ Read answer Name the components of physical database structure of Oracle database. Explain them Latest answer: Datafiles, Redo log files, Control files............. . . Read answer What is pragma restrict_reference in oracle 9i? When do we use it?

Pragma restrict_reference is used to check for violations of any rules applied, at compile time. Its used in functions to obey some........ Read answer Why can't we assign not null constraint as table level constraint in oracle? Not NULL is a column level constraint to ensure that any value in that column is not null,........ Read answer Explain the use of between page triggers in REPORTS. The between-page trigger is used for creating conditional formatting, eg: retrieving information.......... Read answer How to delete all duplicate records from a table using subquery? Query: DELETE from table1 where rowid not in (select MAX(rowid) from table1 GROUP BY column_name);.......... Read answer How many types of trigger can be used in a table at a time? What are they? We can use maximum of 12 triggers on a table. BEFORE INSERT AFTER INSERT......... Read answer What is partitioned table? What are its types? Explain its purpose and how to create. Partitioning allows decomposing large tables and indexes into smaller manageable units called partitions......... Read answer How the SMON process is used to write into LOG files? The Shared Global Area is where SMON process runs. Once the redo log buffer is full........... Read answer What are the types of calculated columns available? Explain them In forms there are 2 types of calculated columns 1. formula column 2.summary column......... Read answer do you get a .PLL extension in oracle? Explain its importance .PLL extension is created when we save a library module. It contains both source code and platform specific complied executable code. What is the use of SYSTEM.EFFECTIVE.DATE variable in oracle? It represents the effective database date. Use of an integrity constraint is better to validate data. Explain Use of an integrity constraint is better to validate data because it prevents invalid data entry at the basic level into the database tables. Explain the function of optimizer in oracle. The optimizer determines the most efficient way to execute a SQL statement based on the kind of data in the table and the statements fired to fetch that data like indexes, full table scans, loops, joins etc. Optimizers are also used to avoid excessive I/O resources.

What is meant by recursive hints in oracle? Number of times a dictionary table is repeatedly called by various processes is known as recursive hint. It occurs because of the small size of data dictionary cache. What are the limitations of a CHECK Constraint? The limitation of CHECK is that the condition must be a Boolean expression evaluated using the values in the row being inserted or updated and can't contain sub queries. Explain the use of ROWS option in IMP command. It indicates whether or not the table rows should be imported. Explain the use of INDEXES option in IMP command. It determines whether indexes are imported. Explain the use of GRANT option in IMP command. GRANT specifies to import object grants. Explain the use of IGNORE option in IMP command. IGNORE defines how object creation errors should be handled. Explain the use of SHOW option in IMP command. When the value of show=y, the DDL within the export file is displayed. What is the use of FILE option in IMP command? FILE param defines the name of the export file to import. Multiple files can be listed, separated by commas. Explain the use of LOG option in EXP command. LOG specifies the log file to write messages. What is hot backup and how it can be taken? Hot backup is taking backup of archived log files when database is open. He ARCHIVELOG switch should be enabled for this to happen. Hot backup happens while the database is still being accessed by users and tables are being updated. It does not need the database to have a downtime.It includes the following:

Data files Archived log files Redo log files Control files

Steps to take a hot backup:

Enable ARCHIVE Log Change tablespace mode to begin backup Now create backup of your control file in Human Readable format Copy all your datafiles, redo logs and control file from your database server to backup location Copy database software $ORACLE_HOME from server to backup location Copy Apps Middle tier all TOPs (APPL_TOP, COMMON_TOP, ORA_TOP)

What are the different kind of export backups? Following are the different kinds of export backups:

Full/Complete backup: Backup of the whole database Incremental backup: Only backup the data that has been modified since last incremental backup Cumulative backup: Only affected tables from the last cumulative backup date

Difference between pre-select and pre-query Pre-select This fires during the execute and count query processing after an oracle form builds the select statement to be executed, but before its execution Pre-query This fires before an oracle form issues the select statement. It executes before the pre-select trigger. Difference between open_form and call_form in oracle. CALL_FORM: This runs a specified form while keeping the parent form active. This allows moving between the forms. Oracle forms run the new form with Run form preferences based on the parent form. When the called form exits, oracle forms resume the parent form along with its last state. Either of the forms can be hidden or displayed based on logic. OPEN_FORM: This executes the current form and executes the new specified form as a modal form. Oracle release the memory for the parent form and the new form is executed using the same Run form preferences as the parent form. What are the different types of Record groups in oracle? Explain each of them Record group is an internal oracle forms data structure having a similar column-row structure and relationship as a database table. They are logical groups and never displayed to the user as such. Various types of Record groups in oracle are:

Query record group: This record group is based on an attached SELECT query. Columns in this record group derive their default names, data types, length etc from the tables referred I the SELECT query. Static record group: This record group is not associated with any query. Their structure and values are defined at design time and thus remain fixed at run time. Non query record group: This record group also does not have an associated query. However, its structure and values can be defined during run time programmatically.

What is a trace file and how is it created in oracle? Trace files are files used to store details of exceptions thrown by Oracle background processes i.e. dbwr, lgwr, pmon, smon etc. They are usually created for diagnostic dumps as well and help in debugging and solving exceptions in Oracle. To create a Trace file in oracle:

Set sql_trace=true with alter session command. This will generate a trace file for all sql commands issued by your user session. This is known as a level-1 trace file. One can also create super detailed level-4 trace files with additional details if the need be. These files are stored in the form $ORACLE_SID_ora_xxx.trc in the trace directory, where xxx is sequential number. To create a lelevl-4 detailed trace file, we need to know the SID and SERIAL# for the session to trace. Eg: to trace for session for SID 5: Connect system as sysdba; ORADEBUG SETOSPID 5; ORADEBUG EVENT 10046 TRACE NAME CONTEXT FOREVER, LEVEL 4

Explain the use of online redo log files in oracle. Every Oracle database has a redo log, which records all changes that have been made in the data files. These files then enable us to replay the SQL Statements. Oracle writes all the changes to the redo log before making any changes in the data files. If something happens to any data file, a backed up data file is restored and the redo log helps in doing so. However, a database can only be recovered if it runs under Archive log mode. Explain ENABLE NOVALIDATE constraint. When a constraint has ENABLE NOVALIDATE state, all subsequent statements are checked for conformity to this constraint. A Table with this constraint can contain invalid data, however, it does not allow any further invalid data to be added to that table. Enabling this constraint is much faster than enabling and validating any other constraint. Also, it does not need any DML locks during validation with this constraint in place. Eg: ALTER TABLE table1 ADD CONSTRAINT fk_table1_table2 FOREIGN KEY (table2_id) REFERENCES table2 (id) ENABLE NOVALIDATE; Explain about data dictionary views with prefix USER_. Data dictionary views with prefix USER_ :

Refer to users private environment in database i.e. including schema objects created by users, grants made by user, etc Display rows which are pertinent to the user only Have columns which are identical to other views but, column OWNER is implied Return a subset of information in the ALL VIEWS Can have abbreviated PUBLIC synonyms

How to create LOV dynamically at runtime & attach to text field? Steps to create a dynamic LOV: 1. Create a record group, eg: RG 2. Create RG Sql query as Select col1,col2,col3 from dual; Keep in mind to adjust data types accordingly 3. Create an LOV and attach this RG to it Use SET_ITEM_PROPERTY to attach text field, dynamic LOV, and value, eg: SET_ITEM_PROPERTY(item_id, LOV_NAME, value); How can we force the database to use the user specified rollback segment? We can do so by using the following SQL statement SET TRANSACTION USE ROLLBACK SEGMENT User_Rollback_Segment_Name Explain the use of CONSISTENT option in EXP command. It specifies the read only statement for export to ensure data consistency. Explain the use of ANALYSE option in EXP command. It is a flag to indicate if the statistical information about the exported objects should be written to export dump file or not.

Explain the use of PARFILE option in EXP command. It specifies the file that contains the export parameters. Explain the use of PARFILE option in EXP command. It specifies the file that contains the export parameters. Explain the use of RECORD option in EXP command. It is the flag that indicates if a record will be stored in data dictionary tables recording the export. Explain the use of INCTYPE option in EXP command. It specifies the type of export to be performed. It can be either COMPLETE, CUMULATIVE, INCREMENTAL. Explain the use of RECORD LENGTH option in EXP command. Specifies the length of the file record in bytes. This parameter affects the amount of data that accumulates before it is written to disk. Explain the use of TABLES option in EXP command. Indicates that the type of export is table-mode and lists the tables to be exported. Explain the use of OWNER option in EXP command. It tells that only the owners objects will be exported. Explain the use of FULL option in EXP command. It tells that the entire database is to be exported. Explain the use of CONSTRAINTS option in EXP command. It specifies whether table constraints should be exported with table data. Explain the use of ROWS option in EXP command. It is the condition to decide if the table rows should be exported or not. Explain the use of INDEXES option in EXP command. It determines whether index definitions are exported. Explain the use of GRANT option in EXP command. It specifies the object grants to export. Explain the use of COMPRESS option in EXP command. When Y, export will mark the table to be loaded as one extent for the import utility. If N, the current storage options defined for the table will be used. Explain the use of FILE option in EXP command. File parameter takes the name of the export file. Multiple files can be listed, separated by commas.

Explain how to prevent tablespace fragmentation in oracle. Tablespace fragmentation can be prevented by using PCTINCREASE command......... Read answer How are extents allocated to a segment in oracle? An extent is stored some specific information. This information is stored using specific number of adjoining data blocks......... Read answer Describe the use of Roles in oracle. Roles in Oracle can be used to grant privileges to a specific group of users for security. The database manager is usually responsible for granting privileges to a Role......... Read answer What is a SNAPSHOT LOG? What are the options available to refresh snapshots in oracle? A snapshot log is a copy of the master table. The snapshot table is updated using batch updates. ........ Read answer What is difference between open_form and call_form? What is new_form built-in in oracle form? Open_form opens the indicated form. Call_form not just opens the indicated form, but also keeps the parent form alive......... Read answer What are difference between post database commit and post-form commit in oracle? Post-form commit fires once during the post and commit transactions process, after the database commit occurs......... Read answer What is advantage of having disk shadowing/ Mirroring in oracle? Avantage of having disk shadowing/ Mirroring in oracle........ Read answer What is use of a cursor variable in oracle? How it is defined? A cursor variable works like pointer in C. It is used to hold address of an item rather than the item itself......... Read answer What is CYCLE/NO CYCLE in a oracle Sequence? When a sequence is created using CYCLE option, values for the column are regenerated........ Read answer Difference between a hot backup and a cold backup in oracle. A cold backup is done when there is no user activity going on with the system. Also called as offline backup........ Read answer What is the difference between the SQL*Loader and IMPORT utilities? SQL*Loader can be used to load data from Delimiter separated files and fixed or variable width text......... Read answer What is Bitmapped indexes? What is b-tree index in oracle?

In a Bitmap index, a 2 dimensional array is created. The array represents the index value multiplied by number of rows......... Read answer What is the difference between REF Cursor & Normal Cursor in oracle? Normal cursors fall under the category of static cursors while REF cursors are dynamic......... Read answer What is Global temporary table in oracle? and what are the benefits of it? GLOBAL TEMPORARY TABLE is used to store temporary data in scenarios where complex calculation is involved......... Read answer What is Pragma Init Exception in oracle? Difference between user defined exception and init pragma exception. Pragma init exception is used to associate a user defined exception with an error number and a custom message........ Read answer Disadvantages of trigger in oracle. Triggers can execute every time some field in database is updated. If a field is likely to be updated often, it is a system overhead......... Read answer What is a NOCOPY parameter in oracle? Apart from IN, OUT, IN OUT parameters, oracle 8i offers another parameter called NOCOPY......... Read answer What is Raise_application_error in oracle? Raise_application_error allows users to create custom error messages........ Read answer Difference between a View and Materialized View in oracle. View is created joining a single or multiple tables. It is an abstract of the data distributed in different tables......... Read answer What is a union, intersect, minus? UNION: Union operator is used to return all rows from multiple tables and eliminate duplicate rows. The number of columns and the datatypes of the columns must be identical in all............ Read answer What are the kinds of roles in oracle? Connect: This role allows access to the table belonging to other users. It allows using Select, Insert, Update and Delete command......... Read answer Define primary key and foreign key. A column or combination of columns that identify a row of data in a table is Primary Key. A key in a table that identifies records in other table in called a foreign key........... Read answer Explain how to DISABLE and ENABLE constraint.

Disable a constraint by using the DISABLE clause, Enable a constraint by using the ENABLE clause........... Read answer Define Statement Auditing, Privilege Auditing and Object Auditing in oracle. Statement auditing is the auditing of the powerful system privileges without regard to specifically named objects.............. Read answer

<Previous

Next>>

Tell me something about yourself. This is the vital question of the interview. Before answering this question you must understand the purpose behind it. The answer to this question reflects what you think about yourself. The answer should be in such a way that it should not be like you are reading your CV all over again. It can be something like Sir , as you already know my name is XXXXx. Tell about your birth place, schooling details..till college. Discuss the time from your birth till now.There is no need to mention the percentage of marks you scored in the school. You can mention the percentage of marks you scored in college, if it is good. In the end finish it with a question, for e.g., Is there any thing else you would like to know about me, sir? Tell me something about your parents. My fathers name is XXXXXX. Discuss his occupation along with his contribution to society and role played by him in society. About your mother same as above if she is working. If she is a house wife then never undermine her contribution by referring to her as a simple house wife. You should portray her as a house maker. Along with this, mention that she is doing her job since so many years consistently without any leave and any appreciation. If you want to change any thing in your life, what will you change? I am very much happy and satisfied with my life, this is the gift of god. But then also, if ever in life knowingly or unknowingly I have ever hurt my elders (parents, teachers), I just want to change that like it never happened and say sorry to them. What is your weakness or what are you afraid of? Most appropriate answer would be something like Sir, I can make a presentation in front of hundreds of people but whenever it came to sing a song in the class, I really shivered and I couldnt sing even a single line. Your weakness should be presented in such a manner that it doesnt seem to be your weakness. What package you are looking for? For freshers: You are very lucky that you are sitting in an interviewyou cant be demanding. Your answer should be, sir as per company policy whatever package would be offered Ill accept that. But this is a very casual answer. Your answer should be something like: Sir, as you know I am a fresher and the only thing I can expect at this point of time is that I should get a job in a prestigious company like yours. Of course every one works for money I would be expecting something which is sufficient to make my living in a city and I should be able to support my family a bit. Do you have a girl friend/Wife? Always speak the truth in your interview, never tell lies. Your views about her should not be orthodox and you should always be supporting and encouraging towards her.

What is your Vision? The answer for this question is to be decided by you. Before you start answering, you should understand the meaning of vision. Vision is a long term task/goal or long life commitment. Now this commitment can be with yourself, towards your society, wife, parents etc. e.g. I want to open an orphanage after finishing all family responsibilities. What is the mission of your life? This is same as vision but the only difference is that mission is for short terms. Like when you were in class XII your mission was to get admission in a good Engineering College. It keeps changing with time. Where do you see yourself after 2-3 years from now? The answer for this question varies from company to company and it depends on the hierarchy of the company. Your answer should be something like: Sir, initially I would be learning and knowing my work and company. In a year or after 1 year I expect from myself to be an expert in solving the issues on L1 level. And after that I would like to get a certification on the technology I am working. So within 2-3 yrs I expect myself to be a proficient engineer on L2 level. What are your hobbies? This is a very tricky question, I repeat very tricky question. You should mention your hobbies in which you have deep knowledge. Like cricket or playing cricket, by mentioning cricket you have given a wide scope to the interviewer as he can ask any thing from cricket infact he can ask any year also. But by mentioning playing cricket you have reduced the scope. Another e.g. is Music and Listening Music. Mentioning reading as your hobby is very risky because if you have read some books and the interviewer has also read it then he can ask a lot of questions related to it. You should be very cautious about it. What kind of a person are you - Introvert/Extrovert? Being totally introvert or extrovert is not right. You should be having a mixed behavior and behave as per the requirement of the situation. You can say something like- Sir, I behave according to the place and situation. Eg. Introvert personally and extrovert professionally. Do you believe in competition or team work? According to famous phrase necessity is the mother of invention. If there is no competition then there will not be any growth, the growth can be professional or personal. For any project or any work, team work is most important because a single person cannot do anything alone. Competition and team work both are important. If your manger has given you a task and your managers manger is saying not to do that work, what you will do? You will obey your manager or his manager? I will obey my manager, as I believe that if my manager has assigned me a work he must have discussed it with his manager. I am his resource and my role is to obey him. In a catastrophic situation like fire what you will do? No heroic an answer is expected from you. They want to see how you would behave in such a situation. You can say something like First, I would ensure my safety and then I will inform the fire department of company and city. If I am in a position of helping someone then I would definitely do that. If you get a better package than here what will you do accept that offer or reject that? This question means a lot. HR people want that the hired person should serve the company for longer period. You can say something like: Sir, as you know I am a fresher and if I switch the jobs very quickly then it will be a question mark on my stability, which will affect my career. Above all, I have to learn and increase my technical knowledge as well. Money comes with knowledge. So, I am here to learn and provide my best to the company. Group Discussion, abbreviated as GD is a form of many-on-many discussion. It has become an inseparable part of admissions to management institutes and your selection in campus interviews. GD is held to identify certain traits that

the companies and the institutes like to see in their employees and students. Lets take a look at the traits which the evaluators look out for in a candidate during the GD. Knowledge Whatever you do in a GD, your knowledge about the subject cant be replaced by anything else. You are required to talk in A GD but a talk that doesnt contain substantial value doesnt hold any meaning. Be a voracious reader to increase your knowledge on various subjects. T.V., Newspapers, magazines, News portals etc. could be your good sources of knowledge. Alertness and presence of mind In a GD you are required to carefully listen to the other persons thoughts and keep an argument, example or a supportive statement, fact, example ready to participate in the discussion. Here comes into picture your alertness and ability to think & act immediately. As you participate in a GD, make sure that you sit with an attentive mind and keep taking down the relevant points put forward by others. Communication You have a lot of good points to put across but if you cant communicate them clearly, you wont stand a chance to impress the evaluators. Practice to communicate in a clear and effective way. Confidence Your self confidence adds a lot of value to your candidature. Look at every group member as you speak, avoid too much hand movement and looking at evaluators. Leadership and team skills Your participation in a GD clearly establishes not only your Leadership skills but also your capability to work in a team. To meet the objectives, a good leader has to be a team player. Goal Orientation As so many people participate in a GD the chances of discussion moving from the subject are high. Your focus on goal can get you some extra points. Now, as you are being evaluated for the above discussed traits, you must the things that can work to your disadvantage and might cost you the selection. Following are the things that you must avoid to do as being a part of the GD: Initiating the discussion without proper subject knowledge Though initiating the discussion helps you get immediate attention of the evaluators but if you start the discussion with irrelevant details, it works to your disadvantage. Start first only if you know the subject well otherwise wait for others to start and get a feel of the subject before entering into the discussion. Snatching others chance to speak Give other group members a chance to speak. Talking more wont get you through the GD In fact it will give the evaluators a feeling that you are not a team player. Making short and relevant contributions of 20-30 seconds 3-4 times in the discussion is enough. Give other members also a chance to speak. Interrupting others Let the other person finish off his comment before you speak. Interrupting others is counted as a negative trait. Remember, it is a discussion not a debate. Dont jump at the conclusions. Listen carefully to the other person before putting your point across.

Dialogue In a GD you are expected to communicate with all the members of the group. Do not keep looking at one person while talking. Establish eye contact with all the members of the group. It is a many-on-many discussion not one-on-one. Shouting or dominating Keep you emotions under control. Do not try to dominate the group or let your emotions rule you. Sometimes it might happen that a group member might say something which hurts your emotions for example a comment on your race or religion, make sure that you do not get into an argument. Your focus should be to effectively meet the goals of GD topic. Show off You have to put across your knowledge on the subject during the GD but you have to be very careful about the thin demarcation between showing off and knowledge sharing. For e.g. Using statistics and facts during the GD is a good thing to do but you must not over do it to nauseate the group members. Low Self Confidence or Insecurities As we have seen earlier, one of the traits evaluated during GD is your self confidence. Do not hesitate to speak confidently. You might be short of ideas or knowledge on the subject. Listen to others and put across your thoughts in a clear and audible voice. Make sure that you make eye contact with all the group members. Slang and negative gestures GD is a formal discussion. Avoid informal words and negative gestures. For e.g. avoid words like gonna, wanna, ya etc. Similarly avoid gestures like pointing fingers, knocking the desk with the pen. If you ensure that you do not commit these mistakes during the GD, you will not have to worry about the negative marks and your chances of getting through it also become bright.

You might also like