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, April 11, 2019

How to manuall purge your unified auditing audit trail

›
This is how I purged my unified audit trail on an Oracle 12.2 instance. The procedure has also been tested in a 19c instance. First, chec...
Tuesday, April 9, 2019

How to create a unique constraint with an existing index (the USING-clause)

›
Create the index: CREATE UNIQUE INDEX MYTABLE_IDX1 ON MYTABLE (ID,CATEGORY) LOCAL TABLESPACE USERS ONLINE; Create a unique constraint: ...

A workaround for ORA-54033: column to be modified is used in a virtual column expression

›
Applicable for Oracle 12.1.0.2. My customer reports that an attempt to execute a simple DDL statement failed: ALTER TABLE mytable MODIF...
Thursday, April 4, 2019

How to audit specific users' actions on other schemas' objects

›
This was executed on Oracle 12.2 To audit actions by users on another schema's objects, execute this: audit insert table,update tabl...
Wednesday, April 3, 2019

How to gather histograms on a column of a table

›
Use the METHOD_OPT directive in DBMS_STATS.GATHER_TABLE_STATS to collect histograms for column ARTICLE_NAME in table SALES_Q1_RESULTS. In...
Friday, March 29, 2019

How to remove the schema OWF_MGR from a database

›
Applicable for Oracle version 12.1.0.2.0. Workflow manager is a component used for Orchestrating of Oracle Warehouse Builder (OWB). If y...
Wednesday, March 27, 2019

How to monitor redo apply in a snapshot standby database

›
SELECT PROCESS, STATUS, THREAD#, SEQUENCE#, BLOCK#, BLOCKS FROM V$MANAGED_STANDBY; Sample output (abbriviated): PROCESS STATUS ...
‹
›
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.