Oracle DBA interview questions

Schema objects are the logical structures that directly refer to the database's data. Schema objects include tables, views, sequences, synonyms, indexes, clusters, database triggers, procedures, functions packages and database links. 8. Can objects of the same schema reside in different tablespaces? Yes. 9. Can a tablespace hold objects from different schemes? Yes. 10. What is Oracle table? A table is the basic unit of data storage in an Oracle database. The tables of a database hold all of the user accessible data. Table data is stored in rows and columns. 11. What is an Oracle view? A view is a virtual table. Every view has a query attached to it. (The query is a SELECT statement that identifies the columns and rows of the table(s) the view uses.) 12. Do a view contain data? Views do not contain or store data. 13. Can a view based on another view? Yes. 14. What are the advantages of views? - Provide an additional level of table security, by restricting access to a predetermined set of rows and columns of a table. - Hide data complexity. - Simplify commands for the user. - Present the data in a different perspective from that of the base table. - Store complex queries. 15. What is an Oracle sequence?

Oracle Concepts and Architecture Database Structures 1. What are the components of physical database structure of Oracle database? Oracle database is comprised of three types of files. One or more datafiles, two are more redo log files, and one or more control files. 2. What are the components of logical database structure of Oracle database? There are tablespaces and database's schema objects. 3. What is a tablespace? A database is divided into Logical Storage Unit called tablespaces. A tablespace is used to grouped related logical structures together. 4. What is SYSTEM tablespace and when is it created? Every Oracle database contains a tablespace named SYSTEM, which is automatically created when the database is created. The SYSTEM tablespace always contains the data dictionary tables for the entire database. 5. Explain the relationship among database, tablespace and data file. Each databases logically divided into one or more tablespaces one or more data files are explicitly created for each tablespace. 6. What is schema? A schema is collection of database objects of a user. 7. What are Schema Objects?

A sequence generates a serial list of unique numbers for numerical columns of a database's tables. 16. What is a synonym? A synonym is an alias for a table, view, sequence or program unit. 17. What are the types of synonyms? There are two types of synonyms private and public. 18. What is a private synonym?

The related columns of the tables in a cluster are called the cluster key. 25. What is index cluster? A cluster with an index on the cluster key. 26. What is hash cluster? A row is stored in a hash cluster based on the result of applying a hash function to the row's cluster key value. All rows with the same hash key value are stores together on disk. 27. When can hash cluster used?

Only its owner can access a private synonym. 19. What is a public synonym? Any database user can access a public synonym. 20. What are synonyms used for? 28. What is database link? - Mask the real name and owner of an object. - Provide public access to an object - Provide location transparency for tables, views or program units of a remote database. - Simplify the SQL statements for database users. 21. What is an Oracle index? An index is an optional structure associated with a table to have direct access to rows, which can be created to increase the performance of data retrieval. Index can be created on one or more columns of a table. 22. How are the index updates? Indexes are automatically maintained and used by Oracle. Changes to table data are automatically incorporated into all relevant indexes. 23. What are clusters? Clusters are groups of one or more tables physically stores together to share common columns and are often used together. 24. What is cluster key? Network database link is created and managed by a network domain service. A network database link A database link is a named object that describes a "path" from one database to another. 29. What are the types of database links? Private database link, public database link & network database link. 30. What is private database link? Private database link is created on behalf of a specific user. A private database link can be used only when the owner of the link specifies a global object name in a SQL statement or in the definition of the owner's views or procedures. 31. What is public database link? Public database link is created for the special user group PUBLIC. A public database link can be used when any user in the associated database specifies a global object name in a SQL statement or object definition. 32. What is network database link? Hash clusters are better choice when a table is often queried with equality queries. For such queries the specified cluster key value is hashed. The resulting hash key value points directly to the area on disk that stores the specified rows.

can be used when any user of any database in the network specifies a global object name in a SQL statement or object definition. 33. What is data block? Oracle database's data is stored in data blocks. One data block corresponds to a specific number of bytes of physical database space on disk. 34. How to define data block size? A data block size is specified for each Oracle database when the database is created. A database users and allocated free database space in Oracle data blocks. Block size is specified in init.ora file and cannot be changed latter. 35. What is row chaining? In circumstances, all of the data for a row in a table may not be able to fit in the same data block. When this occurs, the data for the row is stored in a chain of data block (one or more) reserved for that segment. 36. What is an extent? An extent is a specific number of contiguous data blocks, obtained in a single allocation and used to store a specific type of information. 37. What is a segment? A segment is a set of extents allocated for a certain logical structure. 38. What are the different types of segments? Data segment, index segment, rollback segment and temporary segment. 39. What is a data segment? Each non-clustered table has a data segment. All of the table's data is stored in the extents of its data segment. Each cluster has a data segment. The data of every table in the cluster is stored in the cluster's data segment. 40. What is an index segment?

Each index has an index segment that stores all of its data. 41. What is rollback segment? A database contains one or more rollback segments to temporarily store "undo" information. 42. What are the uses of rollback segment? To generate read-consistent database information during database recovery and to rollback uncommitted transactions by the users. 43. What is a temporary segment? Temporary segments are created by Oracle when a SQL statement needs a temporary work area to complete execution. When the statement finishes execution, the temporary segment extents are released to the system for future use. 44. What is a datafile? Every Oracle database has one or more physical data files. A database's data files contain all the database data. The data of logical database structures such as tables and indexes is physically stored in the data files allocated for a database. 45. What are the characteristics of data files? A data file can be associated with only one database. Once created a data file can't change size. One or more data files form a logical unit of database storage called a tablespace. 46. What is a redo log? The set of redo log files for a database is collectively known as the database redo log. 47. What is the function of redo log? The primary function of the redo log is to record all changes made to data. 48. What is the use of redo log information? The information in a redo log file is used only to recover the database from a system or media failure

its control file is used to identify the database and redo log files that must be opened for database operation to proceed. What are the basic element of base configuration of an Oracle database? Data Base Administration 51. 50. An index is a database structure used by the server to have direct access of a row in a table. What is a cluster key? The related columns of the tables are called the cluster key. 49. The memory structure that is used to store the most queried data from database. two or more redo log files. An index is automatically created when a unique of primary key constraint clause is specified in create table command 55.prevents database data from being written to a database's data files. The cluster key is indexed using a cluster index and its value is stored only once for multiple tables in the cluster. What is an index? How it is implemented in Oracle database? Two processes waiting to update the rows of a table.) The server that access the database consists of SGA (Database buffer.views etc. This helps up to improve database performance by decreasing the amount of I/O performed against data file. one or more control files. which are locked by other processes then deadlock arises. 57. The Database contains multiple users/schemas one or more rollback segments one or more tablespaces Data dictionary tables User objects (table. What is a database instance? Explain.. What is Parallel Server? Multiple instances accessing the same database (only in multi-CPU environments) 53. The processes can be shared by all of the users. What does a control file contains? . It is also used in database recovery. What are clusters? Group of tables physically stored together because they share common columns and are often used together is called cluster. What is a deadlock? Explain.Names and locations of a database's files and redolog files. Dictionary Cache Buffers. Shared SQL pool) SMON (System MONito) PMON (Process MONitor) LGWR (LoG Write) DBWR (Data Base Write) ARCH (ARCHiver) CKPT (Check Point) RECO Dispatcher User Process with associated PGS 58. 54.Database name . What is the use of control file? When an instance of an Oracle database is started. 52. Redo log buffers.Time stamp of database creation. The set of objects owned by user account is called the schema. . A database instance (Server) is a set of memory structure and background processes that access a set of database files. What is a schema? It consists of one or more data files.indexes. . 56.

67. dictionary cache. What is a shared pool? The data dictionary cache is stored in an area in SGA called the shared pool. What is a data segment? Data segment are the physical areas within a database block in which the data associated with tables and clusters are stored.sql. they will first brought to redo log buffers in SGA and LGWR will write into files frequently. By increasing the SHARED_POOL_SIZE parameter we can optimize the size of data dictionary cache. These locks will be released automatically when a commit/rollback operation performed or any one of this processes being killed externally.Drop necessary objects.Run the script newfile. 66. 68. It holds the most recently requested structural information between users. Poor design of front-end application may cause this situation and the performance of server will reduce drastically. redo log buffer and shared pool area.ORA decides the size.sql. . If the ratio is greater than 1 then increase the SHARED_POOL_SIZE.Perform import using the command imp system/manager file=export. Monitor the ratio of the reloads takes place while executing SQL statements. 62. What are the factors causing the reparsing of SQL statements in SGA? Due to insufficient shared pool size. . Database buffers are cache in the SGA used to hold the data blocks that are read from the data segments in the database such as tables. Database Logical & Physical Architecture 64. What is mean by Program Global Area (PGA)? It is area in memory that is used by a single Oracle user process. . This will allow sharing of parsed SQL statements among concurrent users. LOG_BUFFER parameter will decide the size. 63.In a database environment this will often happen because of not issuing the proper row lock commands. What is dictionary cache? Dictionary cache is information about the database objects stored in a data dictionary table. 60. It is due to the data dictionary cache is too small.dmp indexfile=newrite. Before writing them into the redo log files. So that they can be used in roll forward operations during database recoveries. What is SGA? The System Global Area in an Oracle database is the area in memory to facilitate the transfer of information between users. What is Database Buffers? Memory Management 59. The structure is database buffers. 61.sql after altering the tablespaces. indexes and clusters DB_BLOCK_BUFFERS parameter in INIT. What is meant by recursive hints? Number of times processes repeatedly query the dictionary table is called recursive hints.Export the user . 65. How will you swap objects into a different table space for an existing database? . It holds the most recently requested structural information about the database. This will create all definitions into newfile. What is redo log buffer? Changes made to the records are written to the online redo log files.

