Questions tagged [database-metadata]

Metadata is "data about data". In database terminology, this set of metadata is referred to as the catalog. The SQL standard specifies a uniform means to access the catalog, called the information schema, but not all databases implement it, even if they implement other aspects of the SQL standard. For an example of database-specific metadata access methods, see Oracle metadata.

Meta Data:

Metadata is “data about data”. An item of metadata describes the specific characteristics about an individual data item. In databases, metadata describes the structural components of tables and their elements. For example, metadata about an element could include data types, name of data, size and many more characteristics about that element. It would also give information about the tables the database is storing, information, such as length of fields, number of columns, where the tables are located and other pertinent information. One of the main uses for met data is to provide a link between the information creator and the information users. Metadata allows the users to speed up the search for individual data. This is done by being able to set parameter for searches, allowing the filtering of unwanted information. Metadata can be stored either internally, in the same file as the data or externally, in a separate area. Both have advantages and disadvantages. If the data is stored internally, the metadata is together with the data making more easily accessible to view or change. However, this method creates high redundancy. If metadata is stored externally, the searches can become more efficient. There is no redundancy but getting to this metadata may be a little more technical. There are certain formats that must be used, such as Uniform Resource Identifier(URI) to get to the metadata if this format is not used the metadata becomes inaccessible. All the metadata is stored in a data dictionary or a system catalog. All programs that access data in the database work through a DBMS. The DBMS uses the data dictionary to look up the required components and relationships. Any changes made to the database structure are automatically recorded in the data dictionary. This makes the data dictionary manager’s job a lot easier because any modification of programs that are affected by the changed structure is not necessary.

Metadata at the most basic level is simply defined as “data about data”. An item of metadata describes the specific characteristics about an individual data item. In the database realm, metadata is defined as, “data about data, through which the end-user data are integrated and managed.” (Rob & Coronel, 2009) Metadata in a database typically store the relationships that link up numerous pieces of data. “Metadata names these fields describes the size of the fields, and may put restrictions on what can go in the field (for example, numbers only).” (Sheldon, 2001).

“Therefore, metadata is information about how data is extracted, and how it may be transformed. It is also about indexing and creating pointers into data. Database design is all about defining metadata schemas.” (Sheldon, 2001) Metadata can be stored either internally, in the same file as the data, or externally, in a separate area. If the data is stored internally, the metadata is together with the data, making it more easily accessible to view or change. However, this method creates high redundancy. If metadata is stored externally, the searches can become more efficient. There is no redundancy but getting to this metadata may be a little more technical.

All the metadata is stored in a data dictionary or a system catalog. The data dictionary is most typically an external document that is created in a spreadsheet type of document that stores the conceptual design ideas for the database schema. The data dictionary also contains the general format that the data, and in effect the metadata, should be. Metadata is an essential aspect of database design, it allows for increased processing power, due to the fact that it can help create pointers and indexes.

Useful Resources:

217 questions
0
votes
0 answers

Postgresql - slow extract metadata when there are many schemas in the same database

I have a database with 40 schemas, all must have exactly the same metadata. I made a Java program to compare metadatas. It works fine and fast when I test in a database with 2/3 schemas only. But, when I run the program in production with 40…
0
votes
1 answer

Find custom point coordinates with Forge

I work with Autodesk Forge (node.js, javascript (worked with it a little), React (completely new !)). I have a rectangle 3D object. At each corner is a point with real world coordinates (lat, lon, z). These coordinates can be displayed with the…
0
votes
3 answers

Retrieving a field size from a PostgreSQL metadata in Java

This Java code works with a DB2 database, and a PostgreSQL database. rs = stmt.executeQuery(qry); rsMetaData = rs.getMetaData(); numCols = rsMetaData.getColumnCount(); …
Baruch Atta
  • 421
  • 1
  • 5
  • 16
0
votes
1 answer

How do the fields in "SHOW COLUMNS" command map to specific tables?

Here is a View called viewwithcommonfield : SELECT `schematopologytest01`.`talpha`.`CommonField` AS `CommonField_tAlpha`, `schematopologytest01`.`tbeta`.`CommonField` AS `CommonField_tBeta` FROM …
nicomp
  • 4,344
  • 4
  • 27
  • 60
