oracl11g installation tutorial diagram in Redhat5_linux system environment

Source: Internet
Author: User
Tags create directory dba

linux_oracl11g Installation Steps

Installation tutorial diagram of oracl11g under Linux system environment

A: Operation steps directory: 1, set up yum, install package (root user completed) 2, check the parameters/etc/sysctl.conf/etc/security/limits.conf (root user completed) 3, Create user groups and users (complete under root) 4, create directory, and change permissions (root user completed) 5, set IP address and hostname mapping/etc/hosts (root user completed) 6, set the environment variable/home/oracle/for Oracle user. Bash_profile (completed by Oracle user) 7, copy Oracle package and install (completed by Oracle user) unzip package name 8, execute two scripts in root user [[email protected] database]$ Sqlplus/as sysdba9, using the DBCA tool to create and configure a Database II: How to do the steps: First: Detect if the Yum warehouse is already configured 1: Build yum, install package (root user complete)
  1 [[email protected] ~]# Yum list all

If you enter this instruction to correctly display the RPM package list, then the Yum Warehouse has been configured to complete, and conversely, if the Yum warehouse is not installed, the following post-order steps are required;

Operation Step Two: Build YUML warehouse 1) mount the required installation CD

Virtual Machine Mount CD:

Settings → disc → path (tick at "connection")

  1#将光盘挂载到/mnt directory   2 [[email protected] ~]# mount/dev/cdrom-o loop/mnt   
2) switch to the YUM.REPO.D directory
  1 [[email protected] ~]# cd/etc/yum.repos.d/
3) Create any file name with the suffix. Repo
  1 [[email protected] ~]# VI Server.repo

4) Edit the file as follows

  1  [[email protected] ~]# VI Server.repo   2   3  [Server] 4   #名称可以任取   5  name  =red Hat Enterprise linux 6   7  #//if native, File:///mnt/Server    baseurl= 9  #//enable the Yum repository, which is enabled by default   enabled=1< Span style= "color: #008080;" > one  #//authentication set to no    Gpgcheck=0  
Procedure three: Install the required package 1) Edit the script to install the required packages
1[[Email protected] ~]# VI yum.sh2 3Yum Install binutils*-y4 5Yum Install compat*-y6 7Yum Install elfutils*-y8 9Yum Install gcc*-yTen  OneYum Install glibc*-y A  -Yum Install kernel*-y -  theYum Install ksh*-y -  -Yum Install libaio*-y -  +Yum Install libgcc*-y -  +Yum Install libgomp*-y A  atYum Install libstdc*-y -  -Yum Install make*-y -  -Yum Install sysstat*-y - 
2) Modify permissions to execute scripts
  1 [[email protected] ~]# chmod 755 yum.sh
3) Execute the script to install the required packages
  1 [[email protected] ~]#/yum.sh
Operation Step Four: Modify the relevant system Configuration 1: Modify etc/sysctl.conf

1) Append the following to the tail of the/etc/sysctl.conf file

1[[Email protected] ~]# vi/etc/sysctl.conf2 3FS.AIO-MAX-NR = 10485764 5Fs.file-max = 68157446 7Kernel.shmall = 20971528 9Kernel.shmmax = 4294967295Ten  OneKernel.shmmni = 4096 A  -Kernel.sem = 250 32000 100 128 -  theNet.ipv4.ip_local_port_range = 9000 65500 -  -Net.core.rmem_default = 262144 -  +Net.core.rmem_max = 4194304 -  +Net.core.wmem_default = 262144 A  atNet.core.wmem_max = 1048576 - 

2) Save and exit to make the changes effective

  1 [[email protected] ~]#/sbin/sysctl-p
2. Modify/etc/security/limits.conf

Append the following to the tail of the/etc/secuirty/limits.conf file to set the user limit

  1 [[email protected] ~]# vi/etc/security/limits.conf  2  3 Oracle Soft Nproc 2047  4  5 Oracle Hard Nproc 16384  6  7 Oracle Soft Nofile 1024x768  8  9 Oracle hard nofile 65536   Stack 10240 
3. Modify/etc/pam.d/login

Append the following to the tail of the/etc/pam.d/login file to modify the login configuration

  1 [[email protected] ~]# vi/etc/pam.d/login

Session Required Pam_limits.so

4. Turn off SELinux function
  1 [[email protected] ~]# vi/etc/selinux/config
  1 selinux=disabled//Set here to Disabled is off Selinx
5. Modify the/etc/hosts file

You need to ensure that the hostname of the three places is the same:

Long host name in/etc/hosts

Host name displayed using the hostname directive

Host name in/etc/sysconfig/network//change of hostname requires restart of machine

To view native IP using the ifconfig directive

  1 [[email protected] ~]# ifconfig

