Preamble
Oracle/PLSQL CURRENT_TIMESTAMP function returns the current date and time in the time zone of the current SQL session as set with the ALTER SESSION command. It returns the date/time with the time zone value.
Oracle/PLSQL syntax of CURRENT_TIMESTAMP function
CURRENT_TIMESTAMP
Parameters and function arguments
- There are no parameters or arguments for the function CURRENT_ TIMESTAMP.
The function CURRENT_TIMESTAMP returns the value TIMESTAMP WITH TIME ZONE.
The LOCALTIMESTAMP function similar to CURRENT_TIMESTAMP.
The difference between these two functions is that CURRENT_TIMESTAMP returns a date/time with a time zone value, while LOCALTIMESTAMP returns a date/time value.
The CURRENT_TIMESTAMP function can be used in the following Oracle/PLSQL versions
|
Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i
|
Let’s consider some examples of the CURRENT_TIMESTAMP function and learn how to use CURRENT_TIMESTAMP in Oracle.
If you execute the ALTER SESSION command:
ALTER SESSION SET TIME_ZONE = '-3:0';
And execute the next SQL query:
select CURRENT_TIMESTAMP from dual;
You will get the following result:
30.07.14 16:16:37,119993 -03:00
Then you will change the time zone with the ALTER SESSION command:
ALTER SESSION SET TIME_ZONE = '-7:0';
And execute the next SQL query:
select CURRENT_TIMESTAMP from dual;
You will get the following result:
30.07.14 9:16:37,119993 -07:00
The time zone of the session has changed from -3:0 to -7:0, as a result of which CURRENT_TIMESTAMP function will return the current date and time to the past by 4 hours.
The Oracle CURRENT_TIMESTAMP function will display the current date and time in the session time zone
About Enteros
Enteros offers a patented database performance management SaaS platform. It proactively identifies root causes of complex business-impacting database scalability and performance issues across a growing number of clouds, RDBMS, NoSQL, and machine learning database platforms.
The views expressed on this blog are those of the author and do not necessarily reflect the opinions of Enteros Inc. This blog may contain links to the content of third-party sites. By providing such links, Enteros Inc. does not adopt, guarantee, approve, or endorse the information, views, or products available on such sites.
Are you interested in writing for Enteros’ Blog? Please send us a pitch!
RELATED POSTS
How to Optimize Technology Sector Growth with Enteros Cost Estimation, Cloud FinOps, RevOps Efficiency, and AI SQL
- 6 April 2026
- Database Performance Management
Introduction The technology sector is evolving at an unprecedented pace, driven by cloud computing, SaaS platforms, AI innovation, and data-driven business models. Companies are scaling rapidly, deploying applications across multi-cloud environments, and handling massive volumes of data in real time. However, with this growth comes a critical challenge:how to scale efficiently while controlling costs, maintaining … Continue reading “How to Optimize Technology Sector Growth with Enteros Cost Estimation, Cloud FinOps, RevOps Efficiency, and AI SQL”
How to Transform Financial Sector Growth Management with Enteros Performance Management, AIOps Platform, and Generative AI
Introduction The financial sector is experiencing a profound transformation fueled by digital banking, real-time payments, algorithmic trading, and AI-driven customer experiences. Financial institutions are under immense pressure to deliver seamless services while maintaining regulatory compliance, managing risk, and optimizing operational costs. At the core of this transformation lies a critical challenge:how to scale growth while … Continue reading “How to Transform Financial Sector Growth Management with Enteros Performance Management, AIOps Platform, and Generative AI”
How Enteros Transforms Manufacturing Growth Management with Cost Attribution and Showback Reporting on Azure Enterprise Agreements
- 5 April 2026
- Database Performance Management
Introduction The manufacturing sector is rapidly evolving into a digitally driven ecosystem powered by smart factories, IoT devices, predictive maintenance, and AI-driven supply chains. As manufacturers embrace cloud platforms like Microsoft Azure to scale operations, they face a growing challenge: how to balance growth with cost control and operational efficiency. Azure Enterprise Agreements (EA) provide … Continue reading “How Enteros Transforms Manufacturing Growth Management with Cost Attribution and Showback Reporting on Azure Enterprise Agreements”
What to Know About Enteros Performance Management for Banking Cost Estimation and AIOps Optimization
Introduction The banking sector is undergoing a profound transformation driven by digital banking, real-time payments, AI-powered fraud detection, and regulatory compliance demands. Every transaction—whether it’s a mobile payment, loan approval, or trading execution—relies on high-performance databases and efficient IT operations. However, as banks scale across hybrid and multi-cloud environments, they face a dual challenge:maintaining peak … Continue reading “What to Know About Enteros Performance Management for Banking Cost Estimation and AIOps Optimization”