Control DDL Commands in Oracle Databases

This article discusses implementing a database-level trigger to manage and restrict DDL operations by limiting access to specific users. Unauthorized users attempting DDL actions will encounter a custom error message. The trigger code is provided, along with examples of error stacks generated from prohibited actions such as adding a column or truncating a table. This solution enhances database security and control over DDL activities within Oracle databases.… Read More Control DDL Commands in Oracle Databases

How to Detect Unused PL/SQL Objects in Oracle

To identify unused PL/SQL code in an Oracle database, several methods are recommended. Strategies include auditing PL/SQL execution, using DBA_DEPENDENCIES views to track dependencies, and analyzing execution data through DBMS_PROFILER. A process for safely removing unused code should be established, including renaming suspected units and ensuring backups before deletion.… Read More How to Detect Unused PL/SQL Objects in Oracle

Oracle Database: Constraints Tutorial

This article compiles various queries and code blocks used to manage disabled constraints in a database schema. It includes SQL statements to identify and enable these constraints. The content will be updated regularly with new insights, and it lists the tested database versions, starting with Oracle Database 23ai.… Read More Oracle Database: Constraints Tutorial

Ensuring PL/SQL Code Integrity with Checksums

The content explains how to implement a checksum for PL/SQL procedures to detect unauthorized modifications. It details steps for generating a checksum using Oracle’s DBMS_CRYPTO, storing it for future verification, and comparing it against current values. This approach helps ensure the integrity of PL/SQL procedures over time.… Read More Ensuring PL/SQL Code Integrity with Checksums

SQLcl: Customizing on a Mac

In this post I will summarize the steps I’ve taken to customize SQLcl on my Mac working environment. We assume that the reader is familiar with the procedures outline din… Read More SQLcl: Customizing on a Mac

SQLcl: Setup on a Mac

Simple and straightforward steps about how to setup Oracle’s new SQL command line tool on a macOS X environment. Download Download the mac kit from the Oracle site. Unzip the… Read More SQLcl: Setup on a Mac

Column Level Collation Example

The feature was first introduced in 12.2 . It basically determines how the string comparison takes place. In order to use the feature, extended data types should be enabled.

How to monitor SQL with Oracle SQL Developer

The easiest way to monitor the SQL’s currently executing… Read More How to monitor SQL with Oracle SQL Developer

I am speaking at SPOUG20

Autonomous Database is the best Cloud Database but many Clients wonder about its security! This talk will address those concerns! Oracle Autonomous Database might be the answer to the most… Read More I am speaking at SPOUG20

Is Oracle Autonomous Database the answer to the many database security issues? (II)

In the previous article, I discussed the main differentiating capabilities of the Autonomous, what makes it special on the market. In this post, I will discuss how are those capabilities… Read More Is Oracle Autonomous Database the answer to the many database security issues? (II)

Is Oracle Autonomous Database the answer to the many database security issues? (I)

There is no surprise that typical Database setups are the main target of the hacking attacks worldwide. The reason is obvious: cracking a database will result in access to the… Read More Is Oracle Autonomous Database the answer to the many database security issues? (I)

SQL*Plus Client connections to several Oracle Autonomous (Always-Free)

Oracle Autonomous is a great service and Always-Free is a nice offering launched at OpenWorld 2019. But what happens if I need to connect via SQL*Plus to two or more… Read More SQL*Plus Client connections to several Oracle Autonomous (Always-Free)