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
Enhancing Cost Estimation and Attribution in the Technology Sector: How Enteros Uses AI Performance Management to Drive Financial and Operational Efficiency
- 6 November 2025
- Database Performance Management
Introduction In the dynamic world of the technology sector, cost estimation and attribution have become as critical as innovation itself. As companies expand their cloud infrastructures, deploy AI-driven workloads, and manage vast databases across multi-cloud ecosystems, the challenge lies in maintaining both financial precision and performance optimization. Technology enterprises need a clear understanding of where … Continue reading “Enhancing Cost Estimation and Attribution in the Technology Sector: How Enteros Uses AI Performance Management to Drive Financial and Operational Efficiency”
Optimizing Retail Budgeting and Performance: How Enteros Combines AI SQL and AI Performance Management to Transform Database Efficiency
Introduction In the fast-paced retail sector, success depends on delivering seamless customer experiences, managing inventory efficiently, and controlling operational costs — all while keeping up with dynamic market demands. Retailers today rely on a digital ecosystem powered by databases, SaaS platforms, and AI technologies to manage everything from transactions and supply chains to personalized recommendations. … Continue reading “Optimizing Retail Budgeting and Performance: How Enteros Combines AI SQL and AI Performance Management to Transform Database Efficiency”
Revolutionizing the Fashion Sector: How Enteros Leverages Generative AI and AI Performance Management to Optimize SaaS Database Efficiency
- 5 November 2025
- Database Performance Management
Introduction The global fashion industry has always been a beacon of creativity, speed, and transformation. From runway collections to e-commerce platforms, the sector thrives on rapid innovation and data-driven decision-making. In today’s digital-first world, fashion enterprises—from luxury retailers to fast-fashion brands—are evolving into technology-driven organizations, heavily dependent on SaaS platforms, AI tools, and cloud databases … Continue reading “Revolutionizing the Fashion Sector: How Enteros Leverages Generative AI and AI Performance Management to Optimize SaaS Database Efficiency”
Driving Financial Sector RevOps Efficiency: How Enteros Unites Database Performance Optimization and Cloud FinOps Intelligence
Introduction In the fast-evolving financial sector, success hinges on agility, precision, and performance. Financial institutions—banks, investment firms, fintech innovators, and insurance providers—depend on massive volumes of transactional and analytical data processed across complex, distributed systems. Yet, as these organizations modernize operations through cloud computing, AI, and automation, new challenges have emerged: escalating cloud costs, unpredictable … Continue reading “Driving Financial Sector RevOps Efficiency: How Enteros Unites Database Performance Optimization and Cloud FinOps Intelligence”