下载安装包
https://eco.dameng.com/download/
启动达梦数据库
docker run -d -p 5236:5236 --restart=always --name dm8_01 --privileged=true -e PAGE_SIZE=16 -e LD_LIBRARY_PATH=/opt/dmdbms/bin -e INSTANCE_NAME=dm8_01 -v /data/dm8_01:/opt/dmdbms/data dm8_single:v8.1.2.128_ent_x86_64_ctm_pack4
进入容器
docker exec -it --user root dm8_01 bash
cd /opt/dmdbms/bin && ./disql
最新版账号密码是 SYSDBA\SYSDBA001
root@4a9a52cd2dc2:/opt/dmdbms/bin# cd /opt/dmdbms/bin && ./disql
disql V8
username:SYSDBA
password:
Server[LOCALHOST:5236]:mode is normal, state is open
login used time : 702.789(ms)
SQL>
SQL>
SQL>
SQL> desc v$database;
LINEID NAME TYPE$ NULLABLE
---------- -------------- ------------ --------
1 NAME VARCHAR(128) Y
2 CREATE_TIME DATETIME(0) Y
3 ARCH_MODE CHAR(1) Y
4 LAST_CKPT_TIME DATETIME(0) Y
5 STATUS$ TINYINT Y
6 ROLE$ TINYINT Y
7 MAX_SIZE BIGINT Y
8 TOTAL_SIZE BIGINT Y
9 DSC_NODES INTEGER Y
10 OPEN_COUNT INTEGER Y
11 STARTUP_COUNT BIGINT Y
LINEID NAME TYPE$ NULLABLE
---------- ----------------- ----------- --------
12 LAST_STARTUP_TIME DATETIME(0) Y
12 rows got
used time: 00:00:02.855. Execute id is 500.
SQL>
desc v$database;