0
votes
2 answers

Java DatabaseMetaData.getColumns() method doesn't work for all users

I've got a few users in Oracle database, let's say UserOne, UserTwo and UserTree with same and not empty table with name - "tableExample". In my case I need to initialize ResultSet throught getColumns() method: DatabaseMetaData md =…
Armer B.
  • 753
  • 2
  • 9
  • 25
0
votes
1 answer

What is the source column of each column in view

How can I know for each column in view, or procedure the source column For example, I have this table: CREATE TABLE [dbo].[tbl_Address]( [iAddressId] [int] IDENTITY(1,1) NOT NULL, [nvStreet] [nvarchar](50) NULL, [iHouseNum] [int] NULL, …
shelli
  • 1
  • 5
0
votes
1 answer

Constant for functionColumnReturn of DatabaseMetaData#getFunctionColumns?

According to DatabaseMetaData#getFunctionColumns, the result column of COLUMN_TYPE may be one of functionColumnUnknown (0) funtionColumnIn (1) functionColumnInOut (2) functionColumnOut (3) functionColumnReturn functionColumnResult (5) Where is the…
Jin Kwon
  • 20,295
  • 14
  • 115
  • 184
0
votes
0 answers

Entity Framework Core metadata is different than model and DB. How to refresh?

I'm new to using EF but it was relatively simple to implement for me, the problem came when I need to change the model. I created a column that I later deleted. However, at runtime the ghost column is causing an Invalid column error. I have added…
0
votes
1 answer

Any way to find out the which objects use or populate a particular table in oracle

I have a certain requirement where in I have been given a table name say ABC, i want to find out which all procedures,packages,mv's,functions refer to that particular table 'ABC' or do a insert or update on that table. Is there any way or query to…
0
votes
1 answer

Query to find column not showing anything?

I'm trying to find a table in a schema with a specific column name. So I used the following script, but it doesn't return anything: select a.table_name, column_name,DATA_TYPE,DATA_LENGTH from all_tab_columns a,USER_ALL_TABLES u where…
fdkgfosfskjdlsjdlkfsf
  • 3,165
  • 2
  • 43
  • 110
0
votes
1 answer

How do I get the table and column names involved in a many-to-many join?

Using "List of foreign keys and the tables they reference", I am able to get the name of the join table and a table it joins with, but not the name of the third table. How do I get all three tables/fields involved in a many-to-many? For example, how…
Charles Burns
  • 10,310
  • 7
  • 64
  • 81
0
votes
1 answer

Procedure which gives grants, Invalid table name error

I'm trying to create a procedure which gives grants to specific schema objects. Procedure seems to compile ok, but it gives an error when execution. Something is wrong in this simple procedure but I cannot find the reason for this.…
jrara
  • 16,239
  • 33
  • 89
  • 120
0
votes
1 answer

SQL Developer: find views created in the last week

I am new to SQL and I created some views when testing something on a database at work. Then I realized that I should remove them but I'm not sure that I dropped them all. Where can I find a list of all(still existing) views created in the last…
lazy traveller
  • 105
  • 1
  • 8
0
votes
4 answers

ORA-01403: No Data found WHY?

I have declared the following procedure: CREATE OR REPLACE PROCEDURE MODIFY_NOT_NULL( v_tbName IN VARCHAR2, v_cName IN VARCHAR2, v_defaultValue IN VARCHAR2 ) IS v_is_null VARCHAR2(1); BEGIN SELECT…
NoName123
  • 137
  • 5
  • 20
0
votes
1 answer

how to select a column by user_tab_columns selection in oracle sql?

refer to topic, I have create a sql to get the common filed on user_tab_table: select SUBSTR (SYS_CONNECT_BY_PATH (COLUMN_NAME , ','), 2) into str from (select COLUMN_NAME , ROW_NUMBER () over (order by COLUMN_NAME ) RN, COUNT (*)…
Wing Kin Chan
  • 23
  • 2
  • 7