Skip to main content

Posts

Showing posts from February, 2019

How Oracle Database Processes SQL Statements

<<Back to PT Main Page Processing of SQL Statements By Oracle Database Engine As soon as the SQL query arrives to the database, Database engine starts preparing the SQL statement to execute. Oracle Processes a SQL statement in following 4 stages. Parsing Parsing of a SQL statement is, breaking down the SQL statements into executable version of code, for execution by database engine. In this stage oracle performs following task Cursor is created Syntax Check is performed Semantic Check is performed Security check is performed (Privileges on object/table) Hash value for SQL statement is generated  (Hash Value = V$SQL.SQL_ID) Shared Pool Check for the generated hash value is done Based on the outcome of 5 either a soft parse or a Hard parse is done. Soft Parse:  Once the Hash Value is generated, Database searches the Shared Pool for this Hash Value, If oracle finds the  Hash Value in shared pool (also known as cache hit ) it just executes the already availab

How to Create Physical Standby database using RMAN restore from service

<<Back to Oracle DataGuard Main Page Creating a Physical Standby database using RMAN restore from service Assumption: It is assumed that you already have single instance database installed and configured and you want to setup physical standby database for this primary database to protect you data from disaster recovery etc. Installation and configuration of a single instance database using ASM is explained in following posts Oracle 12c Database Software Only Installation in Silent Mode Installing and Configuring Oracle Grid Infrastructure for Standalone Server in Silent Mode Running DBCA in Silent Mode to Create the Database Related Posts for 18c: Step By Step How to Install Oracle 18c Grid Infrastructure for a Standalone Server in Silent Mode Step by Step How to Install and Create Oracle 18c Database in Silent Mode Using ASM Here is the details of my Primary database for which I want to configure the Physical Standby database