23ai


  • Control DDL Commands in Oracle Databases

    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…


  • How to Detect Unused PL/SQL Objects in Oracle

    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.


  • Understanding RAC One Node: Benefits and Drawbacks

    Understanding RAC One Node: Benefits and Drawbacks

    RAC OneNode is an Oracle RAC feature that allows a single database instance on one node with easy relocation options. It enhances high availability and simplifies management but is less effective for heavy workloads and multi-node performance. Its complexities in licensing and potential downtime during relocations are notable drawbacks.


  • Top Factors for Oracle Database Migration Success

    Top Factors for Oracle Database Migration Success

    To migrate Oracle database instances to Oracle Database on Azure, key criteria include database size, workload characteristics, version compatibility, application dependencies, performance requirements, high availability, security compliance, current infrastructure, customization complexity, migration strategy feasibility, backup procedures, and cost implications. Assessing these ensures effective migration planning.


  • Oracle Database: Constraints Tutorial

    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.


  • Ensuring PL/SQL Code Integrity with Checksums

    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.


  • Setting up Oracle Base Database Service on OCI

    Setting up Oracle Base Database Service on OCI

    Oracle Base Database service is a for pay offering on OCI but it is quite reasonably priced and suitable for setting up test environments. Still the setup is relatively complex and the scope of this article is the out line the main steps used. Setup the Network Decide the compartment to be used. In my…


  • Overview: SELECT SAMPLE

    Overview: SELECT SAMPLE

    One feature that many developers and data analysts are not aware of is the SAMPLE function in Oracle. It is quite an old feature (not sure exactly when it was added). Below is a simple example of how it works.


  • Oracle Live SQL Tool

    Oracle Live SQL Tool

    https://livesql.oracle.com/apex/f?p=590:1000:100225800561367