Linux System (X64) installation oracle11g Complete installation graphics tutorial with basic operation

Source: Internet
Author: User
Tags gpg iptables ssh ftp ssh port

One: View the local SSH serviceLinux system to install the start SSH service, the following version of the CentOS Linux system as an example: 1. Check if the SSH package Rpm-qa |grep SSH2 is installed. No SSH direct Yum installs yum install Openssh-server3. Check to see if the SSH service is booting up Chkconfig--list sshd4. Set up boot SSH service chkconfig--level 2345 sshd on5. Restart the next SSH Services service sshd restart6. Verify that the 22 port NETSTAT-ANTP |grep sshd#22 port is the default SSH port and that the SSH service is enabled Two: View local IPTerminal, enter ifconfig command   1 install system   All English 2 Remove the firewall and selinuxchkconfig  iptables offchkconfig ip6tables Offchkconfig abrt-ccpp offchkconfig auditd offchkconfig certmonger off ----not executed successfully chkconfig cups offchkconfig Postfix off  Modifying a configuration file requires restarting the machine: Modifying the/etc/selinux/config file will selinux=enforcing change to selinux=disabled 3 installation yum  System installation yum  set up the Yum folder under/home/soft/, copy the system CD to this directory  --first install three packages   CD/HOME/SOFT/YUM/PACKAGESRPM-IVH DELTARPM-3.5-0.5.20090913GIT.EL6.X86_64.RPMRPM-IVH PYTHON-DELTARPM-3.5-0.5.20090913GIT.EL6.X86_64.RPMRPM-IVH Createrepo-0.9.9-17.el6.noarch.rpm  createrepo . --run  CD/ETC/YUM.REPOS.D CP rhel-source.repo /etc/yum.repos.d/zj.repo --to change the original repo file name MV Rhel-source.repo rhel-source.repo111  VI zj.repo [rhel-source]name=red Hat Enterprise Linux $releasever-$basearch-sourcebaseurl=file:///home/soft/ Yum/enabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-redhat-release [rhel-source-beta]name= Red Hat Enterprise Linux $releasever beta-$basearch-sourcebaseurl=file:///home/soft/yum/enabled=1gpgcheck=1gpgkey=file :///etc/pki/rpm-gpg/rpm-gpg-key-redhat-beta,file:///etc/pki/rpm-gpg/rpm-gpg-key-redhat-release--clear Yum Cache yum Clean all   3 installation FTP RPM-IVH vsftpd-2.2.2-11.el6.x86_64.rpm  or yum install vsftpd  Chkconfig vsftpd on service vsftpd restart --Modify etc/vsftpd directory   ftpuser  user_list  Remove root  vsftpd.conf  Remove anonymous #anonymous_enable=yes  --passive mode  passive mode  4 Install VNC Rpm-qa | The grep vnc  --vnc service port is 1 RPM-IVH tigervnc-server-1.1.0-5.el6.x86_64.rpm -- You need to install the following package first Xorg-x11-fonts-misc is needed by TIGERVNC-SERVER-1.1.0-5.EL6.X86_64 RPM-IVH xorg-x11-fonts-misc-7.2-9.1.el6.noarch.rpm--or direct yum installs Yum install tigervnc-server --modify the configuration file to add the user name to the configuration file:   (Note: "User name" here refers to the name of the Linux system User)  [[email protected] ~]# vi/etc/sysconfig/vncservers # # Uncomment the line belowTo start a VNC server on display:1 # as my ' myusername ' (adjust this to your own). You'll also # need to set a VNC password; Run ' man vncpasswd ' to-see how #-do that. # # does not RUN the this SERVICE if your the local area network is&nbsp ; # untrusted! For a secure to-do, using VNC, see # http://www.uk.research.att.com/vnc/sshvnc.html>.  # vncservers= " 1:myusername "  # vncservers=" 1:gavin 2:john "# Use the method for more user vncservers=" 1:root 2:root 3:ro OT "  # vncserverargs[1]="-geometry 800x600 " vncserverargs[1]="-geometry 1024x768 " -- Set Password vncpasswd  4.93  bjsqrac1  4.94  bjsqrac2  --start service   start VNC service  [[ Email protected] ~]#/sbin/service vncserver start  --Modify desktop system  CD/ROOT   CD ~/.vnc / [[email protected]. vnc]$ VI xstartup #!/bin/sh  # Uncomment the following of lines for Normal desktop:  #unset Session_manager #exec/etc/x11/xinit/xinitrc  [-x/etc/vnc/xstartup] && exec/etc/vnc/xstartup [-R $ home/. Xresources] && Xrdb $HOME/. Xresources xsetroot-solid grey vncconfig-iconic &  #xterm-geometry 80x24+10+10-ls-title "$ Vncdesktop Desktop "& gnome-session & #set Starting Gnome desktop  #startkde & #kde desktop # TWM & #Text interface  edit/root/.vnc/xstartup[[email protected] ~]# vi/root/.vnc/xstartup   & nbsp; Remove the comment from the following line: Unset session_manager   perform the following command to restart VNC server:[[email protected] ~]# vncserver-kill:1  [[email protected] ~]# vncserver:1 --restart vncserver [[email protected] ~]#/sbin/service Vncserver restart chkconfig vncserver on--vnc auto start   

