Redhat installation oracle10g 64-bit Enterprise Edition

Source: Internet
Author: User
Tags add count end interface mkdir modify zip linux

Test by extracting Oracle software #gunzip 10201_DATABASE_LINUX_X86_64.CPIO.GZ#CPIO-IDMV < 10201_database_linux_x86_64.cpio1. Before you install the database, set up the JDK first.

2.

1) Whether the required installation package is complete # rpm-q gcc make binutils openmotif setarch libXp2) Insert the Redhat 5 installation CD, open in a folder, search for all files 3 at the end of RPM to find the missing files in step 1th, And find all the files that start with compat and load them all. Some do not need to rely on other packages, then skip, and so loaded can be installed, and then to install the rest of the can be. But LIBXP must be installed, even if the disc is not or can not be installed, but also on the Internet.

Note: Execute command 3 after logging in as root. Set the swap partition, preferably greater than or equal to your memory. In particular, swap is set to twice times your memory, less than 2G. Memory for 2~4G is set to 1~2 times. I have not tried the back, if necessary, can be online search. If swap is less than your memory, Oracle installs the test, it appears to be an error. My memory is 3G, there is a swap for 2G, so just add 2G of swap can be.

1) # grep memtotal/proc/meminfo//View Memory # grep swaptotal/proc/meminfo//View swap Space 2 If there is not enough swap space, what should I do? Please look down.

# CD/USR//Here it is recommended to build swap in/usr, you can also decide for yourself, preferably a separate partition # DD If=/dev/zero of=swap bs=1024 Count=2097152//bs is the size of the set block, which means 1 block size 1024,count is 1024*2048 (2G) #/sbin/mkswap swap//Create swap file #/sbin/swapon swap//Activate the current swap file #/sbin/swapon-s/ /See if swap activates # Vi/etc/fstab//Edit Fstab file to start automatically on startup-at end of line plus-/var/swapfile swap defaults 0 04. Modify the parameters, here I will not say more, the internet such a lot of the introduction is.

You do not have to reboot the system after modifying the kernel parameters. The minimum value is given, and if the system uses a larger value, do not change it.

1) #vi/etc/sysctl.conf at the end of the document by adding the following:

Kernel.shmmni = 4096kernel.sem = 32000 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000net.core.rme M_default=262144net.core.rmem_max=262144net.core.wmem_

default=262144net.core.wmem_max=262144 after saving, then run SYSCTL-P apply the above parameter 2) # vi/etc/security/limits.conf The last line add the following:

#use for oracle* soft nproc 2047* hard nproc 16384* soft nofile 1024* hard nofile 655363) # Vi/etc/pam.d/login line end Add the following #us E for oraclesession required Pam_limits.so4) # Vi/etc/selinux/config Change the following content selinux=disabled//oracle incompatible SELINUX5) Modify/etc /redhat-release files, so that when the installation can be passed, Oracle10 does not pay rh5# Vi/etc/redhat-release changed to:

#Red Hat Enterprise Linux Server release 5 (tikanga) Red Hat Enterprise Linux as Release 4 (Nahant Update 4)//After installing Oracle, change back to Come 5. Create a directory of users, groups, and directories where Oracle needs to be installed it is recommended to install on a separate partition or disk.

1) Create Group:

#groupadd Oinstall#groupadd dba2) to create Oracle users:

#useradd-M-G oinstall-g dba oracle3) set User password:

# passwd Oracle//Here you go, the consequence of this is that it would say this is a bad password 4 # mkdir-p/u01/app/oracle//Software Installation location 5) # Mkdir-p/u02/oradata//Data File storage location 6) # Chown-r oracle:oinstall/u017) # chown-r oracle:oinstall/u01/app/oracle//u02/oradata/8) # chmod-r 775/u01/ap p/oracle//u02/oradata///above three lines are assigned to the user's file to use the limit of 6. Configure language versions and environment variables for Oracle users NOTE: The following operation, with the Oracle user login execution, must be interface login, cannot be terminal switch 1 $ export LC_CTYPE=ZH_CN. gb2312-8//This is to avoid the installation of software when garbled, you can change the encoding format according to the error prompts at installation 2) Next, edit the/home/oracle directory. Bash_profile file:

$ vi/home/oracle/.bash_profileexport oracle_base=/u01/app/oracleexport oracle_home= $ORACLE _base/product/10.2.0/db _1export oracle_home_listner= $ORACLE _base/product/10.2.0/db_1export oracle_sid=oracleexport PATH= $HOME/bin:$ Oracle_home/bin:${path}

    export oracle_term=xtermexport tns_admin= $ORACLE _home/network/ Adminexport ora_nls10= $ORACLE _home/nls/dataexport ld_library_path= $ORACLE _home/libexport ld_library_path=${ld_ Library_path}: $ORACLE _home/oracm/libexport ld_library_path=${ld_library_path}:/lib:/usr/lib:/usr/local/ Libexport classpath= $ORACLE _home/jreexport Classpath=${classpath}: $ORACLE _home/jlibexport Classpath=${classpath}: $ORACLE _home/rdbms/jlibexport Classpath=${classpath}: $ORACLE _home/network/jlibexport threads_flag=nativeexport Temp=/app/tempexport Tmpdir=/app/tempexport LANG=ZH_CN. Utf-8unset usernameumask 022 Preparation work finished, now is doing business 7. Install Oracle 10g to download the good 10201_database_linux32.zip, put it in the/OPT directory, switch to root in the terminal, and extract the database folder # Unzip by the following command 10201_database_ Linux32.zip The Oracle user to the/opt/database directory to perform the installation:

    0) $ cd/opt/database$ export display= ": 0.0" $./ Runinstaller into the ORACLE10G installation interface 1 Select the installation type, where advanced installation (bottom) is selected. 1 2 Next page > full text reading tips: Try "←→" button, turn the page more convenient Oh!

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.