Various way of Database Access

In database maintenance, records or objects have to be continually added, deleted, or updated to reflect business transactions.

Data must also be accessed rapidly so information can be produced in response to end user requests. So here are some most important way of database access given below:

Way of database access

  • Key Fields
  • URLs
  • Sequential Access
  • Direct Access

various_way_of_database_access

Key Fields

All data records usually contain one or more identification fields, or keys, that identify the record to be located. For example, the social security number (in many countries) of a person is often used as a primary key field and databases.

Other methods also identify and link data records stored in several different database files. For example, hierarchical and network databases may use pointer fields. Theses are fields within a record that indicate (point to) the location of another record that is related to it in the same file, or in another file.

Hierarchical and network database management systems use this method to link records so that they can retrieve information from several different database files. On the other hand, relational database management packages use primary keys to link records.

Each table (file) in a relational database must contain a primary key. This field uniquely identifies each record in a file and must also be found in other related files.

URLs

The files and databases on the internet use URLs (Uniform Resource Locators) for data access. The pages of hyper-linked text and multimedia documents on the world wide web and web sites are accessed by URLs with the format shown in figure.

For example, the URL for the home page of her Bank of Info web site is http://bankofinfo.com. Thus, a web site relies on URLs instead of traditional keys and pointers to identity and express the relationships between the interconnected pages of its hypermedia database.

  • Web: http://server. Address:port/homepage.html
  • FTP:ftp://server.address/complete.filename

Figure: The general form of Uniform Resource Locators for major internet services.

Sequential Access

Sequential access method uses a sequential organization, in which records are physically stored in a specified order according to a key field in each record. For example, payroll records could be placed in a payroll file in a numerical order based on employee social security numbers.

Sequential access in fast and efficient when dealing with large volumes of data that need to be processed periodically. However, it requires that all new  transactions be stored into the proper sequence for sequential access processing.

Also, most of the database or file may have to be searched to locate, store, or modify even a small number of data records. Thus, this method is too show to handle applications requiring immediate updating or responses.

Direct Access

In direct Access methods, records do not have to be arranged in any particular sequence on storage media. However, the computer must keep track of the storage location of each record using a variety of direct organization methods so that data can be retrieved when needed.

New transactions data do not have to be sorted, and processing requiring immediate responses or updating is easily handled. There are a number of ways to directly access records organization method. Three widely used methods to accomplish such direct access processing are:

  • Key transformation
  • Index
  • Index sequential Access

Key transformation performs an arithmetic computation on a key field of record and uses the number that results from that calculation as an address to store and access that record. Thus, the process is called key transformation because an arithmetic operation is applied to a key field to transform it into the storage location address of a record.

Index is another direct access used to store and locate records. A new data record is stored at the next available location, and its key and address are placed in an index. The computer uses this index whenever it must access a record.

Index Sequential Access Methods are used to store record in a sequential order on a magnetic disk or other direct access storage devices based on the key field of each record. In addition, each data are contains an index that references one or more key fields of each data record to its storage location address.

Thus, an individual record can be directly located by using its key field to search and locate its address in the database index, similar to locate key field to search and locate its address in the database index, similar to locate key topics in a book by looking them up in its index.

As a result, if a few records must be processed quickly, the index is used to directly access the record needed.

You may like also:

Leave a Reply

Your email address will not be published. Required fields are marked *