InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 751. |
What Are The Use Of Roles ? |
|
Answer» The use of Roles are:
The use of Roles are: |
|
| 752. |
What Are The Database Administrators Utilities Available ? |
| Answer» | |
| 753. |
What Is A Database Instance ? Explain |
|
Answer» A database instance (SERVER) is a set of memory STRUCTURE and BACKGROUND PROCESSES that access a set of database files. The PROCESS can be shared by all users. The memory structure that are used to store most queried data from database. This helps up to improve database performance by decreasing the amount of I/O performed against data file. A database instance (Server) is a set of memory structure and background processes that access a set of database files. The process can be shared by all users. The memory structure that are used to store most queried data from database. This helps up to improve database performance by decreasing the amount of I/O performed against data file. |
|
| 754. |
What Is A Deadlock ? Explain |
|
Answer» Two processes wating to update the rows of a table which are locked by the other process then deadlock arises. In a database environment this will OFTEN happen because of not issuing proper row lock commands. POOR design of front-end application may cause this SITUATION and the performance of server will reduce drastically. These locks will be released automatically when a commit/rollback OPERATION performed or any one of this processes being killed externally. Two processes wating to update the rows of a table which are locked by the other process then deadlock arises. In a database environment this will often happen because of not issuing proper row lock commands. Poor design of front-end application may cause this situation and the performance of server will reduce drastically. These locks will be released automatically when a commit/rollback operation performed or any one of this processes being killed externally. |
|
| 755. |
Define Transaction ? |
|
Answer» A TRANSACTION is a LOGICAL UNIT of WORK that comprises one or more SQL statements executed by a single user. A Transaction is a logical unit of work that comprises one or more SQL statements executed by a single user. |
|
| 756. |
Can One Rename A Database User (schema)? (for Dba) |
|
Answer» No, this is listed as ENHANCEMENT Request 158508. WORKAROUND:
No, this is listed as Enhancement Request 158508. Workaround: |
|
| 757. |
How Are Extents Allocated To A Segment? (for Dba) |
|
Answer» Oracle8 and above rounds off extents to a multiple of 5 blocks when more than 5 blocks are requested. If one requests 16K or 2 blocks (assuming a 8K block size), ORACLE doesn't round it up to 5 blocks, but it allocates 2 blocks or 16K as requested. If one asks for 8 blocks, Oracle will round it up to 10 blocks. Space allocation also depends upon the size of contiguous free space available. If one asks for 8 blocks and Oracle finds a contiguous free space that is exactly 8 blocks, it would give it you. If it were 9 blocks, Oracle would also give it to you. Clearly Oracle doesn't ALWAYS round extents to a multiple of 5 blocks. The exception to this rule is locally MANAGED tablespaces. If a tablespace is created with local EXTENT management and the extent size is 64K, then Oracle allocates 64K or 8 blocks assuming 8K-block size. Oracle doesn't round it up to the multiple of 5 when a tablespace is locally managed. Oracle8 and above rounds off extents to a multiple of 5 blocks when more than 5 blocks are requested. If one requests 16K or 2 blocks (assuming a 8K block size), Oracle doesn't round it up to 5 blocks, but it allocates 2 blocks or 16K as requested. If one asks for 8 blocks, Oracle will round it up to 10 blocks. Space allocation also depends upon the size of contiguous free space available. If one asks for 8 blocks and Oracle finds a contiguous free space that is exactly 8 blocks, it would give it you. If it were 9 blocks, Oracle would also give it to you. Clearly Oracle doesn't always round extents to a multiple of 5 blocks. The exception to this rule is locally managed tablespaces. If a tablespace is created with local extent management and the extent size is 64K, then Oracle allocates 64K or 8 blocks assuming 8K-block size. Oracle doesn't round it up to the multiple of 5 when a tablespace is locally managed. |
|
| 758. |
What Does Rollback Do ? |
|
Answer» ROLLBACK retracts any of the CHANGES RESULTING from the SQL statements in the TRANSACTION. ROLLBACK retracts any of the changes resulting from the SQL statements in the transaction. |
|
| 759. |
What Are The Different Approaches Used By Optimizer In Choosing An Execution Plan ? |
|
Answer» The DIFFERENT APPROACHES used by Optimizer in CHOOSING an EXECUTION PLAN are:
The different approaches used by Optimizer in choosing an execution plan are: |
|
| 760. |
What Database Block Size Should I Use? (for Dba) |
|
Answer» Oracle recommends that your database block size MATCH, or be multiples of your OPERATING system block size. ONE can use smaller block sizes, but the performance cost is significant. Your choice should DEPEND on the type of application you are running. If you have many small transactions as with OLTP, use a smaller block size. With fewer but larger transactions, as with a DSS application, use a larger block size. If you are using a volume manager, consider your "operating system block size" to be 8K. This is because volume manager products use 8K blocks (and this is not configurable). Oracle recommends that your database block size match, or be multiples of your operating system block size. One can use smaller block sizes, but the performance cost is significant. Your choice should depend on the type of application you are running. If you have many small transactions as with OLTP, use a smaller block size. With fewer but larger transactions, as with a DSS application, use a larger block size. If you are using a volume manager, consider your "operating system block size" to be 8K. This is because volume manager products use 8K blocks (and this is not configurable). |
|
| 761. |
How Does One Create A New Database? (for Dba) |
|
Answer» One can create and MODIFY Oracle databases using the Oracle "dbca" (Database Configuration Assistant) utility. The dbca utility is located in the $ORACLE_HOME/bin directory. The Oracle Universal Installer (oui) normally starts it after installing the database server software. One can also create databases manually using scripts. This option, however, is falling out of fashion, as it is quite involved and error prone. LOOK at this example for creating and Oracle 9i database: CONNECT SYS AS SYSDBAALTER SYSTEM SET DB_CREATE_FILE_DEST='/u01/oradata/'; ALTER SYSTEM SET DB_CREATE_ONLINE_LOG_DEST_1='/u02/oradata/'; ALTER SYSTEM SET DB_CREATE_ONLINE_LOG_DEST_2='/u03/oradata/'; CREATE DATABASE; One can create and modify Oracle databases using the Oracle "dbca" (Database Configuration Assistant) utility. The dbca utility is located in the $ORACLE_HOME/bin directory. The Oracle Universal Installer (oui) normally starts it after installing the database server software. One can also create databases manually using scripts. This option, however, is falling out of fashion, as it is quite involved and error prone. Look at this example for creating and Oracle 9i database: |
|
| 762. |
What Is The Effect Of Setting The Value "all_rows" For Optimizer_goal Parameter Of The Alter Session Command ? What Are The Factors That Affect Optimizer In Choosing An Optimization Approach ? |
|
Answer» The OPTIMIZER_MODE initialization parameter Statistics in the DATA Dictionary the OPTIMIZER_GOAL parameter of the ALTER SESSION command HINTS in the statement. The OPTIMIZER_MODE initialization parameter Statistics in the Data Dictionary the OPTIMIZER_GOAL parameter of the ALTER SESSION command hints in the statement. |
|
| 763. |
What Is Difference Between Unique Constraint And Primary Key Constraint ? |
|
Answer» A COLUMN DEFINED as UNIQUE can contain Nulls while a column defined as PRIMARY KEY can't contain Nulls. A column defined as UNIQUE can contain Nulls while a column defined as PRIMARY KEY can't contain Nulls. |
|
| 764. |
What Does A Control File Contain ? |
|
Answer» A Control file records the PHYSICAL STRUCTURE of the database. It contains the following information.
A Control file records the physical structure of the database. It contains the following information. |
|
| 765. |
Can Objects Of The Same Schema Reside In Different Tablespace ? |
|
Answer» Yes. Yes. |
|
| 766. |
What Is Mirrored On-line Redo Log ? |
|
Answer» A mirrored on-line redo log consists of COPIES of on-line redo log files physically located on SEPARATE disks, CHANGES made to one MEMBER of the group are made to all MEMBERS. A mirrored on-line redo log consists of copies of on-line redo log files physically located on separate disks, changes made to one member of the group are made to all members. |
|
| 767. |
Explain The Relationship Among Database, Tablespace And Data File ? |
|
Answer» Each DATABASES LOGICALLY DIVIDED into one or more tablespaces one or more data FILES are explicitly created for each tablespace. Each databases logically divided into one or more tablespaces one or more data files are explicitly created for each tablespace. |
|
| 768. |
What Is An Oracle Data File? |
|
Answer» An Oracle data file is a big UNIT of physical storage in the OS file system. One or MANY Oracle data FILES are organized together to provide physical storage to a single Oracle TABLESPACE. An Oracle data file is a big unit of physical storage in the OS file system. One or many Oracle data files are organized together to provide physical storage to a single Oracle tablespace. |
|
| 769. |
What Is An Oracle Database? |
|
Answer» An Oracle database is a COLLECTION of DATA treated as a BIG UNIT in the database server. An Oracle database is a collection of data treated as a big unit in the database server. |
|
| 770. |
What Is Oracle? |
|
Answer» Oracle is a company. Oracle is also a database server, which manages data in a very structured way. It allows users to store and RETRIEVE related data in a multiuser ENVIRONMENT so that many users can concurrently access the same data. All this is accomplished while delivering high PERFORMANCE. A database server also PREVENTS unauthorized access and PROVIDES efficient solutions for failure recovery. Oracle is a company. Oracle is also a database server, which manages data in a very structured way. It allows users to store and retrieve related data in a multiuser environment so that many users can concurrently access the same data. All this is accomplished while delivering high performance. A database server also prevents unauthorized access and provides efficient solutions for failure recovery. |
|