BLOG

Index_demo data setup

In a number of posts about indexes I use a demo table with some indexes. Here is how it is created: drop table index_demo; create table index_demo as with engine as (select level l from dual connect by level<=1e5) select l n, round(l/100) d, mod(l, 100) m, dbms_random.string(‘l’,25) s from engine; prompt create indexes create […]

Continue Reading

Index usage

Let’s talk a little about the usage of indexes. Following access paths are considered: Index Unique Scan Index Range Scan Index Full Scan (Min/Max) Index Fast Full Scan (Index FFS) Index Full Scan

Continue Reading

Restore and recover a database when everything is gone

Today someone deleted everything: datafiles gone, controlfile gone, spfile gone. What to do?…..not to worry….if you have backups (and the logging of those backups) you can get everything back 🙂 Lookup your DBID Lookup the autobackup file you want to use (probably the latest) Startup database nomount from a init.ora (spfile is also possible but […]

Continue Reading

SSL

Wow….that was easy. I just wanted to add SSL security to the website. I was prepared for : Creating a public and private key Creating a Certificate Signing Request (CSR) Issuing the CSR to a Certificate Authority (CA) Receving the signed certificate Configuring the Keys and Certificate in this very website. However …. Let’s Encrypt […]

Continue Reading

RMAN recipes

A few recipes I like to go through: Restore and recover a database as far as we can go Restore and recover a database up to a point in time Restore and recover a database when datafiles are awol. Restore and recover a database when the controlfiles are missing Restore and recover a database when […]

Continue Reading

Restore and recover a database as far as we can go

Something went wrong…we need the database back to the point we have archivelogs of: List incarnation (just to see what we have…no actual need to) Restore database (getting the datafiles back in place) Recover database (creating an actual working database with all updates we can possibly find in the archives) Open the database (and start […]

Continue Reading

Emacs shortcuts

My most used emacs short-cuts: Alt – v : Scroll page up Ctrl – v : Scroll page down Ctrl – k : cut line into the yank buffer Ctrl – y : Yank line(s) (paste yank buffer) Ctrl – a : Move to the start of a line Ctrl – e : Move to […]

Continue Reading