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
1 answer

How can I search through a SQL Server database schema to find StoredProcs with a specified set of args?

I am trying to deduce which Stored Proc is used to return a specific set of data. The challenge is that the database has hundreds of Stored Procs. Is there a way I can query the schema to locate all StoredProcs that have parameters named, for…
0
votes
0 answers

How to get all column names of table in Spring data

I am using mysql, spring boot, spring data .... :D I am searching for solution to get all column names of a given table. But could not found as per my requirnments :( Not want a solution with native query or mysql specific solution. Looking for…
Prashant Shilimkar
  • 8,402
  • 13
  • 54
  • 89
0
votes
1 answer

Is there a way to represent relationship between a tuple and to a table in E-R diagram?

I know this might sound a bit ridiculous, but I got a doubt that if we can represent relationship between two tables, how the two table's data is related, is there a way to represent relationship like, each registered user has a seperate pagelikes…
0
votes
1 answer

How to get Unique Key and Not Null column Name in Oracle11g?

For constraint validation i want to read unique key and not null column from oracle11g, I could able to retrieve same from Mysql but don't know how to do it in Oracle 11g
0
votes
0 answers

JDBC method to get child tables and all its descendants

Is there a JDBC method to get child tables and all of its descendants. getExportedKeys returns only the direct child and not all its descendants. If I keep calling getExportedKeys() method recursively , it takes around 3 minutes for 50 tables or so…
Daniel M
  • 3
  • 2
0
votes
1 answer

.metadata folder missing on Mac showing up fine on PC

I went to an id tech camp recently and they gave us a USB with all our work but it was on a PC so I was trying to get it on my Mac and then it says file not found so I check the folders the .metadata is not there so I use my dad's PC and it's there.…
0
votes
2 answers

DatabaseMetaData.getTables returns trace_xe_action_map trace_xe_event_map

trace_xe_action_map and trace_xe_event_map - what are those and where are they? I don't want to return those. How to change the parameters? Currently I am using: databaseMetadata.getTables(null, null, null, {"TABLE"} );
Gigi
  • 31
  • 1
  • 1
  • 3
0
votes
1 answer

How to get all type names from a database using Java Swing?

I'd like to retrieve all trigger names from an oracle database schema. I use getFunctions to retrieve all functions but i can't find another one for the types. DatabaseMetaData dbmd; ResultSet result = dbmd.getFunctions(null, Ousername, null); Here…
gtzinos
  • 1,205
  • 15
  • 27
0
votes
1 answer

Create new table with data from Wordpress wp_postmeta table

The goal is to migrate the data related to a product definition stored in a Wordpress table (in this case, credit cards). Here is an example of the data I want to migrate: SELECT meta_key, meta_value FROM wp_postmeta WHERE post_id =…
rfc1484
  • 9,441
  • 16
  • 72
  • 123
0
votes
3 answers

order database tables by creation time

hi i want to list all my tables from a database and order them by time, how can i do that so far i can list all my tables from the database but i can't order them by time; $dbname = "album"; if (!mysql_connect("localhost", "root", "")) { echo…
Junius L
  • 15,881
  • 6
  • 52
  • 96
0
votes
1 answer

MySQL metadata (usage and performance statistics)

I am working on a web application that is based on a MySQL database. I need to collect and analyse usage and performance statistics. The statistics will be aimed at non-technical personnel. How can I implement this feature? You should treat my…
anna
  • 585
  • 1
  • 6
  • 22
0
votes
2 answers

What is the location of Update and Delete constraint values in Sybase IQ?

In MS SQL @DB_Name.sys.foreign_keys keeps this values in (update|delete)_referential_action columns. Where can I find them in Sybase IQ? Do values equal to MS SQL indexes/values? Thank you. MS: 0 = No action 1 = Cascade 2 = Set null 3 = Set…
Andrii Horda
  • 170
  • 1
  • 16
0
votes
1 answer

Schemacrawler ignore schema that can't be accessed

I am currently using Schemacrawler to gather information about various databases. The issue I am having is that the user which the application runs under doesn't have access to every database. If I attempt to retrieve the list of…
0
votes
1 answer

Retrieving database meta information using Java EE/JPA

I need to be able to retrieve database information from any type of database and return this information via a restful service (using Glassfish and JAX-RS). The information I need includes: Database names Table names Column names and properties I…
0
votes
1 answer

Can I find the foreign key relations for a view in SQL Server?

I've built a tool that uses table foreign keys but I'd like to extend it to support views.
1 2 3
14
15