Redhat-server-5.6-64bit installation oracle11g

Source: Internet
Author: User
Tags sqlplus

Recently also to customers on the system, helpless customers just provide the operating system, the database is not installed, we need to install, really, Oracle this thing in Windows loaded a lot, but on Linux is really not installed, this is the first time to install, so in case, I installed the machine in advance with a virtual machine, the following content to the general process to record.

The first installation, the practice of course is Baidu to find a tutorial, find a good tutorial, I am in accordance with the Bo master process installation, although a little bit different in the middle, but the basic is in accordance with his shelves to install, I enclose the original address: http://blog.csdn.net/ Westmaniac/article/details/6539487?reload

The following is the installation process, may be slightly different from the original, I also changed according to the specific circumstances

The system image I installed is:[Red Hat Enterprise Linux.5.6].rhel-server-5.6-x86_64-dvd.iso


Because I am dull, at that time to find this version of the image took some time, so I will this image in the Baidu Cloud share, the end of the article I will mirror the shared address also posted out.

I will put the system requirements here, be sure to meet the minimum requirements:

Minimum memory 1GB (minimum 1.5GB recommended)

View Memory
[[email protected] ~]# grep memtotal/proc/meminfomemtotal:2056620KB
View Swap
[[Email protected]~]# grep swaptotal/proc/meminfoswaptotal:2064344KB
/tmp directory requires 1 GB of free space
View free space in the/tmp directory
[[Email protected]~]# df-h/tmpfilesystem Size used Avail use%mounted on/dev/sda2 27G 13G 13GWuyi% /

hard disk space required to install Oracle software
Enterprise Edition 3.95 (software files) +1.7 (data files)
Standard Edition 3.88 (software files) +1.5 (data files)

to view the free space for each disk in the machine [[Email protected]~]# DF-hfilesystem Size used Avail use%mounted on/dev/sda2 27G 13G 13GWuyi%//dev/sda1 289M 17M 258M6% /Boottmpfs 1005M 480M 525M -%/DEV/SHM

1, to the root user login system

2, check the operating system software requirements

  

Oracle's official documentation contains requirements for multiple Linux systems, please refer to the official documentation for details

The following is a list of software requirements for Fedora (RHEL 5.x)

binutils-2.17.50.0.6Compat-libstdc++- --3.2.3elfutils-libelf-0.125elfutils-libelf-devel-0.125elfutils-libelf-devel-Static-0.125GCC-4.1.2GCC-c++-4.1.2glibc-2.5- -glibc-common-2.5glibc-devel-2.5glibc-headers-2.5Kernel-headers-2.6. -Ksh-20060214Libaio-0.3.106Libaio-devel-0.3.106LIBGCC-4.1.2Libgomp-4.1.2LIBSTDC++-4.1.2LIBSTDC++-devel-4.1.2 Make-3.81Numactl-devel-0.9.8. i386 Sysstat-7.0.2  
Check to see if the system has the package installed (in fact, I know less about Linux, I do not understand this command, do not know how to calculate the line, how to calculate no, so this step I skip directly) [[email protected]/]# rpm-Q Package_name

3. Create system groups and users to install Oracle

Create an Oracle Inventory group  
Create OSDBA group [[email protected]/]# Groupadd DBA
Create Oracle Software creator -G oinstall-
Modify the password of the Oracle user [[email protected]/]# passwd Oracle

4. Configure the system kernel parameter values

Edit/etc/sysctl.conf file [[email protected]/]# vim/etc/sysctl.conf Add the following content at the bottom of the open file Fs.aio-MAX-NR =1048576Fs.file-max =6815744Kernel.shmall=2097152Kernel.shmmax=536870912Kernel.shmmni=4096Kernel.sem= - 32000  -  -Net.ipv4.ip_local_port_range=9000 65500Net.core.rmem_default=262144Net.core.rmem_max=4194304Net.core.wmem_default=262144Net.core.wmem_max=1048586change the current system kernel parameter value (let/etc/sysctl.conf immediate effect) [[email protected]/]# sysctl-P

5. Check Oracle Installation User (Oracle) resource Limitations

Modify the/etc/security/limits.conf  file /etc/security/limits.conf  Add the following at the bottom of the open file  Oracle              Soft    nproc   2047  Oracle              hard    nproc    16384  Oracle              Soft    nofile    Oracle hard    nofile   65536  oracle              soft    stack   10240

6. Create the directory required to install Oracle software

[Email protected]/]# mkdir-p/home/oracle_11/app/  -R oracle:oinstall/home/oracle_11/app/    775 /home/oracle_11/app/

7. Configure the environment where Oracle installation User (Oracle) is installed

