Basic Replication -- 4 : Data Dictionary Queries
Now that we have two Materialized Views against a Source table, how can we identify the relationship via the data dictionary ?This is the query to the data dictionary in the database where the Source...
View ArticleBasic Replication -- 5 : REFRESH_METHOD : FAST or FORCE ?
In the previous blog post, I had a remark "We'll explore the implications of "REFRESH FAST" and just "REFRESH" alone in a subsequent blog post."This is in the context of whether it is a FORCE or FAST...
View ArticleBasic Replication -- 6 : COMPLETE and ATOMIC_REFRESH
Till 9i, if you did a COMPLETE Refresh of a Single Materialized View, Oracle would do a TRUNCATE followed by an INSERT.If you did a COMPLETE Refresh of a *group* of Materialized Views, Oracle would...
View ArticleBasic Replication -- 7 : Refresh Groups
So far, all my blog posts in this series cover "single" Materialized Views (even if I have created two MVs, they are independent of each other and can be refreshed at different schedules).A Refresh...
View ArticleBasic Replication -- 8 : REFRESH_MODE ON COMMIT
So far, in previous posts in this series, I have demonstrated Materialized Views that set to REFRESH ON DEMAND.You can also define a Materialized View that is set to REFRESH ON COMMIT -- i.e. every...
View ArticleBasic Replication -- 9 : BUILD DEFERRED
A Materialized View can be created with all the target rows pre-inserted (and subsequently refreshed for changes). This is the default behaviour.However, it is possible to define a Materialized View...
View ArticleBasic Replication -- 10 : ON PREBUILT TABLE
In my previous blog post, I've shown a Materialized View that is built as an empty MV and subsequently populated by a Refresh call.You can also define a Materialized View over an *existing*...
View ArticleBasic Replication -- 11 : Indexes on a Materialized View
A Materialized View is actually also a physical Table (by the same name) that is created and maintained to store the rows that the MV query is supposed to present.Since it is also a Table, you can...
View ArticleRunning 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 ArticleBasic 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 ArticleBasic 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 ArticleQuickly creating a Standby Database in 19c
A quick overview of creating a Standby from an active database, copying over the network.(words in italics above are added after this post was published)1. Create the parameter file initSTDBYDB.ora...
View ArticleRedo 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 ArticleUsing 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 ArticleMy 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 ArticleRestoring 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 ArticleV$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 ArticleRMAN 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 ArticleRestoring 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 ArticleINSERTing 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
More Pages to Explore .....