Ans. Post-Query is a trigger which fires as soon as the query is execute
d. It is used to populate non-base fields. E.g. select field into :fld7 from table where key = :key. Q.50. What is the difference between Key_Startup & Pre_From? Ans. Key_Startup - Fires when form is executed. Pre_Form - Fires before entering the form. Q.51. Which fires first Post_change or Post_field? Ans. Post_change trigger fires first as Post_change fires a change takes place in a field value. Post_field - fires after leaving the field. Q.52. What is Post_Commit & Pre_Commit ? When are they fired? Ans. Pre_commit & Post_Commit are transactional triggers. Pre_Commit - fires before committing the transaction. Post_Commit - fires after committing the transaction. Q. 53. What is the difference between Pre_Query or Post_query? Ans. Pre-Query - fires before query fetches records from the base t able. Post-Query - fires after query fetches records from the base table. Q. 54. What are the different objects in report writer? Ans. Queries - defines the data to be retrieved from the database. Fields - represent column expressions from the select statements and de scribe the display. GROUPS - contain a set of fields. Groups are used to describe each section or subsection in the report. They dictate the control breaks for subtotalling . Summaries - display subtotals and grant totals. Text - contains fields, summaries and parameter reference combined with refer ence strings such as titles and defines the report format. Report defines the page size, margins, parameter form, text and conte nts of the report. Parameter contains literal values that you can supply at run time. Q.55. What is a rollback segment? Ans. It consists of records of actions that should be undone in the event of power failure, hung user processes, user selected un-commit of work etc. The DB A has control over the size and location of rollback segments through rollbac k definition statements. Q.56. What is a Correlated query ? Ans. A Correlated query is a form of query used in SELECT, UPDATE or DELETE to force to oracle to evaluate the query once per row or the parent query rathe r than once for the entire row. A correlated query is used to answer multi-part questions whose answer depends upon the value in row of the parent query. Q.57. What is an index? Ans. Index is a way to enhance the performance. It provides a fast access pat h to the columns that are indexed. Indexes can ensure that no duplicate values a re entered into a column. Oracle analyses each query to find the fastest path t o data if indexes exists for columns referenced in the WHERE clause.Oracle auto matically uses them wherever appropriate. SQL statement syntax does not change b ecause of Index. Indexes are used to find records for all SQL statements, not j ust queries. Indexes are stored separately from the data. Indexes can be dropped without affecting the data in the table. Each index in a table will be maintained for each INSERT, UPDATE or DELETE as data changes the index is kept to date. User's indexes are tracked in the Data Dictionar y table, ALL_INDEXES. There is no limit to the number of indexes that may be created on a table. Q.58. What is the significance of On-New-Field-Instance & On-Validate ? Ans. On-New-Field Instances fires as soon as the control is passed to t he field on which it is defined. On-validate-field fires after the data is ente red in the filed on which it is defined or control is passing from the fie ld on which it is defined for validation. Q.59. What are system variables? Ans. System variables are variables predefined in oracle which can dir ectly used in any applications. e.g. $$DATE$$, $$DATETIME$$, $$TIME$$, :system .block_status, :system_current_form, :system_current_block, :system_form_status, :system.last_record, :system_message_level Q.60. What is the significance of Key-Others? Ans. Key-Others are associated with all Keys that can have key triggers which are not defined explicitly at any Level.It can be defined on field , block or form. It can be used with SELECT, unrestricted and restricted package proced ures. It is used to disable irrelevant keys.