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?
- DBA_FREE_SPACE
- DBA_SEGMENTS
- DBA_DATA_FILES.
4. What are the responsibilities of a Database Administrator?
- Installing and upgrading the Oracle Server and application tools.
- Allocating system storage and planning future storage requirements for the database system.
- Managing primary database structures (tablespaces)
- Managing primary objects (table,views,indexes)
- Enrolling users and maintaining system security.
- Ensuring compliance with Oralce license agreement
- Controlling and monitoring user access to the database.
- Monitoring and optimising the performance of the database.
- Planning for backup and recovery of database information.
- Maintain archived data on tape.
- Backing up and restoring the database.
- Contacting Oracle Corporation for technical support.
5. What are the roles and user accounts created automatically with the database?
- DBA - role Contains all database system privileges.
- 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.
- 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?
-
SQL * DBA - This allows DBA to monitor and control an ORACLE database.
- SQL * Loader - It loads data from standard operating system files (Flat files) into ORACLE database tables.
- 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)?
- 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.
- 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)
- CONTORL FILES - List of control filenames of the database. If name is not mentioned then default name will be used.
- DB_BLOCK_BUFFERS - To determine the no of buffers in the buffer cache in SGA.
- 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.
- ROLLBACK_SEGMENTS - List of rollback segments an ORACLE instance acquires at database startup.
- 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?
- Shutdown the database instance.
- Backup the databse
- Perform any operating system specific steps (optional)
- Start up a new instance and mount but do not open the databse.
- Switch the databse's archiving mode.
11. How can you enable automatic archiving?
- Shut the database
- Backup the database
- Modify/Include LOG_ARCHIVE_START_TRUE in init.ora file.
- 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:
- to collect statisties about object used by the optimizer and store them in the data dictionary.
- to delete statistics about the object used by object from the data dictionary.
- to validate the structure of the object.
- 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
- Oracle Database Administration
Interview Questions and Answers
-
Oracle Cross Products and Matrix Reports Interview Questions and Answers
-
Oracle Managing Distributed Databases Interview Questions and Answers
- Oracle Forms Interview Questions
and Answers
- Oracle Database
Security Interview Questions and Answers
-
Oracle Database Operation Backup and Recovery Interview Questions and Answers
-
Oracle Database Security and Administration Interview Questions and Answers
- Oracle Data Access
Interview Questions and Answers
- Oracle Report
Triggers Interview Questions and Answers
- Oracle
Managing Backup and Recovery Interview Questions and Answers
- Forms 3.0, 4.0
Basic Interview Questions and Answers
-
Oracle Package Procedure and Function Interview Questions and Answers
- Oracle System
Architecture Interview Questions and Answers
- Oracle SQL
Plus Statements Interview Questions and Answers
-
Oracle Logical and Physical Architecture of Database Interview Questions and Answers
- Oracle Basics
of Pl SQL Interview Questions and Answers
- Oracle Reports Interview
Questions and Answers
- Oracle
Concepts and Architecture Interview Questions and Answers
- Oracle Forms D2K 4.5
and 6i Interview Questions and Answers
Home > Interview Question
and Answer > Oracle > Oracle Database Security
and Administration