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.

Showing posts with label Date & Time. Show all posts
Showing posts with label Date & Time. Show all posts
Tuesday, November 10, 2020

Date formatting in PostgreSQL

›
select action_type, to_char(action_date,'DD Mon YYYY'), count(*) from actions group by action_type, action_type | to_char...
Wednesday, May 13, 2020

How to use the TIMESTAMP_TO_SCN function

›
select timestamp_to_scn(to_timestamp('2020-05-11 14:36:22', 'YYYY-MM-DD HH24:MI:SS')) "scn" from dual; s...
Thursday, January 17, 2019

Some simple timestamp expressions

›
Here is a simple template for how to add hours, minutes and seconds using Oracle timestamp expressions: select sysdate, sysdate+1/24 ...
Tuesday, September 18, 2018

How the DBTIMEZONE is set in an Oracle database

›
A customer wanted me to look into why his two databases running the exact same application code were returning different time zones. sele...
Wednesday, February 1, 2017

How to display a SYSTIMESTAMP data type as a TIMESTAMP WITH TZ

›
To display a value of datatype SYSTIMESTAMP as TIMESTAMP WITH TIME ZONE, use TO_CHAR first, then convert to TIMESTAMP WITH TIMEZONE. The l...
›
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.