Quick revision
The short answer
Oracle Enterprise Edition is licensed per processor, counted as cores times a core factor, or per Named User Plus with minimums, and options such as Partitioning, RAC, Active Data Guard and the Diagnostics and Tuning Packs cost extra. Oracle's policy treats most virtualisation, such as VMware, as soft partitioning, which can require licensing every host the database could run on, a frequent audit finding. SQL Server is licensed per core (Standard and Enterprise) or Server plus CAL (Standard), and readable secondaries usually need their own licences, with some passive replicas covered by Software Assurance. Cloud terms differ again, so architectures with many replicas, environments or copies must be designed with licence cost in mind; check current vendor terms.
What to remember
In this answer, we saw that Oracle Enterprise Edition is licensed per processor with a core factor or per Named User Plus, with options like Partitioning, RAC, Active Data Guard and the Diagnostics Pack priced separately, and that Oracle's soft partitioning policy can make virtualised clusters very expensive. SQL Server is licensed per core or Server plus CAL, with passive replicas covered under Software Assurance but readable secondaries licensed. Cloud licensing has its own models, and because every copy of a commercial database can need licences, replicas, environments and copies must be designed with cost in mind and checked against current vendor terms.
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.
Oracle Enterprise Edition is licensed per processor, counted as cores times a core factor, or per Named User Plus with minimums, and options such as Partitioning, RAC, Active Data Guard and the Diagnostics and Tuning Packs cost extra. Oracle's policy treats most virtualisation, such as VMware, as soft partitioning, which can require licensing every host the database could run on, a frequent audit finding. SQL Server is licensed per core (Standard and Enterprise) or Server plus CAL (Standard), and readable secondaries usually need their own licences, with some passive replicas covered by Software Assurance. Cloud terms differ again, so architectures with many replicas, environments or copies must be designed with licence cost in mind; check current vendor terms.
Why this question is asked
Database licences can cost more than the hardware and the engineers who run them, and the rules are complex enough that well-meaning architecture decisions create large, unplanned bills. A senior engineer does not need to be a licensing specialist, but should know which design choices change the cost, so they can ask the right questions early. Interviewers ask this to see that awareness. In this answer, we will go through how Oracle and SQL Server are licensed, how virtualisation and replicas change the picture, what is different in the cloud, and how this affects architecture choices. The rules change over time, so every figure here should be checked against current vendor terms.
1How Oracle Database Is Licensed
Oracle Enterprise Edition has two main metrics. Processor licensing counts the physical cores of the server multiplied by a core factor from Oracle's core factor table; for common Intel and AMD x86 processors the factor is 0.5. So a server with two 16-core x86 CPUs needs 32 x 0.5 = 16 processor licences. Named User Plus licensing counts the people and devices that use the database, but has a minimum per processor, 25 Named Users per processor for Enterprise Edition, so it only helps for small user populations.
On top of the base licence come options and packs, each licensed on the same metric. Partitioning, Real Application Clusters, Active Data Guard, Advanced Security, Advanced Compression, and the Diagnostics and Tuning Packs, which cover AWR, ASH and the SQL tuning advisors, are all separate purchases. Many of them are installed and technically usable by default, which is why accidental use is common. Standard Edition 2 is cheaper and licensed by socket, with limits on server size and without most options.
| Factor | Oracle | SQL Server |
|---|---|---|
| Base metric | Processor (cores x core factor) or Named User Plus | Per core, or Server + CAL (Standard) |
| Extra features | Options and packs licensed separately | Mostly by edition: Enterprise vs Standard |
| Virtualisation | Soft partitioning: may need all hosts licensed | Per VM cores, or all host cores with SA |
| HA and DR replicas | Standby needs licences; Active Data Guard extra | Passive replicas covered with SA; readable ones licensed |
| Dev and test | Licences needed for non-production too | Developer Edition free for non-production |
2Virtualisation: Why VMware Is an Audit Favourite
Oracle distinguishes hard partitioning, technologies it accepts as limiting where Oracle can run (such as some of its own virtualisation and certain hardware partitions), from soft partitioning, which includes common hypervisors like VMware vSphere. With soft partitioning, Oracle's position is that we must license all physical cores on every host where the virtual machine could run. In a VMware cluster with live migration, that can mean every host in the cluster, or more, even if the database VM has only 4 virtual CPUs.
Customers and licensing advisers often dispute how far that reaches, but it is a very common audit finding, and the amounts involved can be large. The architectural answer is to isolate Oracle workloads on dedicated hosts or a dedicated cluster sized for them, so the boundary is clear and the count is small.
3How SQL Server Is Licensed
SQL Server Enterprise and Standard can be licensed per core, sold in two-core packs, with a minimum of four core licences per physical processor or per virtual machine. Standard Edition can also be licensed as Server plus CAL, a server licence plus a client access licence for every user or device, which suits small, known user groups. Enterprise Edition adds features such as unlimited virtualisation rights with Software Assurance, larger memory and online operations.
Replicas are where costs often hide. In an Always On availability group, a passive secondary used only for failover is covered by Software Assurance benefits, typically one for high availability and one for disaster recovery, but a readable secondary that serves reports is doing production work and must be licensed. SQL Server Developer Edition is free and full-featured for development and testing, which is a real advantage over Oracle, where non-production databases generally need licences too.
4What Changes in the Cloud
In the cloud there are two models. Licence included, such as Amazon RDS for Oracle Standard Edition 2 or Azure SQL Database, folds the licence into the hourly price. Bring your own licence, BYOL, lets us use licences we already own, under the vendor's rules for that cloud. Oracle's policy for authorised clouds such as AWS and Azure counts virtual CPUs differently from on-premise cores, typically two vCPUs per processor licence when hyperthreading is on, and Azure offers Azure Hybrid Benefit for SQL Server licences with Software Assurance. These rules are revised from time to time, so check current vendor terms before any design or purchase.
5How Licensing Shapes Architecture
The rule of thumb is that every running copy of a commercial database is a potential licence, so architectures with many small instances multiply cost. Read replicas for scaling, per-tenant databases, a full copy for every test environment, or a reporting copy refreshed nightly can each add licences. On Oracle, enabling one option on one database, such as partitioning, can require that option across all the processors that database runs on.
So licence cost becomes an architecture input. We consolidate where it makes sense, keep commercial databases on dedicated, clearly bounded hosts, use free editions or open-source engines for development where behaviour allows, route read scaling to caches or a cheaper engine when it fits, and make every new replica or environment a decision that includes its licence cost. A licensing specialist or the company's software asset management team should review significant designs before they are built.
6Follow-up questions
Why do AWR reports matter for licensing?
AWR and ASH belong to the Diagnostics Pack, a separately licensed option. Running AWR reports or querying their views on a database without that licence counts as usage and shows up in audits. Statspack is a free alternative that gives similar, though less detailed, reports.
Is a standby database free with Oracle?
Generally no. A Data Guard physical standby needs to be licensed like the primary, with a limited exception for rarely used failover servers under certain conditions; check current terms. Opening the standby for read-only queries while it applies changes needs the Active Data Guard option as well.
Does using PostgreSQL remove all licensing questions?
PostgreSQL itself has a permissive open-source licence with no per-core fees. Costs move elsewhere: support subscriptions, managed service fees, and the engineering to run it well. Those are usually easier to predict and scale than commercial database licences.
7Conclusion
In this answer, we saw that Oracle Enterprise Edition is licensed per processor with a core factor or per Named User Plus, with options like Partitioning, RAC, Active Data Guard and the Diagnostics Pack priced separately, and that Oracle's soft partitioning policy can make virtualised clusters very expensive. SQL Server is licensed per core or Server plus CAL, with passive replicas covered under Software Assurance but readable secondaries licensed. Cloud licensing has its own models, and because every copy of a commercial database can need licences, replicas, environments and copies must be designed with cost in mind and checked against current vendor terms.
Open with
For Oracle Enterprise Edition there are two main metrics: processor, which is physical cores times a core factor, 0.5 for most x86 chips, or Named User Plus, which has a minimum of 25 users per processor.
Then, if they want more
Then options are extra, licensed on the same metric: Partitioning, RAC, Active Data Guard, and the Diagnostics and Tuning Packs, which include AWR. Many of those are installed by default, so accidental use is common.
Virtualisation is the big trap: Oracle treats VMware as soft partitioning and takes the position that every host the VM could move to must be licensed, so a 4 vCPU database VM on a large cluster can turn into a huge number of licences. That is why I would put Oracle on dedicated, clearly bounded hosts.
SQL Server is licensed per core in two-core packs with a four-core minimum, or Server plus CAL for Standard. A passive failover replica is covered by Software Assurance, but a readable secondary used for reports needs licences. SQL Server Developer Edition is free for non-production, while Oracle generally needs licences for test environments too.
In the cloud it is either licence included or bring your own, with each vendor's counting rules, which change, so I always say check the current terms. Architecturally, every replica, environment or copy can be a licence, so I would treat licence cost as a design input and involve the licensing team early.
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 "What licensing factors drive the cost of Oracle Database and SQL Server deployments, and...": https://scrivio-interview-library.netlify.app/databases/oracle-and-sql-server/e670b2e48c/