当前位置:网站首页>2022-07-19 达梦数据库 连接实例、执行脚本、系统命令
2022-07-19 达梦数据库 连接实例、执行脚本、系统命令
2022-07-28 05:25:00 【不爱吃奶昔】
达梦数据库 连接实例、执行脚本、系统命令
连接默认的DM实例
默认连接5236端口实例,如果实例非5236端口则必须指定对应的端口
disql SYSDBA/SYSDBA
默认密码直接回车:
[[email protected] ~]$ disql
disql V8
用户名:
密码:
使用IP地址和端口连接
指定ip:port连接:
disql SYSDBA/[email protected]:5236
可以连接本机,也可以远程连接其它服务器(注意防火墙)
使用service name 连接
添加service name别名:
vim /etc/dm_svc.conf
# 末尾添加
zsl=(127.0.0.1:6236)
使用别名连接disql
disql SYSDBA/[email protected]
执行脚本
批量执行sql:
SQL> `/usr/local/dm/xxx.sql
# 或者
SQL> start /usr/local/dm/xxx.sql
类似于MySQL中 source /usr/local/dm/xxx.sql 命令
在Linux窗口下执行 ` 需要使用 \` 进行转移
disql \`/usr/local/dm/xxx.sql
执行系统命令
临时跳转到shell操作
SQL> host
# 也可以指定执行命令
SQL> host ll
边栏推荐
- qt自定义滑动按钮(美观且使用方便)
- How many columns are the most suitable for Clickhouse to build a width table?
- 测量电脑电池容量
- Listener
- IMS-FACNN(Improved Multi-Scale Convolution Neural Network integrated with a Feature Attention Mecha
- 小程序自定义组件-数据,方法和属性
- T-sne dimension reduction visualization
- Briefly introduce EMD decomposition, Hilbert transform and spectral method
- qt解析字符串转为json数据并解析
- clickhouse建宽表多少列最合适?
猜你喜欢

解决内存占用比应用进程占用高的问题

基于 YOLOV5 的 SAR 图像舰船检测

Filter

机器学习笔记 5 —— Logistic Regression

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

详解安装msdn 2015及其注意事项

自定义组件--样式

CLIP Learning Transferable Visual Models From Natural Language Supervision

MATLAB signal processing

Beginners choose sensors
随机推荐
qt中获取当前目录
gerapy 使用
Monitor the CPU temperature of raspberry pie 4B installed with esxi on ARM
qt实现将相关信息输出到日志文件
MySQL delete tables without deleting databases
Detailed explanation of word mail merge function: after merging, multiple word documents are generated and blank pages are deleted
ubunut 服务器上传下载文件
Find the network address and broadcast address of the host according to the IP address and subnet mask
Matlab 信号处理
qt解决每次修改完ui文件都要重新构建的问题
vi和vim命令
PyTorch 学习笔记 4 —— 自动计算梯度下降 AUTOGRAD
Icc2 (III) clock tree synthesis
Filter
Introduction to Perl (IX) quotation
自定义组件--插槽
小程序:wsx脚本
[server usage record] log in to the remote server through the springboard machine and transfer files
qt中Qthread线程的使用以及安全关闭
scrapy 命令