• (+1) 484-821-6590
  • info@cyarnitech.com
CYARNITECH

CYARNITECH

  • Home
  • Mockins
  • Courses
    • Data Analytics
    • Sql Server DBA
    • Business Intelligence
    • DevOps
    • AWS
    • AZURE
    • Data Science
    • R Programming
    • Python
    • PowerShell
  • Corporate Training
  • Certifications
  • Job Support
  • Register
  • Contact Us
  • Pay Online
Home

Oracle DBA Blog

May30
  • admin
  • 0
  • Data Analytics blogs

Oracle DBA Blog

Comprehensive Guide to Installing Oracle Database 19c on Oracle Linux

To begin the process, you’ll need to understand the installation and setup steps required for Oracle Database 19c on Oracle Linux. Here’s a breakdown:


Step 1: Setting Up Oracle VirtualBox

  1. Download and install Oracle VirtualBox:
    • Oracle VirtualBox Downloads
    • VirtualBox Wiki Downloads
    • Download and install the Windows setup.

Step 2: Download Oracle Linux ISO

  1. Visit the Oracle Linux Downloads page.
  2. Search for Oracle Linux and select Oracle Linux 8.
  3. Choose the 64-bit version.
  4. Unselect everything except the first checkbox (V1009690-01.iso).

Step 3: Installing Oracle Linux 7.9

  1. Boot the Oracle Linux installer.
  2. During installation, select:
    • Server with GUI
    • Virtualization Tools
    • Compatibility Libraries

Partitioning the Disk

  • Configure partitions as follows:
    • /boot – 512MB
    • /tmp – 5GB
    • swap – 10GB
    • / – Allocate remaining space.

Setting Network & Hostname

  • Enter your domain name: node1.cyarnitech.org.

Step 4: Post-Installation Setup

  1. Assign static and dynamic IP addresses.
  2. Disable the firewall using:
     
    systemctl stop firewalld
    systemctl disable firewalld
  3. Install MobaXterm for remote connection.

Step 5: Configuring Oracle Database Instance

  1. Install pre-requisite packages:

     
    yum install -y oracle-database-preinstall-19c

    Refer to the Oracle Installation Guide.

  2. Create Oracle directories and set permissions:

     
    mkdir -p /u01/app/oracle/product/19.0.1/dbhome_1
    chown -R oracle:oinstall /u01
    chmod 775 -R /u01/

Step 6: Downloading Oracle Database 19c

  1. Download the database from Oracle Database 19c for Linux.
  2. Transfer files to Oracle Linux:
    • Use WinSCP or SFTP to move files to /home/oracle/.
    • Move files to Oracle Home:
       
      mv * /u01/app/oracle/product/19.0.1/dbhome_1/
      cd /u01/app/oracle/product/19.0.1/dbhome_1/
      unzip <file_name>.zip

Step 7: Environment Configuration

  1. Edit the .bash_profile to set environment variables.
  2. Update the /etc/hosts file with server details:
     
     
    192.168.56.50 node1 node1.cyarnitch.org

Step 8: Running the Oracle Installer

  1. Navigate to Oracle Home:
     
    cd $ORACLE_HOME
  2. Execute the installer:
     
    ./runInstaller
  3. Install the software and configure the database using DBCA.

Step 9: Important File Locations

  • Alert Log:
     
    $ORACLE_BASE/diag/rdbms/DBNAME/SID/trace/alert_ORACLE_SID.log

Troubleshooting Common Errors

  1. Missing PFILE after Database Creation

Solution:

 
CREATE PFILE = 'initPBSDB.ora' FROM SPFILE='spfilepbsdb.ora';
STARTUP;
 

ORA-01102: Cannot Mount Database in EXCLUSIVE Mode

      • Identify running processes:
         
        ps -ef | grep smon
      • Terminate the process:
         
        kill -9 <process_id>

Step 10: Verifying Database Status

Connect to the database:

 
sqlplus / as sysdba

Check the database status:

 
SELECT name, open_mode FROM v$database;
 
NAME  OPEN_MODE
----- ---------------
PBSDB READ WRITE

This guide provides a comprehensive overview of installing Oracle Database 19c on Oracle Linux. Follow these steps carefully for a seamless installation. For further assistance, refer to the official Oracle Documentation

Understanding Oracle Database Architecture: A Comprehensive Guide


Oracle Instance Overview

The Oracle Instance forms the core of the Oracle Database architecture. It consists of memory structures and processes, each playing a vital role in database functionality and efficiency.


Memory Structures

Oracle’s memory structures can be categorized into:

