In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. Installation environment
Operating system: Red hat 6.5
Memory: minimum memory requirement of 256m (use: grep MemTotal / proc/meminfo command to view)
Swap space: SWAP swap space size is determined by memory size (use: grep SwapTotal / proc/meminfo command to view)
Hard disk space: not less than 20g, no less than 400m of free TMP files, and no less than 5G of software installation directory space (use: df-h command to check)
two。 Installation process
1)。 Add user groups and users, and set passwords for users
[root@redhat] # groupadd oinstall [root@redhat ~] # groupadd dba [root@redhat ~] # useradd-g oinstall-G dba oracle [root@redhat ~] # passwd oracleChanging password for user oracle.New UNIX password:BAD PASSWORD: it is based ona dictionary wordRetype new UNIX password:passwd: all authentication tokens updated successfully.
2)。 Create an installation directory and assign user groups and permissions
[root@redhat] # mkdir-p / u01/app/oracle/product [root@redhat ~] # mkdir / u01/app/oradata [root@redhat ~] # chown-R oracle:oinstall / U01 [root@redhat ~] # chmod-R 755 / U01
3)。 Upload the oracle 11g installation package and extract it
[root@redhat U01] # unzip linux.x64_11gR2_database_ 1 of 2.zip [root @ redhat U01] # unzip linux.x64_11gR2_database_2of2.zip
4)。 Create a file called oraInst.loc in the / etc directory and modify permissions
[root@redhat etc] # vi oraInst.loc
Insert the following into the file:
Inventory_loc=/u01/app/oracle/oraInventoryinst_group=oinstall
After saving, modify permissions:
[root@redhat etc] # chown oracle:oinstall oraInst.loc [root@redhat etc] # chmod 664 oraInst.loc
5)。 Modify system parameters
[root@redhat etc] # vi / etc/sysctl.conf
Add the following code (comment the original kernel.shmmax and kernel.shmall parameters):
Fs.file-max = 6815744fs.aio-max-nr = 1048576kernel.shmall = 2097152kernel.shmmax = 2147483648kernel.shmmni = 4096kernel.sem = 25032000100 128net.ipv4.ip_local_port_range = 900065500net.core.rmem_default = 4194304net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048576
Execute sysctl-p to make the settings take effect
[root@redhat etc] # vi / etc/security/limits.conf
Add the following at the end:
Oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536 [root@redhat etc] # vi / etc/pam.d/login
Add the following at the end:
Session required / lib/security/pam_limits.sosession required pam_limits.so
6)。 Modify environment variabl
[root@redhat etc] # vi / etc/profile
Add the following at the end:
If [$USER = "oracle"]; thenif [$SHELL = "/ bin/ksh"]; thenulimit-p 16384ulimit-n 65536elseulimit-u 16384-n 65536fiumask 022fi
Use source / etc/profile to make the settings take effect.
Switch to oracle user
[oracle@redhat ~] # cd/home/oracle [oracle@redhat ~] # vi .bash _ profile
Insert the following at the bottom of the file:
Export ORACLE_BASE=/u01/app/oracleexport ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1export ORACLE_SID=bpasexport PATH=$ORACLE_HOME/bin:$PATHexport LANG=en_US.UTF-8export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/libexport CLASSPATH=$ORACLE_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
Use source .bash _ profile to make the changes take effect
7)。 Start installation
I use a graphical fool installation method, which is simple and intuitive to operate.
Under root users:
[root@redhat ~] # xhost +
Switch to the oracle user:
[root@redhat ~] # su-oracle [root@redhat ~] # export DISPLAY= your ip:0.0 (example: export DISPLAY=192.168.1.1:0.0) [root@redhat ~] # cd / u01/database [root@redhat database] # / runInstaller
Graphical installation step 1: cancel the push and click next
Step 2: skip the software update and click next:
Step 3, create the database:
Step 4, select the database installation type:
Step 5, default option, next:
Step 6, select the installation version:
Step 7, default option:
Step 8, select a user group, and next:
Step 9, check for dependencies:
Since my local environment has installed the rpm installation package ahead of time, here are the packages that need to be installed in the redhat6.5 environment (you can find them under your image file without having to download them):
After installation, click check again to re-check to see if there are any problems:
Step 10, click install:
Wait for the installation to complete:
The following are prompted during installation:
Follow its prompted steps to complete the operation:
[oracle@redhat ~] # su root [oracle@redhat ~] # cd / u01/app/oracle/product/11.2.0 [oracle@redhat ~] # / root.sh
Then click ok.
At this point, the installation of oracle 11g has been completed.
Summary
The above is the illustration of the installation of Oracle 11G tutorial under the Linux virtual machine introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time!
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.