Edit/home/oracle/. Bash_profile
[Email protected]/]# vim/home/oracle/The . Bash_profile add the following content to the open file Umask022Export Oracle_base=/home/oracle_11/App Export Oracle_home= $ORACLE _base/oracle/product/11.2.0/db_1 Export Oracle_sid=ORCL--Oracle Instance name, can modify export PATH= $PATH: home/bin: $ORACLE _home/bin
Edit/etc/pam.d/login [[email protected]/]# vim/etc/pam.d/Login adds the following content to the open file session required/lib/security/pam_limits.so Session Required Pam_limits.so
Edit/etc/Profile [[email protected]/]# vim/etc/profile adds the following to the open fileif[$USER ="Oracle" ]; Thenif[$SHELL ="/bin/ksh" ]; Then Ulimit-P16384Ulimit-N65536 ElseUlimit-U16384-N65536fi fi

8. See if the system supports the graphical interface

See if the DISPLAY variable is set under root user  [[email protected]/]# echo $DISPLAY  

9. Start Installing Oracle Software


Enter the directory where your downloaded files are stored
[[Email protected]/]# CD/tmp [[email protected]/]# Unzip Linux_11gr2_database_1of2.zip Linux_11gr2_database_ 2of2.zip + - Oracle [[email protected] ~]$ export DISPLAY=:0 /database [[email protected] ~]$. /Runinstaller The Oracle Graphical installation interface is then launched, and the installation process is the same as in Windows

Here I would like to add that I do not know why the interface is always flashing when installing, this time you have to wait more, and my interface below the button is not appear, so I have to use the mouse to select the option to directly hit enter, just start the first step can be filled with nothing to skip, Sometimes you have to click on the lower right corner of the button area next, Zennai it is not come out, this time it is recommended that you maximize the virtual machine window, and then put the menu selection-see---immediately adapt to the client, so you will see the faint flash of next, hard point, there is always a bit to point on.

I skipped over there. The second procedure for checking a package, when the Oracle Setup program automatically lists which packages you are missing:

How can not get up, my missing is:

compat-libstdc++-33-3.2.3

elfutils-libelf-devel-0.125

glibc-devel-2.5

libaio-devel-0.3.106

sysstat-7.0.2

unixODBC-2.2.11

unixodbc-devel-2.2.11

In fact, it is missing these bags, but I do not know why he put some of the packages listed two times, I downloaded the packages and then Yum, incidentally, these packages can be downloaded on this website to: http://rpmfind.net/linux/rpm2html/search.php

In the only need to enter the English part, you can search for the package you want, all of my download from here, I will no longer be attached separately.

Oracle under Linux is in a running state after installation is complete. After restarting the machine, Oracle does not add Oracle to the Windows service as it did under Windows, and the Orcle service needs to be started manually under Linux

under Oracle User, execute the following command to  enter Sqlplus  /nolog  to connect to the database as SYSDBA and start the Oracle Database engine  SQL> Conn/ as sysdba  SQL> startup  exit Sqlplus, Run Listener  SQL> exit  $ lsnrctl Start  

You may encounter this error:sqlplus:error while loading shared libraries

The solution is: http://blog.csdn.net/wankaiming/article/details/7716662 This address has a solution, in order to prevent bloggers move, I will solve the method also copied a copy to here

Workaround: [[email protected]~]$ Sqlplus/Nologbash:sqlplus:command not found[[email protected]~]$ ln-s $ORACLE _home/bin/sqlplus/usr/binln:creating Symbolic Link '/usr/bin/sqlplus'To '/bin/sqlplus': Permission Deni Ed[[email protected]~]$ Su-Rootpassword:[[email protected]~]# ln-s $ORACLE _home/bin/sqlplus/usr/Bin[[email protected]~]# Su-Oracle[[email protected]~]$ Sqlplus/Nologsql*plus:release10.2.0.1.0-Production on Mon May One  A:Wuyi: -  theCopyright (c)1982,2005, Oracle. All rights reserved. SQL> Conn/ assysdbaconnected to an idle instance. SQL>Startuporacle instance started. Total System Global Area167772160bytesfixed Size1218316bytesvariable Size79694068Bytesdatabase Buffers83886080Bytesredo Buffers2973696bytesdatabase mounted. Database opened. SQL>

Some other configuration, such as boot startup or something I will no longer move the original text of the blogger, interested can go to Bo master the original text to see, and then write the original address: http://blog.csdn.net/westmaniac/article/details/6539487? Reload this inside is still relatively whole, I configure on to here, did not add what boot start, so I also no longer write.

Ps:

----------------------------------------------

Mirror address: [Red Hat Enterprise Linux.5.6].rhel-server-5.6-x86_64-dvd.iso---------http://pan.baidu.com/s/1mg0smYc

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.