In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Check the system environment:
[root@localhost ~] # grep MemTotal / proc/meminfo # physical memory is not less than 1GB
MemTotal: 1491520 kB
[root@localhost ~] # grep SwapTotal / proc/meminfo # swap partition is 1.5-2 of physical memory; when physical memory is 2-16GB, swap partition is the same as physical memory
SwapTotal: 2097148 kB
Install the oracle dependency software:
Yum install-y binutils compat-libcap1-1.10-1 compat-libstdc++-33 gcc gcc-c++ glibc glibc glibc-devel glibc-devel ksh libgcc libgcc libstdc++ libstdc++ libstdc++-devel libstdc++-devel libaio libaio libaio-devel libaio-devel make sysstat elftils-libelf unixODBC unixODBC unixODBC-devel elfutils-libelf elfutils-libelf-devel
Modify the system environment:
Groupadd oinstallgroupadd dbauseradd-g oinstall-G dba oracleecho "qwe123" | passwd root-- stdinmkdir / opt/oraclechown-R oracle:oinstall / opt/oracle/chmod-R 755 / opt/oracle/ [root@localhost ~] # vim ~ oracle/.bash_profileumask 022export ORACLE_BASE=/opt/oracleexport ORACLE_SID=/orc1export DISPLAY=:0.0export LANG=zh_CN.UTF-8 [root@localhost ~] # vim / etc/sysctl.conffs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 536870912kernel.shmmni = 4096kernel.sem = 32000 32000 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048586 [root@localhost ~] # vim / etc/security/limits.conforacle soft nproc 8192oracle hard nofile 65536oracle soft nofile 32768oracle hard nproc 16384 [root@localhost ~ ] # xhost + [root@localhost ~] # su oracle [oracle@localhost root] $cd / opt/oracle/database/ [oracle@localhost database] $. / runInstaller-jreLoc / usr/lib/jvm/jre-1.6.0
Graphical interface installation:
1. When you see the installation interface, "yes" will do the next step.
two。 Create and configure a database
3. Select server type 4. Single instance installation
5. Here I choose "typical installation"
8. Configure password and installation path
9. Automatically check environmental parameters and installation
Prompt to initialize with root after the installation is complete:
Add the path to the oracle:
[root@localhost ~] # vim ~ oracle/.bash_profile
Export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1/
PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
[root@localhost bin] # dbstart / home/oracle/app/oracle/product/11.2.0/dbhome_1/
Enter the database:
[root@localhost bin] # su oracle
[oracle@localhost bin] $sqlplus sys/Benet4.0 AS SYSDBA
SQL*Plus: Release 11.2.0.1.0 Production on Tue Dec 30 19:46:37 2014
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL >
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.