Install Oracle10g On Red attel As3 Update2 Step-by-Step

xiaoxiao2021-03-06  41

Although Oracle under the Windows platform has been installed, but there is no trial under Linux. Look at the online document, it seems that there is a lot of work such as a lot of work such as the necessary packages to check the necessary packages, check the necessary packages, and check the necessary packages, check the necessary packages, and set up a lot of work such as environmental variables. So I installed it in VMware on the weekend, and I recorded the specific steps for later reference.

OS version: Red Hat Enterprise Linux As Release3 Update2 Kernel 2.4.21-15.el (Installed Nuclear Development Tool) Oracle Version: Oracle 10.1.0.2 for Linux X86

Oracle10g download address: http://otn.racle.com/software/products/Database/oracle10g/htdocs/linuxsoft.html

Preparation installation

Check disk space

Oracle Universal Installer requires about 400M / TMP space # DF -K / TMP

If the current / TMP space is not enough, you can create a new temporary directory on other space FileSystem> / TMP # chown root.root / / tmp # chmod 1777 / / tmp # Export Temp = / # export tmpdir = /

After installing Oracle, restore to the original state # RMDIR / / TMP # unset temp # unset tmpdir

Oracle requires about 3G to space (default installation and initial library), please planning in advance.

Check memory and switching zones

View physical memory size # Grep memtotal / proc / meminfo

View exchange area size # Grep swaptotal / proc / meminfo

Installing Oracle requires a large memory and swap area, so it is best to find a machine. Oracle recommends the best memory 512M or more, SWAP 1G or more. If you just install a play, it doesn't matter if you don't matter, my virtual machine is only 384m memory and 768M SWAP.

Check package

Using instruction # rpm -qa | grep packname // where packname is the name of the package that needs to be checked

Make sure the following packages (or higher) have been installed. I can find it in the installation of the redhat.

GCC-3.2.3-34make-3.79.1-17 binutils-2.3-1 COMPAT-DB-4.0.14.5 Compat-GCC-7.3-2.96.128compat -GCC-C - 7.3-2.96.128compat-libstdc - 7.3-2.96.128compat-libstdc - Devel-7.3-2.96.128

Install RPM package # rpm -uvh packname

Add Group and User

# / usr / sbin / groupadd oinstall # / usr / sbin / groupadd dba

Establish Oracle users, its default group is OinsTall, and also members of the DBA group # / usr / sbin / useradd -g oinstall -g DBA Oracle

Modify the Password # passwd Oracle of Oracle User Before you build # id oracleuid = 500 (ORACLE) GROUPS = 500 (Oinstall), 501 (DBA)

Modify system core parameters

Edit Sysctl.conf # vi /etc/sysctl.conf

Add the following Kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.Sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000

After saving exit, do the following command to take effect (of course, restart is also available ^ - ^) # sysctl -p

Check if the above operation is correct: # / sbin / sbin / sbin / sbin / sbin / sbin / sysctl -a | grep file-max # / sbin / sysctl-max # / sbin / sysctl -a | grep ip_local_port_range

These parameters can also be directly changed / proc / sys / kernel to implement the corresponding files, please refer to http://download-west.Oracle.com/docs/html/a96167_01/pre.htm#chdhdabj

If it is a production library, due to performance, you will need to make the following settings to improve the Oracle user's Nofle user's Nofile (maximum number of file descriptors that can be opened) and NPROC (the maximum number of processes available for a single user). If you are just a test installation, you can also do it.

# vi /etc/security/limits.conf

Add the following line * Soft nproc 2047 * Hard Nproc 16384 * Soft Nofile 1024 * Hard NoFile 65536

# vi /etc/pam.d/login

Add the following line session request /LIB/security/pam_limits.so

# VI / ETC / PROFILE

Add the following: IF [$ user = "oracle"]; thenif [$ shell = "/ bin / ksh"]; lifelimit -p 16384ulimit -n 65536elseulimit -u 16384 -n 65536fifi

After that, verify # su oracle $ ulimit -a

Set an environment variable

# Su Oracle $ CD ~ $ VI .BACH_PROFILE

Add the following export ORACLE_BASE = / opt / oracleexport ORACLE_HOME = $ ORACLE_BASE / product / 10.1.0 / export ORACLE_SID = db01export PATH = $ PATH: $ HOME / bin: $ ORACLE_HOME / binexport LD_LIBRARY_PATH = $ ORACLE_HOME / lib: / usr / libexport LC_CTYPE = En_us.utf-8

Where / OPT / ORACLE should be built in advance and give appropriate permissions, simple one can set it Owner to Oracle (Chown -R Oracle.oinStall / Opt / Oracle), as an Oracle installation directory (you can plan yourself)