etc. 76. How will you force database to use particular rollback segment? SET TRANSACTION USE ROLLBACK SEGMENT rbs_name. TOOLS . When a segment is dropped its extents are reallocated and are marked as free. 69.Make new rollback segment available (after shutdown. TOOLS1 . How the space utilization takes place within rollback segments? It will try to fit the transaction in a cyclic fashion to all existing extents.ora file and start database) . TEMP .Import from the backup for the necessary objects. How will you create multiple rollback segments in a database? . How does Space allocation table place within a block? .Create a database.. USERS . 71.Standard operational tables.Temporary tablespace for users.Standard Operations Rollback Segments. row date (multiple rows may exists) PCTEREE (% of free space for row updating in future) 75.Indexes for tools table.Create other tablespaces (RBS) for rollback segments. DATA2. RBS1. 73. 70. how much can be extended next. . modify init.Deactivate rollback segment R0 and activate the newly created rollback segments. 74. 72. What is the significance of having storage clause? We can plan the storage for a table as how much initial extents are required. how much % should leave free for managing row updating.Indexes of static tables used for standard operations. 79. What is the functionality of SYSTEM table space? To manage the database level transactions such as modifications of the data dictionary table that record information about the free space usage.Tools table. 78.Data dictionary tables..Static tables used for standard operations INDEXES . What is the role of PCTFREE parameter is storage clause? This is used to reserve certain amount of space in a block for expansion of rows. .Temporary purpose tablespace TEMP_USER . which implicitly creates a SYSTEM rollback segment in a SYSTEM tablespace.Additional/Special Rollback segments. DATA . List the Optional Flexible Architecture (OFA) of Oracle database? How can we organize the tablespaces in Oracle database to have maximum performance? SYSTEM .User tablespace.Which parameter in Storage clause will reduce number of rows per block? PCTFREE parameter Row size also reduces no of rows per block. RBS . INDEXES1 .Create a second rollback segment name R0 in the SYSTEM tablespace. What is the OPTIMAL parameter? It is used to set the optimal length of a rollback segment. 77. . What is meant by free extent? A free extent is a collection of continuous free blocks in tablespace.RBS2 . Once it found an extent is in use then it forced to acquire a new extent (number of extents is based on the optimal size) Each block contains entries as follows Fixed block header Variable block header Row Header.Indexes for Standard operational tables.

How will you monitor the space allocation? By querying DBA_SEGMENT table/view 82. How can we plan storage for very large tables? Limit the number of extents in the table Separate table from its indexes.Contains data but need recovery or corrupted. PARTLY AVAILABLE . 84. Multiple copies of control files are advisable. How to implement the multiple control files for an existing database? Shutdown the database . so that the RBS must extent. This prevents other user using rollback segments. 88.Contains data from an unresolved transaction involving a distributed database.80. 85. Transaction Begins. Why query fails sometimes? Rollback segment dynamically extent to handle larger transactions entry loads. It is possible to use raw devices as data files and what are the advantages over file system files? Yes. Disk corruption will be very less. 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. How will you monitor rollback segment status? Querying the DBA_ROLLBACK_SEGS view IN USE . RBS chooses its oldest inactive segment. 87.Rollback Segment offline INVALID . Calculate the average number rows that can fit in a block Calculate the number of blocks and bytes required for the table. NEEDS RECOVERY . How will you estimate the space required by a non-clustered tables? Calculate the total header size Calculate the available data space per data block Calculate the combined column lengths of the average row Calculate the total average row size.Rollback Segment Dropped. 83. AVAILABLE . After arriving the calculation. A single transaction may wipeout all available free space in the rollback segment tablespace. None is available. An entry is made in the RES header for new transactions entry Transaction acquires blocks in an extent of RBS The entry attempts to wrap into second extent. Transaction Completes. The RBS checks to see if it is part of its OPTIMAL size. OFF-LINE . 81. Allocate sufficient temporary storage. What is a Control file? Database's overall physical architecture is maintained in a file called control file. It will be used to maintain internal consistency and guide recovery operations. add 10 % additional space to calculate the initial extent size for a working table.Rollback Segment is online. The advantages over file system files are that I/O will be improved because Oracle is bye-passing the kernel which writing into disk. 86.Rollback Segment available but not on-line. RBS extents The data dictionary tables for space management are updated. Oldest inactive segment is eliminated.

