借助VMware虚拟机:
groupadd -g 12349 dinstall
useradd -u 12345 -g dinstall -m -d /home/dmdba -s /bin/bash dmdba
echo “dmdba” | passwd --stdin dmdba
mkdir -p /opt/dmdbms
mkdir -p /home/dameng/data
mkdir -p /home/dameng/data/arch
mkdir -p /home/dameng/bak
chown -R dmdba:dinstall /opt/dmdbms
chown -R dmdba:dinstall /home/dameng
vi /etc/security/limits.conf
soft nproc 4096 (4096改为65535)
说明:图形化安装适用于Linux操作系统有图形化界面的场景
mkdir -p /tmp/soft (安装包上传在此目录,根据实际环境而定)
chown -R dmdba:dinstall /tmp/soft
chmod -R 755 /tmp/soft
su - dmdba
cd /tmp/soft
./ DMInstall.bin(执行安装)
测试demo:
–测试创建表空间,表空间路径根据自己的环境修改
create tablespace TEST1 datafile ‘/home/dameng/data/DAMENG/TEST1.DBF’ size 100 autoextend off;
–测试表增、删、改、查
create table TEST1 (id int,name varchar(10)) storage (on TEST1);
insert into TEST1 values (1,‘张三’);
insert into TEST1 values (2,‘李四’);
insert into TEST1 values (3,‘王五’);
commit;
select id,name from TEST1;
update TEST1 set name=‘张三三三’ where id=1;
commit;
delete from TEST1 where id=3;
commit;
select id,name from TEST1;
drop table TEST1;
cd /op/dmdbms
./uninstall.sh (执行卸载脚本)