银河麒麟系统安装达梦8数据库

type
status
date
slug
summary
tags
category
icon
password

Step 1 检查系统基本环境

notion image
notion image

1.1 查看系统版本

1.2 查看glibc版本

1.3 查看gcc版本

1.4 查看内存,8G内存也可以

1.5 扩展tmp分区至少剩余容量2G

1.6 创建普通用户以安装达梦数据库

1.7 创建安装目录,并修改权限

1.8 调整系统资源nofile的限制

1.9 确认主机配置固定地址,并正常联网

1.10 设置环境变量DISPLAY,否则打不开达梦安装界面

Step2 准备达梦8安装包

2.1 下载达梦8安装包 https://www.dameng.com/list_103.html,下载过程中需要注册账号

notion image

2.2 上传安装包,解压,并挂载安装介质

Step3 开始安装达梦8数据库

3.1 运行安装程序

3.2 选择语言与时区

notion image

3.3 安装向导,下一步

notion image

3.4 接受许可协议

notion image

3.5 输入key,这里安装测试版,不需要购买key,直接下一步

notion image

3.6 选择组件

notion image

3.7 选择安装位置

notion image

3.8 确认安装目录

notion image

3.9 确认安装环境,确认可用内存空间足够

notion image

3.10 等待安装进度

notion image

3.11 查看提示,等待以root身份执行脚本,点击确认

notion image

3.12 以root用户执行脚本,在上一个界面点击确定

notion image

3.13 等待进度条完成,提示数据库安装完成

notion image

3.14 初始化数据库

notion image

3.15 创建数据库实例

notion image

3.16 创建数据库模板

notion image

3.17 指定数据库数据目录

notion image

3.18 确认数据库名称、实例名称、端口号

notion image

3.19 指定数据库文件路径

notion image

3.20 初始化参数

notion image

3.21 设置用户口令,默认口令为SYSDBA

notion image

3.22 创建示例数据库,不勾选

notion image

3.23 点击完成

notion image

3.24 以root身份拷贝服务脚本,并启动服务,完成后点击确定

notion image
notion image
notion image

3.25 按提示重启数据库,初始化完毕

notion image
notion image
notion image
notion image

3.26 创建数据库完成界面

notion image
notion image

Step4 连接达梦数据库

4.1 命令行连接

4.2 图形化方式连接,打开数据库管理助手

4.3 点击新建连接

notion image

4.4 填写数据库地址、口令,默认口令为SYSDBA

notion image

4.5 创建连接成功的界面

notion image

4.6 设置常用选项,可选

notion image
notion image

Step5 达梦8数据库使用

5.1 创建表空间

notion image

5.2 指定表空间名称,点击添加指定路径

notion image

5.3 选择表空间文件路径

notion image

5.4 确认路径,缓存模式

notion image

5.6 查看表空间创建成功

notion image

5.7 创建角色,即权限的集合

notion image

5.8 指定角色名称

notion image

5.9 系统权限

notion image

5.10 查看角色创建成功

notion image

5.11 创建用户

notion image

5.12 为用户分配角色

notion image

5.13 指定用户口令,注意密码复杂度

notion image

5.14 为用户分配系统权限

notion image

5.15 资源设置项

notion image

5.16 查看用户创建成功

notion image

5.17 创建表

notion image

5.18 指定表名,添加列的信息(列名、数据类型、自增属性)

notion image

5.19 为表添加主键约束

notion image

5.20 填写主键名称、对应字段

notion image
notion image

5.21 查看表创建成功

notion image

小结:

  1. 安装达梦数据库时,注意系统glic, gcc版本兼容性。
  1. 安装达梦数据库时,注意达梦软件系统兼容性下载。
  1. 安装达梦数据库时,注意管理员用户默认密码为SYSDBA。
  1. 创建数据库用户时,根据实际需求注意权限的控制。
Loading...