一、達夢資料庫安裝
1、查看相關資訊
[root@dmql opt]# df –h
[root@dmql opt]# free –m
[root@dmql opt]# cat /proc/meminfo
[root@dmql opt]# cat /proc/cpuinfo
2、修改檔案最大數(臨時生效):
[root@dameng ~]# ulimit -n
1024
[root@dameng ~]# ulimit -n 65536
設定檔案打開數(重啟永久生效):vim /etc/security/limits.conf
dmdba soft nofile 10240
dmdba hard nofile 65536
3、掛載 dm 軟體 iso 鏡像:
chmod 755 /opt/dm8_setup_rh7_64_ent_8.1.1.88_20200629.iso
[root@dameng dm]#mkdir -p /mnt/dm
[root@dameng dm]# mount /opt/dm8_setup_rh7_64_ent_8.1.1.88_20200629.iso /mnt/dm
規劃安裝路徑
[root@dameng dm]#mkdir /dm8
規劃安裝用戶組和用戶
groupadd -g 1002 dinstall
useradd -u 1002 -g dinstall -m -d /home/dmdba -s /bin/bash dmdba
chown dmdba:dinstall /dm8
[root@dmql opt]# passwd dmdba
4、圖形化界面設定
[root@dmql opt]# xhost +
access control disabled, clients can connect from any host
[root@dmql opt]# echo $DISPLAY
:1
5、切換用戶
[root@dmql opt]# su - dmdba
[dmdba@dmql ~]$ export DISPLAY=:1
6、資料庫安裝
[dmdba@dmql dm]$ ./DMInstall.bin
Dameng123
#mv /dm8/bin/DmServiceTEST.service /usr/lib/systemd/system/DmServiceTEST.service
#systemctl enable DmServiceTEST.service
#systemctl start DmServiceTEST.service
在console模式下修改(修改完用root用戶,備注:不要混用)
[root@dmql dm8]# systemctl stop DmServiceTEST
[root@dmql dm8]# systemctl start DmServiceTEST)
[dmdba@dmql ~]$ vi .bash_profile
export PATH=$PATH:/dm8/bin
export PATH=$PATH:/dm8/tool
二、資料庫實體管理
1、 資料庫狀態
Shutdown:關閉狀態
Mount:配置狀態
Open:資料庫打開狀態,對外提供服務
Suspend:掛起狀態
2、資料庫狀態切換
Shutdown - mount
Shutdown - open
Mount - open
Open - mount(oracle 不支持)
Suspend - open
Open - suspend
Open - shutdown
Suspend 狀態只能查詢,不能寫
3、資料庫啟動程序
Shutdown-mount
根據 dm.ini 組態檔中的引數分配記憶體,啟動后臺行程或者執行緒,找到控制檔案并打開控 制檔案。
mount-open
根據控制檔案打開所有的資料檔案以及重做日志檔案,校驗資料庫是否處于一致性狀態。
資料庫啟動關閉
三、達夢資料庫管理工具
1、disq
bin
[dmdba@localhost bin]$ ./disql sysdba/Dameng123:5236
tool相當于是oracle 的 sqlplus /nolog
[dmdba@localhost tool]$ ./disql
disql V8
SQL> select status$ from v$instance;
未連接
SQL> conn sysdba/Dameng123:5236
2、manager
[dmdba@localhost tool]$ ./manager
3、console
[dmdba@localhost tool]$ ./console
查看和修改引數
做冷備和恢復
4、DTS 遷移工具
5、性能監視工具monitor
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/231188.html
標籤:其他數據庫
下一篇:pg的磁區表的備份與還原