1. System Global Area (SGA)

  • Shared Pool:
    • Library Cache: Stores parsed SQL statements.
    • Data Dictionary Cache: Contains metadata about database objects.
  • Database Buffer Cache: Temporarily stores data blocks read from the database.
  • Redo Log Buffer Cache: Captures changes made to the database.
  • Large Pool: Used for large memory allocations.
  • Java Pool: Supports Java execution within the database.

2. Program Global Area (PGA)

  • Dedicated memory for individual processes to handle session data and sort operations.

Processes

1. System Monitor (SMON)

  • Locates and validates control files to mount the database.
  • Ensures proper housekeeping, such as collating free space in datafiles.

2. Process Monitor (PMON)

  • Monitors server processes, resolves session-level issues, and reclaims memory from terminated sessions.

3. Database Writer (DBWR)

  • Writes modified (dirty) buffers to disk under these circumstances:
    • No free buffers available.
    • Too many dirty buffers.
    • Timeout: Writes every three seconds, even when idle.
    • Checkpoint (CKPT): Synchronizes buffer cache with datafiles.
  • Supports incremental checkpoints for optimized disk writes.

4. Log Writer (LGWR)

  • Writes redo log entries from the redo log buffer to online redo log files.
  • Triggered by:
    • A COMMIT operation.
    • Redo log buffer reaching one-third capacity.
    • When DBWR is writing dirty buffers to disk.

5. Checkpoint (CKPT)

  • Updates file headers with the latest SCN (System Change Number) to ensure synchronization.

6. Archiver Process (ARC)

  • Archives online redo log files for recovery purposes.

Database Structure

The physical components of an Oracle database include:

  • Control Files: Tracks the structure of the database.
  • Datafiles: Stores the actual database data.
  • Online Redo Log Files: Contains a record of all changes made to the database.
  • Archive Log Files: Copies of redo log files for backup and recovery.

Parameter Files

Oracle uses two types of parameter files to manage database configurations:

  • SPFILE: Binary and dynamically updated.
  • PFILE: Static and requires manual updates.

Investigating the Memory Structure

To analyze memory structures in Oracle, follow these steps:

1. View SGA Summary

Connect to the database as SYS and run:

SQL> show SGA;
Total System Global Area 1778382528 bytes Fixed Size 9135808 bytes Variable Size 654311424 bytes Database Buffers 1107296256 bytes Redo Buffers 7639040 bytes

2. Inspect SGA Components

To view current, maximum, and minimum sizes of SGA components:

 
SQL> col COMPONENT for a30; SQL> select component, current_size, min_size, max_size from v$sga_dynamic_components;

3. Check PGA Allocations

Determine the allocated and maximum allowed PGA:

 
SQL> col NAME for a30; SQL> select NAME, VALUE FROM v$pgastat WHERE NAME IN ('maximum PGA allocated','total PGA allocated');

Sample Output:

NAME VALUE ------------------------------ ---------- total PGA allocated 361812992 maximum PGA allocated 763847680

Diagrams

Diagrams explaining Oracle architecture can include:

  1. Memory Structure Diagram:
    • Showcasing SGA and PGA components.
  2. Process Flow Diagram:
    • Illustrating SMON, PMON, DBWR, LGWR, and ARC interactions.

Key Insights

  • The SGA and PGA are critical to database performance.
  • Processes like DBWR and LGWR ensure data integrity and prevent data loss.
  • Dynamic memory management allows for real-time resizing of memory components like SGA.

This guide provides a foundational understanding of Oracle’s database architecture. Properly configured memory structures and processes ensure a highly performant and reliable database environment. For more information, consult Oracle’s official documentation.

Post navigation

SQL DBA →

About admin

View all posts by

Leave a Reply

Cancel reply

    Archives

  • January 2025
  • June 2022
  • May 2022

    Recent Posts

  • Configure Physical Standby
  • Oracle
  • SQL DBA
  • Oracle DBA Blog

    Categories

  • Data Analytics blogs

Address: 1722 Markham Drive,
Bethlehem, PA 18017

Working Hours:
Monday–Friday: 9:00AM–5:00PM
Saturday & Sunday: 11:00AM–3:00PM

CALL US!
Phone:  +1 484 821 6590

  • Data Analytics blogs
  • AWS Blogs
  • BI Blogs
  • DBA blogs
  • Pay Online
  • Become an affiliate
  • Become a lecturer
  • Become a mentor
  • Become a mock interview consultant with us.
  • Home
  • Yelp
  • Facebook
  • Twitter
  • Instagram
  • Email
  • Home
Cyarnitech Copyright © 2020 All Rights Reserved. | Created By Web Info Light