Database upgrades - with No downtime [message #678163] |
Thu, 14 November 2019 00:05 |
|
deepakdot
Messages: 91 Registered: July 2015
|
Member |
|
|
Hi,
for the banking application database, What is the Best way to Upgrade the database with the new DDL/ DML changes going in, with the No downtime ?
we have a online database and a DR database. The requirement is not to have any downtime while upgrading the database. Any document / process followed as a best practice ?
Deepak
|
|
|
|
|
|
|
|
|
|
|
Re: Database upgrades - with No downtime [message #678553 is a reply to message #678551] |
Fri, 13 December 2019 00:57 |
|
Michel Cadot
Messages: 68716 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Well, as I said, the best way is:
0/ Only the first time, small downtime, rename your tables and revoke privileges on these ones, build editioning views upon your tables with the former names of these ones and grant the privileges on the views (possibly recompile PL/SQL stored objects).
1/ Create a new edition
2/ Make your application upgrade while user are working
3/ Switch your user to the new edition (could be made in 2 times, a) only some pilots and b) when you are sure of the new application code, all users)
4/ Possibly but not mandatory, drop the old edition
Steps 1 to 3 will be the only steps for all your future upgrades with no downtime.
|
|
|
Re: Database upgrades - with No downtime [message #678557 is a reply to message #678551] |
Fri, 13 December 2019 02:07 |
John Watson
Messages: 8960 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Quote:a. DDL: New table dont need a down time. If no altering table, dont need downtime. If there is table alter, then will set DDL_LOCK_TIMEOUT and try to proceed. If still have issue, then we may need to stop the app for the time we alter the tables. Still under discussion. I am not sure that DDL_LOCK_TIMEOUT is intended to be used in this way.How about quiesceing the database? THat is designed top give you a period of quiet to do things like this.
https://www.orafaq.com/node/2943
|
|
|
|
|