Top 50 Oracle Interview Questions
Q1. What Are The Two Parts Of A Procedure ?
Procedure Specification and Procedure Body.
Q2. What Are Schema Objects?
Schema items are the logical systems that without delay confer with the database's data. Schema items encompass tables, perspectives, sequences, synonyms, indexes, clusters, database triggers, techniques, features programs and database hyperlinks.
Q3. What Is Rollback Segment ?
A Database incorporates one or extra Rollback Segments to quickly shop "undo" information.
Q4. How Does Space Allocation Table Place Within A Block ?
Each block carries entries as follows
Fixed block header
Variable block header
Row Header,row date (more than one rows might also exists)
PCTEREE (% of free area for row updation in destiny)
Q5. What Are The Various Types Of Queries ?
Normal Queries
Sub Queries
Co-related queries
Nested queries
Compound queries.
Q6. Is It Possible To Split The Print Reviewer Into More Than One Region?
Yes.
Q7. What Will Be Your Partitioning Strategy On Gl_balances? Your Views Please?
This clearly relies upon upon how many periods are regularly suggested upon, how many durations are left open and so on. You can then determine to partition on period_name, or length tiers, or at the repute of the GL Period.
Q8. What Are Mutating Triggers ?
A trigger giving a SELECT at the desk on which the cause is written.
Q9. Which Symbol Preceeds The Path To The Table In The Remote Database?
@.
Q10. What Is The Effect Of Synonym And Table Name Used In Same Select Statement ?
Valid.
Q11. What Is A Trace File And How Is It Created ?
Each server and background method can write an related trace record. When an internal errors is detected by way of a manner or person manner, it dumps information approximately the error to its hint. This can be used for tuning the database.
Q12. What Is The Use Of Indexes Option In Exp Command ?
A flag to suggest whether or not indexes on tables can be exported.
Q13. How Is Mapping Of Name Of Dll And Function Done?
The dll may be created the use of the Visual C++ / Visual Basic Tools after which the dll is positioned inside the route this is described the registry.
Q14. Can You Connect To Non - Oracle Datasource?
Yes.
Q15. What Is The Use Of Redo Log Information?
The statistics in a redo log file is used simplest to get better the database from a machine or media failure prevents database records from being written to a database's data documents.
Q16. Explain About Stacked Canvas Views?
Stacked canvas view is displayed in a window on pinnacle of, or "stacked" on the content canvas view assigned to that equal window. Stacked canvas perspectives difficult to understand a few a part of the underlying content material canvas view, and or regularly proven and hidden programmatically.
Q17. Display The Records Between Two Range?
Pick out rownum, empno, ename from emp wherein rowid in (pick rowid from emp wherein rownum <=&upto minus pick rowid from emp wherein rownum<&Start);
Q18. In Oa Framework Self-service Screen, You Wish To Disable A Tab. How Will You Do It?
Generally speaking, the tabs on a OA Framework page are nothing but the SubMenus. By entering menu exclusion against the responsibility, you can remove the tab from self service page.
Q19. What Are The Different Type Of Segments ?
The different type of Segments are:
Data Segment,
Index Segment,
Rollback Segment and
Temporary Segment.
Q20. What Is Pl/sql?
PL/SQL is Oracle's Procedural Language extension to SQL. The language includes object oriented programming techniques such as encapsulation, function overloading, information hiding (all but inheritance), and so, brings state-of-the-art programming to the Oracle database server and a variety of Oracle tools.
Q21. What Is The Difference Between Alias And Synonym ?
Alias is temporary and used with one query. Synonym is permanent and not used as alias.
Q22. Any Work Done In Oracle Workflow Builder. Did You Customize Or Build A New Workflow?
Yes, I customized the Work Flow For Credit Memo Request approval in AR through Workflow Builder.
Q23. How Many Types Of Sql Statements Are There In Oracle?
There are basically 6 types of sql statments.They are
Data Definition Language(DDL) :: The DDL statements define and maintain objects and drop objects.
Data Manipulation Language(DML) :: The DML statements manipulate database data.
Traction Control Statements :: Manage change by DML
Session Control :: Used to control the properties of current session enabling and disabling roles and changing .E.G. :: Alter Statements, Set Role
System Control Statements :: Change Properties of Oracle Instance .E.G.:: Alter System
Embedded Sql :: Incorporate DDL, DML and T.C.S in Programming Language.E.G:: Using the Sql Statements in languages such as 'C', Open, Fetch, execute and close
Q24. What Is The Difference Between Name_in And Copy ?
Copy is package procedure and writes values into a field. Name in is a package function and returns the contents of the variable to which you apply.
Q25. What Are The Two Ways By Which Data Can Be Generated For A Parameters List Of Values?
Using static values.
Writing select statement.
Q26. What Is Sql*loader And What Is It Used For?
SQL*Loader is a bulk loader utility used for moving data from external files into the Oracle database. Its syntax is similar to that of the DB2 Load utility, but comes with more options. SQL*Loader supports various load formats, selective loading, and multi-table loads.
Q27. What Are The Use Of Roles ?
The use of Roles are:
REDUCED GRANTING OF PRIVILEGES - Rather than explicitly granting the same set of privileges to many users a database administrator can grant the privileges for a group of related users granted to a role and then grant only the role to each member of the group.
DYNAMIC PRIVILEGE MANAGEMENT - When the privileges of a group must change, only the privileges of the role need to be modified. The security domains of all users granted the group's role automatically reflect the changes made to the role.
SELECTIVE AVAILABILITY OF PRIVILEGES - The roles granted to a user can be selectively enable (available for use) or disabled (not available for use). This allows specific control of a user's privileges in any given situation.
APPLICATION AWARENESS - A database application can be designed to automatically enable and disable selective roles when a user attempts to use the application.
Q28. What Is The Best Way To Add Debugging To The Code In Apps?
Use fnd_log.String , i.E. FND Logging. Behind the scenes Oracles FND Logging uses autonomous traction to insert records in a table named fnd_log_messages.
For example
DECLARE BEGIN fnd_log.STRING(log_level => fnd_log.Level_statement ,module=>'xxxx 'here'); END ;
Three profile alternatives effecting FND Logging are
FND: Debug Log Mode.
FND: Debug Log Enabled.
FND: Debug Log Module.
Q29. How Does One Create A Rman Recovery Catalog?
Start through growing a database schema (normally called rman). Assign the right tablespace to it and furnish it the recovery_catalog_owner role. Look at this case:
sqlplus sys
SQL>create consumer rman recognized by means of rman;
SQL> alter user rman default tablespace gear brief tablespace temp;
SQL> modify consumer rman quota limitless on tools;
SQL> provide connect, aid, recovery_catalog_owner to rman;
SQL> exit;
Next, log in to rman and create the catalog schema. Prior to Oracle 8i this was executed by walking the catrman.Square script. Rman catalog rman/rman
RMAN>create catalog tablespace gear;
RMAN> go out;
You can now continue by means of registering your databases inside the catalog. Look at this case:
rman catalog rman/rman goal backdba/backdba
RMAN> sign up database;
Q30. What Is The Difference Between An On-validate-field Trigger And A Trigger ?
On-validate-area trigger fires, while the sphere Validation popularity New or modified. Post-subject-cause each time the manage leaving form the sector, it will fireplace.
Q31. What Are Two Parts Of Package ?
The components of package deal are PACKAGE SPECIFICATION & PACKAGE BODY. Package Specification includes declarations which might be international to the packages and nearby to the schema. Package Body consists of actual methods and local declaration of the techniques and cursor declarations.
Q32. What Is A Trigger ?
A piece of good judgment this is carried out at or brought about by using a SQL *paperwork event.
Q33. What Does Invoke Built-in Do?
This procedure invokes a method.
Syntax:
PROCEDURE OLE2.INVOKE (item obj_type, approach VARCHAR2, listing list_type := zero);
Parameters:
object Is an OLE2 Automation Object.
Technique Is a technique (process) of the OLE2 object.
List Is the name of an issue list assigned to the OLE2.CREATE_ARGLIST characteristic.
Q34. Were You Involved In Any Data Conversion, Which One?
We have done information conversion for1.Suppliers2.AP Invoices3.Customers@AR Invoices.
Q35. What Is Oracle Label Security?
Oracle Label Security (formerly called Trusted Oracle MLS RDBMS) uses the VPD (Virtual Private Database) characteristic of Oracle8i to put into effect row level safety. Access to rows are constrained in step with a person's protection sensitivity tag or label. Oracle Label Security is configured, controlled and managed from the Policy Manager, an Enterprise Manager-primarily based GUI software.
Q36. In A Distributed Database System Can We Execute Two Queries Simultaneously? Justify?
Yes Distributed database gadget based totally on 2 phase commit, one query is independent of 2nd question so of direction we are able to run.
Q37. Can You Pass Values To-and-fro From Foreign Function? How?
Yes . You gain a go back value from a overseas characteristic by assigning the return fee to an Oracle Forms variable or item. Make sure that the Oracle Forms variable or item is the equal information type as the go back fee from the foreign feature.
After assigning an Oracle Forms variable or object cost to a PL/SQL variable, bypass the PL/SQL variable as a parameter cost within the PL/SQL interface of the overseas feature. The PL/SQL variable that is handed as a parameter should be a valid PL/SQL data kind; it must additionally be the ideal parameter kind as described in the PL/SQL interface.
Q38. What Is The Basic Structure Of Pl/square ?
PL/SQL makes use of block structure as its basic shape. Anonymous blocks or nested blocks can be utilized in PL/SQL.
Q39. What Is An Integrity Constraint?
Integrity constraint is a rule that restricts values to a column in a desk.
Q40. What Is Oem (oracle Enterprise Manager)?
OEM is a fixed of systems management tools furnished with the aid of Oracle Corporation for managing the Oracle environment. It offers equipment to display the Oracle surroundings and automate duties (both one-time and repetitive in nature) to take database management a step closer to "Lights Out" control.
Q41. What Is An Oracle Index?
An index is an non-compulsory structure associated with a desk to have direct access to rows, which may be created to increase the performance of statistics retrieval. Index can be created on one or extra columns of a desk.
Q42. What Is The Sub-query?
Sub-question is a question whose go back values are used in filtering situations of the principle query.
Q43. Explain About Horizontal, Vertical Tool Bar Canvas Views?
Tool bar canvas perspectives are used to create tool bars for character windows. Horizontal device bars are display on the pinnacle of a window, simply below its menu bar. Vertical Tool bars are displayed alongside the left facet of a window.
Q44. What Are The Various Ways To Kick-off A Workflow?
You can eiter use wf_engine. Start_process or you could attach a runnable procedure such ghat it subscribes to a workflow occasion.
Q45. Does Oracle Have A Test Environment On Exchange?
Http://testexchange.Oracle.Com.
Q46. How To Retrieve The Count Of Updated Rows?
After strolling an UPDATE assertion, the database server returns a depend of up to date rows. You can retrieve this rely from a unique predefined variable known as SQLp.CROWCOUT, as shown within the following tutorial:
CREATE TABLE emp_temp AS SELECT * FROM personnel; BEGIN UPDATE emp_temp SET salary = revenue * 1.05 WHERE revenue < 5000; DBMS_OUTPUT.PUT_LINE('# of rows updated: ' p.CROWCOUNT); END; / # of rows updated: 49
Q47. What Are The Built-ins Used For Finding Object Id Functions?
Find_group(function)
Find_column(characteristic)
Q48. How Can We Integrate Ar Or Ap To Gl?
We integrate AR or AP to GL through Set of Books.
Q49. Explain The Relationship Among Database, Tablespace And Data File?
Each databases logically divided into one or more tablespaces one or greater statistics documents are explicitly created for each tablespace.
Q50. Can You Pass Data Parameters To Forms?
No.

