ArticleslgStudy

science

Oracle metadata

Oracle metadata is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Oracle metadata rather than just read about it. In short: Oracle Database provides information about all of the tables, views, columns, and procedures in a database. This information about information is known as metadata.

Key takeaways

  • Oracle metadata belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Oracle metadata to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Oracle metadata from memory before moving on to harder problems.

Reference excerpt

Oracle Database provides information about all of the tables, views, columns, and procedures in a database. This information about information is known as metadata. It is stored in two locations: data dictionary tables (accessed via built-in views) and a metadata registry. Other relational database management systems support an ANSI-standard equivalent called information schema.

Views for metadata The total number of these views depends on the Oracle version, but is in a 1000 range. The main built-in views accessing Oracle RDBMS data dictionary tables are few, and are as follows:

ALL_OBJECTS – list of all objects in the current database that are accessible to the current user; ALL_TABLES – list of all tables in the current database that are accessible to the current user; ALL_VIEWS – list of all views in the current database that are accessible to the current user; ALL_TAB_COLUMNS – list of all columns in the database that are accessible to the current user; ALL_ARGUMENTS – lists the arguments of functions and procedures that are accessible to the current user; ALL_ERRORS – lists descriptions of errors on all stored objects (views, procedures, functions, packages, and package bodies) that are accessible to the current user; ALL_OBJECT_SIZE – included for backward compatibility with Oracle version 5; ALL_PROCEDURES – (from Oracle 9 onwards) lists all functions and procedures (along with associated properties) that are accessible to the current user; ALL_SOURCE – describes the text (i.e. PL/SQL) source of the stored objects accessible to the current user; ALL_TRIGGERS – list all the triggers accessible to the current user. In addition there are equivalent views prefixed "USER_" which show only the objects owned by the current user (i.e. a more restricted view of metadata) and prefixed "DBA_" which show all objects in the database (i.e. an unrestricted global view of metadata for the database instance). Naturally the access to "DBA_" metadata views requires specific privileges.

Example 1: finding tables Find all Tables that have PATTERN in the table name

Example 2: finding columns Find all tables that have at least one column that matches a specific PATTERN in the column name

Example 3: counting rows of columns Estimate a total number of rows in all tables containing a column name that matches PATTERN (this is SQL*Plus specific script)

Note that NUM_ROWS records the number of rows which were in a table when (and if) it was last analyzed. This will most likely deviate from the actual number of rows currently in the table.

Example 4: finding view columns Find view columns

Warning: This is incomplete with respect to multiple datatypes including char, varchar and timestamp and uses extremely old, deprecated dictionary views, back to oracle 5.

Use of underscore in table and column names The underscore is a special SQL pattern match to a single character and should be escaped if you are in fact looking for an underscore character in the LIKE clause of a query. Just add the following after a LIKE statement:

ESCAPE '_'

And then each literal underscore should be a double underscore: __ Example

LIKE '%__G' ESCAPE '_'

Oracle Metadata Registry The Oracle product Oracle Enterprise Metadata Manager (EMM) is an ISO/IEC 11179 compatible metadata registry. It stores administered metadata in a consistent format that can be used for metadata publishing. In January 2006, EMM was available only through Oracle consulting services.

See also Information schema Metadata

References

External links article on Oracle Metadata

Worked examples

Example 1 — a first encounter with Oracle metadata

Start with the simplest possible case. Write down what Oracle metadata claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Oracle metadata before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Oracle metadata ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Oracle metadata

In research
Oracle metadata appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Oracle metadata in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Oracle metadata is common in secondary-school and first-year university syllabi. It links to neighbouring topics Metadata, Oracle Database, so understanding it makes those chapters shorter.
In everyday life
Look for Oracle metadata outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Oracle metadata” →

How to study Oracle metadata in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Oracle metadata means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Oracle metadata out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Oracle metadata in simple terms?

Oracle Database provides information about all of the tables, views, columns, and procedures in a database. This information about information is known as metadata.

Why does Oracle metadata matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Oracle metadata?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Oracle metadata.

Tags

  • Metadata
  • Oracle Database

Keep exploring