数据库如何处理数据库太大_网络数据库中的数据处理

数据库如何处理数据库太大

Before learning the data manipulation in a network model, we are discussing data manipulation language, so what is the data manipulation language?

在学习网络模型中数据操作之前,我们正在讨论数据操作语言,那么什么是数据操作语言?

数据处理语言(DML) (Data Manipulation Language (DML))

A data manipulation language (DML) is used to perform tasks such as to search and retrieve, insert, delete, modify records from the database and to connect and disconnect records from the set occurrences.

数据操作语言(DML)用于执行任务,例如从数据库中搜索和检索,插入,删除,修改记录,以及将记录与所设置的事件连接和断开连接。

Host languages are a general-purpose programming language. The data manipulation language that is associated with the network model consists of record-at-a-time commands that are embedded in host languages. These embedded commands are also termed as data sublanguage in DML.

宿主语言是一种通用的编程语言。 与网络模型关联的数据操作语言由嵌入在主机语言中的一次记录命令组成。 这些嵌入式命令在DML中也称为数据子语言。

COBOL and PL/I are the most commonly used host languages. On the other hand, to show the program segments, PASCAL notation is augmented with network DML commands.

COBOL和PL / I是最常用的宿主语言。 另一方面,为了显示程序段,使用网络DML命令来增强PASCAL表示法。

DML

网络数据库操作 (Network Database Manipulation)

Basic Concepts for Network Database Manipulation...

网络数据库操作的基本概念...

In order to understand network data manipulation, we must get familiar with the basic concepts that show us, how data manipulation programs are written?

为了理解网络数据操纵 ,我们必须熟悉向我们展示的基本概念, 如何编写数据操纵程序?

There are two separate software systems, the database system, and the host programming language. Both the software systems are linked together by a common interface and only through this interface, they are allowed to communicate. It is important to identify specific records of the database as current records because DML commands are record-at-a-time.

有两种独立的软件系统,即数据库系统和主机编程语言。 这两个软件系统都通过一个公共接口链接在一起,并且只有通过该接口才能进行通信。 将数据库的特定记录标识为当前记录非常重要,因为DML命令是一次记录。

To keep track of the number of current records and set occurrences, DBMS uses the mechanism known as currency indicators. Also, to hold the records of different recode types, the host programming language requires local program variables, so that the host program can manipulate their contents. The set of these local variables in the program is termed as the User Work Area (UWA).

为了跟踪当前记录的数量并设置发生次数,DBMS使用称为货币指标的机制。 同样,为了保存不同记录类型的记录,主机编程语言需要本地程序变量,以便主机程序可以操纵其内容。 程序中这些局部变量的集合称为用户工作区(UWA)。

UWA is a set of program variables that are declared in the host program in order to communicate the contents of individual records between the DBMS and the host program. A program variable with the same format must be declared in the program, for each record type in the database schema.

UWA是在主机程序中声明的一组程序变量,以便在DBMS和主机程序之间传递各个记录的内容。 对于数据库模式中的每种记录类型,必须在程序中声明具有相同格式的程序变量。

Currency Indicators

货币指标

In the network DML, to keep the trace of the search is critical as retrievals and updates are controlled by moving or navigating through the database records. Currency indicators keep the track of most recently accessed records and the set occurrences by DBMS. Each currency indicator can be termed as record pointer (or record address), that points to a single database record. Many currency indicators are used in network DBMS:

在网络DML中,保持跟踪是至关重要的,因为通过移动或浏览数据库记录来控制检索和更新。 货币指示器跟踪最近访问的记录以及DBMS设置的事件。 每个货币指标都可以称为记录指针(或记录地址),它指向单个数据库记录。 网络DBMS中使用了许多货币指标:

  • Current of record type:

    当前记录类型:

    DBMS keeps the track of most recently accessed record of each record type. The current record becomes undefined if no record gets accessed from that record type.

    DBMS跟踪每种记录类型的最新访问记录。 如果未从该记录类型访问任何记录,则当前记录将变为未定义。

  • Current of set type:

    设定类型的电流:

    DBMS keeps the track of most recently accessed set occurrence of each record type. Set which is the owner of the 16 member records, the set occurrence is stated by a single record from that set. Therefore the current set points to a record, although it is used to keep track of a set occurrence. The current set is undefined if the program has not accessed any record from that set type.

    DBMS跟踪每种记录类型的最近访问集的发生情况。 集合是16个成员记录的所有者,集合的出现由该集合中的单个记录表示。 因此,当前集合指向记录,尽管它用于跟踪集合出现。 如果程序尚未访问该集合类型的任何记录,则当前集合未定义。

  • Current of the run unit (CRU):

    运行单元(CRU)的电流:

    CRU is a database access program and gets executed on the computer system. In the database, CRU keeps track of the record most recently accessed by the program for each run unit such that this record can be from any record type.

    CRU是数据库访问程序,可在计算机系统上执行。 在数据库中,CRU跟踪程序最近为每个运行单元访问的记录,以便该记录可以来自任何记录类型。

