Minimalistic Oracle

Minimalistic Oracle contains a collection of practical examples from my encounters with Oracle technologies. When relevant, I also write about other technologies, like Linux or PostgreSQL. Many of the posts starts with "how to" since they derive directly from my own personal experience. My goal is to provide simple examples, so that they can be easily adapted to other situations.

Thursday, May 27, 2021

How to fix error message from data guard broker "Property 'DbFileNameConvert' has inconsistent values"

›
After a rebuild of a physical standby database, I was tailing the broker log file drcSALES.log, and noticed the following warning: Proper...

Is default partition supported for partitioned tables in PostgreSQL?

›
Yes it is! From version 11, it is possible to create a default partition for partitioned tables in PostgreSQL. See the documentation fo...
Wednesday, May 26, 2021

How to trim output from a psql file - equivalent to SET commands in sqlplus

›
I have the following query, which will generate DML: SELECT 'drop table ' || table_schema || '.' || table_name ||';...
Friday, May 21, 2021

Workaround for ORA-14634 during an attempt to split a partition containing subpartitions

›
Short background: I had a LIST/RANGE partitioned tables that needed a new partition. The table is partitioned BY LIST on column STREAM, a...
Tuesday, May 18, 2021

How to find the opening and closing time for the maintenance windows in an Oracle database

›
To see the last 7 days of opening/closing time for the maintenance windows, use this query: SELECT window_name,to_char(start_time,'dd...
Wednesday, May 12, 2021

Simple script for finding a leftover FK constraint to an interim table after a redefinisjon

›
After a redefinition of a table, you may be stuck with some FK constraints from other tables, to the old interim tables. This simple scri...

How to repeat a command for all the lines i a text file using vi

›
This is a handy command for all those using the vi editor to fix scripts with many lines. For example, I had to create statements like ...
‹
›
Home
View web version

About Me

My photo
Name: Vegard Kåsa
My career as an Oracle DBA startet in 2001, when I acceptet a request to take on the responsibility as my current employer's DBA. From that point and onwards, managing Oracle databases has kept me busy and engaged. I enjoy my work, and particulary appreciate the constant learning and devlopment that comes with the job. From 2014, I am self-employed through my company Oric Consulting AS (Norway), and from 2024 Oric Consulting AB (Sweden) I currently live in Göteborg, Sweden, with my family.
View my complete profile
Powered by Blogger.