Ensure IP addresses in IP and/etc/hosts files here


1): View native Hosts file information

  1   [[Email protected] ~] # hostname

2): Modify the Hosts file information

  1 [[email protected] ~]# vi/etc/hosts
  1 localhost.localdomain localhost  2  3 #本机IP address//long hostname//short host name   4  5 oracle.example.com Oracle  6
Step Five: Create the user and user groups, create the installation directory 1. Create DBA, Oinstall user Group
1 #以root User Login2 #添加dba User Group (ORACLE Administrative Group)3[[Email protected] ~]# Groupadd DBA4  #添加oinstall User Group (ORACLE installation Group)5[[Email protected] ~]# Groupadd Oinstall6 #创建oracle Users and join groups7[[Email protected] ~]# useradd-g oinstall-g dba Oracle8 #修改oracle User's password9[[Email protected] ~]# passwd OracleTen 
2. Create the installation directory
  1  #切换到根目录   2 [[email protected] ~]# cd/  3#创建安装目录   4 [[email] Protected]/]  5  #修改安装目录的权限   6 [[email protected]/]  # chown oracle:oinstall/u01/app/oracle/  7
Operation Step Six: Modify environment variable 1) append the following lines to the environment variables of the Oracle user
1[Email protected] ~]$ Vi. bash_profile2 #//DB Instance name3Export ORACLE_SID=ORCL4 #//oracle installation directory5Export Oracle_base=/u01/app/oracle6 #//oracle Home Directory7Export Oracle_home= $ORACLE _base/product/11.2.0/db_18 #//Search Path9Export path= $PATH: $ORACLE _home/binTen  One #//The following content may not be written A #//specifying the type of Oracle Terminal installation -Export Oracle_term=xterm -  theExport ld_library_path= $LD _library_path: $ORACLE _home/lib -  - #设置临时的库文件的path Path -  +Export classpath= $ORACLE _home/jre:oracle_home/jlib: $ORACLE _home/rdbms/jlib -  + #设置java lib file search path A 
2) Save and make the parameters effective
  1 [[email protected] ~]$ source. bash_profile

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

Operation VII: Upload and Unzip oracle11g installation package 1: Upload:

1): Use the mouse to ssh2 the Connection tab above right click "Connect sftp Tag"

2): In the Sftp tab: Upload files with put filepath

2: File Decompression

1): Log in with root: Move file to Oracle user's/home/oracle directory and set permissions

2): Switch to Oracle User: Extract Oracle 11g installation package

Similarly: Unzip the third package

Action Eight: Install Oracle 11g database 1: Install Xme30.exe software

Software Download Road: Link: http://pan.baidu.com/s/1gf5cbKn Password: M1PN

1): The installation step is always next

2): Registered LIC

3): Start tool

2:oracle 11g Installation Step diagram

1): Call Oracle 11g installation GUI (log in with Oracle user)

2): Oracle 11g Database Graphics installation

Figure 1:

Figure 2:


Figure IV:

Figure 5:

Figure 6:

Figure 7:

Set permissions information for an app folder

Figure 8:

Figure 9:

Create a Oper group with the root user

([[email protected] u01] folder How to enter, please refer to the above Figure 7 "Set the App folder permissions Information" Step)

Figure 10 Start detection

Detection success

How to modify configuration file parameter information (such as interface) if the detection fails

Click the location of the red box to enter

After a successful re-detection, click "Install" to install the database

Figure 11: Start the installation (long wait)

Figure 12: Command execution when the interface is entered

Command execution under the current directory under the root user [[email protected] u01] U01

Figure 13: Click "OK" button, enter the interface, click the ' Close ' button to close the interface, the database installation is complete

3) Oracle 11g DB Instance Graphics installation

Figure 1: Executing the DBCA command to invoke the DB instance graphical installation interface in [[email protected] database] Directory

Figure 2:next

Figure 3: Next step

Figure 4:

To view the SID in an environment variable

After entering the SID, click Next

Figure 5: Making Listener settings


①: Open a command window in a Linux virtual machine to execute a command such as

②: Then execute the command, bring up the Listener Setup graphical interface, and then go all the way next to the end

③:listener parameter setting, all the way to set the default to the next step;

Switch to the Windows system in the Oracle 11g instance installation graphical interface

Figure 6:oracle 11g Instance login user account/Password settings

Figure 7:

Figure 8: Default Next

Figure 9:

Figure 10:

Figure 11:


If the following error occurs when the size of the memory is resized too large, the workaround is as follows

Workaround: Modify the size of the/DE/SHM

At this point, you can switch to other options.

Figure 12:

Click "OK" to end the installation

To install an instance

oracl11g installation tutorial diagram in Redhat5_linux system environment

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.