Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What options do I have in Amazon RDS for using 'fixed_date'?

Historically, in Oracle I've used the fixed_date parameter to change the system date to run a series of reports that tie together to verify those links still are correct.

Now that we've moved to Amazon RDS, that capability is not available.

What are my options?

Here's what I've considered

  • changing all calls to 'system_date' to use a custom function that simulates this. (Ugh, this is hundreds of packages, but is possible)
  • crying :)

anyone with an idea?

like image 346
not-bob Avatar asked Mar 23 '21 14:03

not-bob


People also ask

How does Amazon RDS Multi availability zone model work?

How it works. In an Amazon RDS Multi-AZ deployment, Amazon RDS automatically creates a primary database (DB) instance and synchronously replicates the data to an instance in a different AZ. When it detects a failure, Amazon RDS automatically fails over to a standby instance without manual intervention.

What is option groups in RDS?

An option group can specify features, called options, that are available for a particular Amazon RDS DB instance. Options can have settings that specify how the option works. When you associate a DB instance with an option group, the specified options and option settings are enabled for that DB instance.

How do you make an RDS Multi-AZ?

To create a new Multi-AZ deployment using the console, choose the Create a standby instance option for Multi-AZ deployment when launching a DB instance. To convert an existing Single-AZ DB instance to a Multi-AZ deployment, modify your DB instance via the console, AWS CLI, or Amazon RDS API.

What is Amazon RDS?

Amazon RDS enables you to run a fully featured relational database while offloading database administration. Using one of our many relational database AMIs on Amazon EC2 allows you to manage your own relational database in the cloud.

How do I change the time zone of an Amazon RDS instance?

The steps required to modify the time zone of an Amazon RDS DB instance vary depending on the database engine. Oracle – To modify the time zone for Amazon RDS Oracle DB instances, see Setting the database time zone. To change the time zone, Oracle Database Engine version 11.2.0.2.v4 is required.

How long can I use my Amazon RDS instance for?

However, any use exceeding 750 instance hours, across all Amazon RDS Single-AZ Micro DB instances, across all eligible database engines and regions, will be billed at standard Amazon RDS prices.

What time zone should I use for my RDS Database?

All Amazon RDS DB instances use UTC/GMT time by default, and changing your time zone is optional. It’s a best practice to use the UTC time zone at the database layer.


1 Answers

Seems like the only option you have is to create custom function and replace all the calls to system_date.

CREATE OR REPLACE FUNCTION fml.system_date
RETURN date
AS
BEGIN
  return to_date('03-04-2021','DD-MM-YYYY');
END;
like image 84
Sir Crusher Avatar answered Nov 12 '22 01:11

Sir Crusher