news 2026/7/15 1:55:21

wsl docker安装达梦数据库的过程

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
wsl docker安装达梦数据库的过程

参考文档,麒麟系统kylinServerV10中在docker中安装达梦数据库
基本上完全按照他的步骤操作。什么都没干,日志就有8GB。不知道第一遍初始化没带用户名口令是他误操作,还是必须的过程。这是我见过最复杂的docker安装步骤。

C:\d>wget http://download.dameng.com/eco/dm8/dm8_20250206_x86_rh6_rq_single.tar --2025-12-24 21:24:15-- http://download.dameng.com/eco/dm8/dm8_20250206_x86_rh6_rq_single.tar Resolving download.dameng.com (download.dameng.com)... 120.201.235.30 Connecting to download.dameng.com (download.dameng.com)|120.201.235.30|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 824758272 (787M) [application/octet-stream] Saving to: 'dm8_20250206_x86_rh6_rq_single.tar' dm8_20250206_x86_rh6_rq_singl 100%[=================================================>] 786.55M 872KB/s in 22m 14s 2025-12-24 21:46:29 (604 KB/s) - 'dm8_20250206_x86_rh6_rq_single.tar' saved [824758272/824758272] C:\d>wsl root@DESKTOP-59T6U68:/mnt/c/d# docker load -i ./dm8_20250206_x86_rh6_rq_single.tar Getting image source signatures Copying blob c709c635d729 done Copying blob 686245e78935 done Copying blob d7ff1dc646ba done Copying blob d73dd9e65295 done Copying blob c853b6a23c2c done Copying blob 644879075e24 done Copying blob 2de391e51d73 done Copying blob 3827eb1a7e43 done Copying blob 3e10e7cfd329 done Copying blob 41e82b7aea0d done Copying blob 4f883f5c5226 done Copying blob f7fc888ee549 done Copying blob 7973cb98d0ee done Copying blob ad1316e6925a done Copying blob 3675bac58c83 done Copying blob dfdac1529c8f done Copying blob 6aae571fed32 done Copying blob 0bad54ddcda7 done Copying blob c2de638ff6e8 done Copying blob 940066871610 done Copying blob e7d4062c0986 done Copying blob 7448d9bdfd35 done Copying blob 71f110d9117f done Copying blob 301b2d807eac done Copying blob 38e8298063b6 done Copying blob 4bb12250dd50 done Copying blob b3bf4a6c5618 done Copying config 06e711491c done Writing manifest to image destination Storing signatures Loaded image(s): localhost/dm8:dm8_20250206_rev257733_x86_rh6_64 root@DESKTOP-59T6U68:/mnt/c/d# docker image list -a|find dm find: ‘dm’: No such file or directory root@DESKTOP-59T6U68:/mnt/c/d# docker image list -a|grep dm localhost/dm8 dm8_20250206_rev257733_x86_rh6_64 06e711491c23 13 months ago 825 MB root@DESKTOP-59T6U68:/mnt/c/d# docker run -d --name dm8 -p 5236:5236 -v /mnt/c/d/dmdata:/opt/dmdbms/data dm8:dm8_2025020 6_rev257733_x86_rh6_64 03671a2259a0e92427edddcf4652b2ff2c3ded028e13be60ad637f51687296d1 root@DESKTOP-59T6U68:/mnt/c/d# docker exec -it dm8 /bin/bash root@03671a2259a0:/# cd /opt/dmdbms/bin root@03671a2259a0:/opt/dmdbms/bin# ./dminit PATH=/opt/dmdbms/data initdb V8 db version: 0x7000d file dm.key not found, use default license! License will expire on 2026-01-17 please set [SYSDBA_PWD] value. Passwords length [8, 48], contain uppercase and lowercase characters combined with numbers. fail to init db. root@03671a2259a0:/opt/dmdbms/bin# ./dminit PATH=/opt/dmdbms/data SYSDBA_PWD=Dameng123! SYSAUDITOR_PWD=Auditor@123 initdb V8 db version: 0x7000d file dm.key not found, use default license! License will expire on 2026-01-17 The instance /opt/dmdbms/data/DAMENG is running. The instance /opt/dmdbms/data/DAMENG is running or check instance active failed. You may get more details in file ../log/dm_DMSERVER_202512.log fail to init db. root@03671a2259a0:/opt/dmdbms/bin# ps -ef | grep dmserve dmdba 120 32 4 21:49 ? 00:00:03 /opt/dmdbms/bin/dmserver /opt/dmdbms/data/DAMENG/dm.ini -noconsole root 373 53 0 21:51 pts/0 00:00:00 grep --color=auto dmserve root@03671a2259a0:/opt/dmdbms/bin# kill -9 dmserver bash: kill: dmserver: arguments must be process or job IDs root@03671a2259a0:/opt/dmdbms/bin# kill -9 120 root@03671a2259a0:/opt/dmdbms/bin# ps -ef | grep dmserve root 407 53 0 21:51 pts/0 00:00:00 grep --color=auto dmserve root@03671a2259a0:/opt/dmdbms/bin# ./dminit PATH=/opt/dmdbms/data SYSDBA_PWD=Dameng123! SYSAUDITOR_PWD=Auditor@123 initdb V8 db version: 0x7000d file dm.key not found, use default license! License will expire on 2026-01-17 Normal of FAST Normal of DEFAULT Normal of RECYCLE Normal of KEEP Normal of ROLL log file path: /opt/dmdbms/data/DAMENG/DAMENG01.log log file path: /opt/dmdbms/data/DAMENG/DAMENG02.log FILE "/opt/dmdbms/data/DAMENG/dm.ini" has already existed FILE "/opt/dmdbms/data/DAMENG/sqllog.ini" has already existed FILE "/opt/dmdbms/data/DAMENG/SYSTEM.DBF" has already existed FILE "/opt/dmdbms/data/DAMENG/ROLL.DBF" has already existed FILE "/opt/dmdbms/data/DAMENG/MAIN.DBF" has already existed FILE "/opt/dmdbms/data/DAMENG/dm.ctl" has already existed FILE "/opt/dmdbms/data/DAMENG/DAMENG01.log" has already existed FILE "/opt/dmdbms/data/DAMENG/DAMENG02.log" has already existed File "/opt/dmdbms/data/DAMENG/dm.ini" has already existed, whether overwrite(y/n, 1/0): y File "/opt/dmdbms/data/DAMENG/sqllog.ini" has already existed, whether overwrite(y/n, 1/0): y File "/opt/dmdbms/data/DAMENG/SYSTEM.DBF" has already existed, whether overwrite(y/n, 1/0): y File "/opt/dmdbms/data/DAMENG/ROLL.DBF" has already existed, whether overwrite(y/n, 1/0): y File "/opt/dmdbms/data/DAMENG/MAIN.DBF" has already existed, whether overwrite(y/n, 1/0): y File "/opt/dmdbms/data/DAMENG/dm.ctl" has already existed, whether overwrite(y/n, 1/0): y File "/opt/dmdbms/data/DAMENG/DAMENG01.log" has already existed, whether overwrite(y/n, 1/0): y File "/opt/dmdbms/data/DAMENG/DAMENG02.log" has already existed, whether overwrite(y/n, 1/0): y write to dir [/opt/dmdbms/data/DAMENG]. create dm database success. 2025-12-24 21:57:45 root@03671a2259a0:/opt/dmdbms/bin# ls -l /opt/dmdbms/data/DAMENG/ total 8671332 -rwxrwxrwx 1 root root 4294967296 Dec 24 21:55 DAMENG01.log -rwxrwxrwx 1 root root 4294967296 Dec 24 21:57 DAMENG02.log drwxrwxrwx 1 root root 4096 Dec 24 21:49 HMAIN -rwxrwxrwx 1 root root 134217728 Dec 24 21:57 MAIN.DBF -rwxrwxrwx 1 root root 134217728 Dec 24 21:57 ROLL.DBF -rwxrwxrwx 1 root root 10485760 Dec 24 21:57 SYSTEM.DBF -rwxrwxrwx 1 root root 10485760 Dec 24 21:49 TEMP.DBF drwxrwxrwx 1 root root 4096 Dec 24 21:49 bak drwxrwxrwx 1 root root 4096 Dec 24 21:57 ctl_bak -rwxrwxrwx 1 root root 5632 Dec 24 21:57 dm.ctl -rwxrwxrwx 1 root root 81741 Dec 24 21:53 dm.ini -rwxrwxrwx 1 root root 633 Dec 24 21:57 dm_service.prikey -rwxrwxrwx 1 root root 982 Dec 24 21:49 dminit20251224214901.log -rwxrwxrwx 1 root root 982 Dec 24 21:57 dminit20251224215154.log -rwxrwxrwx 1 root root 714 Dec 24 21:53 sqllog.ini drwxrwxrwx 1 root root 4096 Dec 24 21:49 trace root@03671a2259a0:/opt/dmdbms/bin# ps -ef | grep dmserver root 865 53 0 21:59 pts/0 00:00:00 grep --color=auto dmserver root@03671a2259a0:/opt/dmdbms/bin# ./dmserver /opt/dmdbms/data/DAMENG/dm.ini file dm.key not found, use default license! version info: develop csek2_vm_t = 1440 nsql_vm_t = 328 prjt2_vm_t = 176 ltid_vm_t = 216 nins2_vm_t = 1120 nset2_vm_t = 272 ndlck_vm_t = 192 ndel2_vm_t = 768 slct2_vm_t = 352 nli2_vm_t = 200 aagr2_vm_t = 304 pscn_vm_t = 376 dist_vm_t = 960 DM Database Server 64 V8 03134284336-20250117-257733-20132 startup... Normal of FAST Normal of DEFAULT Normal of RECYCLE Normal of KEEP Normal of ROLL Database mode = 0, oguid = 0 License will expire on 2026-01-17 file lsn: 0 ndct db load finished, code:0 ckpt2_exec_immediately begin. checkpoint begin, used_space[4096], free_space[8589922304]... checkpoint end, 2 pages flushed, used_space[8192], free_space[8589918208]. checkpoint begin, used_space[8192], free_space[8589918208]... checkpoint begin, used_space[0], free_space[8589926400]... ndct second level fill fast pool finished ndct third level fill fast pool finished ndct second level fill fast pool finished ndct third level fill fast pool finished ndct fill fast pool finished pseg_set_gtv_trxid_low next_trxid in mem:[2002] pseg_collect_mgr_items, total collect 0 active_trxs, 0 cmt_trxs, 0 pre_cmt_trxs, 0 to_release_trxs, 0 active_pages, 0 cmt_pages, 0 pre_cmt_pages, 0 to_release_pages, 0 mgr pages, 0 mgr recs! next_trxid in mem:[4004] next_trxid = 6006. pseg recv finished nsvr_startup end. uthr_pipe_create, create pipe[read:10, write:11] ... uthr_pipe_create, create pipe[read:40, write:41] aud sys init success. aud rt sys init success. trx: 6007 purged 1 pages ... trx: 6762 purged 1 pages trx: 6764 purged 1 pages systables desc init success. ndct_db_load_info finished, code:0. nsvr_process_before_open begin. nsvr_process_before_open success. SYSTEM IS READY. checkpoint requested by INI_INTERVAL, rlog free space[8577966080], used space[11960320] checkpoint generate by ckpt_interval checkpoint begin, used_space[11960320], free_space[8577966080]... checkpoint end, 0 pages flushed, used_space[16384], free_space[8589910016].

