Oracle 11g installation diagram and related dependent libraries in SUSE 11

Source: Internet
Author: User

Oracle 11g installation diagram and related dependent libraries in SUSE 11

Installation environment

  • Linux Server: SUSE11-linux 64/32-bit
  • Oracle Server: Oracle11gR2 64/32-bit

System Requirements

  • Memory: physical memory must be higher than 1 GB
  • Swap space: generally 2 times the memory. For example, you can set the swap partition size to 3 GB for 1 GB memory.
  • Hard Disk: 5 Gb or above

Installation Package

To select the correct ORACLE version, we need to first understand some basic information about the Server: The system name is SUSE Linux Enterprise Server 11 (x86_64), so our ORACLE Installation Package is: release.
On SUSE 11, the installation of Oracle 11g must rely on the following packages (the official Oracle Installation documentation can be queried based on the system version ):
Binutils-2.19
Gcc-4.3
Gcc-c ++-4.3
Glibc-2.9
Glibc-devel-2.9
Ksh-93t
Libstdc ++ 33-3.3.3
Libstdc ++ 43-4.3.3_20081022
Libstdc ++ 43-devel-4.3.3_20081022
Libaio-0.3.104
Libaio-devel-0.3.104
Libgcc43-4.3.3_20081022
Libstdc +-devel-4.3
Make-3.81
Sysstat-8.1.5
You can run the following command to check whether these packages are installed:

Rpm-qa | grep *

For example:
Rpm-qa | grep binutils

The required version must be greater than the above version, if not, please find the package and install, the above packages can be found in the SUSE installation disk:/suse/x86-64.

---------------------------------###

Or the following method (from the Network)

Check the dependency package before installation -- Download if necessary:

On the FTP server No. 1 of the customer's house:

------------------------------------------ Split line ------------------------------------------

FTP address: ftp://ftp1.bkjia.com

Username: ftp1.bkjia.com

Password: www.bkjia.com

Install the Oracle 11g diagram and related dependent Libraries under LinuxIDC.com/2016/SUSE 11 on April 9, January \

For the download method, see

------------------------------------------ Split line ------------------------------------------

If no dependency package is installed, install it.

System Configuration

1. perform the following steps under the root user:

1) modify the user's SHELL restrictions and modify/etc/security/limits. conf file, enter the command: vi/etc/security/limits. conf, press the I key to enter the editing mode, and add the following content to the file

Oracle soft nproc 2047

Hard nproc 16384

Oracle soft nofile 1024

Oracle hard nofile 65536

2) Modify/etc/pam. d/login file, enter the command: vi/etc/pam. d/login, press I to enter the editing mode, add the following content to the file, Press Esc after editing, and enter ": wq" to log out. (If the configuration is not complete, the system prompts that the space is insufficient during installation, and the installation cannot reach xxx... Cannot be installed ),

Session required/lib/security/pam_limits.so
Session required pam_limits.so
After editing, Press Esc and enter ": wq" to save the disk and exit.

3) modify the Linux kernel and the/etc/sysctl. conf file.

Fs. file-max = 6815744

Fs. aio-max-nr = 1048576

Kernel. shmall = 2097152

Kernel. shmmax = 2147483648

Kernel. shmmni = 4096

Kernel. sem = 250 32000 100 128

Net. ipv4.ip _ local_port_range = 9000 65500

Net. core. rmem_default = 4194304

Net. core. rmem_max = 4194304

Net. core. wmem_default = 262144

Net. core. wmem_max = 1048576

4) to make the/etc/sysctl. conf change take effect immediately, run the following command.

Input: sysctl-p

5) edit/etc/profile, enter the command vi/etc/profile, press the I key to enter the editing mode, and add the following content to the file

If [$ USER = "oracle"]; then

If [$ SHELL = "/bin/ksh"]; then

Ulimit-p 16384

Ulimit-n 65536

Else

Ulimit-u 16384-n 65536

Fi

Umask 022

