Install Oracle10gRelease2 on RedHatLinuxAS4.0

Source: Internet
Author: User
3. Set system parameter modification # vietcsysctl. add the following code to conf: kernel. shmall2097152kernel. shmmax2147483648 (generally, you can set the maximum shared memory to half of the physical memory. If the physical memory is 2 GB, you can set the maximum shared memory to 1073741824 (1G1024*1024*1024). kern

3. Set system parameter modification # vi/etc/sysctl. add the following code to conf: kernel. shmall = 2097152 kernel. shmmax = 2147483648 (generally, you can set the maximum shared memory to half of the physical memory. If the physical memory is 2 GB, you can set the maximum shared memory to 1073741824 (1G = 1024*1024*1024) kern

3. Set System Parameters
Modify # vi/etc/sysctl. conf to add the following code:

Kernel. shmall = 2097152
Kernel. shmmax = 2147483648
(Generally, you can set the maximum shared memory to half the physical memory. If the physical memory is 2 GB, you can set the maximum shared memory to 1073741824 (1G = 1024*1024*1024 ))

Kernel. shmmni = 4096
Kernel. sem = 250 32000 100 128
Fs. file-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000
Net. core. rmem_default = 262144
Net. core. rmem_max = 262144
Net. core. wmem_default = 262144
Net. core. wmem_max = 262144
Run the # sysctl-p command after modification to make the kernel change take effect immediately.

4. Set Shell restrictions for oracle users:
A) edit the file: # vi/etc/security/limits. conf and add the following statement:
Oracle soft nproc 2047
Hard nproc 16384
Oracle soft nofile 1024
Oracle hard nofile 65536
B) edit the file: # vi/etc/pam. d/login and add the following statement:
Session required/lib/security/pam_limits.so
C) edit the file: # Add the following statement to vi/etc/profile:
If [$ USER = "oracle"]; then
If [$ SHELL = "/bin/ksh"]; then
Ulimit-p 16384
Ulimit-n 65536
Else
Ulimit-u 16384-n 65536
Fi
Fi

5. Configure the oracle user environment
Use an Oracle user to log on:
# Su-oracle
$ Vi. bash_profile


The content of the configuration file is as follows:


#. Bash_profile

# Get the aliases and functions
If [-f ~ /. Bashrc]; then
.~ /. Bashrc
Fi
# User specific environment and startup programs

Umask 022
TMP =/tmp; export TMP
TMPDIR = $ TMP; export TMPDIR
Export ORACLE_BASE =/opt/ora10
Export ORACLE_HOME =/opt/ora10/product/10.2.0.1
Export PATH = $ ORACLE_HOME/Apache/perl/bin: $ ORACLE_HOME/Apache/bin: $ PATH
Export ORACLE_OWNER = oracle
Export ORACLE_SID = oradb
Export ORACLE_TERM = xterm
Unset USERNAME