Confirmation and amended to take effect $ source .bash_profile Start installation

Since I use virtual machine, I put the Oracle10G (Ship.db.cpio.gz) of the Internet to the hard disk, the directory is / TMP, first as a CRC verification, so as not to download Oracle has problems. # cksum ship.db.cpio.gz

Unzip # gzip -d ship.db.cpio.gz

Unpacking Ship.db.cpio # cpio -idmv

Get the installation directory / tmp / disk1, if you have a recorder, you can engrave the directory to the CD. Here I installed from the hard drive.

# Su Oracle $ CD / TMP / DISK1 $ ./runinstaller

If the following error occurs XLIB: Connection to "localhost: 0.0" Refused by Serverxlib: Client Is Not Authorized to Connect To Server

Exception in thread "main" java.lang.internalerror: can't connect to x11 window server using "localhost: 0.0"

AT .......

Workaround: • # Xhost Access Control Disabled, Clients CAN Connect from any host. // Xhost is to enable all users to access xserve from any terminal (may have security hazards after settings); • # Xhost Yourip Yourip Being Added to Acces Control List // Xhost Yourip Enables users on IP to access xServer

So going smoothly, Welcome screen should appear, point "Next" to continue.

Specify the Group in Inventory directory and installation, use the default value, click "Next"

At this time, a window will pop up, let you open another Terminal, perform the following command as root: # /home/oracle/orainventory/orainstroot.sh

Perform the end "Continue" Continue

Next, modify the installation file path, press your actual needs to modify "Next"

Select the installation internal setting, here I choose "Enterprise Edition" installation Enterprise, "Next" continues the next step.

At this time, you will automatically check if your system meets the requirements of the installation (you can press "STOP" to skip), as follows:

hecking operating system certificationExpected result: One of redhat-2.1, redhat-3, UnitedLinux-1.0Actual Result: redhat-3Check complete The overall result of this check is:. Passed ============== ============================================================================================================================================================================================================= ======= Checking kernel parametersChecking for VERSION = 2.4.9.25; found VERSION = 2.4.21 PassedChecking for shmall = 2097152;.. found shmall = 2097152 PassedChecking for shmseg = 10; found shmseg = 4096 PassedChecking for semmsl =. 250;. found semmsl = 250 PassedChecking for semmni = 128;. found semmni = 128 PassedChecking for filemax = 65536; found filemax = 39321 PassedChecking for shmmni = 4096;. found shmmni = 4096 PassedChecking for semmns = 32000;. found semmns = 32000 . passedChecking for semopm = 100; found semopm = 32 passedChecking for shmmin = 1; found shmmin = 1 passedChecking for shmmax = 2147483648; found shmmax = 33554432 passedCheck complete The overall result of this check is:.... passed

============================================================================================================================================================================================================= =====================

Checking recommended operating system packagesChecking for make-3.79; found make-3.79.1-17 PassedChecking for binutils-2.11.90.0.8-12;.. Found binutils-2.14.90.0.4-35 PassedChecking for gcc-2.96; found gcc -3.2.3-34. Passedchecking for OpenMotiF-2.1.30-11; Found OpenMotiF-2.2.2-16. PassedCheck Complete. The Overalll Result of this check is: passed ============= ============================================================================================================================================================================================================= =========

Checking Recommended Glibc VersionExpected Result: 2.2.4.95.20check comple: 2.3.2.95.20check completion. The Overall Result of this check is: passed

============================================================================================================================================================================================================= =====================

Validating Oracle_Base Location (if set) Check Complete. The Overalll Result of this Check IS: Pass

============================================================================================================================================================================================================= =====================

Continue in the next step if all passed. Otherwise, please refer to the preparation of the installation portion to re-modify, then "Retry" reconfers until passed to the next step. Next, choose the type of establishment, here I don't build a library first. After installation, I will use DBCA to build a library or hand-made library (how to use DBCA to build a library to http://www.google.com Search the corresponding article) . So select "NEXT" after "Do Not Create A Starter Database".

"Summary" screen appears, press "Install" after confirmation.

Finally, a dialog will be popped, requiring $ Oracle_home / root.sh # $ oracle_home / root.sh as root.

friendly reminder

If an error occurs during the installation, use the Google Search the appropriate solution.

Reference article

Fenng Installing Oracle 10g on rhel as 3 step-by-stephttp: //www.dbanotes.net/oracle/install-oracle10g-rhel3.htm

Werner Puschitz's 10G installation guide http://www.puschitz.com/installingoracle10g.SHTML

Oracle Database Quick Installation Guide 10 G Release 1 (10.1) for Linux x86 http://download-west.Oracle.com/docs/html/b10813_01/toc.htm

转载请注明原文地址:https://www.9cbs.com/read-74221.html

New Post(0)