标签:file inpu flag limit ror enc complex active iss
groupadd dinstall
useradd dinstall -g dinstall
passwd dinstall
mkdir /u02/dm7
chown dinstall.dinstall /u02/dm7 -R
ulimit -a
vi /etc/profile
ulimit -n 65536
vi .bash_profile
export DM_HOME=/u02/dm7
export PATH=$PATH:$HOME:$DM_HOME/bin
export DISPLAY=10.85.10.2:0.0
mkdir /mnt/dm7
mount -o loop /u02/*.iso /mnt/dm7
cd /mnt/dm7
cp DMinstall.bin /home/dinstall
./DMinstall.in (图形界面)或 ./DMinstall.bin -i (命令交互界面)
groupadd dinstall
useradd dinstall -g dinstall
passwd dinstall
mkdir /u02/dm7
chown dinstall.dinstall /u02/dm7 -R
ulimit -a
vi /etc/profile
ulimit -n 65536
vi .bash_profile
export DM_HOME=/u02/dm7
export PATH=$PATH:$HOME:$DM_HOME/bin
export DISPLAY=10.85.10.2:0.0
mkdir /mnt/dm7
mount -o loop /u02/*.iso /mnt/dm7
cd /mnt/dm7
cp DMinstall.bin /home/dinstall
./DMinstall.in (图形界面)或 ./DMinstall.bin -i (命令交互界面)
[dinstall@localhost dm7]$ pwd
/u02/dm7
[dinstall@localhost dm7]$ ./uninstall.sh
Xlib: extension "RANDR" missing on display "10.85.10.2:0.0".
[dinstall@localhost dm7]$ ./uninstall.sh -i
请确认是否卸载达梦数据库 [y/Y 是 n/N 否]:y
正在删除快捷方式
删除快捷方式完成
正在删除所有数据库库服务
删除数据库服务DmAPService
删除数据库服务DmJobMonitorService
删除数据库服务DmAuditMonitorService
删除数据库服务DmInstanceMonitorService
删除所有数据库库服务完成
正在删除数据库目录
删除bin目录
删除bin目录完成
删除bin2目录
删除bin2目录完成
删除include目录
删除include目录完成
删除desktop目录
删除desktop目录完成
删除doc目录
删除doc目录完成
删除drivers目录
删除drivers目录完成
删除jdk目录
删除jdk目录完成
删除jar目录
删除jar目录完成
删除samples目录
删除samples目录完成
删除script目录
删除script目录完成
删除tool目录
删除tool目录完成
删除web目录
删除web目录完成
删除uninstall目录
删除uninstall目录完成
删除license_en.txt文件
删除license_en.txt文件完成
删除license_zh.txt文件
删除license_zh.txt文件完成
删除release_en.txt文件
删除release_en.txt文件完成
删除release_zh.txt文件
删除release_zh.txt文件完成
删除uninstall.sh文件
删除uninstall.sh文件完成
删除数据库目录完成
使用root用户执行命令:
/u02/dm7/root_uninstaller.sh
[root@localhost dm7]# sh /u02/dm7/root_uninstaller.sh
删除DmAPService服务
error reading information on service DmAPService: No such file or directory
删除/etc/dm_svc.conf文件
[dinstall@localhost dm7]$ pwd
/u02/dm7
[dinstall@localhost dm7]$ ./uninstall.sh
Xlib: extension "RANDR" missing on display "10.85.10.2:0.0".
[dinstall@localhost dm7]$ ./uninstall.sh -i
请确认是否卸载达梦数据库 [y/Y 是 n/N 否]:y
正在删除快捷方式
删除快捷方式完成
正在删除所有数据库库服务
删除数据库服务DmAPService
删除数据库服务DmJobMonitorService
删除数据库服务DmAuditMonitorService
删除数据库服务DmInstanceMonitorService
删除所有数据库库服务完成
正在删除数据库目录
删除bin目录
删除bin目录完成
删除bin2目录
删除bin2目录完成
删除include目录
删除include目录完成
删除desktop目录
删除desktop目录完成
删除doc目录
删除doc目录完成
删除drivers目录
删除drivers目录完成
删除jdk目录
删除jdk目录完成
删除jar目录
删除jar目录完成
删除samples目录
删除samples目录完成
删除script目录
删除script目录完成
删除tool目录
删除tool目录完成
删除web目录
删除web目录完成
删除uninstall目录
删除uninstall目录完成
删除license_en.txt文件
删除license_en.txt文件完成
删除license_zh.txt文件
删除license_zh.txt文件完成
删除release_en.txt文件
删除release_en.txt文件完成
删除release_zh.txt文件
删除release_zh.txt文件完成
删除uninstall.sh文件
删除uninstall.sh文件完成
删除数据库目录完成
使用root用户执行命令:
/u02/dm7/root_uninstaller.sh
[root@localhost dm7]# sh /u02/dm7/root_uninstaller.sh
删除DmAPService服务
error reading information on service DmAPService: No such file or directory
删除/etc/dm_svc.conf文件
[dinstall@localhost bin]$ ./dminit
initdb V7.1.6.46-Build(2018.02.08-89107)ENT
db version: 0x7000a
file dm.key not found, use default license!
License will expire on 2019-02-08
input system dir: /u02/dm7/data -----数据文件存放路径
input db name: damen ----实例名
input port num: 53398 ----监听端口
input page size(4, 8, 16, 32): 8 ----数据库页大小
input extent size(16, 32): 16 ----扩展大小
input time zone(-12:59,+14:00): ----时区 ,选东8区
input err , input again:+8:00
string case sensitive? ([Y]es, [N]o): N ---字符是否区分大小写,如果是从ORACLE迁移 选 YES,如果是SqlServer 迁移 选 NO
which charset to use? (0[GB18030], 1[UTF-8], 2[EUC-KR]): 0 ---字符集
length in char? ([Y]es, [N]o): y ----字符长度
enable database encrypt? ([Y]es, [N]o): n --- 是否启用数据库加密
page check mode? (0/1/2): 0 ---是否开启页页检查模式
input elog path: ----日志路径
auto_overwrite mode? (0/1/2): 0
log file path: /u02/dm7/data/damen/damen01.log
log file path: /u02/dm7/data/damen/damen02.log
write to dir [/u02/dm7/data/damen].
create dm database success. 2018-06-02 03:43:39
[dinstall@localhost bin]$ ./dminit
initdb V7.1.6.46-Build(2018.02.08-89107)ENT
db version: 0x7000a
file dm.key not found, use default license!
License will expire on 2019-02-08
input system dir: /u02/dm7/data -----数据文件存放路径
input db name: damen ----实例名
input port num: 53398 ----监听端口
input page size(4, 8, 16, 32): 8 ----数据库页大小
input extent size(16, 32): 16 ----扩展大小
input time zone(-12:59,+14:00): ----时区 ,选东8区
input err , input again:+8:00
string case sensitive? ([Y]es, [N]o): N ---字符是否区分大小写,如果是从ORACLE迁移 选 YES,如果是SqlServer 迁移 选 NO
which charset to use? (0[GB18030], 1[UTF-8], 2[EUC-KR]): 0 ---字符集
length in char? ([Y]es, [N]o): y ----字符长度
enable database encrypt? ([Y]es, [N]o): n --- 是否启用数据库加密
page check mode? (0/1/2): 0 ---是否开启页页检查模式
input elog path: ----日志路径
auto_overwrite mode? (0/1/2): 0
log file path: /u02/dm7/data/damen/damen01.log
log file path: /u02/dm7/data/damen/damen02.log
write to dir [/u02/dm7/data/damen].
create dm database success. 2018-06-02 03:43:39
[dinstall@localhost bin]$ ./dminit help
initdb V7.1.6.46-Build(2018.02.08-89107)ENT
db version: 0x7000a
file dm.key not found, use default license!
License will expire on 2019-02-08
Format: ./dminit KEYWORD=value
Example: ./dminit PATH=/public/dmdb/dmData PAGE_SIZE=16
Keyword Explanation(default value)
--------------------------------------------------------------------------------
INI_FILE dm.ini path
PATH database path
CTL_PATH control file path
LOG_PATH log file path
EXTENT_SIZE extent size of data file(16), optional value: 16,32, unit: PAGE
PAGE_SIZE page size(8), optional value: 4,8,16,32, unit: K
LOG_SIZE log file size(256), unit: M, range: 64M ~ 2G
CASE_SENSITIVE whether case is sensitive(Y), optional value: Y/N or 1/0
CHARSET/UNICODE_FLAG CHARSET(0), optional value:0[GB18030],1[UTF-8],2[EUC-KR]
LENGTH_IN_CHAR whether LENGTH for VARCHAR is in characters(N), optional value: Y/N, 1/0
SYSDBA_PWD set SYSDBA password(SYSDBA), password length must between 9 and 48
SYSAUDITOR_PWD set SYSAUDITOR password(SYSAUDITOR), password length must between 9 and 48
DB_NAME database name(DAMENG)
INSTANCE_NAME instance name(DMSERVER)
PORT_NUM listener port(5236)
TIME_ZONE set time zone(+08:00)
PAGE_CHECK page check mode(0), optional value: 0/1/2
EXTERNAL_CIPHER_NAME set default encrypt/decrypt algorithm
EXTERNAL_HASH_NAME set default hash algorithm
EXTERNAL_CRYPTO_NAME set crypto name to encrypt svr key
RLOG_ENC_FLAG whether encrypt redo log(N), optional value: Y/N, 1/0
USBKEY_PIN set usbkey pin
ENCRYPT_NAME set algorithm for encrypt the whole database
BLANK_PAD_MODE set blank padding mode(0), optional value:0/1
SYSTEM_MIRROR_PATH mirror path of system data file
MAIN_MIRROR_PATH mirror path of main file
ROLL_MIRROR_PATH mirror path of roll file
MAL_FLAG MAL_INI flag(0) in dm.ini
ARCH_FLAG ARCH_INI(0) flag in dm.ini
MPP_FLAG MPP_INI(0) flag in dm.ini
CONTROL control file path!
AUTO_OVERWRITE whether overwrite all files with the same name(0) 0: no 1: part 2: all
USE_NEW_HASH whether use new hash algorithm for string. (default 1)
DCP_MODE whether is DM CLUSTER PROXY mode(default 0)
DCP_PORT_NUM in DCP mode, set dcp_port_num
ELOG_PATH set the path of log file recording the contents during initialization
HELP print help information
[dinstall@localhost bin]$ ./dminit help
initdb V7.1.6.46-Build(2018.02.08-89107)ENT
db version: 0x7000a
file dm.key not found, use default license!
License will expire on 2019-02-08
Format: ./dminit KEYWORD=value
Example: ./dminit PATH=/public/dmdb/dmData PAGE_SIZE=16
Keyword Explanation(default value)
--------------------------------------------------------------------------------
INI_FILE dm.ini path
PATH database path
CTL_PATH control file path
LOG_PATH log file path
EXTENT_SIZE extent size of data file(16), optional value: 16,32, unit: PAGE
PAGE_SIZE page size(8), optional value: 4,8,16,32, unit: K
LOG_SIZE log file size(256), unit: M, range: 64M ~ 2G
CASE_SENSITIVE whether case is sensitive(Y), optional value: Y/N or 1/0
CHARSET/UNICODE_FLAG CHARSET(0), optional value:0[GB18030],1[UTF-8],2[EUC-KR]
LENGTH_IN_CHAR whether LENGTH for VARCHAR is in characters(N), optional value: Y/N, 1/0
SYSDBA_PWD set SYSDBA password(SYSDBA), password length must between 9 and 48
SYSAUDITOR_PWD set SYSAUDITOR password(SYSAUDITOR), password length must between 9 and 48
DB_NAME database name(DAMENG)
INSTANCE_NAME instance name(DMSERVER)
PORT_NUM listener port(5236)
TIME_ZONE set time zone(+08:00)
PAGE_CHECK page check mode(0), optional value: 0/1/2
EXTERNAL_CIPHER_NAME set default encrypt/decrypt algorithm
EXTERNAL_HASH_NAME set default hash algorithm
EXTERNAL_CRYPTO_NAME set crypto name to encrypt svr key
RLOG_ENC_FLAG whether encrypt redo log(N), optional value: Y/N, 1/0
USBKEY_PIN set usbkey pin
ENCRYPT_NAME set algorithm for encrypt the whole database
BLANK_PAD_MODE set blank padding mode(0), optional value:0/1
SYSTEM_MIRROR_PATH mirror path of system data file
MAIN_MIRROR_PATH mirror path of main file
ROLL_MIRROR_PATH mirror path of roll file
MAL_FLAG MAL_INI flag(0) in dm.ini
ARCH_FLAG ARCH_INI(0) flag in dm.ini
MPP_FLAG MPP_INI(0) flag in dm.ini
CONTROL control file path!
AUTO_OVERWRITE whether overwrite all files with the same name(0) 0: no 1: part 2: all
USE_NEW_HASH whether use new hash algorithm for string. (default 1)
DCP_MODE whether is DM CLUSTER PROXY mode(default 0)
DCP_PORT_NUM in DCP mode, set dcp_port_num
ELOG_PATH set the path of log file recording the contents during initialization
HELP print help information
标签:file inpu flag limit ror enc complex active iss
原文地址:https://www.cnblogs.com/cqdba/p/8b47f880e43ddd66297c0c1d968a14aa.html