In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "the detailed installation tutorial of Oracle 11g under RedHat Linux5.5". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "the detailed installation tutorial of Oracle 11g under RedHat Linux5.5".
It is best to install Oracle system under Linux with 1G of memory, 2G of swap space, and at least 4.5G of hard disk space.
At least the environment is above Linux Server release 5.3.
If it's Linux Server release 5.1, modify oracle10.2g.
1. Check the Linux version
[root@localhost ~] # cat / etc/issue
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
[root@localhost ~] # cat / etc/RedHat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
Second, download the corresponding version of oracle from the official website of oracle. I downloaded oracle for linux X86.
Http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
Create oracle users and manage groups under linux
3.1Log in to linux as root user and execute the following command
[root@localhost ~] # / usr/sbin/groupadd dba
[root@localhost ~] # / usr/sbin/groupadd oper
[root@localhost ~] # / usr/sbin/groupadd oinstall
Tips:
View the Linux user group commands:
[root@localhost ~] # cat / etc/group
3.2Adding oracle users
[root@localhost ~] # useradd oracle
[root@localhost] # / usr/sbin/usermod-g oinstall-G dba oracle
[root@localhost ~] # passwd oracle
Changing password for user oracle.
New UNIX password: oracle
BAD PASSWORD: it is based ona dictionary word
Retype new UNIX password: oracle
Passwd: all authentication tokens updated successfully.
3.3 pre-create the installation directory
[root@localhost] # mkdir-p / opt/oracle/product
[root@localhost] # mkdir-p / opt/oracle/product/OraHome
[root@localhost] # mkdir-p / opt/oraInventory
[root@localhost] # mkdir-p / opt/oracle/oradata
[root@localhost] # mkdir-p / var/opt/oracle
3.4 set the group and permissions to which the owner of the directory belongs
[root@localhost] # chown-R oracle.oinstall / opt/oracle
[root@localhost] # chown-R oracle.oinstall / opt/oracle/oradata
[root@localhost] # chown-R oracle.oinstall / opt/oracle/product/OraHome
[root@localhost] # chown-R oracle.dba / opt/oraInventory
[root@localhost ~] # chown oracle.dba / var/opt/oracle
[root@localhost] # chmod-R 775 / opt/oracle
[root@localhost] # chmod-R 755 / var/opt/oracle
3.5 set the environment variable of the user oracle
# su-oracle
[oracle@localhost ~] $vi / home/oracle/.bash_profile
Add at the bottom of the file
Export ORACLE_BASE=/opt/oracle
Export ORACLE_HOME=$ORACLE_BASE/product/OraHome
Export ORACLE_SID=orcl
Export ORACLE_OWNER=oracle
Export ORACLE_TERM=vt100
Export PATH=$PATH:$ORACLE_HOME/bin:$HOME/bin
Export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/Apache/Apache/bin:$PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib
Export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
Export CLASSPATH
PATH=$PATH:/usr/sbin; export PATH
PATH=$PATH:/usr/bin; export PATH
-- execute the following command to make the configuration take effect immediately or log in as an oracle user to make the settings effective
[oracle@localhost ~] $source $HOME/.bash_profile
Prepare for the installation environment
4.1 installation environment check
Oracle depends on a full range of packages (version equal to or greater than the following version number)
Binutils-2.17.50.0.6
Compat-libstdc++-33-3.2.3
Compat-libstdc++-33-3.2.3 (32 bit)
Elfutils-libelf-0.125
Elfutils-libelf-devel-0.125
Gcc-4.1.2
Gcc-c++-4.1.2
Glibc-2.5-24
Glibc-2.5-24 (32 bit)
Glibc-common-2.5
Glibc-devel-2.5
Glibc-devel-2.5 (32 bit)
Glibc-headers-2.5
Pdksh-5.2.14-36.el5
Libaio-0.3.106
Libaio-0.3.106 (32 bit)
Libaio-devel-0.3.106
Libaio-devel-0.3.106 (32 bit)
Libgcc-4.1.2
Libgcc-4.1.2 (32 bit)
Libstdc++-4.1.2
Libstdc++-4.1.2 (32 bit)
Libstdc++-devel 4.1.2
Make-3.81
Sysstat-7.0.2
UnixODBC-2.2.11
UnixODBC-2.2.11 (32 bit)
UnixODBC-devel-2.2.11
UnixODBC-devel-2.2.11 (32 bit)
[root@localhost ~] # rpm-qa | grep-E "binutils | compat-libstdc++ | elfutils-libelf | gcc | glibc | libaio | libgcc | libstdc++ | make | sysstat | unixODBC | pdksh"
4.2 upload installation package
Upload linux_11gR2_database_1of2.zip and linux_11gR2_database_2of2.zip to / home/oracle/ directory
4.3 extract the installation package
[oracle@localhost oracle] $cd / home/oracle/
[oracle@localhost ~] $ls
Linux_11gR2_database_1of2.zip linux_11gR2_database_2of2.zip
[oracle@localhost oracle] $unzip linux_11gR2_database_1of2.zip
[oracle@localhost oracle] $unzip linux_11gR2_database_2of2.zip
If the uploaded directory is not / home/oracle/, make sure that the uploaded directory oracle user has sufficient permissions. If uploaded to the / opt/soft directory,
To switch back to the root user to decompress:
[oracle@localhost oracle] $su-root
[root@localhost ~] # cd / opt/soft/
Extract the package:
[root@localhost soft] # unzip linux_11gR2_database_1of2.zip
[root@localhost soft] # unzip linux_11gR2_database_2of2.zip
Assign permissions to the extracted directory to oracle users
# chown-R oracle database
# chgrp-R oinstall database
V. formal installation
5.1 restart the server to take effect the configuration information
5.2 enter the server interface, log in as Oracle user, and execute the following command
[root@localhost ~] # cd / home/oracle/database
[root@localhost ~] #. / runInstaller
Then enter the graphical installation process.
Note that we install the oracle software first, and then configure the listener and database after installing the software.
Here are the steps and options for the installation process:
1. After executing. / runInstaller, go to figure 1
two。 Remove the check box and click next, and the dialog box will pop up as shown in figure 2.
3. Click yes to enter figure 3
4. Select the second item install database soft onliy and click next to enter figure 4
5. Select item 1 single instance database installation and click next to enter figure 5
6. Select the language simplifed Chinese and click next to enter figure 6
7. Figure 6 is the selection of database type. We select Enterprise Edition (3.95g) for Enterprise Edition, and click next.
8. Figure 7 is to configure the installation directory of oracle. The configuration value should be as shown in the figure. Click next directly to enter figure 8.
9. Figure 8 is to configure the administrative group of oracle. The configuration value should be as shown in the figure. Click next directly to enter figure 9.
10. Figure 9 is to configure the user rights of oracle. The configuration value should be as shown in the figure. Click next directly to enter figure 10.
11. If you enter figure 10, it will be installed automatically, and you will automatically enter figure 11.
13. Failed to install rpm packages. For more information on installing those packages, please refer to the Failed in figure 11.
Upload
Compat-libstdc++-33-3.2.3-61.i386.rpm
To / qsyang/oracle
Perform the installation:
[root@localhost home] # cd / qsyang/oracle/
[root@localhost oracle] # rpm-ivh compat-libstdc++-33-3.2.3-61.i386.rpm
Upload
Elfutils-libelf-devel-0.137-3.el5.i386.rpm
Elfutils-libelf-devel-static-0.137-3.el5.i386.rpm
To / qsyang/oracle
Perform the installation (because the two packages are interdependent, so install together):
[root@localhost soft] # rpm-ivf elfutils-libelf-devel-0.137-3.el5.i386.rpm elfutils-libelf-devel-static-0.137-3.el5.i386.rpm
Warning: elfutils-libelf-devel-0.137-3.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing packages for installation...
Elfutils-libelf-devel-static-0.137-3.el5
Elfutils-libelf-devel-0.137-3.el5
Upload
Libaio-devel-0.3.106-5.i386.rpm
To / qsyang/oracle
Perform the installation:
[root@localhost soft] # rpm-ivh libaio-devel-0.3.106-5.i386.rpm
Warning: libaio-devel-0.3.106-5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... # [100%]
1:libaio-devel # # [100%]
Upload
Sysstat-7.0.2-3.el5.i386.rpm
UnixODBC-devel-2.2.11-7.1.i386.rpm
To / qsyang/oracle
Perform the installation:
[root@localhost oracle] # rpm-ivh sysstat-7.0.2-3.el5.i386.rpm
Warning: sysstat-7.0.2-3.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... # [100%]
1:sysstat # # [100%]
Upload
UnixODBC-2.2.11-7.1.i386.rpm
To / qsyang/oracle
Perform the installation:
[root@localhost oracle] # rpm-ivh unixODBC-2.2.11-7.1.i386.rpm
Preparing... # [100%]
1:unixODBC # # [100%]
[root@localhost oracle] # rpm-ivh unixODBC-devel-2.2.11-7.1.i386.rpm
Preparing... # [100%]
1:unixODBC-devel # # [100%]
[root@localhost oracle] #
14. After the installation is complete, check "Check Again" again at the point level and enter figure 12
15. Click ignore, click Finash to start the installation, enter figure 13
16. Figure 14 pops up after the installation is complete
17. Click Finish to close directly
VI. Install the listener
Execute a command
# netca
Enter the graphical configuration, as shown in figure 16
Directly default to the next step, to the final completion, where you can also modify the listener to the name, protocol, port.
You can use the command after the installation is complete
# ps-ef
To see if Listener is configured successfully
seven。 Install the database program
Execute the command:
# dbca
Enter the graphical configuration interface and go to the next step as shown in figure 18
After entering figure 19,
Prompted for the global database name, I entered yakson
Go all the way to figure 21 and enter the global password: I entered orcl12344
Click next to pop up figure 22 and click yes
Next, under the third option, select character Encoding AL32UTF-8
Then go on to the next step until you install the database and complete.
At this point, the preliminary installation of your Oracle is complete.
At this point, I believe you have a deeper understanding of the "detailed installation tutorial of Oracle 11g under RedHat Linux5.5". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.