When you install Oracle 12c on a Windows machine, the following key files and directories are typically created:
- Oracle Home Directory (
ORACLE_HOME
)
- This is the main directory where Oracle software is installed.
- Contains subdirectories like
bin
, network
, rdbms
, admin
, and others.
- Example path:
C:\oracle\product\12.1.0\dbhome_1
- Oracle Base Directory (
ORACLE_BASE
)
- The base directory for Oracle installations, which holds the Oracle Home directory and other files.
- Example path:
C:\oracle
- Database Files
- Datafiles: Physical storage files for the database objects (tables, indexes, etc.).
- Typically found in directories under
ORACLE_BASE\oradata\
.
- Control Files: Store metadata about the database structure, located in
ORACLE_BASE\oradata\
or as specified in the initialization parameter file.
- Redo Log Files: Track all changes to the database, typically stored alongside datafiles or in a separate log directory.
- Archive Log Files (if archiving is enabled): Stored in the location specified by the
LOG_ARCHIVE_DEST
parameter.
- Configuration Files
- Initialization Parameter File (
init.ora
or spfile.ora
): Contains configuration parameters for the instance.
- Location:
ORACLE_HOME\database
or ORACLE_BASE\admin\\pfile
.
- Listener Configuration File (
listener.ora
): Configures the Oracle Net Listener.
- Location:
ORACLE_HOME\network\admin
.
- TNS Names File (
tnsnames.ora
): Holds network service names.
- Location:
ORACLE_HOME\network\admin
.
- Admin Files
- Alert Logs: Logs significant database events and errors.
- Location:
ORACLE_BASE\diag\rdbms\\\trace
.
- Trace Files: Detailed diagnostic files generated for errors and tracing.
- Location:
ORACLE_BASE\diag\rdbms\\\trace
.
- Audit Files: Contains records of database operations for security auditing.
- Location:
ORACLE_BASE\admin\\adump
.
- Service-Related Files
- Oracle installs and registers several Windows services, such as:
- OracleService<DB_NAME>: The main Oracle database service.
- Oracle<ListenerName>: The Oracle Listener service.
- OracleJobScheduler<DB_NAME>: The scheduler service for jobs in Oracle.
- Registry Entries
- Oracle creates entries in the Windows Registry for configuration and environment variables.
- Registry paths include:
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleService<DB_NAME>
- Log and Inventory Files
- Oracle Universal Installer (OUI) Inventory: Tracks installed Oracle products.
- Example location:
C:\Program Files\Oracle\Inventory
.
- Installation Logs: Logs for the installation process, found in the temporary directory used during installation (e.g.,
C:\Program Files\Oracle\Inventory\logs
).
These files and directories are essential for the proper functioning of the Oracle 12c database on a Windows machine. They enable configuration, operation, and management of the Oracle instance and facilitate networking, security, and diagnostic activities.
If you choose the default installation, you will end up with a directory structure called the
Oracle Home that consists of subdirectories and files.
The following image shows a partial listing of my installation.
These are simplistic examples from a small database. The importance of these V$
views will become more relevant when we start talking about our backup and recovery options later in this series of courses. If you have the opportunity, I would recommend that you run these views against your own production databases. this will provide you with a better understanding of how your databases are structured. The next lesson wraps up this module.