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

Databasemetadata getting column details

I use databasemetadata to find the column size. But getColumns(null,null,"table_name",null) returns an empty resultset. I checked for the table by querying it and the table is present. Where is the error? Thanks in advance! Update: Connection…
Abhi
  • 1
  • 2
0
votes
0 answers

JDBC DatabaseMetaData returns '0' for COlumn_SIZE in oracle12C

JDBC Database Metadata returns '0' for Column_SIZE in Oracle12C and we are getting null values only for columns which are having Numeric_Datatypes. It is perfectly working in Oracle11G or older version of oracle Here is the piece of code that i am…
prasad
  • 11
  • 3
0
votes
1 answer

Metadata class not working in Entity Framework? Ignoring class property

I am trying to ignore a class property when inserting data to database using metadata for the class but it is not working. I am using using EF 6. I have tried both the metadata and partial class are in the same assembly as the classes generated by…
0
votes
0 answers

Missing Columns from DatabaseMetaData.getColumns()

The Java 7 Javadoc for DatabaseMetaData.getColumns() says it returns a ResultSet with 24 columns, the first named TABLE_CAT and the last named IS_GENERATEDCOLUMN. However, the result set I receive from Oracle has only 18 columns. I verified it with…
0
votes
1 answer

ojdbc: tomcat/weblogic: How to reset cusror for connection metadata

Trying to get the column's metadata from connection/database metadata. Any way to use rs.beforeFirst() or any alternative to move back the cursor? Following is code snippet: ResultSet rs= read_conn.getMetaData().getColumns(null, null,…
0
votes
1 answer

Getting the second dataset from an OLE DB Source in SSIS

I need to read data from a DB1 and write them to another DB2. I use a complex query with CTEs and temp tables and no, i can't put this query in a SProc. I use an OLE DB source and an OLE DB Destination. When i put the query as SQL Command in the…
Johannes Wentu
  • 931
  • 1
  • 14
  • 28
0
votes
1 answer

DatabaseMetaData program not fetching table names

I have created a program to fetch all the table names from the user rt using DatabaseMetaData, although the program is compiled successfully and running it is not fetching the table names. It runs and displays list of tables: and then no names.…
Vikalp
  • 1
  • 5
0
votes
2 answers

DatabaseMetaData.ownDeletesAreVisible vs DatabaseMetaData.deletesAreDetected Controversy

I am using JDBC with mysql-connector-java-6.0.2.jar, and, unless I am doing something wrong, I think DatabaseMetaData.ownDeletesAreVisible and DatabaseMetaData.deletesAreDetected implementations are acting somehow inconsistently between each…
0
votes
1 answer

How to create missing database view in Derby?

I'd like to create a view in Derby RDBMS when my WebApp starts up (ApplicationListener.contextInitialized) if it does not exist yet. In this point of time there is not a transaction so I have to use JDBC & SQL. My tries with…
The Bitman
  • 1,279
  • 1
  • 11
  • 25
0
votes
0 answers

PostgreSQL 9.4 | dynamic metadata advice

I'm a long term user of SQL considering a switch to CQL & PostgreSQL. This is because I understand PostgreSQL 9.4 supports dynamic metadata and if it is what I think it is, this would make life easier for an app I'm developing. I need to store key…
emma
  • 784
  • 2
  • 9
  • 23
0
votes
1 answer

Can I read timed metadata/cue points from a live stream with JW Player in Flash mode?

I do this (read timed metadata) successfully in HTML5 mode on IOS devices with JW Player no problem. But PC's running Flash have me scratching my head a bit. Some background... I create live synchronized presentations on the web. So a slide deck…
Robert
  • 828
  • 2
  • 13
  • 28
0
votes
1 answer

Get name of current table by resultSet on RowMapper

It's possible get name of current table, on implementation of RowMapper. I try by metadata, but not have sucess
Thiago
  • 13
  • 5
0
votes
1 answer

Block or extend Breeze metadata auto fetching

Current application - Angular application with Breeze. Application has ~7 entity managers and different data domains (metadata). When application runs we trying to fetch entity managers, like: app.run(['$rootScope', 'datacontext1', ... ],…
0
votes
1 answer

get PostgreSQL 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 PostgreSQL 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
0
votes
0 answers

get MySQL 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 MySQL command? I am primarily interested in select statements and stored procedure calls. I don't want to execute the command to get…
Cameron Taggart
  • 5,771
  • 4
  • 45
  • 70