pluggable database

Create a pluggable database(19c) from a non-container database.

With the announcement of 26ai on premises, many people (myself included) using 19c will be looking to migrate their existing databases over to 26ai. As announced earlier, 19c is the last release in which the option to use a non-CDB is allowed; from 21c onwards, it’s mandatory to change your database architecture to multitenant. Therefore, anyone

Create a pluggable database(19c) from a non-container database. Read More »

Conditional Filter For Aggregates In Oracle Database 26ai

BACKGROUND Consider this problem from LeetCode: leetcode_db_1158, about figuring out for each user, the number of orders they made in 2019. The code below can create the sample data set needed for the question. Here’s an Oracle SQL solution to this problem Notice the left join to a subquery highlighted above! This is done to

Conditional Filter For Aggregates In Oracle Database 26ai Read More »

Flashback Data Archive: Recreating History, After The Fact

Introduction As an IT professional, especially one working closely with data, surely, almost definitely, you have been asked a question from the users along the lines of “Can we know what the value was of col1 in the table t1 at 25:00 on Thursday, the 30th of February 8000 years ago?” (Silly, but that’s really

Flashback Data Archive: Recreating History, After The Fact Read More »

Non-Positional Inserts in Oracle AI Database 26ai

Background Oracle AI Database 26ai provides new, easier and self documenting syntax for insert statements: Non-positional Inserts. This makes use of the INSERT INTO SET  and BY NAME clauses The SET clause works similarly to the existing set clause for update statements, and the by name clause makes it easier to insert the results of

Non-Positional Inserts in Oracle AI Database 26ai Read More »