Whenever a DML command get executed by a program, the currency indicators for record types and set types that are affected by the command get updated by DBMS.

每当程序执行DML命令时,DBMS都会更新该命令所影响的记录类型和集合类型的货币指标。

Status Indicators

状态指示灯

After each DML command gets executed, several status indicators return an indication of success or failure. With such indication, the program can check the values of these status indicators and take appropriate action, either to continue execution or to transfer to an error-handling routine.

在执行每个DML命令之后,几个状态指示器将返回成功或失败的指示。 有了这样的指示,程序可以检查这些状态指示器的值并采取适当的措施,以继续执行或转移到错误处理例程。

Assuming DB_STATUS to be implicitly declared in the host program, we call the main status variable. The value of DB_STATUS indicates whether the command was successful or whether an exception occurred after each DML command is executed. The most common exception to occur in any DML command is the END_OF_SET (EOS) exception.

假设在主机程序中隐式声明了DB_STATUS ,我们将调用主状态变量。 DB_STATUS的值指示命令是否成功执行或在执行每个DML命令之后是否发生异常。 在任何DML命令中最常见的异常是END_OF_SET(EOS)异常。

翻译自: https://www.includehelp.com/dbms/data-manipulation-in-a-network-database.aspx

数据库如何处理数据库太大

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/541356.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

oracle12537错误,ORA-12537:TNS:connection closed错误处理方法

1.ORA-12537:TNS:connection closed错误处理过程检查监听正常,Oracle服务也是正常启动的,但是登录不进去。2.解决方案1. cd $ORACLE_HOME/bin/ 进入bin目录2. ll oracle-rwxrwxrwx. 1 ora12 dba 323762222 6?. 14 19:12 oracle3.chmod 6571 oracle 更改…

操作系统中的死锁_操作系统中的死锁介绍

操作系统中的死锁1.1究竟什么是僵局? (1.1 What exactly is a deadlock?) In a multiprogramming environment, there may be several processes with a finite number of resources. A process may request another resource while still holding some of the oth…

《云数据管理:挑战与机遇》2.3 数据库系统

本节书摘来自华章出版社《云数据管理》一书中的第2章,第3节,作者迪卫艾肯特阿格拉沃尔,更多章节内容可以访问云栖社区“华章计算机”公众号查看本节中,我们将为数据库系统中的一些主要概念提供一个相当抽象、简洁和高层次的描述。…

sql server与oracle的分页,详解SQLServer和Oracle的分页查询

不管是DRP中的分页查询代码的实现还是面试题中看到的关于分页查询的考察,都给我一个提示:分页查询是重要的。当数据量大的时候是必须考虑的。之前一直没有花时间停下来好好总结这里。现在又将Oracle视频中关于分页查询的内容看了一遍,发现很容…

java treemap_Java TreeMap lastEntry()方法与示例

java treemapTreeMap类的lastEntry()方法 (TreeMap Class lastEntry() method) lastEntry() method is available in java.util package. lastEntry()方法在java.util包中可用。 lastEntry() method is used to return the entry (key-value pairs) that exists with the large…

LeetCode OJ 之 Valid Anagram

题目: Given two strings s and t, write a function to determine if t is an anagram of s. For example,s "anagram", t "nagaram", return true.s "rat", t "car", return false. Note: You may assume the string…

oracle光标位置无效,解决在Form表单中光标移动不了问题