2 shutting down the Linux firewall

--Modify the/etc/selinux/config to ensure that SELinux is set to Disabled
--Close iptables:
Service Iptables Stop
Service Ip6tables Stop
/sbin/chkconfig iptables off
/sbin/chkconfig Ip6tables off

2 checking the installation of the package

Rpm-q binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel GLib C-headers Libaio libaio-devel libgcc libstdc++ libstdc++-devel ksh make libxp openmotif22 sysstat smartmontools unixODBC u Nixodbc-devel


--System installation package
Yum Install compat-libstdc++-33
Yum Install Elfutils-libelf-devel
--Install with Yum below
Yum Install GCC
Yum Install gcc-c++
Yum Install Glibc-devel
Yum Install Glibc-headers
Yum Install Libaio-devel
Yum Install Libstdc++-devel
Yum Install Ksh
Yum Install Libxp
Yum Install UnixODBC
Yum Install Openmotif22


Yum Install Unixodbc-devel

--Installation and libcap of all relevant packages
Yum Install libcap.i686
Yum Install libcap-devel.x86_64
Yum Install libcap-devel.i686
Yum Install libcap-ng.i686
Yum Install libcap-ng-devel.i686

--linux 6 Check when some i386 package needs to install, but the installation of i386 when prompted to have a high version exists, can not install, I take the ignore, continue to install, but to ensure that the high version of the package must be installed

First, modify the operating system core parameters

Under root user, perform the following steps:

1) Modify the user's shell limit, modify the/etc/security/limits.conf file

Input command: vi/etc/security/limits.conf, press I to enter edit mode, add the following content to the file.

oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536

Press ESC when editing is complete and enter ": Wq" to eject

2) Modify the/etc/pam.d/login file, enter the command: Vi/etc/pam.d/login, press the I key to enter the editing mode, the following content to join the file.

session required /lib/security/pam_limits.so session required pam_limits.so

Press ESC when editing is complete and enter ": Wq" to eject

3) Modify the Linux kernel, modify the/etc/sysctl.conf file, enter the command: vi/etc/sysctl.conf, press the I key to enter the editing mode, add the following content to the 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

Press ESC when editing is complete and enter ": Wq" to eject

4) to make the/etc/sysctl.conf change take effect immediately, execute the following command. Input: Sysctl-p display as follows:

linux:~ # sysctl -p net.ipv4.icmp_echo_ignore_broadcasts = 1 net.ipv4.conf.all.rp_filter = 1 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

5) Edit/etc/profile, enter the command: Vi/etc/profile, press the I key to enter the editing mode, the following content to join the file.

if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi

Press ESC when editing is complete and enter ": Wq" to eject

6) Create the relevant users and groups as the owner of the software installation and Support group.

To create an Oracle user and password, enter the command:

/USR/SBIN/GROUPADD-G 501 Oinstall
/USR/SBIN/GROUPADD-G 502 DBA

useradd -g oinstall -g dba -m oracle passwd oracle

Then will let you enter the password, the password any input 2 times, but must be consistent, enter the confirmation.

7) Create database software directory and data file directory, directory location, according to their own situation, pay attention to disk space, here I put it under the Oracle user, for example:

Enter the command:

mkdir /home/oracle/app mkdir /home/oracle/app/oracle mkdir /home/oracle/app/oradata mkdir /home/oracle/app/oracle/product

8) Change Directory owner is owned by Oracle user, enter command:

chown -R oracle:oinstall /home/oracle/app

9) Configure the environment variables for the Oracle user, first, switch to the newly created Oracle user,

Input: Su–oracle, and then directly in the input: Vi. bash_profile

Press I to edit. Bash_profile, enter edit mode to add the following:

export ORACLE_BASE=/home/oracle/app export ORACLE_HOME=$ORACLE_BASE/oracle/product/11.2.0/dbhome_1 export ORACLE_SID=orcl export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib

Press ESC when editing is complete and enter ": Wq" to eject

Second, the installation process

1) When the above system requires that the operation is complete, log off the system and log in with the Oracle user on the graphical interface. First copy the downloaded Oracle installation package to Linux and copy it with other SSH FTP tools.

Open a terminal and run the unzip command to extract the Oracle installation files, such as:

Enter the command:

After the decompression is complete, the CD enters its extracted directory.

Enter the command:

CD Database

Use the LS command to view the files contained in the extracted database, such as:

2) Perform the installation, enter the command:./runinstaller

After the installation is complete, you will be prompted to execute 2 shell scripts with root privileges. Follow the path to its prompt to find its location, such as: Mine is/home/oracle/app/oracle/product/11.2.0/dbhome_1/root.sh.

And/home/oracle/orainventory/orainstroot.sh a new terminal, enter the command:

su – root cd /home/oracle/app/oracle/product/11 .2.0 /dbhome_1 sh root.sh cd /home/oracle/oraInventory sh orainstRoot.sh

Linux System (X64) installation oracle11g Complete installation graphics tutorial with basic operation

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.