-------另外启动一个控制台窗口,用客户端访问服务端

Microsoft Windows [版本 10.0.26100.6899] (c) Microsoft Corporation。保留所有权利。 C:\Users\lt>cd \d C:\d>wsl root@DESKTOP-59T6U68:/mnt/c/d# docker exec -it dm8 /bin/bash root@03671a2259a0:/# cd /opt/dmdbms/bin root@03671a2259a0:/opt/dmdbms/bin# ./disql 'SYSDBA/Dameng123!@localhost:5236' Server[localhost:5236]:mode is normal, state is open login used time : 3.971(ms) disql V8 SQL> SELECT * FROM v$version; LINEID BANNER ---------- --------------------------------- 1 DM Database Server 64 V8 2 DB Version: 0x7000d 3 03134284336-20250117-257733-20132 4 Msg Version: 32 5 Gsu level(5) cnt: 0 used time: 4.202(ms). Execute id is 66301. SQL> SELECT USER; LINEID USER ---------- ------ 1 SYSDBA used time: 2.384(ms). Execute id is 66302. SQL> WITH FUNCTION f1(C INT) RETURN INT AS BEGIN RETURN C* 10; END; 2 SELECT f1(5236) FROM DUAL; 3 / LINEID F1(5236) ---------- ----------- 1 52360 used time: 2.382(ms). Execute id is 66303.
版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/7/2 1:52:22