Fi

After editing, Press Esc and enter ": wq" to save the disk and exit.

6) Create related users and groups as owners of software installation and support groups.

Create a user group and enter the following command:

Groupadd oinstall
Groupadd dba

(Create users and groups)

Create an Oracle user and password, and enter the following command: (grant permissions)

Useradd-d/home/oracle-g oinstall-G dba-m oracle

Passwd oracle

The password will be entered twice, but the password must be consistent. Press enter to confirm.

7) Create a database software directory, a data file storage directory, and a directory location based on your needs. Pay attention to the disk space. Here I will put it under the oracle user, for example:

Enter the following command:

Mkdir-p/opt/oracle

Mkdir-p/opt/oracle/oradata

8) change the directory owner to be owned by an Oracle user and enter the following command:

Chown-R oracle: oinstall/opt/oracle

Chmod 755-R/opt/oracle

Perform the following steps under an oracle user:

9) to configure the environment variables of oracle users, first switch to the new oracle user

Input: su-oracle, and then directly enter: vi/home/oracle/. bash_profile,

Press I to edit. bash_profile (Note: You can also configure it in the. profile or. bashrc file under the oracle installation path), enter the editing mode, and add the following content:

Umask 022

Export ORACLE_BASE =/opt/oracle

Export ORACLE_HOME = $ ORACLE_BASE/product/11.0.1/db_1

Export ORACLE_SID = orcl

Export PATH = $ ORACLE_HOME/bin: $ PATH

Export LC_ALL = "en_us"

Export LANG = "en_us"

Export NLS_LANG = "AMERICAN_AMERICA.ZHS16GBK"

Export NLS_DATE_FORMAT = "YYYY-MM-DD HH24: MI: SS"

After editing, Press Esc and enter ": wq" to save the disk and exit.

Configure oracle user environment variables

Oracle @ linux-unvz: ~> Vi. bashrc

Export ORACLE_BASE =/opt/oracle

Export ORACLE_HOME = $ ORACLE_BASE/product/11.0.1/db_1

Export ORACLE_SID = orcl

Export PATH = $ PATH: $ HOME/bin: $ ORACLE_HOME/bin

Export LD_LIBRARY_PATH = $ ORACLE_HOME/lib:/usr/lib

Export NLS_LANG = "SIMPLIFIED CHINESE_CHINA.AL32UTF8"

Save and exit;

Install the oracle System

1. After all the required operations are completed, log out of the system and log in as an oracle user on the graphic interface. First, copy the downloaded Oracle Installation Package to linux. We recommend that you use Xmanager or other ftp tools,

Upload the oracle_11gr2_database.zip package to/opt/oracle using the oracle user.

(The following two steps must be performed under the root user)

Extract

Unzip linux.x64_11gR2_database_1of2.zip

Unzip linux.x64_11gr2_database5of2.zip

Grant the folder permissions that have just been extracted

Chmod 777-R/opt/oracle/database/

2. Install oracle database software on oracle users

Enter the following command:
Cd/opt/oracle/database
./RunInstaller

3. Solve the Garbled text (the character set is different, and Garbled text may occur during installation at this time. The solution is as follows :)

Enter the following command:

Export LANG = en_US

If an error is reported when the GUI is enabled, the solution is as follows:

Linux-unvz :~ # Vi/etc/hosts

192.168.100.84 hostname

Installation Process (list the items that need to be noted. The other items are the next step by default)

 

> We recommend that you select only install software.

> This corresponds to the environment variables ORACLE_BASE and ORACLE_HOME (the figure is for reference only)

Oracle Base:/opt/oracle

Software Location:/opt/oracle/product/11.0.1/db_1

 

> The path matches the path of oracle Installation (this figure is for reference only)

Inventory Directory:/opt/oracle/oraInventory

 

> Select ignore all

Switch to the root user, execute orainstRoot. sh and root. sh, and then click OK

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • 3
  • Next Page

Related Article

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.