. What are disadvantages of having raw devices? We should depend on export/import utility for backup/recovery (fully reliable) The tar command cannot be used for physical file backup. does not become free immediately after completion due to delayed cleanout. What is user Account in Oracle database? A user account is not a physical structure in database but it is having important relationship to the objects in the database and will be having certain privileges. .Inserts of.Physical Reads . What is redo log file mirroring? How can be achieved? Process of having a copy of redo log files is called mirroring. 92. What is hit ratio? It is a measure of well the data cache buffer is handling requests for data. 98. 89. Each rollback segment entry must be completed within one rollback segment.Trailing nulls and length bytes are not stored. 91. What is a rollback segment entry? It is the set of before image data blocks that contain rows that are modified by a transaction. In most operating systems if any disk failure occurs it automatically switchover to place of failed disk. instead we can use dd command.Copy one of the existing controlfile to new location Edit Config ora file by adding new control filename Restart the database.Hits Misses)/ Logical Reads. 96. What is advantage of having disk shadowing / mirroring? Shadow set of disks save as a backup in the event of disk failure. updates to and deletes of rows as well as columns larger than a single data block. If any one group fails then database automatically switch over to next group. It degrades performance. Database Security & Administration 97. What is use of rollback segments in Oracle database? They allow the database to maintain read consistency between multiple transactions. A single rollback segment can have multiple rollback segment entries. which is less flexible and has limited recoveries. Hit Ratio = (Logical Reads . This reduces I/O load on the main set of disks. 94. List the factors that can affect the accuracy of the estimations? . 90. How will you enforce security using stored procedures? Don't grant user access directly to tables within the application. 93. This can be achieved by creating group of log files together. Improved performance because most OS support volume shadowing can direct file I/O request to use the shadow set of files instead of the main set of files. When Shrink (RBS only) When truncated (TRUNCATE used with drop storage option) 95.The space used transaction entries and deleted records. so that LGWR will automatically writes them to all the members of the current on-line redo log group. can cause fragmentation a chained row pieces. When will be a segment released? When Segment is dropped. .

starting from n-th position of string1. cannot be rolled back. The search begins from nth position of string1. What is ROWID? .returns all distinct rows selected by the first query but not by the second. ALTER. m) SUBSTR returns a character string of size m in string1. Database triggers fire on DELETE. 104. NO AUDIT & COMMIT. 99. When procedure executed it will execute the privilege of procedures owner. TRUNCATE. MINUS . UNION ALL and INTERSECT? INTERSECT . What are the dictionary tables used to monitor a database space? DBA_FREE_SPACE DBA_SEGMENTS DBA_DATA_FILES. 108. REVOKE. What is the sub-query? Sub-query is a query whose return values are used in filtering conditions of the main query. select empno. What is difference between TRUNCATE & DELETE? TRUNCATE commits after deleting entire table i. UPDATE.Joining two tables in such a way that query can also retrieve rows that do not have corresponding join value in the other table. which retrieves related columns or rows from multiple tables. UNION . String2 (n.e. ename from emp where. DROP. Deleted records can be rolled back or committed.returns all distinct rows selected by either query UNION ALL . LOCK TABLE.Instead grant the ability to access the procedures that access the tables.Joining two tables by equating two common columns. (m)). which has reference to the main query. Transactional Control: COMMIT & ROLLBACK Session Control: ALTERSESSION & SET ROLE System Control: ALTER SYSTEM. 107. What is a transaction? Transaction is logical unit between two commits and commit and rollback. What is correlated sub-query? Correlated sub-query is a sub-query. Difference between SUBSTR and INSTR? INSTR (String1. 101. Outer Join . What are the types of SQL statement? 106. Non-Equi Join . 109. Explain CONNECT BY PRIOR? Data Definition Language: CREATE. Self Join . What is a join? Explain the different types of joins? Retrieves rows in hierarchical order eg. EXPLAIN PLAN & SELECT.Joining two tables by equating two common columns. 100.. Explain UNION. 103. Data Manipulation Language: INSERT.returns all distinct rows selected by both queries. SQL*Plus Statements 105. Join is a query.returns all rows selected by either query.Joining the table with itself. Database triggers do not fire on TRUNCATE DELETE allows the filtered deletion. 102. MINUS. INSTR returns the position of the m-th occurrence of the string 2 in string1. Users cannot access tables except via the procedure. SUBSTR (String1 n. DELETE. including all duplicates. Equi Join .

It is not possible. Because SYSDATE format contains time attached with it. 112. 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? Sequence name CURRVAL. How many LONG columns are allowed in a table? Is it possible to use LONG columns in WHERE clause or ORDER BY? Only one LONG column is allowed. 123. If unique key constraint on DATE column is created.To add a column with NOT NULL constrain. Where the integrity constraints are stored in data dictionary? The integrity constraints are stored in USER_CONSTRAINTS. 121. VARCHAR2 does not pad blank spaces. 110. What are the data types allowed in a table? CHAR. What is the usage of SAVEPOINTS? SAVEPOINTS are used to subdivide a transaction into smaller parts. . 119.To modify the datatype of a column the column must be empty. How will you activate/deactivate integrity constraints? The integrity constraints can be enabled or disabled by ALTER TABLE ENABLE CONSTRAINT / DISABLE CONSTRAINT. 118. What is referential integrity constraint? Maintaining data integrity through a set of rules that restrict the values of one or more columns of the tables based on the values of primary key or unique key of the referenced table. 114. rownumber are the components of ROWID. It is not possible to use LONG column in WHERE or ORDER BY clause. NUMBER. What is the fastest way of accessing a row in a table? Using ROWID. For CHAR the maximum length is 255 and 2000 for VARCHAR2. What is a database link? Database link is a named path through which a remote database can be accessed. 115. RAW. What is ON DELETE CASCADE? When ON DELETE CASCADE is specified Oracle maintains referential integrity by automatically removing dependent foreign key values if a referenced primary or unique key value is removed. CONSTRAINTS 111. . current value can be accessed. 113. Maximum of five save points are allowed. It is 18 characters long. 117. sequence name NEXTVAL. VARCHAR2. What is difference between CHAR and VARCHAR2? What is the maximum SIZE allowed for each type? CHAR pads blank spaces to the maximum length. What are the pre-requisites to modify datatype of a column and to add a column with NOT NULL constraint? . 122. 120. It enables rolling back part of a transaction. LONG and LONG RAW. blockno. What is an integrity constraint? Integrity constraint is a rule that restricts values to a column in a table.ROWID is a pseudo column attached to each row of a table. the table must be empty. Only if you access next value in the session. DATE. will it validate the rows that are inserted with SYSDATE? It won't. 116.

. Explain the difference between a hot backup and a cold backup and the benefits associated with each. Explain the difference between a data block. 1. 6.ora file to a spfile? Issue the create spfile from pfile command. an extent and a segment. The benefit of taking a hot backup is that the database is still available for use while the backup is occurring and you can recover the database to any ball in time. A data block is the smallest unit of logical storage for a database object. All the extents that an object takes when grouped together are considered the segment of the database object. In addition. stipulating where on disk all the data files where and then issue the recover command with the using backup control file clause. NO CYCLE specifies that the sequence cannot generate more values after reaching its maximum or minimum value. which will produce a rollback and thus take longer to complete. What type of index should you use on a fact table? . Give the two types of tables involved in producing a star schema and the type of data they hold. The difference between the two is that the truncate command is a DDL operation and just moves the high water mark and produces a now rollback. The delete command. since you are taking cold backups the database does not require being in archive log mode and thus there will be a slight performance gain as the database is not cutting archive logs to disk. The benefit of taking a cold backup is that it is typically easier to Both the truncate and delete command have the desired outcome of getting rid of all the rows in a table. After pan-ascending sequence reaches its maximum value. 8. Faster access to data blocks in a table. 126. You have just had to restore from backup and do not have any control files. 9. . A cold backup is taking a backup of the database while it is shut down and does not require being in archive log mode. is a DML operation. These groupings of contiguous data blocks are called extents. 2. it generates its maximum. How would you go about bringing up this database? I would create a text based backup control file. 127.To protect some of the columns of a table from other users. 4. it generates its minimum value.get_ddl package.To hide complexity of a query.124. Can a view be updated/inserted/deleted? If Yes . 5.under what conditions? A View can be updated/deleted/inserted if it has only one base table if the view is based on columns from one or more tables then insert. Give the reasoning behind using an index. After a descending sequence reaches its minimum. Fact tables and dimension tables. Use the describe command or use the dbms_metadata. 3. As objects grow they take chunks of additional storage that are composed of contiguous data blocks. What is CYCLE/NO CYCLE in a Sequence? CYCLE specifies that the sequence continue to generate values after reaching either maximum or minimum value. then the changes will be reference on the view. Compare and contrast TRUNCATE and DELETE for a table. 10. A hot backup is basically taking a backup of the database while it is still up and running and it must be in archive log mode. Where would you look for errors from the database engine? In the alert log.To hide complexity of calculations. If a view on a single base table is manipulated will the changes be reflected on the base table? If changes are made to the tables and these tables are the base tables of a view. 125. administer the backup and recovery process. on the other hand. How do you switch from an init. update and delete is not possible. Give two examples of how you might determine the structure of the table DEPT. What are the advantages of VIEW? . A fact table contains measurements while dimension tables will contain data that will help describe the fact tables. 7.

In Oracle 8 they will be able to be of the %ROWTYPE designation. Disable the foreign key constraint to the parent.sql 18. 3. Candidate should mention use of DECLARE statement.sql or utlxpls. NOARCHIVELOG mode is basically the absence of ARCHIVELOG mode and has the disadvantage of not being able to recover to any ball in time. DBMS_JOB.A Bitmap index. ORACLE_HOME located beneath ORACLE_BASE is where the oracle products reside. What column differentiates the V$ views to the GV$ views and how? Expected answer: %ROWTYPE allows you to associate a variable with an entire table row. enable the foreign key constraint. DBMS_PIPE. It can usually be solved by . How would you do this without affecting the children tables? increasing the undo retention or increasing the size of rollbacks. 4. When is a declare statement needed ? You get this error when you get a snapshot too old within rollback. UTL_FILE. Describe the use of PL/SQL tables Use the buffer cache advisory over a given workload and then query the v$db_cache_advice table.The database is opened 16. A primary key and a foreign key. The usual fix involves either use of views or temporary tables so the database is selecting from one while updating the other. Explain the difference between $ORACLE_HOME and $ORACLE_BASE. Give two examples of referential integrity constraints. Describe the use of %ROWTYPE and %TYPE in PL/SQL Alter database backup control file to trace. or RECORD. 15. A table is classified as a parent table and you want to drop and re-create it. drop the table. If they include the SQL routines provided by Oracle. What is a mutating table error and how can you get around it? This happens with triggers.The database is mounted STARTUP OPEN . Describe the difference between a procedure. 2. Use the explain plan set statement_id = 'tst1' into plan_table for a SQL statement Look at the explain plan with utlxplp. 19.Instance startup STARTUP MOUNT . What command would you use to create a backup control file? ORACLE_BASE is the root directory for oracle. DBMS_ALERT. How would you go about increasing the buffer cache hit ratio? Expected answer: Oracle provides the DBMS_ series of packages. 13. 11. 12. Explain an ORA-01555 Expected answer: PL/SQL tables are scalar arrays that can be referenced by a binary integer. DBMS_OUTPUT. DBMS_LOCK. re-create the table. 20. but not really what was asked. How would you go about generating an EXPLAIN plan? Create a plan table with utlxplan. Give the stages of instance startup to a usable state where normal users may access it. even better. DBMS_UTILITY. 1. You should also look at the logic involved in the application getting the error message. If a change was necessary then I would use the alter system set db_cache_size command. STARTUP NOMOUNT . It occurs because the trigger is trying to update a row it is currently using. There are many which developers should be aware of such as DBMS_SQL. DBMS_DDL. 6. DBMS_TRANSACTION. They can be used to hold values for use in later queries or calculations. a function must return a value while a procedure doesn?t have to. Explain the difference between ARCHIVELOG mode and NOARCHIVELOG mode and the benefits and disadvantages to each. ARCHIVELOG mode is a mode that you can put the database in for creating a backup of all transactions that have occurred in the database so that you can recover to any ball in time. function and anonymous pl/sql block. NOARCHIVELOG mode does have the advantage of not having to write transactions to an archive log and thus increases the performance of the database slightly. 5. 14.sql. great. 17. 4What packages (if any) has Oracle provided for use by developers? The INST_ID column which indicates the instance in a RAC environment the information came from. If they can mention a few of these and describe how they used them. The %TYPE associates a variable with a single column type.

What happens if a tablespace clause is left off of a primary key constraint clause This results in the index that is automatically generated being placed in then users default . What are SQLCODE and SQLERRM and why are they important for PL/SQL developers? The IMPORT IGNORE option tells import to ignore "already exists" errors. If the DEFAULT and TEMPORARY tablespace clauses are left out of a CREATE USER command what happens? Is this bad or good? Why Expected answer: Use the %ISOPEN cursor status variable. 2.. UPDATE. If it is not specified the tables that already exist will be skipped. 7. It must come first in a PL/SQL stand alone file if it is used. SHRINK command. Give one method for transferring a table from one schema to another: The Oracle system will use the default name of SYS_Cxxxx where xxxx is a system generated number. These can be viewed as extra credit but aren?t part of the answer.SQL or CAT*. This is bad because it causes user objects and temporary segments to be placed into the SYSTEM tablespace resulting in fragmentation and improper table placement (only data dictionary objects and the system rollback segment should be in SYSTEM). In what order should a open/fetch/loop set of commands in a PL/SQL block be implemented if you use the %NOTFOUND cursor variable in the exit when statement? Why? There are several possible methods. They can be used in exception handling to report. What happens if the constraint name is left out of a constraint clause Expected Answer: There are 12 types of triggers in PL/SQL that consist of combinations of the BEFORE. Another possible method is to just use the SHOW ERROR command. or COPY. the error that occurred in the code. DBMS_SESSION. DBMS_DDL.The DECLARE statement is used in PL/SQL anonymous blocks such as with stand alone. DELETE and ALL key words: BEFORE ALL ROW INSERT AFTER ALL ROW INSERT BEFORE INSERT AFTER INSERT etc. AFTER. CREATE TABLE. The SQLERRM returns the actual error message for the last error encountered. This is bad since it makes tracking which table the constraint belongs to or what the constraint does harder.2 database that has expanded beyond optimal. They may also try to answer with the UTL*. 11. TABLE. if a cursor is open? Use the ALTER TABLESPACE . the error is ignored and the tables data will be inserted. exportimport. how can it be restored to optimal Expected answer: SQLCODE returns the value of the error number for the last error encountered. The DBMS_OUTPUT package can be used to show intermediate results from loops and the status of variables as the procedure is executed. If it is specified. The default value is N. What are some of the Oracle provided packages that DBAs should be aware of Expected answer: Use the DBMS_OUTPUT package. ROW.. AS SELECT.. What are the types of triggers? Oracle provides a number of packages in the form of the DBMS_ packages owned by the SYS user. or. These are especially useful for the WHEN OTHERS exception. 8. INSERT. 4..SQL series of SQL procedures. If not specified in this order will result in the final return being done twice because of the way the %NOTFOUND is handled by PL/SQL. The packages used by DBAs may include: DBMS_SHARED_POOL. 7.. 5. The new package UTL_FILE can also be used. but this only shows errors. How can you generate debugging output from PL/SQL? The user is assigned the SYSTEM tablespace as a default and temporary tablespace. What is the purpose of the IMPORT option IGNORE? What is it?s default setting Expected answer: OPEN then FETCH then LOOP followed by the exit when. store in an error log table. How can you find within a PL/SQL block. 9. 1.. 10. DBMS_UTILITY. DBMS_SQL. 3. nonstored PL/SQL procedures. You have a rollback segment in a version 7. 6. DBMS_OUTPUT and DBMS_SNAPSHOT.

) or has a synonym that balls to the object (create synonym emp for scott. his select is: This is caused by large or long running transactions that have either wrapped onto their own rollback space or have had another transaction write on part of their rollback space.) 14.nextval FROM dual. 13. if the system is not capable of asynchronous IO then up to twice the number of disks used by Oracle number of DB writers should be specified by use of the db_writers initialization parameter. can you recover in the event of a failure? Why or why not The best way is to analyze the table and then use the data provided in the DBA_TABLES view to get the average row length and other pertinent data for the calculation. This can be prevented or mitigated by breaking the transaction into a set of smaller transactions or increasing the size of the rollback segments and their extents. What is the proper method for disabling and reenabling a primary key constraint 13. 15. but this only works against a single instance installation. This table is a single row. 9. greater than 0. single column table that should only have one value in it. A user is getting an ORA-00942 error yet you know you have granted them permission on the table. You can?t create a stored object with grants given through views. If you have an example table.emp. what else should you check You use the ALTER TABLE command for both. A user selects from a sequence and gets back two values. You are using hot backup without being in archivelog mode.emp. what is the best way to get sizing data for the production table implementation If the UNIX system being used is capable of asynchronous IO then only one is required. 8. A developer is trying to create a view and the database won?t let him. 18. for the enable clause you must specify the USING INDEX and TABLESPACE clause for primary keys. depending upon whether you own or only have permission on the view or are using a DBA account.7 or so) then the index should be rebuilt.0 (i. 12.tablespace. Oracle doesn?t store this information as a part of the constraint definition. you couldn?t recover. this can cause serious performance problems. How can you tell if a database object is invalid By checking the status column of the DBA_. He has the "DEVELOPER" role which has the "CREATE VIEW" system privilege and SELECT grants on the tables he is using. So no. How can you determine if an index needs to be dropped and rebuilt Run the ANALYZE INDEX command on the index to validate its structure and then calculate the ratio of LF_BLK_LEN/LF_BLK_LEN+BR_BLK_LEN and if it isn?t near 1. What causes the "snapshot too old" error? How can this be prevented or mitigated There are several ways. what is the problem The index is created in the user?s default tablespace and all sizing information is lost. The quick and dirty way is to look at the number of blocks the table is actually using and ratio the number of rows in the table to its number of blocks against the number of expected rows. ALL_ or USER_OBJECTS views.e. One is to look at the v$session or v$process views. instead of select empid from emp. 16. Another if you are on UNIX is to do a "ps -ef|grep oracle|wc -l? command. but only as part of the index definition. How can you find out how many users are currently logged into the database? How can you find their operating system id You can?t use hot backup without being in archivelog mode. 11. when the constraint was disabled the index was dropped and the information is gone. Or if the ratio .What is the problem Somehow two values have been inserted into the dual table. SELECT pk_seq. However. (On UNIX) When should more than one DB writer process be used? How many should be used You need to verify the developer has direct grants on all tables used in the view. 17. Since this will usually be the same tablespace as the table is being created in. 10. What happens if a primary key constraint is disabled and then enabled without fully specifying the index clause You need to check that the user has specified the full name of the object (select empid from scott. Another way is to check the current_logins parameter in the v$sysstat view.

? from dba_users where username not in ("SYS?. they must all be used in the where clause.. . a single ampersand will cause a reprompt for the value unless an ACCEPT statement is used to get the value from the user. 9. STAR. Another method.3 1. how can you reduce the network traffic Push the processing of the remote data to the remote instance by using a view to pre-select the information for the join. place the ampersanded variable in the code itself: "select * from dba_tables where owner=&owner_name. For example: select rowid from emp e where e. y. spool off Essentially you are looking to see that they know to include a command (in this case DROP USER.BR_BLK_LEN/ LF_BLK_LEN+BR_BLK_LEN is nearing 0. 5. You want to determine the location of identical rows in a table before attempting to place a unique index on the table. how can you do this This is best done with the COLUMN command. the rest have aggregate functions associated with them. What special Oracle feature allows you to specify how the cost based system treats a SQL statement The COST based system allows the use of HINTs to control the optimizer path selection. count(item_no). If you use a min/max function against your rowid and then select against the proposed primary key you can squeeze out the rowids of the duplicate rows pretty quick. min(sum_of_cost).. ALL ROWS." .rowid > (select min(x. You want to group the following set of select returns. The result set of a three table Cartesian product will have x * y * z number of rows where x.&8) to pass the values after the command into the SQLPLUS session.) and that you need to concatenate using the ?||? the values selected from the database. 3. To be prompted for a specific variable. the rowid column. You are joining a local and a remote table. 7. How can variables be passed to a SQL routine 6.emp_no). How do you execute a host operating system command from within SQL By use of the exclamation ball "!" (in UNIX and some other OS) or the HOST (HO) command. What is a Cartesian product This is called dynamic SQL. In the situation where multiple columns make up the proposed key.. z correspond to the number of rows in each table involved in the join. 11.. If they can give some example hints such as FIRST ROWS. although it is hard to document and isn?t always portable is to use the return/linefeed as a part of a quoted string. how can this be done The best method is to use the CHR() function (CHR(10) is a return/linefeed) and the concatenation function "||". what is this called and give an example Oracle tables always have one guaranteed unique column. An example would be: set lines 90 pages 0 termout off feedback off verify off spool drop_all.?SYSTEM?). 8.rowid) from emp x where x. item_no The only column that can be grouped on is the "item_no" column.. 4. what can you group on Max(sum_of_cost). even better. 10. the network manager complains about the traffic involved. For passing in variables the numbers 1-8 can be used (&1.CASCADE. USING INDEX. &2. You want to include a carriage return/linefeed in your output from a SQL script. How can you call a PL/SQL procedure from SQL By use of the EXECUTE (short form EXEC) command. Use of double ampersands tells SQLPLUS to resubstitute the value for each subsequent use of the variable. You want to use SQL to build SQL. 2. A Cartesian product is the result of an unrestricted join of two or more tables.emp_no = e. What SQLPlus command is used to format output from a select By use of the & symbol. This will result in only the data required for the join being sent across.sql select ?drop user ?||username||? cascade..

15.sql script. This is created using the utlxplan. You see multiple fragments in the SYSTEM tablespace. How do you set up tablespaces during an Oracle installation? You should always attempt to use the Oracle Flexible Architecture standard or another partitioning scheme to ensure proper separation of SYSTEM. 14. When looking at v$sysstat you see that sorts (disk) is high. You use it by first setting timed_statistics to true in the initialization file and then turning on tracing for either the entire database via the sql_trace parameter or for the session using the ALTER SESSION command. TEMPORARY and INDEX segments. What is the default ordering of an ORDER BY clause in a SELECT statement 1. 6. Once the trace file is generated you run the tkprof tool against the trace file and then look at the output from the tkprof tool. This option can be shortened to TERM. The explain_plan table is then queried to see the execution plan of the statement. 2. The PAGESIZE and LINESIZE options can be shortened to PAGES and LINES. Explain the use of TKPROF? What initialization parameter should be turned on to get full TKPROF output? The SET option TERMOUT controls output to the screen. What is tkprof and how is it used The tkprof tool is a tuning tool used to determine cpu and execution times for SQL statements. To use it you must have an explain_table generated in the user you are running the explain plan for. This can also be used to generate explain plan output. Setting TERMOUT OFF turns off screen output. REDO LOG. What is explain plan and how is it used Multiple extents in and of themselves aren?t bad. 4. Is this bad? Why or why not. You use it by first setting timed_statistics to true in the initialization file and then turning on tracing for either the entire database via the sql_trace parameter or for the session using the ALTER SESSION command. How do you generate file output from SQL The tkprof tool is a tuning tool used to determine cpu and execution times for SQL statements. getting error ORA-04031. However if you also have chained rows this can hurt performance. Is this bad or good? If bad -How do you correct it? By use of the SPOOL command . The two should have a product equal to 64 or a multiple of 64. Once the explain plan table exists you run the explain plan command giving as its argument the SQL statement to be explained. 17. Explain plans can also be run using tkprof. 5. What are some indications that you need to increase the SHARED_POOL_SIZE parameter? Poor data dictionary or library cache hit ratios. How do you set the number of lines on a page of output? The width Ensure that users don?t have the SYSTEM tablespace as their TEMPORARY or DEFAULT tablespace assignment by checking the DBA_USERS view. A tablespace has a table with 30 extents in it. 8. What is the general guideline for sizing db_block_size and db_multi_block_read for an application that does many full table scans? The SET command in SQLPLUS is used to control the number of lines generated per page and the width of those lines. what should you check first? The EXPLAIN PLAN command is a tool to tune SQL statements. What is the fastest query method for a table Fetch by rowid 7. 3. DATA. How do you prevent output from coming to the screen Oracle almost always reads in 64k chunks. 16. Ascending 12.11. Another indication is steadily decreasing performance with all other tuning parameters the same. How do you prevent Oracle from giving you informational messages during and after a SQL statement execution The SET options FEEDBACK and VERIFY can be set to OFF. for example SET PAGESIZE 60 LINESIZE 80 will generate reports that are 60 lines long with a line width of 80 characters. 13. Once the trace file is generated you run the tkprof tool against the trace file and then look at the output from the tkprof tool. ROLLBACK. This can also be used to generate explain plan output.

15. If you see contention for library caches how can you fix it Increase the size of the shared pool. 14. the "class" column tells you with what. When should you increase copy latches? What parameters control copy latches When you get excessive contention for the copy latches as shown by the "redo copy" latch hit ratio. their value and whether or not the current value is the default value. What can cause a high value for recursive calls? How can this be fixed . rollback or data blocks. When looking at the estat events report you see that you are getting busy buffer waits. 19.? is best. If you see statistics that deal with "undo" what are they really talking about Rollback segments and associated structures.3 only) The hit ratio is a measure of how many times the database was able to read a value from the buffers verses how many times it had to re-read a data value from the disks. 18.0 to 7. It can be corrected by export and import of the effected table. A value greater than 80-90% is good. The ts# parameter corresponds to the ts# value found in the ts$ SYS table. look in the v$parameter view. What is the difference between instantaneous and cumulative hit ratio and which should be used for tuning The SMON process won?t automatically coalesce its free space fragments. drop and import of the tablespace contents may be the only way to reclaim non-contiguous free space. Discuss row chaining. You see the following on a status report: Row chaining occurs when a VARCHAR2 value is updated and the length of the new value is longer than the old value and won?t fit in the remaining block space. If the wait time was high it might indicate a need for more or larger redo logs.If you get excessive disk sorts this is bad. 10. If you do a comparison between pairs of readings based on some arbitrary time span. How can you tell if a tablespace has excessive fragmentation If a select against the dba_free_space table shows that the count of a tablespaces extents is greater than the count of its data files. 9. If you simply take the ratio of existing parameters this will be a cumulative value since the database started. 11. how does it happen? How can you reduce it? How do you correct it In Oracle 7. If a tablespace shows excessive fragmentation what are some methods to defragment the tablespace? (7. no. Is this bad? How can you find what is causing it redo log space requests 23 redo log space wait time 0 Is this something to worry about? What if redo log space wait time is high? How can you fix this Since the wait time is zero. UNDO is rollback segments. 20. 12. 13. This indicates you need to tune the sort area parameters in the initialization files. Where can you get a list of all initialization parameters for your instance? How about an indication if they are default settings or have been changed Buffer busy waits could indicate contention in redo. this is the instantaneous ratio for that time span.3 the ?alter tablespace coalesce.2 The use of the 'alter session set events 'immediate trace name coalesce level ts#'. The value of the "count" column tells where the problem is. 17. 16. For all parameters. DATA is data base buffers. less could indicate problems.1.? command is the easiest way to defragment contiguous free space fragmentation. This results in the row chaining to another block. You can increase copy latches via the initialization parameter LOG_SIMULTANEOUS_COPIES to twice the number of CPUs on your system. It can be reduced by setting the storage parameters on the table to appropriate values. If a tablespace has a default pctincrease of zero what will this cause (in relationship to the smon process) You can look in the init. Describe hit ratio as it pertains to the database buffers.2 and 7. In version 7. You need to check the v$waitstat view to see what areas are causing the problem.7. The major sort are parameter is the SORT_AREA_SIZe parameter. then it is fragmented. If the free space isn?t contiguous then export.ora file for an indication of manually set parameters. Generally speaking an instantaneous reading gives more valuable data since it will tell you what your instance is doing for the time it was generated over.

You need to determine the cause and correct it By either relinking applications to hold cursors. Is there a problem? Should you take any action No there is not a problem. As long as they have a logical plan for combining or further separation more or less disks can be specified. Be sure enough contiguous disk space is available. 28. Increase the size of your extents to reduce the number of wraps. what should you check first to determine if there is a problem ROLLBACK CUR EXTENTS --------------------. 31. You see multiple extents in the temporary tablespace. how do you fix it 26. You have 40 extents showing and an average of 40 concurrent users.A high value for recursive calls is cause by improper cursor usage. If archive logging is turned on during install a large number of logs will be created.8 in the estat library cache report is this a problem? If so. ROLLBACK tablespace on another and still have two for DATA and INDEXES. redo logs on two (mirrored redo logs) the TEMPORARY tablespace on another. How do you set up your tablespace on installation A large number of small shrinks indicates a need to increase the size of the rollback segment extents. 25. You look at the dba_rollback_segs view and see that you have a large number of wraps is this a problem A large number of wraps indicates that your extent size for your rollback segments are probably too small. use proper space management techniques (proper storage and sizing) or ensure repeat queries are placed in packages for proper reuse. This can fill up your archive log destination causing Oracle to stop to wait for more space. Is this a problem This indicate that the shared pool may be too small. and or excessive statement re-parses. In a system with an average of 40 concurrent users you get the following from a query on rollback extents: The answer here should show an understanding of separation of redo and rollback. In fact. Define OFA. Since there is plenty of room to grow no action is needed. 23. To fix this just increase the size of the extents and adjust optimal accordingly. You look at the dba_rollback_segs view and see that there is a large number of shrinks and they are of relatively small size. Yes. You can look at the average transaction size in the same view to get the information on transaction size. you should strive for zero reloads if possible. You have room for each to grow by 20 more extents each. If you see a pin hit ratio of less than 0. . 27. is this a problem? How can it be fixed if it is a problem OFA stands for Optimal Flexible Architecture. What should be done prior to installing Oracle (for the OS and the disks) adjust kernel parameters or OS tuning parameters in accordance with installation guide. excessive dynamic space management actions. An example would be to specify that at least 7 disks should be used for an Oracle installation so that you can place SYSTEM tablespace on one. 21. it can even improve performance since Oracle won?t have to create a new extent when a user needs one. data and indexes and isolation os SYSTEM tables from other tables. Ideally you should have no shrinks or a small number of large shrinks. Increase the shared pool size. You have installed Oracle and you are now setting up the actual instance. 29. If you see the value for reloads is high in the estat library cache report is this a matter for concern As long as they are all the same size this isn?t a problem. 24. 22.-------------------------R01 11 R02 8 R03 12 R04 9 SYSTEM 4 Check to make sure that the archiver isn?t stuck. It is a method of placing directories and files in an Oracle system so that you get the maximum flexibility for future tuning and file placement. 30. They should indicate how they will handle archive logs and exports as well. You have been waiting an hour for the initialization script to finish. If you see excessive reloads then increase the size of the shared pool.

TEMP and ROLLBACK tablespaces A derived key comes from a sequence. 48. . uniform IO and access requirements). What is an artificial (derived) primary key? When should an artificial (or derived) primary key be used You should have at least three groups of two redo logs with the two logs each on a separate disk spindle (mirrored by Oracle). 49. Any answer that has them using their operating system process showing feature to check for these is acceptable. SQLNET. When configuring SQLNET on the server what files must be set up INITIALIZATION file.ORA file 33. see disk configuration answer above. What does a hard one-to-one relationship mean (one where the relationship on both ends is "must") At least 2 on separate disk spindles. dbwr and lgwr. How many redo logs should you have and how should they be configured for maximum recoverability Expected answer: This means the two entities should probably be made into one entity. These type of relationships are usually resolved by adding a small intersection entity. TNSNAMES. 45.32. You have just started a new instance with a large SGA on a busy existing server.ORA. 35. How many control files should you have? Where should they be located A recursive relationship (one where a table relates to itself) is bad when it is a hard relationship (i. pmon. While 3NF is good for logical design most databases. It is used to show the entities and relationships for a database logical model. When should you consider denormalization At least 7. What is an ERD SQLNET. not just file systems. if they have more than just a few tables. Be sure they say on separate disks. TNSNAMES. What must be installed with ODBC on the client in order for it to work with Oracle An ERD is an Entity-Relationship-Diagram. on UNIX a ps -ef|grep dbwr will show what instances are up. will not perform well using full 3NF. You have a simple application with no "hot" tables (i. 46. 43. what should you check for The first thing to check with a large SGA is that it isn?t being swapped out. these will be smon. Usually some entities will be denormalized in the logical to physical transfer process. 41. Usually it is used when a concatenated key becomes too cumbersome to use as a foreign key. The redo logs should not be on raw devices on UNIX if it can be avoided. 39. How can you determine if an Oracle instance is up from the operating system level Something like: In third normal form all attributes in an entity are related to the primary key and only to the primary key 42. What OS user should be used for the first part of an Oracle installation (on UNIX) You must use root first. For example. 44. When configuring SQLNET on the client what files need to be set up False. USER. Performance is terrible.e. When should the default values for Oracle initialization parameters be used as is Never 38. neither side is a "may" both are "must") as this can result in it not being possible to put in a top or perhaps a bottom of the table (for example in the EMPLOYEE table you couldn?t put in the PRESIDENT of the company because he has no boss. Is the following statement true or false: "All relational databases must be in third normal form" There are several base Oracle processes that will be running on multi-user operating systems. How should a many-to-many relationship be handled By adding an intersection entity table 47. or the junior janitor because he has no subordinates).e.ORA 34. 40. 36. 37. Describe third normal form Whenever performance analysis indicates it would be beneficial to do so without compromising data integrity. How many disks should you have assuming standard layout for SYSTEM. Why are recursive relationships bad? How do you resolve them SQLNET and PROTOCOL (for example: TCPIP adapter) layers of the transport programs.ORA file.

Where would you look to find out if a redo log was corrupted assuming you are using Oracle mirrored redo logs There is no message that comes to the SQLDBA or SRVMGR programs during startup in this situation. What file will give you Oracle instance status information? Where is it located ORA-00055 maximum number of DML locks exceeded What is the problem and how do you fix it The number of DML Locks is set by the initialization parameter DML_LOCKS. For SQLNET V2 check for the presence of the LISTENER process(s) or you can issue the command "lsnrctl status". You attempt to add a datafile and get: ORA-06114: (Cnct err. you must check the alert. until freed What is the problem The archive destination is probably full. You get a call from you backup DBA while you are on vacation. You can use the command "tcpctl status" to get a full status of the V1 TCPIP server.log file for this information. As long as all datafiles are safe and he was successful with the BACKUP controlfile command you can do the following: CONNECT INTERNAL STARTUP MOUNT (Take any read-only tablespaces offline before next step ALTER DATABASE DATAFILE . The following message is received: ORA-00257 archiver is stuck. 52. Increase the value of DML_LOCKS. How can you determine if the SQLNET process is running for SQLNET V1? How about V2 ORA-01118: cannot add anymore datafiles: limit of 40 exceeded What is the problem and how can you fix it When the database was created the db_files parameter in the initialization file was set to 40. 57. 54. 51. If you are sure that this is just a temporary problem. other protocols have similar command formats. What do you do The alert. Users from the PC clients are getting the following error stack: ERROR: ORA-01034: ORACLE not available ORA-07318: smsget: open error when opening sgadef. Your users get the following error: For SQLNET V1 check for the existence of the orasrv process. Users from the PC clients are getting messages indicating : 56. up to the value of MAX_DATAFILES as specified at database creation. Users aren?t being allowed on the system.. can't get err txt. smon will not coalesce their free space. you will have to rebuild the control file to increase it before proceeding. See Servr Msgs & Codes Manual) What could the problem be The instance name is probably incorrect in their connection string.ora log. even though you know several have large chunks of contiguous free extents. It is located in the directory specified by the background_dump_dest parameter in the v$parameter table. HP-UX Error: 2: No such file or directory What is the probable cause The Oracle instance is shutdown that they are trying to access. If the MAX_DATAFILES is set to low. Connect internal only.) RECOVER DATABASE USING BACKUP CONTROLFILE ALTER DATABASE OPEN RESETLOGS. You can shutdown and reset this to a higher value. then restart . He has corrupted all of the control files while playing with the ALTER DATABASE BACKUP CONTROLFILE command. 53. restart the instance. you can have them wait and then try again later and the error should clear. You look at your fragmentation report and see that smon hasn?t coalesced any of you tablespaces. (bring read-only tablespaces back online) Shutdown and backup the system. OFFLINE. If pct_increase is zero.dbf file. backup the archive logs and remove them and the archiver will re-start.. What is the problem Check the dba_tablespaces view for the value of pct_increase for the tablespaces.. 59. 58. If this value is set to low (which it is by default) you will get this error. 55.50.

NEW_LINE procedure-Writes one or more OSspecific line terminators to a file. The Delete command will log the data changes in the log file where as the truncate will simply remove the data without it. they can use that to recover as well. When applications developers demand the most powerful interface to the Oracle Database Server. FOPEN function -Opens a file with the maximum line size specified. MAXLOGMEMBERS. command. if you are using autonomous transactions in the Database triggers. Subprogram -Description FOPEN function-Opens a file for input or output with the default line size. Some types of applications that depend upon OCI are: · PL/SQL applications executing SQL · C++ applications using OCCI · Java applications using the OCI-based JDBC driver · C applications using the ODBC driver · VB applications using the OLEDB driver . GET_LINE procedure -Reads a line of text from an open file. If you write applications for the Oracle Database. they call upon the Oracle Call Interface (OCI). UPATE. and security features appear first in the OCI API.ENABLE function? 1000000 Can you use a commit statement within a database trigger? Yes.If they have a recent output file from the ALTER DATABASE BACKUP CONTROL FILE TO TRACE. PUT procedure-Writes a line to a file. PUT_LINE procedure -Writes a line to a file.. What is an UTL_FILE? What are different procedures and functions associated with it? The UTL_FILE package lets your PL/SQL programs read and write operating system (OS) text files. What is the maximum buffer size that can be specified using the DBMS_OUTPUT. FFLUSH procedure-Physically writes all pending output to a file. What is OCI. LOGON LOGOFF etc occurs.. Form triggers on the other hand are fired in response to any event that takes place while working with the forms. However. DELETE. This appends an OS-specific line terminator. say like navigating from one field to another or one block to another and so on. PUTF procedure -A PUT procedure with formatting. and settings for MAXLOGFILES.. Oracle DBA Interview questions Differentiate between TRUNCATE and DELETE. The newest performance. This does not append a line terminator. Truncate is a DDL statement whereas DELETE is a DML statement. It provides a restricted version of standard OS stream file input/output (I/O). FCLOSE_ALL procedure -Closes all open file handles. you likely already depend on OCI. OCI provides the most comprehensive access to all of the Oracle Database functionality. MAXLOGHISTORY. Hence Data removed by Delete command can be rolled back but not the data removed by TRUNCATE. IS_OPEN function -Determines if a file handle refers to an open file. scalability. If no backup of the control file is available then the following will be required: CONNECT INTERNAL STARTUP NOMOUNT CREATE CONTROL FILE .. MAXDATAFILES for the database to use the command. Difference between database triggers and form triggers? Database triggers are fired whenever any database action like INSERT. logfiles.. What are its uses? OCI is Oracle Call Interface. they will need to know all of the datafiles. FCLOSE procedure -Closes a file.

Whats is difference between two env files in <CONTEXT>.sh and if this exists use adcfginfo. <CONTEXT>. Where would i find . f60webmx picks up this file and based on this configuration file creates a forms session to user/client. By default all Apps 11i Instances 11. # ICM .cfg stored and why its used ? This file is defined by environment variable FORMS60_WEB_CONFIG_FILE This is usually in directory $OA_HTML/bin on forms tier. COBOL. Rapid Clone is part of Rapid Install Product whose Family Pack Name is ADX. If they are a part of a package then one have to remove it from the package definition and body and recompile the package. Examples are the Pro*C Precompiler for C. etc. that directory will contain reports. look for any configuration file under APPL_TOP if system is Autoconfig enabled then you will see entry like How to check if Oracle Apps 11i System is Rapid Clone enabled ? For syetem to be Rapid Clone enabled . If you have multiple languages Installed in your Applications then you will see other languages directories besides US. link.cfg or appsweb_$CONTEXT. By default standard location is $APPLCSF/$APPLLOG . The precompiler accepts the source program as input. Where is appsweb.env under 806 ORACLE_HOME and custom. You should have Rapid Clone Patches applied . AR for arabic. What is Multi Node System ? . simplifies chinese or spanish. and generates a modified source program that one can compile. US directory is defauly language directory in Oracle Applications. if they are standalone procedures or functions. fmx and other code in that respective directory like FR for France.env is main environment file which inturn calls other environment files like <CONTEXT>. Whats US directory in $AD_TOP or under various product TOP's . # CRM .· Pro*C applications · Distributed SQL What are ORACLE PRECOMPILERS? A precompiler is a tool that allows programmers to embed SQL statements in high-level source programs like C. This file is used by any forms client session.sh contextfile=<CONTEXT> show=enabled If this file is not there .env under $APPL_TOP ? APPS<CONTEXT>.9 and above are Autoconfig and Rapid Clone enabled.env for any Customized environment files. resolve conflicts in case of incompatibility.Which Manage processesing of requests. How to check if Apps 11i System is Autoconfig enabled ? Under $AD_TOP/bin check for file adcfginfo. What is syntax for dropping a procedure and a function? Are these operations possible? Drop Procedure/Function . SQLJ for Java etc. and execute in the usual way. yes. When a user try to access forms .env and APPS<CONTEXT>. translates the embedded SQL statements into standard Oracle runtime library calls.env under $APPL_TOP.5. in some cases it can go to $FND_TOP/log as well.Conflict Resolution Managers . Pro*Cobol for Cobol. Where is Concurrent Manager log file location. it should be Autoconfig enabled (Check above How to confirm if Apps 11i is Autoconfig enabled). and what execatly it dose ? These files are used during restart of patch in case of patch failure because of some reason. Whats main concurrent Manager types.rf9 file.Internal Concurrent Manager which manages concurrent Managers # Standard Managers . C++.

/* Declare a record with same structure as cursor . Just like constants. Can cursor variables be stored in PL/SQL tables. its IN parameters function like constants. */ company_curvar company_curtype. or expression. IN . /* Declare a cursor variable of that type. while a procedure does not. IN is the default mode for parameters. IN OUT .With an IN OUT parameter. Concurrent Manager on one machine and forms. Use the OUT parameter to pass a value back from the program to the calling PL/SQL block. If yes how. You cannot assign values to the IN parameter or in any other way modify its value. any assignments to an OUT parameter are actually made to an internal copy of the OUT parameter. What are different modes of parameters used in functions and procedures? There are three different modes of parameters: IN. OUT or IN OUT. If not why? yes. The actual parameters are the values or expressions placed in the parameter list of the actual call to the module. unchanged value or a new value set within the program). that is). the value in that local copy is then transferred to the actual OUT parameter. but will not pass anything out of the module and back to the calling PL/SQL block. and IN OUT. the OUT parameter has no value at all until the program terminates successfully (without raising an exception. A function always returns a value. That value is then available in the calling PL/SQL block. An OUT parameter is like the return value for a function.An OUT parameter is the opposite of the IN parameter. It cannot be a constant. If not why? Yes. but it appears in the parameter list and you can. What is difference between a formal and an actual parameter? The formal parameters are the names that are declared in the parameter list of the header of a module. Typical example is Database. Create a cursor type . IN. During the execution of the program. since these formats do not provide a receptacle in which PL/SQL can place the outgoing value. Can the default values be assigned to actual parameters? Yes. you can pass values into the program and return a value back to the calling program (either the original. DECLARE /* Create the cursor type. for the purposes of the program. The IN OUT parameter shares two restrictions with the OUT parameter: An IN OUT parameter cannot have a default value. In fact. Inside the program. When you call a function you must always assign its value to a variable. Can a function take OUT parameters. An IN OUT actual parameter or argument must be a variable.Multi Node System in Oracle Applications 11i means you have Applications 11i Component on more than one system.The IN parameter allows you to pass values in to the module. OUT . the value of the formal IN parameter cannot be changed within the program. In other words. Difference between procedure and function. of course. */ TYPE company_curtype IS REF CURSOR RETURN company%ROWTYPE. When the program terminates successfully and returns control to the calling block. OUT. an OUT parameter acts like a variable that has not been initialised. have as many OUT parameters as you like. Web Server on second machine is example of Two Node System.REF CURSOR and declare a cursor variable of that type. literal. IN parameters can be given default values in the program header. In such case you don’t need to specify any value and the actual parameter will take the default value provided in the function definition.

What are various options available with adpatch ? Various options available with adpatch depending on your AD version are autoconfig. check_exclusive. You don't have to do any thing manually for Global oraInventory. integrity. Can you apply patch without putting Applications 11i in Maintenance mode ? Yes. With AD. maintainmrc. */ OPEN company_curvar FOR SELECT * FROM company. */ CLOSE company_curvar. The cursor must be opened before using it in order to fetch the result set of the query it is associated with. */ FETCH company_curvar INTO company_rec. How do you open and close a cursor variable. Why it is required? Using OPEN cursor_name and CLOSE cursor_name commands. copyportion. /* Fetch from the cursor variable.dbc file . associating with it a SQL statement. where its stored . parallel. validate ADIDENT UTILITY is used for what ? ADIDENT UTILITY in oracle apps is used to find version of any file . What is . checkfile. share the results of a cursor by passing the reference to that result set.variable. patches for Rapid Clone and you are on latest rapid clone patch. /* Close the cursor object associated with variable. END. What should be the return type for a cursor variable. hotpatch. The cursor needs to be closed so as to release resources earlier than end of transaction. BEGIN /* Open the cursor variable. Can you clone from multi node system to single node system and vice versa ? Yes .I you need to enable maintenance mode in order to apply apps patch via adpatch utility. Check if your system has all prereq. This file is in directory $FND_TOP/secure also called as FND_SECURE Whats things you do to reduce patch timing ? You can take advantage of following # Merging patches via admrgpch # Use various adpatch options like nocompiledb or nocompilejsp # Use defaults file # Staged APPL_TOP during upgrades # Increase batch size (Might result into negative ) How you put Applications 11i in Maintenance mode ? Use adadmin to change Maintenance mode is Oracle Apps. for ex. databaseprtion. Can we use a scalar data type as return type? .dbc file ? dbc as name says is database connect descriptor file which stores database connection information used by application tier to connect to database. compilejsp. If you don't want to put apps in maintenance mode you can use adpatch options=hotpatch feature. whats use of . use options=hotpatch as mentioned above with adpatch. Does rapid clone takes care of Updating Global oraInventory or you have to register manually in Global OraInventory after clone ? Rapid Clone will automatically Update Global oraInventory during configuration phase. this is now supported via Rapid Clone. generateportion. "adident Header <filename> How do you pass cursor variables in PL/SQL? Pass a cursor variable as an argument to a procedure or function. compiledb. */ company_rec company%ROWTYPE. AD Identification. or to free up the cursor variable to be opened again. in essence. prereq. You can.

it is defined as TYPE REF CURSOR RETURN . Note that by default ORACLE_HOME is pointing to 8.log overwrite=yes batch=yes dunit=character . What is .6 ORACLE_HOME and if you are applying iAS patch export ORACLE_HOME to iAS .xml file and AutoConfig ? Autoconfig is Utility to configure your Oracle Application environment. A scalar data type like number or varchar can’t be used but a record type may evaluate to a scalar value. This report will list all files and profile options going to change when you run AutoConfig. What is use of a cursor variable? How it is defined? Cursor variable is used to mark a work area where Oracle stores a multi-row query output for processing. How to compile an Oracle Reports file ? iAS Patch are patches released to fix bugs associated with IAS_ORACLE_HOME (Web Server Component) Usually these are shiiped as Shell scripts and you apply iAS patches by executing Shell script.(If there are seven options visible then 8th option is to Skip worker depending on ad version).xml file is repository of all configuration from which AutoConfig picks configuration and polulates related files. What is iAS Patch ? same by executing environment file under $IAS_ORACLE_HOME If we run autoconfig which files will get effected ? In order to check list of files changes during Autoconfig . It is like a pointer in C or Pascal. What WHERE CURRENT OF clause does in a cursor? The Where Current Of statement allows you to update or delete the record that was last fetched by the cursor.lgi files are informative log files containing information related to patch. is a BOOLEAN attribute indicating whether the recent SQL statement does not match to any row. What is difference between . Usually informative logs.lgi files to see what activities patch has done.log files . Use the cursor FOR loop whenever (and only if) you need to fetch and process each and every record from a cursor. Which two tables created at start of Apps Patch and drops at end of Patch ? FND_INSTALLED_PROCESS and AD_DEFFERED_JOBS are the tables that get updated while applying a patch mainly d or unified driver. Because it is a TYPE.0.lgi files ? lgi files are created with patching along with .rdf stype=rdffile dtype=rdffile logfile=x.rdf dest=$PRODUCT_TOP\srw\filename. How will you skip worker during patch ? If in your adctrl there are six option shown then seventh is hidden option. What is a cursor for loop? A cursor FOR loop is a loop that is associated with (actually defined by) an explicit cursor or a SELECT statement incorporated directly within the loop boundary. you can run adchkcfg utility which will generate HTML report. You can do Utility adrepgen is used to compile Reports. which is a high percentage of the time with cursors. or you attempt to reference a row in the PL/SQL table which is not yet defined. . Difference between NO DATA FOUND and %NOTFOUND NO DATA FOUND is an exception which is raised when either an implicit query returns no data.The return type of a cursor variable can be %ROWTYPE or record_name%TYPE or a record type or a ref cursor type. Synatx is given below adrepgen userid=apps\<psswd> source = $PRODUCT_TOP\srw\filename. . You can check . SQL%NOTFOUND.

conf.conf with default location at $IAS_ORACLE_HOME/Apache/Apache/logs..1" 200 28035 where 200 is HTTP status code and last digits 28035 is bytes dowloaded as this page(Size of page) Where is Jserv configuration files stored ? Jserv configuration files are stored in $IAS_ORACLE_HOME/Apache/Jserv/etc Where is applications start/stop scripts stored ? applications start/stop scripts are in directory $COMMON_TOP/admin/scripts/$CONTEXT_NA ME What are main configuration files in Web Server (Apache) ? Main configuration files in Oracle Apps Web Server are # httpd. C driver only copies files in File System. zone.conf. Usually Form Server access directly via http://hostname:port/dev60cgi/f60cgi Why does a worker fails in Oracle Apps Patch and few scenarios in which it failed for you ? Apps Patch worker can fail in case it doesn't find expected data.. httpd_pls..What is difference between AD_BUGS and AD_APPLID_PATCHES ? AD_BUGS holds information about the various Oracle Applications bugs whose fixes have been applied (ie.conf Typical entry in access_log is 198.0.properties # plsql. How can you licence a product after installation ? You can use ad utility adlicmgr to licence product in Oracle Apps. object.jsp?. jserv..conf. "merged" patches).conf # jserv. Entries in this file is defined by directive LogFormat in httpd. How to enable MRC coming soon.txt.. files or any thing which driver is trying to update/edit/modify.conf. AD_APPLIED_PATCHES holds information about the "distinct" Oracle Applications patches that have been applied. What is access_log in apache .. What is ADSPLICE UTILITY ? ADSPLICE UTILITY in oracle apps is utility to add a new product. Default you have currency in US Dollars but if your organization operating books are in other currency then you as apps dba need to enable MRC in Apps.conf. HTTP/1.conf Can C driver in apps patch create Invalid Object in database ? No .1 . If 2 patches happen to have the same name but are different in content (eg. a prereq patch is missing . What is difference between mod_osso and mod_ose in Oracle HTTP Server ? . login information is incorrect.0. Database Object might be invalidated during D driver when these objects are created/dropped/modified.[10/Sep/2006:18:37:17 +0100] "POST /OA_HTML/OA. oracle_apache. inconsistency in seeded data. patched) in the Oracle Applications installation. plsql.properties. ssp_init. wdbsvr. what entries are recored in access_log ? Where is default location of thsi file ? access_log in Oracle Application Server records all users accessing oracle applications 11i.. What is dev60cgi and f60cgi ? CGI stands for Common Gateway Interface and these are Script Alias in Oracle Apps used to access forms server . What is MRC ? What you do as Apps DBA for MRC ? MRC also called as Multiple Reporting Currency in oracle Apps.app. Possible symptoms may be underlying tables/objects are invalid. This file location is defined in httpd. apps. then they are considered distinct and this table will therefore hold 2 records.

When you cluster the EMP and DEPT. For example. What is difference between COMPILE_ALL=SPECIAL and COMPILE=ALL while compiling Forms ? Both the options will compile all the PL/SQL in the resultant . COMPILE_ALL=SPECIAL does not do this. The implicit cursor is used by Oracle server to test and parse the SQL statements and the explicit cursors are declared by the programmers. FALSE otherwise. Reports. provide fault tolerance (If some service is down ICM through FNDSM and other processes will try to start it even on remote server) With GSM all services are centrally managed via this Framework. Concurrent Manager . or . or . %ROWCOUNT Returns number of records fetched from cursor at that point in time.FMX.PLX. What is FNDSM ? FNDSM is executable and core component in GSM ( Generic Service Management Framework discussed above). FALSE otherwise. What is GSM in Oracle application E-Business Suite ? GSM stands for Generic Service Management Framework. or from NUM_ROWS column of user_tables if the table statistics has been collected.MMB file. FALSE otherwise. Workflow. This confuses version control and build tools (CVS. %ISOPEN Returns TRUE if cursor is open. mod_osso is module in Oracle's HTTP Server serves as Conduit between Oracle Apache Server and Singl Sign-On Server where as mod_ose is also another module in Oracle's HTTP Server serves as conduit between Oracle Apache and Oracle Servlet Engine.FMB. scons). Give some examples? Information such as row numbers and row descriptions are automatically stored by Oracle and . make. . the EMP and DEPT table share the DEPTNO column. What is the purpose of a cluster? A cluster provides an optional method of storing table data. which are grouped together because they share common columns and are often used together.mod_osso is Oracle Single Sign-On Module where as mod_ose is module for Oracle Servlet Engine. Display the number value in Words? What is a pseudo column. Web Server.MMX file but COMPILE_ALL=YES also changes the cached version in the source . Subversion. they believe you've made significant changes to the source. What is a cursor? A cursor is a mechanism by which you can assign a name to a “select statement” and manipulate the information within that SQL statement. What are cursor attributes? Cursor attributes are used to get the information about the current status of your cursor. Earlier each service used to start at their own but managing these services (given that) they can be on various machines distributed across network. A cluster is comprised of a group of tables that share the same data blocks. . How do you find the number of rows in a Table ? select count(*) from table.PLL. You should not use clusters for tables that are frequently accessed individually. You start FNDSM services via APPS listener on all Nodes in Application Tier in EBusiness Suite. Oracle E-Business Suite consist of various compoennts like Forms. Difference between an implicit and an explicit cursor. %NOTFOUND Returns TRUE if record was not fetched successfully.. Both explicit and implicit cursors have four attributes. So Generic Service Management is extension of Concurrent Processing which manages all your services . Oracle physically stores all rows for each department from both the EMP and DEPT tables in the same data blocks. as shown: Name Description %FOUND Returns TRUE if record was fetched successfully.

/httpd -version .0. now if you don't want to use @PROD then you set TWO_TASK=PROD and then can simply use sqlplus username/passwd then sql will check that it has to connect to tnsalias define by value PROD i. · SYSDATE . This file by default located in $FND_TOP/secure directory also called as $FND_SECURE directory.level then reset them.com listening on port 1521.2. How to retrieve SYSADMIN password ? If forgot password link is enabled and SYSADMIN account is configured with mail id user forget password link else you can reset sSYSADMIN password via FNDCPASS.conf by patameter CustomLog or TransferLog What is your Oracle Apps 11i Webserver Version and how to find it ? From 11.3. Location of this file is defined in httpd. Available Pseudo Columns · ROWNUM ./httpd -version Server version: Oracle HTTP Server Powered by Apache/1. ie. unique row identification.0. # plsql cache is used to store plsql cache i.5..2.2 rollup 5) What is Location of Jserv configuration files ? Jserv configuration files are located in $IAS_ORACLE_HOME /Apache/Jserv/etc .row number.8 to 11.10 Webserver version is iAS 1. not through tables. user. Lets assume you have database client with tns alias defined as PROD to connect to Database PROD on machine teachmeoracle.2. This database/plssql cache is usually of type session and plsql cache # session cache is used to store session information. Whats is location of access_log file ? access_log file by default is located in $IAS_ORACLE_HOME/ Apache/Apache/logs.e.physical row (memory or disk address) location.2.. Order number in which a row value is retrieved. If you have any profile option set at other levels like server. This information is contained within pseudo columns.. Then usual way to connect is sqlplus username/passwd@PROD . What is *. responsibility. · UID . These pseudo columns can be retrieved in queries. TWO_TASK . Typical entry in DBC file is GUEST_USER_PWD APPS_JDBC_URL DB_HOST What are few profile options which you update after cloning ? Rapid clone updates profile options specific to site level .5.system or today’s date.e.DBC file and whats is location of DBC file ? DBC as name stands for is database connect descriptor file used to connect to database. These pseudo columns can be included in queries which select data from tables. What is content of DBC file and why its important ? DBC file is quite important as whenever Java or any other program like forms want to connect to database it uses DBC file.name of currently logged in user. · USER .2. used by mod_pls Where is DATABASE/PLSSQL cache stored ? PLSSQL and session cache are stored under $IAS_ORACLE_HOME/ Apache/modplsql/cache directory.is directly accessible.19 Server built: Dec 6 2005 14:59:13 (iAS 1. In order to find version under $IAS_ORACLE_HOME/Apache/Apache/bin execute . ie. · ROWID . Whats is TWO_TASK in Oracle Database ? TWO_TASK mocks your tns alias which you are going to use to connect to database. What is plssql/database cache ? In order to improve performance mod_pls (Apache component) caches some database content to file.user identification number indicating the current user.

If APPS_MRC schema is not used in 11. The sub query is evaluated.x ) then OUTPUT THE RECORD end if end loop It always results in a full scan of T1 whereas the first query can make use of an index on T1(x). Usually like APPLSYSPUB/PUB Where GWYUID defined and what is its used in Oracle Applications ? GWYUID is defined in dbc i. Lets say the result of the sub query is small — then IN is typically more appropriate. indexed (or hashed or sorted) and then joined to the original table — typically. Which is more faster .y. in the Where condition. Select * from T1 where x in ( select y from T2 ) is typically processed as: select * from t1. So. stands for Gateway User ID and password. If both the sub query and the outer table are huge — either might work as well as the other — depends on the indexes and other factors. Database Connect Descriptor file . How you will avoid your query from using indexes? By changing the order of the columns that are used in the index. or by concatenating the columns with some constant values. When do you use WHERE clause and when do you use HAVING clause? The WHERE condition lets you restrict the rows selected to those that satisfy one or more conditions. even if driver is not updating any database object connection is required to validate appsand other schema and to upload patch history information in database tables. ( select distinct y from t2 ) t2 where t1. What will be the query to find it? SELECT column_name FROM table_name WHERE column_name LIKE ‘%\%%’ ESCAPE ‘\’. the two are processed very differently. when is where exists appropriate and in appropriate? Lets say the result of the sub query ( select y from T2 ) is “huge” and takes a long time.What is GWYUID ? GWYUID . What is a OUTER JOIN? An OUTER JOIN returns all rows that satisfy the join condition and also returns some or all of those rows from one table for which no rows from the other satisfy the join condition. Recievables which uses MRC and if MRC is enabled then each transaction table in base schema related to currency now has an assoicated MRC Subtables. . As opposed to select * from t1 where exists ( select null from t2 where y = x ) That is processed more like: for x in ( select * from t1 ) loop if ( exists ( select null from t2 where y = x.10 and higher then How MRC is working ? For products like Payable. It is used to connect to database by think clients. There is a % sign in one field of a column.x = t2. distinct’ed. database and db listener should be Up when you apply any driver patch in apps. But the table T1 is relatively small and executing ( select null from t2 where y = x.IN or EXISTS? Well.e. When you apply C driver patch does it require database to be Up and Why ? Yes . Use the HAVING clause to restrict the groups of returned rows to those groups for which the specified condition is TRUE.5. Then the exists will be faster as the time to full scan T1 and do the index probe into T2 could be less then the time to simply full scan T2 to build the sub query we need to distinct on.x ) is very fast (nice index on t2(y)).

# ORACLE_HOME 1 : On Application Tier used to store 8. i. picking up one request per cycle. it will pick up number of requests defined by cache size in one shot and will work on them before going to sleep.sh under $OAD_TOP/admin/scripts/$CONTEXT_NAME or startall. When Manager picks request from FND CONCURRENT REQUESTS Queues. What is forms server executable Name ? f60srvm What are different modes of forms in which you can start Forms Server and which one is default ? You can start forms server in SOCKET or SERVLET by defualt Forms are configured to start in socket mode. reports and discoverer.9i or 10g database. How its determined that which dbc file to use from $FND_SECURE ? This value is determined from profile option "Applications Database ID" What is RRA/FNDFS ? Report Review Agent(RRA) also referred by executable FNDFS is default text viewer in Oracle Applications 11i for viewing output files and log files. .e.cfg (defined by environment variable FORMS60_WEB_CONFIG_FILE) for forms client connection used each time a user initiates forms connection. ORACLE_HOME should point to this ORACLE_HOME which applying Apps Patch. This is used by forms.6 techstack software.sh and appsweb_$CONTEXT_NAME. # ORACLE_HOME 3: On Database Tier used by Database Software usually 8i. Where is HTML Cache stored in Oracle Apps Server ? Oracle HTML Cache is available at $COMMON_TOP/_pages for some previous versions you might find it in $OA_HTML/_pages Where is plssql cache stored in Oracle Apps ? Usually two type of cache session and plssql stored under $IAS_ORACLE_HOME/Apache/modplsql/cache What happens if you don't give cache size while defining Concurrent Manager ? Lets first understand what is cache size in Concurrent Manager. Usually you have one Concurrent Manager executing your requests but if you can configure Concurrent Manager running on two machines (Yes you need to do some additional steps in order to configure Parallel Concurrent Processing) . There are lot of DBC file under $FND_SECURE.0.Where will you find forms configuration details apart from xml file ? Forms configuration at time of startup is in script adfrmctl. I'll discuss one on my blog and update link here . # ORACLE_HOME 2: On Application Tier used by iAS (Web Server) techstack software. What is PCP is Oracle Applications 11i ? PCP is acronym for Parallel Concurrurent processing. How you will start Discoverer in Oracle Apps 11i ? In order to start dicoverer you can use script addisctl. As most of apps dba's are not clear about Report Server and RRA. So for some of your requests primary CM Node is on machine1 and secondary CM node on machine2 and for some requests primary CM is on machine2 and secondary CM on machine1. If you don't define cache size while defining CM then it will take default value 1. This is used by Web Listener and contains Apache. Two for Application Tier (Middle Tier) and One in Database Tier.sh under $ORACLE_HOME/discwb4/util (under Middle/Application Tier) How many ORACLE HOME are Oracle Apps and whats significance of each ? There are three $ORACLE_HOME in Oracle Apps.

How to confirm if Report Server is Up and Running ? Report Server is started by executable rwmts60 on concurrent manager Node and this file is under $ORACLE_HOME/bin . Output and Logfiles for requests executed on source Instance not working on cloned Instance Here is exact problem description . So if node1 goes down you still have CM node available processing your requests. What is difference between UNIQUE and PRIMARY KEY constraints? An UNIQUE key can have NULL whereas PRIMARY key is always not NOT NULL. host1. It has other tasks as well. You should see output like /u01/PRODBOX/log/l123456. ./u01/PRODBOX/out/o123456.. Both bears unique values. Which data type is used for storing graphics and images? Raw.. Some of these requests are very resource intensive so you can have one node running long running . SQL*PLUS is the tool that lets to use SQL to fetch and display the data. Another scenario is when your requests are very critical and you want high resilience for your Concurrent Processing Node . What is difference between SUBSTR and INSTR? INSTR function search string for sub-string and returns an integer indicating the position of the character in string that is the first character of this occurrence. SUBSTR calculates lengths using characters as defined by the input character set. SUBSTR function return a portion of string.out. You can say it as administrator to other concurrent managers. But unable to view the logs/output files which are prior to 1st August... and BLOB. resource intensive requests while other processing your day to day short running requets.execute command on your server like ps -ef | grep rwmts60 You should get output like applmgr . # Standard Manager These are normal managers which control/action on the requests nd does batch or single request processing. which controls other managers.You cloned an Oracle Apps Instance from PRODBOX to another box with Instance name say CLONEBOX on 1st of August. you can configure PCP. outfile_node_name from fnd_concurrent_requests where request_id=&requestid . What will you do and where to check ? Log . Standard Managers and CRM in Concurrent Manager ? # ICM stand for Internal Concurrent Manager. logfile_node_name. You can any CM logs/output files after 1st of August only becuase these all are generated on CLONEBOX itself. host1 Update it according to your cloned Instance Variables. If it finds other managers down . where requestid is id of request for which you are not able to see log or out files. substring_length characters long. it checks and try to restart them. Long Raw. What is difference between Rename and Alias? Rename is actually changing the name of an object whereas Alias is giving another name (additional name) to an existing object. outfile_name. If a request is submitted whose execution is clashing or it is defined not to run while a particular type of request is running then such requests are actioned/assigned to CRM for Incompatibilities and Conflict resolution. # CRM acronym for Conflict Resolution Manager is used to resolve conflicts between managers nd request. What is difference between SQL and SQL*PLUS? SQL is the query language to manipulate the data from the database. beginning at character position. rwmts60 name=REP60_VISION What is difference between ICM.Why I need two Concurrent Processing Nodes or in what scenarios PCP is Used ? Well If you are running GL Month end reports or taxation reports annually these reposrts might take couple of days.req. Check select logfile_name. Output file path and location is stored in table FND_CONCURRENT_REQUESTS...

You can also start it by command lsnrctl start APPS_$SID (Replace sid by your Instance SID Name) How to confirm if Apps Listener is Up and Running ? execute below command lsnrctl status APPS_$SID (replcae SID with your Instance Name) so If your SID is VISION then use lsnrctl status APPS_VISION out put should be like Services Summary.. This listener is started by adapcctl. FNDFS has 1 service handler(s) FNDSM has 1 service handler(s) What is Web Listener ? Web Listener is Web Server listener which is listening for web Services(HTTP) request.. When you initially type request like http://becomeappsdba.pl --compile --quiet What is difference between ADPATCH and OPATCH ? # ADPATCH is utility to apply oracle apps Patches whereas # OPATCH is utility to apply database patches Can you use both ADPATCH and OPATCH in Apps ? Yes you have to use both in apps . This script is under $JTF_TOP/admin/scripts. What is use of Apps listener ? Apps Listener usually running on All Oracle Applications 11i Nodes with listener alias as APPS_$SID is mainly used for listening requests for services like FNDFS and FNDSM. you have script adalnctl. IN ANY. How to compile Invalid Objects in database ? You can use adadmin utility to compile or you can use utlrp.Rename is a permanent name given to a table or column whereas Alias is a temporary name given to a table or column which do not exist once the SQL statement is executed. NOT IN.sh and defined by directive (Listen. Sample compilation method is perl ojspCompile. Port) in httpd.com:80 to access application here port number 80 is Web Listener port. How will you find Invalid Objects in database ? using query SQLPLUS> select count(*) from dba_objects where status like 'INVALID'. .sh which will start your apps listener. IN.blogspot. NOT EXISTS. What are various joins used while writing SUBQUERIES? =. IN ALL. How to compile JSP in Oracle Apps ? You can use ojspCompile. for apps patches you will use ADPATCH UTILITY and for applying database patch in apps you will use opatch UTILITY.pl perl script shipped with Oracle apps to compile JSP files. How to start Apps listener ? In Oracle 11i. .conf for Web Server. EXISTS.sql script shipped with Oracle Database to compile Invalid Database Objects.

Sign up to vote on this title
UsefulNot useful