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
From Cloud Costs to Competitive Advantage: AI-Driven Retail Growth with Enteros
- 6 January 2026
- Database Performance Management
Introduction The retail industry is operating in one of the most competitive and digitally complex environments in its history. Omnichannel commerce, real-time inventory visibility, personalized customer journeys, AI-driven recommendations, dynamic pricing engines, and always-on digital storefronts have become table stakes for modern retailers. Behind every seamless customer experience lies a massive and ever-expanding technology backbone—cloud … Continue reading “From Cloud Costs to Competitive Advantage: AI-Driven Retail Growth with Enteros”
AI-Driven Performance Management Across Financial and Retail Platforms with Enteros
Introduction Financial services and retail enterprises are operating at the center of the digital economy. Real-time payments, mobile banking, eCommerce transactions, omnichannel retail, loyalty platforms, fraud detection, personalization engines, and digital marketplaces all rely on complex, always-on technology ecosystems. While the business models of financial institutions and retailers differ, their technology challenges are increasingly similar. … Continue reading “AI-Driven Performance Management Across Financial and Retail Platforms with Enteros”
Improving Patient Access While Controlling Digital Costs: Enteros’ Website Optimization Platform for Healthcare
- 5 January 2026
- Database Performance Management
Introduction Healthcare delivery has become deeply digital. From hospital websites and patient portals to telehealth platforms, appointment scheduling systems, online billing, and digital front doors, healthcare organizations increasingly rely on web-based experiences to connect patients with care. For patients, these digital touchpoints are no longer optional—they are essential. Patients expect fast-loading websites, seamless navigation, secure … Continue reading “Improving Patient Access While Controlling Digital Costs: Enteros’ Website Optimization Platform for Healthcare”
The New Economics of Entertainment Platforms: Enteros’ Cloud FinOps and AIOps-Driven Database Optimization
Introduction The entertainment industry is experiencing a profound digital transformation. Streaming platforms, OTT services, gaming ecosystems, live events, digital content marketplaces, and immersive experiences now operate on massive, always-on technology infrastructures. Millions of users expect seamless playback, real-time interaction, personalized recommendations, and uninterrupted access—regardless of geography or device. Behind every stream, game session, recommendation, and … Continue reading “The New Economics of Entertainment Platforms: Enteros’ Cloud FinOps and AIOps-Driven Database Optimization”