C & amp; #8203; e & amp; #8203; n & amp; #8203; t & amp; #8203; O & amp; #8203;

Source: Internet
Author: User

1. Download The oracle11zip package [cloud disk centos details]

1)linux_11gR2_database_1of2.zip

2)linux_11gr2_database204 f2.zip

2. unzip and decompress the Oracle 11g file on the terminal

Decompress the package: Copy to/usr/local/

Unzip linux_11gR2_database_1of2.zip

Unziplinux_11gr2_database204 f2.zip

3. Check and install the installation package

Run the following command on the terminal: rpm-q gcc make binutils setarch compat-db compat-gcc-c ++ compat-libstdc ++-devel unixODBC-devel libaio-devel sysstat
The result is as follows:

Vel sysstat

Gcc-4.1.2-42.el5

Make-3.81-3.el5

Binutils-2.17.50.0.6-6.el5

Setarch-2.0-1.1

Package compat-db is not installed

Package compat-gcc is not installed

Package compat-gcc-c ++ is not installed

Package compat-libstdc ++ is not installed

Package compat-libstdc ++-devel is not installed

UnixODBC-2.2.11-7.1

Package unixODBC-devel is not installed

Package libaio-devel is not installed

Package sysstat is not installed

Analysis:

The package is not installed section above indicates that this package is not installed. You can find it on the CD and install it with rpm-ivh. These packages are used in the centos installation disk; you can also directly use the yum install package to install it. The specific operations are as follows:

Yum install compat-db

Successfully Installed: compat-db.i386. 2.52-5.1 Complete!

Yum install compat .)

Installed: compat * ...... Complete!

Yum install unixODBC-devel

Successfully Installed: unixODBC-devel.i386 0: 2. 2.11-7.1 Complete!

Yum install libaio-devel

Successfully Installed: libaio-devel.i386 0: 0. 3.106-3.2 Complete!

Yum install sysstat

Installed: sysstat. i386. 0.2-1. el5 Complete!

Note: You can run the rpm-q package again as follows:

Gcc-4.1.2-42.el5

Make-3.81-3.el5

Binutils-2.17.50.0.6-6.el5

Setarch-2.0-1.1

Compat-db-4.2.52-5.1

Package compat-gcc is not installed

Package compat-gcc-c ++ is not installed

Package compat-libstdc ++ is not installed

Package compat-libstdc ++-devel is not installed

UnixODBC-2.2.11-7.1

UnixODBC-devel-2.2.11-7.1

Libaio-devel-0.3.106-3.2

Sysstat-7.0.2-1.el5

As mentioned above: there are still four software packages not installed. Ignore this. In fact, the compat package we just installed already contains. You can continue to the next step.

4. System Parameters and user and directory settings
1) system parameter settings
Terminal: vi/etc/sysctl. conf

The following content is changed for this file:

# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl (8) and
# Sysctl. conf (5) for more details.

# Controls IP packet forwarding
Net. ipv4.ip _ forward = 0

# Controls source route verification
Net. ipv4.conf. default. rp_filter = 1

# Do not accept source routing
Net. ipv4.conf. default. accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
Kernel. sysrq = 0

# Controls whether core dumps will append the PID to the core filename
# Useful for debugging multi-threaded applications
Kernel. core_uses_pid = 1

# Controls the use of TCP syncookies
Net. ipv4.tcp _ syncookies = 1

# Controls the maximum size of a message, in bytes
# Kernel. msgmnb = 65536

# Controls the default maxmimum size of a mesage queue
# Kernel. msgmax = 65536

# Controls the maximum shared segment size, in bytes
# Kernel. shmmax = 4294967295

# Controls the maximum number of shared memory segments, in pages
# Kernel. shmall = 268435456

# Below for oracle11g
Kernel. core_uses_pid = 1
Kernel. shmmax = 536870912
Kernel. shmmni = 4096
Kernel. shmall = 2097152
Kernel. sem = 250 32000 100 128
Net. core. rmem_default = 4194304
Net. core. rmem_max = 4194304
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144
Fs. file-max = 6553600
Net. ipv4.ip _ local_port_range = 1024 65000

2) add user groups and users

