Quantcast
Channel: Hemant's Oracle DBA Blog
Browsing all 467 articles
Browse latest View live
↧

Running the (Segment) Space Advisor - on a Partitioned Table

Here is a quick demo on running the Segment Space Advisor manuallyI need to start with the ADVISOR privilege$sqlplusSQL*Plus: Release 12.2.0.1.0 Production on Sat Jan 18 22:02:10 2020Copyright (c)...

View Article


Basic Replication -- 12 : MV Refresh Captured in AWR

Building on the example of an Index having been created on a Materialized View  in my previous blog post in this series, I've captured some information from the AWR report in 19c when this code is...

View Article


Basic Replication -- 13 : Some Interesting SYS tables

I found an interesting SQL in the AWR report from my previous blog post.What do you think this SQL statement does ?DELETE FROM SYS.MVREF$_STMT_STATS WHERE REFRESH_ID = :B2 AND MV_OBJ# = :B1Here are...

View Article

Quickly creating a Standby Database in 19c

A quick overview1.  Create the parameter file initSTDBYDB.ora with additional parameters  change or add DB_UNIQUE_NAME to be STDBYDB  change the location of control files  add fal_server to be the...

View Article

Redo Shipping for Standby Database in 19c

Following my previous post, here is some setup information :Relevant database instance parameter(s) for the Primary database...

View Article


Using FLASHBACK DATABASE for [destructive] D.R. Testing

Testing your Disaster Recovery strategy with an Oracle Standby Database can be at different "levels" for the database :1. Graceful Switchover to the D.R. site and reversing roles between the two...

View Article

My Posts on Basic Replication

My series of Blog Posts on Basic Replication :1.  1. Introduction  (Aug-19)2. 2a. Elements for creating a Materialized View  (Aug-19)3. 2b. Elements for creating a Materialized View  (Sep-19)4. 3....

View Article

Restoring a lost Datafile on a Standby Database and knowing about V$RECOVER_FILE

Continuing with my configured Standby database ....how to restore a lost datafile in the Standby [when there is no backup on the Standby server and no backup recently taken or planned on the Primary...

View Article


V$RECOVER_FILE and PDB$SEED and Standby Database

As a follow up to my previous post where I showed, with other things, that V$RECOVER_FILE may show PDB$SEED files as well, this is what I currently see on my Production (Primary) database :SQL> l 1...

View Article


RMAN Backup of a Standby Database

A Standby Database can be backed up even when Recovery is in progress. The ArchiveLogs at the Standby can also be backed up.STDBYDB>sqlplus '/ as sysdba'SQL*Plus: Release 19.0.0.0.0 - Production on...

View Article

Image may be NSFW.
Clik here to view.

Restoring a Datafile into ASM

What happens to the file name when you restore a datafile into RAC ?I create a new tablespace and datafile.I then make a backup of the tablespace/datafileI shutdown the database and remove the datafile...

View Article

INSERTing a row with or without NULL explicitly ?

Here's something I've wanted to explore.Say you have a table with a column that is not NOT NULL -- i.e. it does allow NULLs.When you issue an INSERT statement, you can eithera. Explicitly specify a...

View Article

Datafile in a PDB added but not backed up

(I think I've covered this with a pre-12c non-PDB example earlier, but this demo is with a 12c PDB)What happens if you add a datafile to a PDB and then lose it without having a backup of the datafile...

View Article


Full Recovery of Standby Database over the network

Say that your Standby database is lagging behind the Primary database.You coulda.  Fetch and apply all the ArchiveLogs required to cover the lagb.  Take an Incremental Backup from the Primary and apply...

View Article

"Long Term Support Release" vs "Innovation Release"

Too often, IT departments implement and then get stuck on software releases that do not get long term support.  There is no harm upgrading to a new release that is an intermediate if you plan to...

View Article


A Correlated SubQuery

I take this simple Correlated Subquery that identifies all employees whose Salary is greater than the department's average Salary and is also greater than $9,000SQL> l 1 select emp.department_id,...

View Article

Adding a Function-Based Index

What happens when you create a Function Based Index ?{This demo is in 12.2}I start with my "large" table.SQL> create table my_data_table 2 as select * from dba_objects 3 union all select * from...

View Article


A Function Based Index : 2

Here's another Function Based Index example.   This is in 19.3  (not to demonstrate any difference between  12.2 and 19.3 here)SQL> create table employees 2 (employee_id number primary key, 3...

View Article

Image may be NSFW.
Clik here to view.

SQL Developer 20.2 connected to Oracle ATP on the Cloud

Screenshot from SQL Developer on my desktop :Screenshot from ATP Overview page :Performance Metrics for a specific SQL Statement, captured by the Real Time SQL Monitor in SQL Developer :

View Article

Archive Log Deletion Policy with a Standby Database

Previously, I have blogged about Archive Log Deletion Policy even when a Standby database is not present.Here's a 19c example with a Standby DatabaseI first set it to "APPLIED ON ALL STANDBY" meaning...

View Article
Browsing all 467 articles
Browse latest View live