Book Image

Developing Robust Date and Time Oriented Applications in Oracle Cloud

By : Michal Kvet
Book Image

Developing Robust Date and Time Oriented Applications in Oracle Cloud

By: Michal Kvet

Overview of this book

Proper date and time management is critical for the development and reliability of Oracle Databases and cloud environments, which are among the most rapidly expanding technologies today. This knowledge can be applied to cloud technology, on premises, application development, and integration to emphasize regional settings, UTC coordination, or different time zones. This practical book focuses on code snippets and discusses the existing functionalities and limitations, along with covering data migration to the cloud by emphasizing the importance of proper date and time management. This book helps you understand the historical background and evolution of ANSI standards. You’ll get to grips with data types, constructor principles, and existing functionalities, and focus on the limitations of regional parameters and time zones, which help in expanding business to other parts of the world. You’ll also explore SQL injection threats, temporal database architecture, using Flashback Technology to reconstruct valid database images from the past, time zone management, and UTC synchronization across regions. By the end of this book, you’ll be able to create and manage temporal systems, prevent SQL injection attacks, use existing functionalities and define your own robust solutions for date management, and apply time zone and region rules.
Table of Contents (26 chapters)
1
Part 1: Discovering Oracle Cloud
4
Part 2: Understanding the Roots of Date and Time
7
Part 3: Modeling, Storing, and Managing Date and Time
12
Part 4: Modeling Validity Intervals
17
Part 5: Building Robust and Secure Temporal Solutions
20
Part 6: Expanding a Business Worldwide Using Oracle Cloud

Questions

  1. What is the default precision for TIMESTAMP second fractions?
    1. 0 decimal places
    2. 3 decimal places
    3. 6 decimal places
    4. 9 decimal places
  2. What is the finest precision for the DATE value definition?
    1. Day
    2. Second
    3. Microsecond
    4. Nanosecond
  3. Which data type can hold the value 2022-06-13 6:46:12.576000 GMT?
    1. DATE
    2. TIMESTAMP
    3. TIMESTAMP WITH TIME ZONE
    4. TIMESTAMP WITH LOCAL TIME ZONE
  4. What is the right syntax for the ANSI TIMESTAMP constructor?
    1. TIMESTAMP 'YYYY-MM-DD HH24:MI:SS.FF'
    2. DATE 'YYYY-MM-DD HH24:MI:SS.FF'
    3. TIMESTAMP 'YYYY-MM-DD'
    4. TIMESTAMP 'HH24:MI:SS.FF YYYY-MM-DD'
  5. Which function produces a local client TIMESTAMP value?
    1. sysdate
    2. systimestamp
    3. current_date
    4. localtimestamp
  6. What is the output of the subtraction of two DATE values?
    1. Two DATE values cannot be subtracted
    2. Number of seconds elapsed
    3. Number of hours elapsed
    4. Number of days elapsed
  7. What is the data type of the output of the subtraction of two TIMESTAMP values?
    1. INTERVAL DAY TO SECOND
    2. INTERVAL YEAR TO...