Iii. Installation Process
1. Restart the server to log on as an oracle user and start X-window for local installation.
# Su-oracle
$ Startx
(I started from Xwindow, So I skipped this step, but under root # xhost +)
Copy the Oracle10g CD file to the created installation folder (/tmp/oracle. (If the download is enabled, copy 10201_database_linux_x86_64.cpio.gz to/tmp/oracle,
1. Unzip the file: gunzip
2. Extract the file: cpio-idmv <
To the current directory)
2. Formal Installation
1) Click "Taskbar"> "application"> "System Tools"> "terminal ":
$/Tmp/oracle/runInstaller (CD to/tmp/oracle/$./runInstaller)

It is commendable that the 10g installation requires a Checking operating system certification step compared to 9i. It is particularly practical. The installation file automatically detects the required conditions. If any, the installer will report the cause to you.
2) after A short period of time, the "Select installation method" Information Window appears. Click "Advanced installation (A)". To continue the installation, click "next (N; go to the "specify product list directory and ID card" window: confirm the complete path of the product list directory (D):/oracle/oraInventory; specify the operating system group name (S): oinstall; click "next (N)" to continue installation. In the "Select installation type" window, click "Enterprise Edition (E)". To continue installation, click "next (N; go to the "specify home directory details" window. Name (M): OraDb10g_home1 path (A):/opt/oracle/product/10.2.0.1/. To continue the installation, click "next (N) "button;
3) go to the "product-specific prerequisite check" window. after a short period of inspection, the following check information window will appear. In the "Checking Network Configuration Requirements" project, select the content of the status bar and click "next (N)" to continue the installation. In the "select Configuration Options" window, click "Create Database (C )", click "next (N)" to continue the installation. In the "select database configuration" window, click "general purpose (G)". To continue the installation, click "next (N) "press the key to go to the" specify Database Configuration Options "window; settings in the database name; Global Database Name: oradb SID: oradb; database character set: Simplified Chinese ZHS16GBK; to continue the installation, click "next (N;
4) in the "select Database management options" window, click "manage Database using Database Control". To continue the installation, click "next (N; in the "specify database storage options" window, click "File System", specify the database file location:/oracle/product/10.2.0/oradata/, and click "next (N)" to continue the installation) "press the button. In the" specify backup and recovery options "window, click" do not enable automatic backup ". To continue installation, click" next (N; go to the "password of the specified database solution" window, click "all accounts use the same password", and enter the password. Click "next (N)" to continue the installation. In the "Overview" window, click "next (N)" to continue the installation. In the "installation" window, detailed installation is as follows: A. Installation part; B. copy file part; C. Connect to the data system part; D. Set the data system part;
5) enter the "Configuration Assistant" window: Configuration: Oracle Database Configuration Assistant, A new window "Database Configuration Assistant" will appear. Detailed Configuration process: A. Copying Database files; b. An Oracle instance is being created and started. C. A database is being created. After the preceding three parts are completed, a prompt window is displayed. Click OK.
6) configuration: iSQL * Plus is used to configure the auxiliary program. During the configuration process, a prompt window is displayed for executing the configuration script. Run the script on the terminal and run orainstRoot. sh script process: click "Taskbar"> "application"> "System Tools"> "terminal ",
$ Su root (converted to the root Super User Environment) Password: ****** (enter the root user Password)
#/Opt/oracle/oraInventory/orainstRoot. sh (enter the detailed path for executing the script)
Detailed operation:
#/Opt/oracle/product/10.2.0.1/root. sh (enter the detailed path for script execution)
Execution completed orainstRoot. sh, root. after the sh script is executed, close "superuser terminal" and return to the "execute configuration script" Prompt window. To continue the installation, click "OK" to go to the "installation ended" window, to exit the installer, click exit (X;

Iv. self-starting settings
Oracle 10 Gb needs to start the following services (for oracle Users)
$ Lsnrctl start
$ Dbstart
$ Emctl start dbconsole
$ Isqlplusctl start
Therefore, the following configuration is required:
By default, dbstart does not work. The following configurations are required:
1. Modify/etc/oratab
$ Vi/etc/oratab
Oradb:/opt/ora10/product/10.2.0.1: Y (changed from N to Y)
2. Copy a system-configured PFILE to the dbs directory.
# Cp/opt/ora10/admin/oradb/pfile/init. ora.2292007201045 $ ORACLE_HOME/dbs/init. ora (the $ ORACLE_HOME Path depends on the installation path)
Now you can test it.
$ Dbstart
Note: If the installation version is 10201, this error may occur:
Failed to auto-start Oracle Net Listene using/ade/vikrkuma_new/oracle/bin/tnslsnr
Modify the 78th rows of dbstart ($ ORACLE_HOME/bin/dbstart)
ORACLE_HOME_LISTNER =/ade/vikrkuma_new/oracle
ORACLE_HOME_LISTNER = $ ORACLE_HOME

$ Dbshut

Add the following code to/etc/rc. d/rc. local:
Su-oracle-c "lsnrctl start"
Su-oracle-c "dbstart"
Su-oracle-c "emctl start dbconsole"
Su-oracle-c "isqlplusctl start"

In this way, Oracle will automatically start after the server is restarted.

5. Oracle 10 Gb settings
ISQL * Plus URL: Connection address: http: // server: 5560/isqlplus
ISQL * Plus dba url: Connection address: http: // server: 5560/isqlplus/dba
Enterprise Manager 10g Database Control URL: Connection address: http: // server: 1158/em
Username: sys
Password :******
Connection identity: SYSDBA
Click "I agree" to continue logging in;
# Su-oracle
$ Startx

$ Netca enable network configuration Assistant
$ Sqlplus/nolog start sqlplus
$ Dbca start Database Configuration Assistant (DCA) and create an oracle database


Other reference urls:
Install Oracle Database 10 GB on Linux x86
Http://www.oracle.com/technology/global/cn/pub/articles/smiley_10gdb_install.html

Oracle®Database Quick Installation Guide
10g Release 2 (10.2) for Linux x86-64
Http://download-west.oracle.com/docs/cd/B19306_01/install.102/b15668/toc.htm

Installing Oracle Database 10g Release 1 and 2 (32-bit/64-bit) on Red Hat Enterprise Linux AS 4, 3, 2.1, Red Hat Fedora Core 4, 3, 1, RH 9 on x86 and x86-64 (AMD64/EM64T) Architecture

Http://www.puschitz.com/InstallingOracle10g.shtml

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.