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.

Monday, May 15, 2017

How to clear your bash shell's history

›
history -c && history -w
Monday, April 24, 2017

How to truncate a partition

›
ALTER TABLE MYTABLE TRUNCATE PARTITION P_2017_01; For more details, check the documentation
Friday, April 7, 2017

How to work around ORA-12008 and ORA-01858 during an online redefinition

›
The following error occured during redefintion: Move method (cons_use_pk or cons_use_rowid): cons_use_rowid begin * ERROR at line 1: ORA-1...

How to create a logon trigger

›
In this particular example, I create a logon trigger that sets one of many available NLS session parameters, as well as sets an undocumentet...

How to generate CREATE TABLESPACE statements for both encrypted and non-encrypted tablespaces

›
I used the following statement when I was supposed to pre-create encrypted tablespaces as part of a migration project. We were supposed to m...
Thursday, April 6, 2017

How to find encrypted tablespaces

›
SELECT t.name, NVL(e.encryptionalg, 'Not encrypted') algorithm FROM v$tablespace t LEFT OUTER JOIN v$encrypted_tablespaces e ON( ...
Tuesday, April 4, 2017

How to enable incremental statistics gathering for a large partitioned table

›
What is incremental statistics? It's a way to improve performance of global statisics gathering on large partitioned tables. Increm...
‹
›
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.