当前位置:网站首页>2022-07-19 达梦数据库-实例创建和管理
2022-07-19 达梦数据库-实例创建和管理
2022-07-28 05:25:00 【不爱吃奶昔】
达梦数据库-实例创建和管理
DBCA工具管理实例
启动DBCA图形化界面:
sh /usr/local/dm/dmdbms/tool/dbca.sh
会提醒注册DmService.service服务
DMINT工具创建实例
命令行创建
dminit PATH=/usr/local/dm/dmdbms/data DB_NAME=cndba INSTANCE_NAME=dave PORT_NUM=6236
不会自动注册DmService.service服务,需要单独注册实例的服务
注册达梦实例服务
注册服务需使用 root 用户进行注册。使用 root 用户进入数据库安装目录的 /script/root 下,如下所示:
cd /script/root
注册服务,如下所示:
./dm_service_installer.sh -t dmserver -dm_ini /dm8/data/DAMENG/dm.ini -p DMSERVER
用户可根据自己的环境更改 dm.ini 文件的路径以及服务名,如下所示:
./dm_service_installer.sh -h
如需为其他实例注册服务,需打开 dbca 工具,进行注册服务,如下所示:
cd /dm8/tool
./dbca.sh
启动和停止达梦实例
- 在服务查看器(图形化界面)中启动停止
sh /usr/local/dm/dmdbms/tool/dmservice.sh
- 通过系统服务
systemctl start DmServiceDMSERVICE.service
systemctl stop DmServiceDMSERVICE.service
- 命令行模式(前台)
dmserver /usr/dmdbms/data/DAMENG/dm.ini
dmserver /usr/dmdbms/data/DAMENG/dm.ini mount
切换实例状态
进入命令:
disql SYSDBA/SYSDBA
> select status$ from v$database;
> alter database mount;
> select status$ from v$database;
> alter database open;
> select status$ from v$database;
边栏推荐
猜你喜欢
![OpenGL development environment configuration [vs2017] + frequently asked questions](/img/29/cefa8601310caf56ae9605cbf7fbbf.png)
OpenGL development environment configuration [vs2017] + frequently asked questions

Fluke dtx-1800 and its accessories dtx-cha002 channel adapter channel replacement RJ45 socket notes

How to test industrial Ethernet cables (using fluke dsx-8000)?

qt实现将相关信息输出到日志文件

Detailed explanation of word mail merge function: after merging, multiple word documents are generated and blank pages are deleted

I heard that you are also practicing when I interviewed several junior interns.

自定义组件--父子组件之间的通信

EMC experiment practical case ESD electrostatic experiment

Matlab simulation of radar imaging 4 - range resolution analysis

Graduation thesis | how to write literature review
随机推荐
MySQL delete tables without deleting databases
自定义组件--样式
The startup fails when switching Chinese when using wampserver3.2.6
详解安装msdn 2015及其注意事项
NFT数藏盲盒+模式系统开发
Vs code basic configuration and beautification
当mysql表从压缩表变成普通表会发生什么
Ship detection in SAR image based on yolov5
PyTorch 学习笔记
Word邮件合并功能详解:合并后生成多个word文档,删除空白页
到底什么是Hash?(量化交易机器人系统开发)
【学习笔记】进程创建
mysql删表不删库
Common table expression CTE in Clickhouse
Talking about fluke optical cable certification? What is CFP? What is OFP?
Why should fluke dsx2-5000 network cable tester be calibrated once a year?
Graduation thesis | how to write literature review
OpenGL development environment configuration [vs2017] + frequently asked questions
【学习笔记】线程创建
Icc2 (III) clock tree synthesis