Oracle Database
Oracle’s relational database management system. It stores data in tables, runs SQL queries, and uses transactions to apply related changes together or roll them back.
Also known as: Oracle
What it is
Oracle Database is a relational database management system (RDBMS). A billing application might use it to store customers, invoices, and payments in separate tables, with keys linking each payment to an invoice. SQL lets the application query those records or change them, while constraints let the database enforce rules such as requiring each payment to reference an existing invoice. In database job listings, “Oracle” commonly means Oracle Database rather than the company or its cloud platform.
How it works
Oracle distinguishes the database, the files that store the data, from the instance, the memory and background processes that manage access to those files. Inside the database, tables, views, and indexes belong to schemas. A schema has the same name as its owning database user. For example, billing.invoices identifies the invoices table in the billing schema. Another user can query it if they have the required privileges.
An application can group several writes in one transaction. For example, it can record a payment and update the invoice balance, then COMMIT both changes or ROLLBACK both if an error occurs before the commit. Oracle uses undo information to reconstruct earlier versions of rows for consistent reads and to roll back changes. It records changes in redo logs so they can be replayed during recovery.
Example: Find a customer’s latest invoices
SELECT invoice_id, issued_at, amount
FROM billing.invoices
WHERE customer_id = :customer_id
ORDER BY issued_at DESC, invoice_id DESC
FETCH FIRST 5 ROWS ONLY;
The query returns up to five invoices, using the invoice ID to break ties when timestamps match. :customer_id is a bind variable: the application supplies its value through the database driver instead of building a new SQL string for each customer. The row-limiting clause shown here is supported from Oracle Database 12c onward.
Where it’s used and what to watch for
Oracle Database is used for workloads ranging from transaction-heavy systems, such as banking and order processing, to data warehouses. SQL is the language for querying and modifying data. PL/SQL adds procedural constructs such as loops and exception handling and is commonly used for stored procedures, functions, and triggers. When moving code between database engines, check even straightforward SQL: for example, Oracle treats an empty VARCHAR2 string as NULL, so column_name = '' does not find those rows; use IS NULL.
What comes up in interviews
A common question is what happens when one session updates a row and another reads it before the update commits. Under Oracle’s default READ COMMITTED isolation, a plain SELECT reads the committed version as of the start of that statement. A second SELECT in the same transaction can see a newer version if the writer has committed in the meantime. For a performance question, be ready to explain why an index might not be used: if a query needs much of the table, a full table scan can cost less than using the index and then fetching the matching rows.