達夢(DM)資料庫Linux部署安裝
阿新 • • 發佈:2021-01-05
1. 準備工作
1.1關閉firewalld防火牆和Selinux
1 2 3 4 5 6 |
#檢視firwalld的狀態
systemctl status firewalld
#停止firewalld
systemctl stop firewalld
#禁用firewalld
systemctl disable firewalld
|
#檢視Selinux狀態 getenforce #關閉Selinux vim /etc/selinux/config SELINUX=disabled
1.2重啟伺服器、立即生效配置
reboot
2. 安裝操作
2.1拷貝安裝包iso到伺服器&掛載
拷貝iso檔案到/opt/soft/DM7:
cd /opt/soft/DM7 mount dm7開發版(rh7-64)20190917.iso /mnt/
2.2建立DM安裝使用者和安裝使用者組並初始化使用者密碼
groupadd dinstall useradd -g dinstall -m -d /home/dmdba -s /bin/bash dmdba passwd dmdba
2.3建立目錄
規劃好儲存dm資料庫檔案的目錄,這裡放在/opt/dm/目錄下
mkdir -p /opt/dm/dmdbms mkdir -p /opt/dm/dmarch mkdir -p /opt/dm/dmbak chown -R dmdba:dinstall /opt/dm/ chmod -R 775 /opt/dm/
2.4配置環境變數
echo export PATH=$PATH:/opt/dm/dmdbms/bin >> /etc/profile source /etc/profile
2.5拷貝安裝檔案
cp -r /mnt/* /opt/dm/ cd /opt/dm/
# DMInstall.bin 檔案就是DM的安裝程式。在執行安裝程式前,需要賦予DMInstall.bin檔案執行許可權
chmod 755 ./DMInstall.bin
2.6命令列安裝
cd /opt/dm/ ./DMInstall.bin -i
1)Please select the installer's language (E/e:English C/c:Chinese) [E/e]: 選擇語言,預設使用英語安裝,直接回車 2)Whether to input the path of Key File? (Y/y:Yes N/n:No) [Y/y]:N 驗證Key檔案:使用者可以選擇是否輸入 Key 檔案路徑,這裡選擇N。 3)Whether to Set The TimeZone? (Y/y:Yes N/n:No) [Y/y]:y Please Select the TimeZone [21]:21 選擇21([21]: GTM+08=China) 4)Please Input the number of the Installation Type [1 Typical]:1 5)Please Input the install path [/opt/dmdbms]:/opt/dm/dmdbms 6)Please Confirm the install path(/opt/dm/dmdbms)? (Y/y:Yes N/n:No) [Y/y]:y 7)Pre-Installation Summary Installation Location: /opt/dm/dmdbms Require Space: 963M Available Space: 88G Version Information: Expire Date: Installation Type: Typical Confirm to Install? (Y/y:Yes N/n:No):y 8)等待安裝完畢。
9) 建立DM資料庫例項
#檢視幫助 cd /opt/dm/dmdbms/bin/ ./dminit help #帶引數的方式執行dminit ./dminit PATH=/opt/dm/dmdbms/data DB_NAME=testdb INSTANCE_NAME=dmsrv
10)註冊資料庫服務 [root@ root]# ./dm_service_installer.sh -t dmserver -i /opt/dm/dmdbms/data/testdb/dm.ini -p dmsrv
11)測試註冊是否成功 service DmServicedmsrv start 12)#檢視埠監聽狀態(dminit初始化時預設PORT_NUM=5236) netstat -an |grep 5236 13)#檢視程序 [root@localhost bin]# ps aux|grep dmserver
14)#資料庫例項建立完成,使用disql登入驗證一下(#如果沒有單獨設定或修改過的話,預設SYSDBA使用者密碼相同。) [root@localhost bin]# disql SYSDBA/SYSDBA
至此,達夢資料庫部署成功!
hey,shanqw.停下休息的時候不要忘記別人在奔跑! 來源:追風皇帝 https://www.cnblogs.com/shanqw/