19c_asm单实例安装

该方案适用于没有过多预算,装不了rac还想用asm特性的公司

1.创建用户,组,路径

 groupadd -g 11001 oinstall  
 groupadd -g 11002 dba  
 groupadd -g 11003 oper  
 groupadd -g 11004 backupdba  
 groupadd -g 11005 dgdba  
 groupadd -g 11006 kmdba  
 groupadd -g 11007 asmdba  
 groupadd -g 11008 asmoper  
 groupadd -g 11009 asmadmin  
 groupadd -g 11010 racdba  
 useradd -u 11011 -g oinstall -G dba,asmdba,backupdba,dgdba,kmdba,racdba,oper oracle  
 useradd -u 11012 -g oinstall -G asmadmin,asmdba,asmoper,dba grid
 mkdir -p /u01/app/19.0.0/grid
 mkdir -p /u01/app/grid
 mkdir -p /u01/app/oracle
 mkdir -p /u01/app/oracle/product/19.0.0/db_1
 chown -R grid:oinstall /u01/app/grid
 chown -R grid:oinstall /u01/app/19.0.0/grid
 chown -R oracle:oinstall /u01/app/oracle
 chmod -R 775 /u01/
 echo "oracle" | passwd --stdin oracle
 echo "grid" | passwd --stdin grid

2.安装依赖

 yum -y install bc gcc gcc-c++  binutils  make gdb cmake  glibc ksh elfutils-libelf elfutils-lib
elf-devel fontconfig-devel glibc-devel libaio libaio-devel libXrender libXrender-devel libX11 libXau sysstat libXi libXtst libgcc librdmacm-devel libstdc++ libstdc++-devel libxcb net-tools nfs-utils compat-libcap1 compat-libstdc++  smartmontools  targetcli python python-configshell python-rtslib python-six  unixODBC unixODBC-devel

3.内核参数调整

详见官当

4.预装包

 yum install -y oracle-database-preinstall-19c

5.配置裸盘,安装grid

1.裸盘配置和rac磁盘组配置类似
2.grid装完之后 ,root运行以下脚本(详见官当)
   /u01/app/19.0.0/grid/crs/install/roothas.sh
   /u01/app/19.0.0/grid/crs/install/roothas.sh -unlock
   /u01/app/19.0.0/grid/crs/install/roothas.sh -lock
   /u01/app/19.0.0/grid/crs/install/roothas.sh -unlock
   /u01/app/19.0.0/grid/rdbms/install/rootadd_rdbms.sh
   /u01/app/19.0.0/grid/crs/install/roothas.sh -lock
3.asmca创建磁盘组
4.grid用户下添加监听
srvctl add listener
5.安装db

6.asm备库创建密码文件

 orapwd file=+B dbuniquename=orcl  password=oracle format=12 force=y

你可能感兴趣的:(oracle,数据库)