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
1
vote
2 answers

List user defined views from database

Is there a way to list user defined views alone. In MSSQL, when I tried to list tables and views using getTables() function of DatabaseMetadata of jdbc, it is showing all the views. But I don't need system views into my result set. DatabaseMetadata…
abubakkar
  • 187
  • 13
1
vote
1 answer

Getting ambiguous result using JDBC Metadata API for Hive

I am trying to get Table names for hive using DatabaseMetaData in a similar way like RDBMS. Sample code: try (Connection con = getJdbcConnection(connectionUri, driverName, username, password);) { DatabaseMetaData metadata =…
Dev
  • 13,492
  • 19
  • 81
  • 174
1
vote
2 answers

F# Get Database column names and data types

I'm working with 2 databases, both contain the same tables, but there's some differences in the data. I'm wondering if there's a way to get the names and data types of the columns in an sql table and then add the names of each and data types to a…
Mark
  • 1,633
  • 1
  • 11
  • 26
1
vote
2 answers

Query data from meta data driven schema similar to EAV

We have a data model which is similar to EAV. But, we are having limited set of attributes. In our data model, We are storing different Activities done by an individual and based on the activity type, the attributes will be varying. We want to get…
1
vote
0 answers

Full column metadata for views?

If you query tables from dbc.columns, you will get full metadata for every column, especially data type, length, nullable/non-nullable, etc. When querying views, you only get the database, table, and column names. All the other fields are null. If…
oscilatingcretin
  • 10,457
  • 39
  • 119
  • 206
1
vote
3 answers

What is the meta key of Recent products in woocommerce?

I have a small e-commerce site which is made by woocommerce. I want to display recent product in my home page and I could not able to do it so I have need Woocommerce recent post Meta key.
1
vote
1 answer

How can I query my Database for any Stored Proc that returns a field/column value of a specific name?

I want to query the metadata of my Database for any Stored Proc that returns the values from a field or column named "bidprice" I got a great answer here for how to search for Stored Procs that require a specific set of parameters, namely for Stored…
1
vote
0 answers

get MemSQL command input and output types

Is there any way to get a list of the input parameters and their types and output parameters and their types for any MemSQL SQL command? I am primarily interested in select statements and stored procedure calls. I don't want to execute the command…
Cameron Taggart
  • 5,771
  • 4
  • 45
  • 70
1
vote
2 answers

how to get coulmns with DEFAULT value in table using GETDDL in ORACLE

i wrote an automated script using dbms_metadata to generate CTAS scripts for all the tables in schema. SELECT ' CREATE TABLE ' ||SUBSTR(TABLE_NAME,1,26) ||'_BKK (' ||COL ||')' || ' NOLOGGING AS SELECT ' || COL || ' FROM ' ||…
Selvakumar Esra
  • 1,154
  • 2
  • 15
  • 30
1
vote
0 answers

JDBC getColumnDisplaySize always returns zero

I am using ResultSetMetadata.getColumnDisplaySize to get the column display size but it always returns zero. What can be the reason for that. Is there an alternative way to get the correct size? thanks. private List getColumns(ResultSet rs)…
whb
  • 661
  • 2
  • 10
  • 22
1
vote
2 answers

exporting db objects for version control

We are implementing version control for our project. As part of this we need to check in all DB objects. We have tables, procedures, functions, packages, view and materialized view. Problem is there are many objects and we need to put source code…
Pravin Satav
  • 702
  • 5
  • 17
  • 36
1
vote
0 answers

Java SQL Server getImportedKeys on all user defined tables

I am currently working on SQL Server. I'd need to get all the relationships between tables in a schema. I was able to perform this operation by getMetaData on Oracle through: meta.getImportedKeys(con.getCatalog(), dbName, null); The same does not…
dmachop
  • 824
  • 1
  • 21
  • 39
1
vote
2 answers

Get Database metadata PHP/PDO

Is there a way to get the database metadata using PHP's PDO. I'm looking for something similar to the Java JDBC DatabaseMetadata Interface. What I'm interested in is to retrieve the list of foreign keys of a given table, but I don't want the…
Memos
  • 464
  • 3
  • 9
1
vote
1 answer

How can I find all the tables of db that contains primary key or particular column of a single table in Postgresql

How can I find all the tables of db that contains primary key or particular column of a single table in Postgresql Database....Means a column of a perticular table that is included in many tables either as foreign key or non - foreign key...column…
1
vote
0 answers

DB2 AS/400 jtopen-7.1 DatabaseMetaData changes

I am connecting to DB2 AS 400 V6R1m0 using jt400 7.1 driver. In 7.1 driver IBM have made changes in Database metadata methods. One such change is allowing user to get table-names on the current schema using the ‘*USRLIBL’ keyword . The…
Muruga
  • 123
  • 2
  • 7