The terminal executes the following command:
# Groupadd dba
# Groupadd oinstall
# Useradd oracle-g oinstall-G dba
# Passwd oracle ----- password Repeat twice. Do not worry about the pop-up box such as root123.
3) create directory permissions

The terminal executes the following command:
# Mkdir-p/u01
# Chown-R oracle: dba/u01
# Chmod-R 755/u01


4) User Environment Variables

The terminal first switches the user to oracle:
Su-oracle

Terminal modify. bash_profile file:
Vi. bash_profile

The content of this file is as follows:
#. Bash_profile
# Get the aliases and functions
If [-f ~ /. Bashrc]; then
.~ /. Bashrc
Fi
# User specific environment and startup programs
PATH = $ PATH: HOME/bin
Export ORACLE_BASE =/u01/app/oracle
Export ORACLE_HOME = $ ORACLE_BASE/product/11.1.0.6
Export ORACLE_SID = orcl
Export PATH = $ PATH: $ ORACLE_HOME/bin: $ ORACLE_HOME/Apache/bin
Export TNS_ADMIN = $ ORACLE_HOME/network/admin
Export LD_LIBRARY_PATH = $ LD_LIBRARY_PATH: ORACLE_HOME/lib
Export NLS_LANG = AMERICAN_AMERICA.ZHS16GBK
Export ORA_NLS10 = $ ORACLE_HOME/nls/data
Unset USERNAME
Umask 022

5. Install oracle

Log out of root; -- remember

Enter with an oracle account, enter the directory where Oracle is located my/disk/Oracle11g-linux_x86 --- enter your database decompression directory

[Oracle @ root-bs Oracle11g-linux_x86] $ ls
Doc install response runInstaller stage welcome.html
Run./runInsaller on the terminal to install:

5.1 configure Security Update 5.1.1 configure Security Update. Select not to accept the update:

5.1.2 don't worry about it. Click yes to go to the next step: 5.2 select create and configure database for Installation Options: 5.3 Select Server class for system class: 5.4 select single instance database for installation:

5.5 select Advanced installation for the installation type:

5.6 select the product language:

5.7 select Enterprise Edition for the database version:

5.8 select the installation location, change the installation base directory to the base Directory configured by the preceding user environment variables, and change the installation directory of the software product to the software product directory configured by the preceding user environment variables, the software product catalog is not changed here, and oracle is started later, so it must be changed to the same as the user's environment variable configuration: 5.9 select the data catalog: 5.10 select general purpose for configuration type/transaction processing: 5.11 enter the Instance name and GLobal IDEntifier, consistent with the previous user environment variable configuration: 5.12 specify the configuration option 5.12.1 specify the configuration option, enable automatic configuration memory management: 5.12.2 specifies configuration options, Character Set uses default value: 5.12.3 specifies configuration options, security uses assertions all new Security Settings: 5.12.4 specifies configuration options, the instance solution does not create a database with an instance solution: 5.13 management options use DatabaseControl to manage the database: 5.14 database storage options use default value: 5.15 specify the recovery option, do not enable automatic backup: 5.16 specify the solution password 5.16.1 specify the solution password and use the same password (Ivan-tech) for all accounts: 5.16.2 if the password is not a complex password, the system will prompt that it does not conform to the recommended standard, click yes to go to the next step:

5.17 special user groups:

5.18 execute prerequisite check 5.18.1 execute the prerequisite check. If the check fails, click Cancel to execute the required conditions, and then reinstall: 5.18.2 the prompted software package has been installed (because the system is 64-bit, the software package is only installed 64-bit. If you want to pass the check, you need to install the 32-bit software package, which has little impact). Select ignore all and click Next: 5.19 Summary: 5.20 installation process 5.20.1 to start installation :. 20.2 during the installation process, configure the database: 5.20.3 after the database is installed, click OK: 5.20.4 and switch to the root user to execute two script files: -- terminal execution

5.20.5 switch to the root user and execute script 1:

5.20.6 switch to the root user and execute script 2:

5.21 after installing 5.21.1, Click CLOSE:

5.21.2 after the installation is complete, the terminal prompts the storage location of the Installation Log:

After the installation is complete, you can open https: // localhost: 1158/em to check the specific situation. The Firefox browser that comes with CentOS cannot be accessed. you can log on to other machines using IE.

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.