P2Pprogrammer 2 programmer


Home > Interview Question and Answer > Oracle > Oracle Database Security and Administration


Oracle DBA, Database Security, Administration Interview Questions and answers

Oracle Database Security and Administration Interview Questions and Answers includes, user Account, security using stored procedures, dictionary tables, responsibilities of a Database Administrator, roles and user accounts, SYS user account, SYSTEM user account, administrator’s utilities, parameter file, DB_DOMAIN, CONTROL FILES, DB_BLOCK_BUFFERS, PROCESSES, ROLLBACK SEGMENTS, trace file, implement roles, ARCHIVELOG , enable automatic archiving, Archived log file name format and destination, ANALYZE command.



Oracle Database Security and Administration Interview Questions and Answers


1. 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

2. How will you enforce security using stored procedures?

Don't grant user access directly to tables within the application. Instead grant the ability to access the procedures that access the tables. When procedure executed it will execute the privilege of procedures owner. Users cannot access tables except via the procedure.

3. What are the dictionary tables used to monitor a database spaces?

  1. DBA_FREE_SPACE
  2. DBA_SEGMENTS
  3. DBA_DATA_FILES.

4. What are the responsibilities of a Database Administrator?

  1. Installing and upgrading the Oracle Server and application tools.
  2. Allocating system storage and planning future storage requirements for the database system.
  3. Managing primary database structures (tablespaces)
  4. Managing primary objects (table,views,indexes)
  5. Enrolling users and maintaining system security.
  6. Ensuring compliance with Oralce license agreement
  7. Controlling and monitoring user access to the database.
  8. Monitoring and optimising the performance of the database.
  9. Planning for backup and recovery of database information.
  10. Maintain archived data on tape.
  11. Backing up and restoring the database.
  12. Contacting Oracle Corporation for technical support.

5. What are the roles and user accounts created automatically with the database?

  1. DBA - role Contains all database system privileges.
  2. SYS user account - The DBA role will be assigned to this account. All of the basetables and views for the database's dictionary are store in this schema and are manipulated only by ORACLE.
  3. SYSTEM user account - It has all the system privileges for the database and additional tables and views that display administrative information and internal tables and views used by oracle tools are created using this username.

6. What are the database administrator’s utilities avaliable?

  1. SQL * DBA - This allows DBA to monitor and control an ORACLE database.
  2. SQL * Loader - It loads data from standard operating system files (Flat files) into ORACLE database tables.
  3. Export (EXP) and Import (imp) utilities allow you to move existing data in ORACLE format to and from ORACLE database.

7. What are the minimum parameters should exist in the parameter file (init.ora)?

  1. DB NAME - Must set to a text string of no more than 8 characters and it will be stored inside the datafiles, redo log files and control files and control file while database creation.
  2. DB_DOMAIN - It is string that specifies the network domain where the database is created. The global database name is identified by setting these parameters (DB_NAME & DB_DOMAIN)
  3. CONTORL FILES - List of control filenames of the database. If name is not mentioned then default name will be used.
  4. DB_BLOCK_BUFFERS - To determine the no of buffers in the buffer cache in SGA.
  5. PROCESSES - To determine number of operating system processes that can be connected to ORACLE concurrently. The value should be 5 (background process) and additional 1 for each user.
  6. ROLLBACK_SEGMENTS - List of rollback segments an ORACLE instance acquires at database startup.
  7. Also optionally LICENSE_MAX_SESSIONS, LICENSE_SESSION_WARNING and LICENSE_MAX_USERS.

8. What is a trace file and how is it created?

Each server and background process can write an associated trace file. When an internal error is detected by a process or user process, it dumps information about the error to its trace. This can be used for tuning the database.

9. What are roles? How can we implement roles?

Roles are the easiest way to grant and manage common privileges needed by different groups of database users. Creating roles and assigning provies to roles. Assign each role to group of users. This will simplify the job of assigning privileges to individual users.

10. What are the steps to switch a database's archiving mode between NO ARCHIVELOG and ARCHIVELOG mode?

  1. Shutdown the database instance.
  2. Backup the databse
  3. Perform any operating system specific steps (optional)
  4. Start up a new instance and mount but do not open the databse.
  5. Switch the databse's archiving mode.

11. How can you enable automatic archiving?

  1. Shut the database
  2. Backup the database
  3. Modify/Include LOG_ARCHIVE_START_TRUE in init.ora file.
  4. Start up the databse.

12. How can we specify the Archived log file name format and destination?

By setting the following values in init.ora file.
LOG_ARCHIVE_FORMAT = arch %S/s/T/tarc (%S - Log sequence number and is zero
left paded, %s - Log sequence number not padded. %T - Thread number lef-zero-paded and %t - Thread number not padded). The file name created is arch 0001 are if %S is used.
LOG_ARCHIVE_DEST = path.

13. What is the use of ANALYZE command?

To perform one of these function on an index,table, or cluster:

  1. to collect statisties about object used by the optimizer and store them in the data dictionary.
  2. to delete statistics about the object used by object from the data dictionary.
  3. to validate the structure of the object.
  4. to identify migrated and chained rows of the table or cluster.

  Go Back to Oracle Interview Qusetion and Answers

More Oracle Database, DBA, Forms and Reports Interview Question and Answers

  1. Oracle Database Administration Interview Questions and Answers
  2. Oracle Cross Products and Matrix Reports Interview Questions and Answers
  3. Oracle Managing Distributed Databases Interview Questions and Answers
  4. Oracle Forms Interview Questions and Answers
  5. Oracle Database Security Interview Questions and Answers
  6. Oracle Database Operation Backup and Recovery Interview Questions and Answers
  7. Oracle Database Security and Administration Interview Questions and Answers
  8. Oracle Data Access Interview Questions and Answers
  9. Oracle Report Triggers Interview Questions and Answers
  10. Oracle Managing Backup and Recovery Interview Questions and Answers
  11. Forms 3.0, 4.0 Basic Interview Questions and Answers
  12. Oracle Package Procedure and Function Interview Questions and Answers
  13. Oracle System Architecture Interview Questions and Answers
  14. Oracle SQL Plus Statements Interview Questions and Answers
  15. Oracle Logical and Physical Architecture of Database Interview Questions and Answers
  16. Oracle Basics of Pl SQL Interview Questions and Answers
  17. Oracle Reports Interview Questions and Answers
  18. Oracle Concepts and Architecture Interview Questions and Answers
  19. Oracle Forms D2K 4.5 and 6i Interview Questions and Answers

Home > Interview Question and Answer > Oracle > Oracle Database Security and Administration