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, July 31, 2025

How to check if a PostgreSQL streaming replicate server is up-to-date with the primary

›
On the primary, run SELECT pg_current_wal_lsn(); -- On the primary In my case, the result was pg_current_wal_lsn -------------------- ...

Basic postgres connect syntax

›
psql -h hostname -U username -d database Options: Option Description -h <host> Hostname or IP address of the PostgreSQL server -p...
Wednesday, July 30, 2025

How to find the columns in a specific postgres data dictionary table

›
For example, to check which columns belongs to the view "pg_stat_wal_receiver" SELECT column_name FROM information_schema.colu...
Monday, July 28, 2025

How to list the postgres processes running on your server and what their jobs are

›
A neet little trick I learned from the series " Mirage of memory, part 2: PSS " ps -fu postgres | grep $(pgrep -f postmaster) p...
1 comment:
Monday, July 14, 2025

How to find when a PostgreSQL table was last vacuumed

›
SELECT schemaname, relname, last_vacuum, last_autovacuum, last_analyze, last_autoanalyze FROM pg_stat_user_tables WHERE relname = 'docu...
Friday, July 11, 2025

PostgreSQL: how to tail the alert log of the day with filtering for long-running statements

›
I have set the parameter log_min_duration_statement to 2 seconds and reloaded the config: postgres=# alter system set log_min_duration_sta...
Wednesday, July 9, 2025

How to list all subdirectories and exclude certain subdirectories in a tree-like fashion

›
In this example I want to see all subdirectories that starts with "dir", but also to exclude the directory "dirdat": cd...
‹
›
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.