Quick revision
The short answer
We frame it as a business decision with three options rather than a yes or no: migrate everything, migrate most and keep a smaller licence for the systems with the deepest procedural code, or stay and renegotiate. Each option gets a multi-year cost model (people, risk, parallel running against licence savings), a risk assessment with mitigations, and a decision per system to rewrite, re-host or keep. The migration plan doubles as negotiating leverage, and the chosen path needs executive sponsorship and milestones.
What to remember
In this answer, we framed the decision to leave a proprietary database vendor as a choice between full migration, partial migration with a smaller licence, and renegotiation. We built a multi-year cost model of people, risk and parallel running against licence savings, decided per system whether to rewrite, re-host or keep where procedural code is deep, used the migration plan as negotiating leverage, assessed and mitigated the business risk of migration incidents, and made the decision explicit with an executive sponsor and milestones.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
We frame it as a business decision with three options rather than a yes or no: migrate everything, migrate most and keep a smaller licence for the systems with the deepest procedural code, or stay and renegotiate. Each option gets a multi-year cost model (people, risk, parallel running against licence savings), a risk assessment with mitigations, and a decision per system to rewrite, re-host or keep. The migration plan doubles as negotiating leverage, and the chosen path needs executive sponsorship and milestones.
Why this question is asked
Leaving a proprietary database vendor is one of the largest technical decisions a company makes, and it is rarely only technical. Much of the business logic may live in stored procedures written over fifteen years, the people who wrote them may have left, and the contract renewal date creates pressure that leads to rushed choices. Interviewers ask this question to see whether we can turn a strong wish ('leave the expensive vendor') into a decision leadership can make with eyes open. In this answer, we will set up the options, build the cost model, deal with the procedural code, use the plan in negotiation, assess risk, and make the decision explicit with sponsorship and milestones.
1Turning a Wish Into Options
'We want to leave' is a goal, not yet a decision. The first thing to do is to describe the realistic options side by side. Option A is a full migration of every system to an open database such as PostgreSQL within, say, three years. Option B is a partial migration: move the many systems with little procedural code, and keep a much smaller licence for the few whose logic lives deep in the database, while that logic is gradually rewritten. Option C is to stay, but use the credible threat of leaving to negotiate a better contract, perhaps with a reduced footprint.
Two years is not much time for systems with heavy procedural code. So part of the framing is honest: we probably cannot leave entirely before renewal, and the realistic question is what we renew, for how long, and on what terms.
| Option | What happens | Main benefit | Main risk |
|---|---|---|---|
| A: full migration | all systems to PostgreSQL in about 3 years | largest long-term saving | highest cost, incident risk |
| B: partial migration | most systems move, small licence remains | most savings, less risk | two platforms for a while |
| C: stay and renegotiate | renew with better terms or smaller footprint | lowest disruption | dependence and cost remain |
2Building the Multi-Year Cost Model
Licence savings are easy to estimate: the current annual licence and support cost, minus what remains under each option. Migration cost is where estimates go wrong, so we break it down. People: the engineers to convert schemas, rewrite procedural code, change applications and test them, for each system. Parallel running: during migration we pay for both the old licence and the new infrastructure, often for a year or more. Tooling and training. And a risk allowance for incidents and delays, because large migrations nearly always take longer than planned.
We compare options over five to seven years, not one. For example, if licences cost 6 million a year, a full migration might cost 12 million over three years including parallel running, and save 5 million a year from year four, paying back around year five or six. A partial migration might cost 6 million, keep a 1.5 million licence and pay back sooner. Presenting the numbers with ranges, not single points, shows leadership how confident we are.
3Deciding System by System Where Procedural Code Is Deep
The systems with thousands of lines of stored procedures are the heart of the problem. For each, there are three choices. Rewrite: move the business logic into application code, which is the most expensive but leaves the system easier to test, scale and change, and removes database lock-in completely. Re-host: translate the procedural code into PL/pgSQL, PostgreSQL's procedural language, with tools such as ora2pg for Oracle sources doing part of it automatically; this is faster but keeps the logic in the database, and subtle differences in behaviour need thorough testing. Keep: leave the system on a smaller licence for now, because the risk or cost of moving it is not justified yet.
We decide per system based on how much the code changes, how good its tests are, how critical it is, and whether the team still understands it. A billing engine that changes every quarter is a good candidate for a rewrite; a stable settlement process with excellent tests may be re-hosted; an old system due for replacement in three years might simply be kept until then.
- Is procedural code deep in this system?thousands of lines, core logicYesAssess furtherNoMigrate with standard tooling
- Is the system due for replacement soon?within the licence termYesKeep on a smaller licenceNoAssess further
- Does the logic change often?quarterly or moreYesRewrite into the applicationNoRe-host as PL/pgSQL with strong tests
3 steps in order. Play them, or step through them one at a time.
4Using the Plan as Leverage
A vendor negotiates very differently with a customer that has a funded, credible migration plan than with one that complains about prices. The plan itself, with systems already being moved and a clear timeline, is the strongest negotiating tool available. Even if we end up keeping part of the estate on the vendor's database, we can negotiate a smaller footprint, a shorter term so we are not locked in during the migration, or better prices for what remains.
This only works if the plan is real. Announcing a migration we do not intend to do is quickly recognised, and weakens our position at the next renewal.
5Risk, Sponsorship and Milestones
Migration incidents are the biggest business risk: wrong results from a rewritten procedure, a performance regression at month-end, a failed cutover. We list the risks per system and plan mitigations: parallel runs that compare outputs of the old and new systems on real data, cutovers with rollback paths, migrations scheduled away from business peaks such as year-end close, and extra testing for financial calculations.
Finally, the decision must be explicit and owned. A migration of this size competes with feature work for years, and without an executive sponsor it will be deprioritised the first time a product deadline slips. We ask leadership to choose an option formally, assign a sponsor, fund the central team, and agree milestones that are reported regularly: systems migrated, licences reduced, savings realised and incidents. Milestones also let us revisit the decision if costs or risks turn out very different from the estimates.
6Follow-up questions
What if leadership wants full migration before the renewal date anyway?
We show what that would mean in risk and cost for the systems with deep procedural code, and propose a renewal of a reduced footprint for a short term as insurance. A rushed migration of critical financial logic can cost more in one incident than the licence savings of several years.
How do you estimate the effort to rewrite stored procedures?
We sample: rewrite a representative module, measure the effort per thousand lines including tests, and extrapolate with a range. Automated assessment tools help for re-hosting, but a sample rewrite gives far better numbers for rewriting.
Who should own the decision?
An executive, typically the CTO or CIO with the CFO, because it trades engineering capacity and business risk against a multi-year financial saving. Engineering provides the options and estimates; leadership chooses.
7Conclusion
In this answer, we framed the decision to leave a proprietary database vendor as a choice between full migration, partial migration with a smaller licence, and renegotiation. We built a multi-year cost model of people, risk and parallel running against licence savings, decided per system whether to rewrite, re-host or keep where procedural code is deep, used the migration plan as negotiating leverage, assessed and mitigated the business risk of migration incidents, and made the decision explicit with an executive sponsor and milestones.
Open with
I would turn the wish to leave into a decision with clear options. Option one is a full migration, option two is migrating most systems and keeping a smaller licence for those with the deepest procedural code, and option three is staying and renegotiating.
Then, if they want more
For each I would build a cost model over five to seven years: licence savings against the full migration cost, meaning people for conversion and rewrites, testing, parallel running where we pay for both, and a risk allowance, presented as ranges with a payback year.
For the systems with heavy stored procedures, I would decide one by one whether to rewrite the logic into the application, re-host it as PL/pgSQL, or keep it on the vendor for now, based on how often it changes, test quality and whether it is due for replacement.
Two years is short for those, so the realistic question is usually what we renew and for how long. The migration plan, if it is real and funded, is also our best negotiating leverage for a smaller, shorter contract. I would list the business risks, like wrong results in rewritten financial logic, with mitigations like parallel runs comparing outputs.
And I would ask leadership to choose formally, with an executive sponsor, funding and milestones we report on.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- PostgreSQL documentation, MySQL reference manual
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Leadership wants to leave an expensive proprietary database vendor whose contract renews...": https://scrivio-interview-library.netlify.app/databases/database-operations/18bb9eaf51/