apply p8727236_10123 for Developer Suite 10.1.2.3 in Linux首先到oracle的技术支持下载所需补丁,然后1先打补丁7121788,把p7121788_10123_LINUX.zip解压到/home/oracledev目录下(ORACLE_HOME为/u01/app/oracledev/OraHome_dev)$cd /home/oracledev/7121788$expo…

java treemap_Java TreeMap HigherKey()方法与示例

java treemapTreeMap类HigherKey()方法 (TreeMap Class higherKey() method) higherKey() method is available in java.util package. HigherKey()方法在java.util包中可用。 higherKey() method is used to return the lowest key value element higher than the given key e…

centos配置ipv6地址

首先打开网站注册一个账号:http://www.tunnelbroker.net创建一个ipv6的地址:把下面的命令在linux上执行一遍,这个方式是临时生效,重启网卡和重启系统自动失效。把上面的命令保存到一个配置文件中:vi /etc/sysconfig/ne…

php oracle 需要libmysql.dll么_,Windows7环境下Apache+PHP+MySQL完美配置

写作此篇文章的目的在于记录Windows 7环境下成功配置WAMP环境, 初学者在不使用整合好的WAMPServer和XAMPP的情况下徒手配置整合环境貌似有很多意想不到的问题. 这将是我们需要讨论的.我将重现几个经典的问题, 并一一排除. 希望对各位看官有点借鉴作用.一. Apache在整合PHP后无法…

stringreader_Java StringReader skip()方法与示例

stringreaderStringReader类skip()方法 (StringReader Class skip() method) skip() method is available in java.io package. skip()方法在java.io包中可用。 skip() method is used to skip the given number of characters in the stream. skip()方法用于跳过流中给定数量的…

NFS部署及优化(一)

NFS部署及优化(一)一、NFS的基本概念NFS network file system 网络文件系统必然通过网络通信来实现文件的访问和写入,所以做这个实验的话最好有两台虚拟机配置:A:一个192.169.50.201为server端B:一个192.169.50.200为…

oracle 11g跳过坏块,oracle 使用Dbms_Repair跳过坏块

原博文:http://blog.chinaunix.net/uid-77311-id-3051382.html使用Dbms_Repair跳过坏块步骤1:表tb_test中有坏块(模拟坏块同方法1)SQL> select count(1) from hxl.tb_test;select count(1) from hxl.tb_test*ERROR at line 1:ORA-01578: ORACLE data block corru…

strictmath_Java StrictMath nextUp()方法与示例

strictmathStrictMath类nextUp()方法 (StrictMath Class nextUp() method) Syntax: 句法: public static float nextUp(float fl);public static double nextUp(double do);nextUp() method is available in java.lang package. nextUp()方法在java.lang包中可用。…

并发数据结构-1.1 并发的数据结构的设计

原文链接,译文链接,译者:董明鑫,校对:周可人 随着多个处理器共享同一内存的机器在商业上的广泛使用,并发编程的艺术也产生了巨大的变化。当前的趋势向着低功耗芯片级多线程(CMT)发展…

printstream_Java PrintStream close()方法与示例

printstreamPrintStream类close()方法 (PrintStream Class close() method) close() method is available in java.io package. close()方法在java.io包中可用。 close() method is used to close the underlying output stream. close()方法用于关闭基础输出流。 close() meth…

oracle底层执行顺序,select语句结构与执行顺序-Oracle

select语句结构与执行顺序select语句的结构与执行顺序,下面的序号代表执行顺序8 SELECT (9)DISTINCT11 1 ROM 3   JOIN 2   ON 4 WHERE 5 GROUP BY 6 WITH {CUBE | ROLLUP}7 HAVING 10 ORDER BY 补…

HDU 4923 Room and Moor(瞎搞题)

瞎搞题啊。找出1 1 0 0这样的序列,然后存起来,这样的情况下最好的选择是1的个数除以这段的总和。然后从前向后扫一遍。变扫边进行合并。每次合并。合并的是他的前驱。这样到最后从t-1找出的那条链就是最后满足条件的数的大小。Room and Moor Time Limit:…

java define_Java Long类的define()方法与示例

java define长类解码()方法 (Long class decode() method) decode() method is available in java.lang package. 在java.lang包中提供了define ()方法 。 decode() method is used to decode the given String value into a Long value. encode()方法用于将给定的String值解码…