Oracle DB Administration Flashcards
Tools for Administering the Database
- OUI (Oracle Universal Installer)
- DBCA (Database Configuration Assistant)
- DBUA (Database Upgrade Assistant)
- Oracle Net Manager
- OEM (Oracle Enterprise Manager)
Which tools can you use to start up an Oracle database?
- SQL Plus
- OEM
- RMAN
When creating a database with SQL script, what would you specify in the script?
- Name of the database.
- SYS user password.
- SYSTEM user password.
- At least three online redologs.
- Character set and national character set of DB.
- Location and size of SYSTEM and SYSAUX tbs.
- Default tablespace.
- Temporary tablespace.
- Undo tablespace.
How would you prepare a response file?
Installation media comes with a template response file that can be easily customized. However, the easiest and most reliable way is to use the Oracle Universal Installer in record mode. At completion of the install, the response file will have all the customized options recorded in it.
There are 10 identical servers and you want to install Oracle DB on each of them. What would you use to automate the installation process?
Best and most efficient way is by using Oracle Universal installer in silent mode. The installations will need to be done with a response file and specify the location. The installation files and response file can be shared among the servers via NFS (Network File System) so that they don’t have to be copied to each server.
Describe three different methods you can use to find the version of database software.
1) Connect to the DB using SQL Plus. It will show the version once connected.
2) Query the v$version using “SELECT*FROM v$version”.
3) Enterprise Manager will also show the database version under the “General” tab.
Explain what each digit means in the Oracle database version number 11.2.0.4.
- 11: shows the major database version.
- 2: shows the maintenance release number of the software. With each maintenance release, new features are added.
- 0: fusion middleware number.
- 4: component-specific release number. Indicates the patch set update that was applied to the software.
List four possible ways (direct or indirect) to execute a SQL query against an Oracle database.
Directly
- Command line tool which directly executes SQL commands.
- GUI (Graphical User Interface)
Indirect
- OEM (Oracle Enterprise Manager). Operations are converted to SQL queries and executed against a database.
- Write your own program using .NET or JAVA.
What are the types of shutdown modes of an Oracle database?
1) Normal: no new connections are made and the DB is closed after all sessions have disconnected.
2) Immediate: no new connections are permitted and the existing active transactions are rolled back causing all changes to be lost.
3) Transactional: no new connections are made and active transactions are permitted to complete.
4) Abort: DB is shutdown immediately. Instance recovery is required at the next startup.
Can you take a snapshot while the DB is open while ensuring no data is written to the data files?
Yes by putting the DB in suspend mode. During this mode, Oracle will halt I/O operations to the datafiles until it is reverted back to normal.
What is the definition of table in Oracle?
The table is the first level of physical unit in the database and is used for storing data into rows and columns.
In Oracle terminology, what do you mean by tablespace?
The tablespace is a logical storage unit that is used to group related logical structures. This is where all objects of the database will be grouped.
When does the SYSTEM tablespace get created?
The SYSTEM tablespace is automatically created during database creation. It contains the data dictionary for all of the data.
What is a sequence?
A sequence is used to generate a serial list of unique numbers for numerical columns of database tables. It can be used on columns for data where we want data to be inserted in a sequential manner.
During startup of a database, at which order does Oracle software search a parameter file?
Oracle will first try to locate two different versions of the server parameter file. If neither of those files can be located, it will then look for the parameter file which is plain text.
What stages does an instance pass while starting up?
1) Nomount: instance is started.
2) Mount: instance is started and DB is mounted. Data is not accessible but certain maintenance tasks are permitted.
3) Opened: all data is accessible.