微前端架构如何改变企业的开发模式与效率提升
712
2022-09-01
redhat 8.5安装oracle 19.3
一、前期配置1.配置/etc/hosts文件
[root@node01 ~]# cat /etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6192.168.56.200 node01
2.关闭selinux
[root@node01 ~]# sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config[root@node01 ~]# cat /etc/selinux/config | grep "SELINUX=" | grep -v "#"SELINUX=disabled[root@node01 ~]# setenforce 0
3.关闭防火墙
[root@node01 ~]# systemctl stop firewalld.service [root@node01 ~]# systemctl disable firewalld.serviceRemoved /etc/systemd/system/multi-user.target.wants/firewalld.service.Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
4.配置/etc/sysctl.conf文件
[root@node01 ~]# cat /etc/sysctl.conf | grep -v "#"fs.file-max = 6815744kernel.sem = 250 32000 100 128kernel.shmmni = 4096kernel.shmall = 1073741824kernel.shmmax = 4398046511104kernel.panic_on_oops = 1net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048576net.ipv4.conf.all.rp_filter = 2net.ipv4.conf.default.rp_filter = 2fs.aio-max-nr = 1048576net.ipv4.ip_local_port_range = 9000 65500[root@node01 ~]# sysctl -p
5.配置/etc/security/limits.conf文件
[root@node01 ~]# cat /etc/security/limits.conf | grep -v "#"oracle soft nofile 1024oracle hard nofile 65536oracle soft nproc 16384oracle hard nproc 16384oracle soft stack 10240oracle hard stack 32768
6.安装rpm包
dnf install -y bc dnf install -y binutilsdnf install -y compat-libstdc++-33dnf install -y elfutils-libelfdnf install -y elfutils-libelf-develdnf install -y fontconfig-develdnf install -y glibcdnf install -y glibc-develdnf install -y kshdnf install -y libaiodnf install -y libaio-develdnf install -y libXrenderdnf install -y libXrender-develdnf install -y libX11dnf install -y libXaudnf install -y libXidnf install -y libXtstdnf install -y libgccdnf install -y librdmacm-develdnf install -y libstdc++dnf install -y libstdc++-develdnf install -y libxcbdnf install -y makednf install -y net-tools # Clusterwarednf install -y nfs-utils # ACFSdnf install -y python # ACFSdnf install -y python-configshell # ACFSdnf install -y python-rtslib # ACFSdnf install -y python-six # ACFSdnf install -y targetcli # ACFSdnf install -y smartmontoolsdnf install -y sysstatdnf install -y unixODBCdnf install -y libnsl2dnf install -y libnsl2.i686dnf install -y libnsl
7.创建用户和组
groupadd -g 1002 oinstallgroupadd -g 1003 dbagroupadd -g 1004 operuseradd -u 1002 -g oinstall -G dba,oper oraclepasswd oracle
8.创建目录
mkdir -p /u01/app/oracle/product/19.3.0/dbhome_1chown -R oracle:oinstall /u01chmod -R 775 /u01/
9.设置环境变量切换到oracle用户下执行vim .bash_profile编辑.bash_profile文件添加以下内容:
[oracle@node01 ~]$ vim .bash_profileORACLE_SID=orcl;export ORACLE_SID ORACLE_UNQNAME=orcl;export ORACLE_UNQNAMEJAVA_HOME=/usr/local/java; export JAVA_HOMEORACLE_BASE=/u01/app/oracle; export ORACLE_BASEORACLE_HOME=$ORACLE_BASE/product/19.3.0/dbhome_1; export ORACLE_HOMEORACLE_TERM=xterm; export ORACLE_TERMNLS_DATE_FORMAT="YYYY:MM:DDHH24:MI:SS"; export NLS_DATE_FORMATexport NLS_LANG=AMERICAN_AMERICA.UTF8TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMINORA_NLS11=$ORACLE_HOME/nls/data; export ORA_NLS11PATH=.:${JAVA_HOME}/bin:${PATH}:$HOME/bin:$ORACLE_HOME/bin:$ORA_CRS_HOME/binPATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/binexport PATHLD_LIBRARY_PATH=$ORACLE_HOME/libLD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/libLD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/libexport LD_LIBRARY_PATHCLASSPATH=$ORACLE_HOME/JRECLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlibCLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlibCLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlibexport CLASSPATHTHREADS_FLAG=native; export THREADS_FLAGexport TEMP=/tmpexport TMPDIR=/tmpumask 022
执行命令生效[oracle@node01 ~]$ source .bash_profile
二、安装数据库软件
[root@node01 u01]# chown oracle:oinstall /tmp/LINUX.X64_193000_db_home.zip [root@node01 software]# su - oracle[oracle@node01 ~]$ unzip -d /u01/app/oracle/product/19.3.0/dbhome_1/ /tmp/LINUX.X64_193000_db_home.zip[root@node01 ~]$ yum install libXp*.i686 libXt*.i686 libXtst libnsl.so.1 libXrender-0.9.10 -y切换到Oracle用户进去Oracle Home目录执行./runInstaller安装Oracle 18c数据库软件[oracle@node01 dbhome_1]$ cd /u01/app/oracle/product/19.3.0/dbhome_1/[oracle@node01 dbhome_1]$ export CV_ASSUME_DISTID=RHEL7.9[oracle@node01 dbhome_1]$ ./runInstaller
`
[root@node01 ~]# /u01/app/oraInventory/orainstRoot.shChanging permissions of /u01/app/oraInventory.Adding read,write permissions for group.Removing read,write,execute permissions for world.Changing groupname of /u01/app/oraInventory to oinstall.The execution of the script is complete.[root@node01 ~]# /u01/app/oracle/product/19.3.0/dbhome_1/root.shPerforming root user operation.The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/oracle/product/19.3.0/dbhome_1Enter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ...Creating /etc/oratab file...Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root script.Now product-specific root actions will be performed.Oracle Trace File Analyzer (TFA - Standalone Mode) is available at : /u01/app/oracle/product/19.3.0/dbhome_1/bin/tfactlNote :1. tfactl will use TFA Service if that service is running and user has been granted access2. tfactl will configure TFA Standalone Mode only if user has no access to TFA Service or TFA is not installed
三、创建数据库
[oracle@node01 dbhome_1]$ dbca
Linux,oracle
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~