Category Archives: Databases

#Oracle: ORA-02298: cannot validate "key" – parent keys not found

By | December 17, 2019

When trying to add a foreign key to a table sometimes the error ORA-02298 is thrown. Let’s have two tables a MyTable and a MyTableHistory connected by a historyid column from MyTable that points to the id column from MyTableHistory Try then to add add foreign key like: If we are in the case of… Read More: #Oracle: ORA-02298: cannot validate "key" – parent keys not found »

Migrating a #PostgreSQL database to a diferent PostgreSQL version or to a restrictive Postgres instance of cloud providers like #AWS-RDS

By | December 11, 2019

There are instances when one needs to migrate data from a Postgres database to a different PostgreSQL database version or even worse to a restrictive PostgreSQL instance of cloud providers like #AWS-RDS. When migrating to a different version of Postgres after you used to run on a frozen production version for long time it may… Read More: Migrating a #PostgreSQL database to a diferent PostgreSQL version or… »

Migrate legacy application using Oracle 10g to Oracle 12c

By | March 16, 2019

After upgrading my developement Oracle database to 12c I discovered that an old legacy application still under support was no longer working throwing the following Oracle error: After some digging I found the following reported bug: Bug 14575666 In 12.1, the default value for the SQLNET.ALLOWED_LOGON_VERSION parameter has been updated to 11. This means that… Read More: Migrate legacy application using Oracle 10g to Oracle 12c »

#SQL to find dependency between tables in #Oracle database

By | February 12, 2025

There are times when we need to find which are the tables that depend on a given table. This is useful when cleanup or archiving jobs have to pe performed and the interconnection of constraints is becoming a nuisance. Lucky for us in the case of Oracle database is quite simple to search through all… Read More: #SQL to find dependency between tables in #Oracle database »

Learning GO: Obtaining a unique sequence from #PostgresSQL with #golang

By | May 21, 2018

At some point I discovered GO trying to do very simple and fast code for specific tasks without having to load lots of libraries, deploy application servers or set up complicated frameworks. If you want to build fast very small native micro-services that can be deployed in a docker instance < 10MB Go is the… Read More: Learning GO: Obtaining a unique sequence from #PostgresSQL with #golang »