在管理工具里面直接执行 SQL 语句:
alter user "DMDBA" identifiedby "DMDBA_12345";
需要通过转义符来处理,使用双引号将密码包含进来,同时对双引号使用\进行转义,具体例子如下:
disqlSYSDBA/\"abcd@efgh\"@localhost
[dmdba@localhost Desktop]$ cd/home/dmdba/dmdbms/bin
[dmdba@localhost bin]$ ./dmserver/home/dmdba/dmdbms/data/DAMENG/dm.ini file dm.key not found, use defaultlicense!
version info: develop
Use normal os_malloc instead of HugeTLB
Use normal os_malloc instead of HugeTLB
DM Database Server x64V7.1.5.158-Build(2017.02.13-77698)ENT startup...
License will expire on 2018-02-13
ckpt lsn: 57014
iid page's trxid = 1794
NEXT TRX ID = 1795
SYSTEM IS READY.
显示SYSTEMIS READY,则数据库服务启动成功。
[dmdba@localhost bin]$ ./disqlSYSDBA/SYSDBA@localhost
Server[localhost:5236]:mode is normal,state is open
login used time: 26.201(ms)
disqlV7.1.5.158-Build(2017.02.13-77698)ENT
Connected to: DM 7.1.5.158
SQL>
SQL>alter user "DMDBA"identified by "DMDBA_12345"; //里面填写新的密码
需要通过转义符来处理,使用双引号将密码包含进来,同时外层再使用单引号进行转义,具体例子如下:
[dmdba@localhost bin]$ ./disqlDBATEST/'"abcd@efgh"'@localhost
文章
阅读量
获赞