2025最新!专科生必备8个AI论文工具:开题报告写作全测评

2025最新!专科生必备8个AI论文工具:开题报告写作全测评 2025年专科生论文写作工具测评:为何需要这份榜单? 随着人工智能技术的不断进步,AI论文工具已经成为学术写作中不可或缺的辅助工具。对于专科生而言,撰…

作者头像 李华
网站建设 2026/7/8 8:47:09

Java毕设项目推荐-基于springboot的户外救援系统快速求助 + 智能调度 + 实时跟踪【附源码+文档,调试定制服务】

博主介绍:✌️码农一枚 ,专注于大学生项目实战开发、讲解和毕业🚢文撰写修改等。全栈领域优质创作者,博客之星、掘金/华为云/阿里云/InfoQ等平台优质作者、专注于Java、小程序技术领域和毕业项目实战 ✌️技术范围:&am…

作者头像 李华
网站建设 2026/7/14 23:35:27

两种核心消息队列:环形队列与RTOS消息队列解析

在MCU开发中,消息队列是任务间通信的关键组件。本文深入剖析环形队列和RTOS消息队列的原理、实现及适用场景,帮助开发者合理选型。一、环形队列:轻量高效的FIFO数据结构环形队列是一种首尾相连的数组结构,通过维护头尾指针实现高效…

作者头像 李华
网站建设 2026/7/15 2:12:50

2025论文降AI神器,降重降AI率快人一步!

2025年高校查重系统全面升级,知网、维普、万方等平台AIGC检测模块精准度高(数据来源:2025学术检测白皮书)。许多同学用AI辅助写作后,发现论文充满AI味:固定句式扎堆、词汇重复率高、逻辑衔接生硬... 最终导…

作者头像 李华
网站建设 2026/7/15 0:15:52

基于python的中文起点网top500小说数据提取的设计与实现(毕设源码+文档)

背景 本课题聚焦中文起点网top500小说数据获取效率低、人工提取误差大及数据结构化程度低等痛点,设计并实现基于Python的中文起点网top500小说数据提取系统。系统依托Python强大的网络爬虫与数据处理优势,整合小说数据爬取、清洗转换、结构化存储等核心场…

作者头像 李华