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

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表示法。

网络数据库操作 (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

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

数据库如何处理数据库太大_网络数据库中的数据处理相关推荐

  1. linux系统 mysql日志文件太大。造成数据库无法正常启动怎么解决

    linux系统 mysql日志文件太大.造成数据库无法正常启动怎么解决 删除mysql日志: 执行:/usr/local/mysql/bin/mysql -u root -p 输入密码登录后再执行:r ...

  2. mysql pid文件太大_mariadb /mysql表文件太大导致的数据库启动不了 | Think in Drupal

    mariadb/mysql表文件太大导致的数据库启动不了 我们帮助客户部署的一个采集器程序,突然罢工了.采集后台打开不了,经过检查发现是使用的mariadb启动不了了. 任凭我们怎么修改MariaDB ...

  3. 数据库文件.mdf太大的解决方法

    在我们使用sql server数据库或者服务器时,有时会发现数据库不到一段时间,占用磁盘空间好大,也有可能是数据的原因,也有可能是其他的原因,但如果说占用绝大部分存储空间,而且数据量又不怎么大,那么, ...

  4. 百威系统数据库服务器,百威9000V6数据库日志文件太大怎么清理?

    昨天老板微信 Call 我说百威9000V6的后台无法操作.退出后无法登录,提示: "数据处理错误,错误信息为:数据库'bw9kbzpro_01'的事务日志已满.若要查明无法重用日志中的空间 ...

  5. mysql备份的数据太大怎么办_mysql数据库太大了如何备份与还原

    命令:Mysqlhotcopy 这个命令会在拷贝文件之前会把表锁住,并把数据同步到数据文件中,以避免拷贝到不完整的数据文件,是最安全快捷的备份方法. 命令的使用方法是: mysqlhotcopy -u ...

  6. mysql数据库取奇数行数据_查询数据库中的奇数行和偶数行

    功能奇数次执行和偶数次执行时的结果不同的故障复盘 场景:将数据库查询到的数据,写入一个xls文件.完成后,多点几次,发现一个问题,偶数次生成的文件比较小,打开一看,里面只有一行,只有标题,没有内容.分 ...

  7. 腾讯云数据库品牌升级,大咖解读数据库三大变化

    上周,腾讯云数据库盛典上,腾讯云数据库品牌全新升级. 除了升级外,腾讯副总裁.腾讯云总裁邱跃鹏还**指出数据库发展的三个变化,分别是: 云原生 国产化 开源共建 变化一:云原生 相比于传统模式,云原生 ...

  8. MySQL创建数据库得语句是什么_创建数据库的语句是什么

    创建数据库的语句是:[CREATE DATABASE [IF NOT EXISTS] [[DEFAULT] CHARACTER SET ] [[DEFAULT] COLLATE ];]. 本文操作环境 ...

  9. webservice 参数太大_手把手系列:常用数据交换方案Web Service接口处理法

    手把手系列:常用数据交换方案之Web Service接口处理法 Web Service是一个SOA(面向服务的编程)的架构,是一个平台独立的,低耦合的,基于可编程的web的应用程序,可使用开放的XML ...

最新文章

  1. c++ char4个字节_西门子PLC的TCP通讯(不同项目下)①--TSEND_C指令
  2. 为何把日志打印到控制台很慢?
  3. C++ 在继承中虚函数、纯虚函数、普通函数,三者的区别
  4. python编程题3
  5. sudo dpkg 找不到命令_【干货】Linux中实用但很小众的11个炫酷终端命令
  6. 数据库:MySQL、HBase、ElasticSearch三者对比
  7. java.util.zip.zipexception_android-如何解决java.util.zip.ZipException?
  8. 在vue中使用MD5加密
  9. 如何实现parseFloat保留小数点后2位
  10. C#实现不安装Oracle客户端访问远程服务器数据
  11. redis - 00 在centos安装
  12. 计算机模拟泊松分布,R语言进行数值模拟:模拟泊松回归模型的数据
  13. jspSmartUpload上传的路径问题
  14. 手机计算机文件夹加密文件,如何给手机以及电脑文件加密?
  15. 假货泛滥是淘宝的毒瘤
  16. 华为USG6330运维记录-端口回流、策略路由
  17. 双人贪吃蛇java 代码_贪吃蛇课设--个人博客
  18. 查看360极速浏览器保存的密码方法步骤
  19. 不借助第三个变量交换a,b两个变量值
  20. 百度地图汽车物流数智化应用方案,推进整车运输行业全链条数字化发展

热门文章

  1. python json解析_python读取json文件并解析
  2. log4jdbc mysql_[简单]log4jdbc-log4j2配置简记_MySQL
  3. oracle 实例死掉,Oracle 监听莫名死掉
  4. java api 第一个类是_JAVA常用API:String 类的常用方法
  5. php mysql 索引_MySQL索引
  6. Linux基础(使用ssh服务管理远程主机1)
  7. Linux基础命令(1)
  8. php 做更新进度条,PHP exec()后更新Bootstrap进度条
  9. k8---proxy
  10. oracle安装需要的包列表