LINUX RHEL as 4 + oracle10g installation detailed

Source: Internet
Author: User
Tags dba locale

The first part: LINUX RHEL as 4 installation

To run the prompt:

1) Press the front and back of the keyboard to adjust the position of the cursor

2) tick the brackets in the front of the options or remove the * number, and select this option to use the SPACEBAR to operate

3) in the vi edit the file, the keyboard press a, you can modify the file content, press ESC to cancel, and then press : Wq, and then press ENTER, you can save the file

4) All operations in this article should pay attention to the case and the space , otherwise the operation will not succeed

5) can be ctrl+alt+f1(or F2,F3,F4) to switch between different processes (this is the benefit of multithreading, you do different things through a simultaneous)

1, insert the first disc into the CD-ROM drive, the Linux installation interface appears

Enter Linux text at boot, press ENTER

2, enter the CD FOUND interface

Used to check the correctness of the disc, if you can determine the error, you can directly select Skip, press ENTER

Note that if it is detected, then it must be a failed installation.

3, enter red HAT ENTERPRISE LINUX as interface

Select OK and press ENTER

4, enter language SELECTION interface

Select 中文版 and press ENTER at OK

5, enter keyboard SELECTION interface

Select US and press ENTER at OK

6, go to disk partitioning SETUP interface

Select Auto Partitioning, press ENTER

7, enter automatic partitioning interface

Select the Remove all partitions on the This SYSTEM option and press ENTER at OK

Pop up the Ask box and press ENTER at Yes

8, enter the Parttitioning interface

Default selection, press ENTER at OK

9, enter the BOOT LOADER CONFIGURATION interface

Select Use GRUB BOOTLOADER and press ENTER at OK

10, go to the next BOOT LOADER CONFIGURATION interface

Default selection, press ENTER at OK

11, enter the third BOOT LOADER CONFIGURATION interface

Use a space to play the * number in parentheses in front of the usage A GRUB password

Enter Password Rezinrezin

12, enter the fourth BOOT LOADER CONFIGURATION interface

Default selection, press ENTER at OK

13, enter the fifth BOOT LOADER CONFIGURATION interface

Default selection, press ENTER at OK

14, enter the network CONFIGURATION for ETH0 interface

Remove configration using the parentheses in the DHCP (use space to go *)

IP address:192.168.0.244

NET mask:255.255.255.0

Press ENTER at OK

Enter the MISCE laneas NETWORK settings interface

gateway:192.168.0.240

PRIMARY nameserver:192.168.0.253

The following two lines can not be entered, press ENTER at OK

The above address according to different circumstances, according to the actual environment input

15, enter hostname CONFIGURATION interface

In the horizontal line behind the manually.

Enter Rezinserver and press ENTER at OK

16, enter the firewall interface

Select Enable FIREWALL and press ENTER at OK

17, enter the security enhanced Linux interface

Select active Default OK, press ENTER

18, enter language support interface

Select Chinese (P.R. of China), press space, place the * number in the box before the option, and press ENTER at OK

19, go to default LANGUAGE interface

Select Chinese (USA), stop here, and press ENTER at OK

20, enter the time ZONE selection interface

Select Asia-shanghai, the cursor stops here, press ENTER at OK

21, go to root PASSWORD interface

Enter Rezinrezin and press ENTER at OK

22, go to the package DEFAULT interface

Customize software SELECTION The parentheses in front of the

Enter the interface of the selection package group

Select package except for the default, you must have the following packages:

@ X Window System (default)
@ GNOME Desktop Environment (default)
@ KDE Desktop Environment
@ Editors
@ Engineering and Scientific
@ Graphical Internet
@ text-based Internet (default)
@ Authoring and Publishing
@ Server Configuration Tools (default)
@ Web Server (default)
@ Windows File Server (default)
@ Development Tools
@ X Software Development
@ GNOME Software Development
@ KDE Software Development
@ Legacy Software Development
@ Administration Tools (default)
@ System Tools

@ Printing Support (default)

23, enter installation to BEGIN interface

Default selection, press ENTER at OK

24, enter required INSTALL MEDIA interface

Select Continue press ENTER

25, start the installation, wait ...

26, appear prompt to put 2nd disc, press ENTER

27, appear prompt to put 3rd disc, press ENTER

28, appear prompt to put 4th disc, press ENTER

29, appear prompt to put 1th disc, press ENTER

30, the complete interface appears

Select reboot, press ENTER

31, the system automatically re-up, into the graphical welcome interface

Click Next

32, go to the next interface

Select Yes,i AGREE to the LICENSES agreement option

Click Next

33, enter the date and time interface

Set the date and time, click Next

34, enter Display interface

Set the resolution, click Next

35, enter the red HAT LOGIN interface

For registering Linux, you can not register

Enter in login and PASSWORD, click Next

Waiting for a while will pop up a question dialog, select No (no longer try to register)

36, enter the system USER interface

Enter your username and password and click Next

User name Rezin

Password Rezinrezin

37, enter the sound CARD interface

Click Next directly

38, enter additional CD interface

Click Next directly

39, enter the FINISH SETUP interface

Click Next directly

40, Installation Complete

Switch user with Ctrl+alt+f1, enter username root, password Rezinrezin

Modify the self-boot file, execute the command

# Vi/etc/inittab

Change 5 in Id:5:initdefault to 3 (3 is Text interface start, 5 is Windows interface boot)

System re-start, can enter Linux in the text interface

Execute command

# Shutdown–r Now

The entire Linux installation process is over.

Part II: oracle10g for LINUX as 4 installation

Configuring Redhat as 4

Operating system version:

Red Hat Enterprise Linux as Release 4

Follow the general installation of the operating system, remember to install the development tools (GCC and other necessary tools).

Necessary Hardware Information check

Check content minimum Check command reference

Physical Memory 1G # grep Memtotal/proc/meminfo

Swap Space 1.0 GB or twice times memory size # grep Swaptotal/proc/meminfo

/tmp space-MB # DF-K/tmp

Software Required Space 2.5 GB # df-k (the larger the better, if the formal system, should be detailed planning)

Database file 1.2 GB # df-k (the larger the better, the better, if the formal system, should be detailed planning)

After you have checked the above items, you should modify the core parameters. Execute the following command:

#vi/etc/sysctl.conf

#注释:

#表示使用root用户操作, $ means operation with an Oracle user. The following section of the prompt indicates the command to be entered, as follows.

At the end of the file, 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

Net.core.rmem_default = 262144

Net.core.rmem_max = 262144

Net.core.wmem_default = 262144

Net.core.wmem_max = 262144

After editing, save, execute #/sbin/sysctl-p command action to make the changes we made take effect.

Note: The above kernel.shmmax/kernel.sem is a typical core parameter configuration. You may need to make the appropriate changes to your actual environment.

Set the shell limits for Oracle users

In general, for performance reasons, the following settings are required to improve the Oracle user's Nofile (maximum number of file descriptors that can be opened) and Nproc (the maximum number of processes available to a single user)

# vi/etc/security/limits.conf

# at the end of the file, add the following:

* Soft Nproc 2047

* Hard Nproc 16384

* Soft Nofile 1024

* Hard Nofile 65536

Note: Yes * followed by a space

Add the following line to the # Vi/etc/pam.d/login file:

Session required/lib/security/pam_limits.so

To edit the/etc/profile file, add the following section:

Lc_ctype=zh_cn. GB2312

Lc_all=zh_cn

Lang=zh_cn. GB2312

Note: Above three lines (note = cannot have spaces on both sides)

Export Lc_ctype Lc_all LANG

Note: The above 4 lines is the control of the Linux operating system language version, add the above 4 lines, Linux will become a Chinese version, if not added is the English version, the proposal does not add, the English version is better

If you like the Chinese version can also be added, according to individual circumstances

if [$USER = "Oracle"]; Then

if [$SHELL = "/bin/ksh"]; Then

Ulimit-p 16384

Ulimit-n 65536

Else

Ulimit-u 16384-n 65536

Fi

Fi

Save exit

Perform # Ulimit verification.

Check and install related patches

To install Oracle on this version of Rhel, you must have several packages. Verify that the following RPM packages are installed:

make-3.79
binutils-2.11
Openmotif-2.2.2-16
Setarch-1.3-1
compat-db-4.0.14.5
compat-gcc-7.3-2.96.122
compat-gcc-c++-7.3-2.96.122
compat-libstdc++-7.3-2.96.122
compat-libstdc++-devel-7.3-2.96.122

# Rpm-qa | grep compat

# Rpm-qa | grep openmotif

# Rpm-qa | grep make

# Rpm-qa | grep binutils

# Rpm-qa | grep setarch

In general, there is no shortage of packages. If the individual packages are not installed, install the System CD mount, locate the specific package (most on the third disc), and then use the following command to install the appropriate package, the package name may be slightly different, may be due to the differences in the version caused by

# RPM-IVH compat.....rpm

It is important to note that there is a dependency between these packages, and the order of precedence is good. Otherwise, errors that cannot be installed are reported. In addition, it is best to verify the GCC and glibc versions (required to be gcc-3.2.3-2 or higher):

#gcc-V

#rpm-Q glibc

Create users and related groups

#/usr/sbin/groupadd Oinstall

#/usr/sbin/groupadd DBA

#/USR/SBIN/USERADD-G OINSTALL-G dba Oracle

If it's just for testing purposes, it's okay not to create a oinstall group. But it's better to standardize. If the Oracle user and DBA group are already present, make the appropriate adjustments.

Check and adjust environment variables

Log on as an Oracle user

# su-oracle

$ VI. bash_profile

#添加如下内容, your exact value should not be exactly the same as this one.

Export Oracle_base=/u/app/oracle
Export Oracle_home= $ORACLE _base/product/10.2.0/db_1
Export Oracle_sid=v7dev
Export path= $PATH: $HOME/bin: $ORACLE _home/bin
Export Ld_library_path= $ORACLE _home/lib:/usr/lib
Export LC_CTYPE=ZH_CN. GB2312
And then execute
$ source. bash_profile
Make the environment variable effective.

Go to root User:

# Su-root

Enter Password Rezinrezin

Directories such as/u/app/oracle should be set up and properly authorized.
Create a directory, execute a command

# mkdir/u

# Mkdir/u/app

# mkdir/u/app/oracle

# Mkdir/u/install

Establish authorization, execute command

# Chown–r Oracle.oinstall/u

Setting Display Environment parameters

# Display=192.168.0.244:0.0;export DISPLAY

Install the missing unique package

Access to the X-windows interface

Execute # STARTX

Insert Disc 3, a disc icon will appear on the desktop, double-click to see the contents of the disc

In Disc 3 in the Redhat directory under the RPMs directory can find a package named libaio-0.3.102-1.i386.rpm file, double-click can install the package

Do not forget to eject the CD-ROM, this time the CD-ROM can not be ejected, only click on the disc icon, right-select eject, to the disc pop-up

Start installing 10g
Mount your installation disk. (This is usually a copy of the file to a specific location in the system, such as/u/install

Press CTRL+ALT+F2 to switch users

User Root User Login

Insert the disc into the optical drive to perform

# mount–t Iso9660/dev/cdrom/media/cdrom

# Cd/media/cdrom

# ls (can see Oracle's installation compressed file 10201_database_linux32.zip)

# CP 10201_database_linux32.zip/u/install

# CD: (Exit current directory)

# Umount/media/cdrom Remove the optical drive

Unzip the installation file

# Cd/u/install

# ls (can see Oracle's installation compressed file 10201_database_linux32.zip)

# Unzip 10201_database_linux32.zip

The file will be decompressed in/u/install/database

# CTRL+ALT+F7

Switch user to X-windows interface

Open firewall ports for Oracle database

Start the security level program in System settings under application in the upper-left corner

Port 1521 for Oracle, enter other ports in the format 1521:tcp

Start the terminal program in System tools under application in the upper-left corner

A white text box appears

Provide graphical interface permissions to Oracle users

# Xhost + local:oracle

# su–oracle

Perform:

$ sh/u/install/database/runinstaller

If the interface does not start, follow the root user

# Xhost + local:oracle

Back to Oracle Users

And then execute

$ sh/u/install/database/runinstaller

Attention:

Then start the installation, do not install the database, will create the start database before the √ remove, press Next, the default installation, cannot appear warning, if there is a warning, follow the prompts to resolve

Until you start the installation program

You will be prompted to run several. sh files at the end of the system. Follow the prompts.

This time you can reopen a terminal program to perform

# sh/u/app/oracle/orainventory/orainstroot.sh

# sh/u/app/oracle/product/10.2.0/db_1/root.sh

will appear enter the full pathname of the local bin Directory:[/usr/local/bin]: Direct ENTER

The system will dbhome,oraenv,coraenv 3 programs into the/usr/local/bin directory

Tip There are several scripts that execute as many scripts as the example above

Close the terminal window when you are finished executing

On the installation screen, click Exit to close the installation screen

In the previously opened terminal window press ENTER, appear [[email protected] ~]$

Install the DB instance with the DBCA command, execute the command

$ dbca

Graphical interface appears, default installation, database name V7dev password Rezin

New will hold a mistake, say what does not have permission, do not have to take care of it, directly new complete can be

After all operations are completed, the database can be started

$ lsnrctl Start

$ sqlplus "/as SYSDBA"

Sql>shutdown

Sql>startup

If the database mounted appears;

Database opened;

Indicates that the database has been successfully installed

The data table space is established on the server side, and the execution

Create tablespace TSCC datafile '/u/app/oracle/oradata/orcl/tscc.dbf ' size 10M reuse autoextend on next 5M maxsize unlimit Ed extent management Local;

You can then use the client to connect to the server side, the same as the Windows connection method

Create new user, import data file, rebuild database, wait for operation no longer to be described

FAQ (Installing Oracle on Linux platforms is a common problem)
1. Unable to start the installation interface
The run Runinstaller prompt message resembles the following:

Xlib:connection to ' localhost:0.0 ' refused by server
Xlib:client is not authorized to connect to server
Exception in thread "main" Java.lang.InternalError:
Can ' t connect to x11 Windows Server using "localhost:0.0" at ....
WORKAROUND: Set your display environment parameters.
# export display= your_ipaddress:0.0 replace your_ipaddress with your IP. Or simply execute it with root # Xhost + local:oracle (be aware that there is a security risk)
2. The installation interface shows a lot of "mouth" appearance of garbled
Workaround: View the locale output
# locale
Lang= ZH_CN. GB2312
Lc_ctype=zh_cn. GB2312
Lc_numeric= "ZH_CN. GB2312 "
Lc_time= "ZH_CN. GB2312 "
Lc_collate= "ZH_CN. GB2312 "
Lc_monetary= "ZH_CN. GB2312
Lc_messages= "ZH_CN. GB2312 "
Lc_paper= "ZH_CN. GB2312 "
Lc_name= "ZH_CN. GB2312 "
Lc_address= "ZH_CN. GB2312 "
Lc_telephone= "ZH_CN. GB2312 "
Lc_measurement= "ZH_CN. GB2312 "
Lc_identification= "ZH_CN. GB2312 "
Lc_all= ZH_CN. GB2312

Executes #export lc_ctype= ZH_CN. GB2312 and then re-invoke the Setup program.
3. Data in the database is garbled

When using the Client Connection database query, the data is displayed as?????

EXECUTE statement

SELECT * from sys.props$ where name = ' Nls_characterset '

Displays the character set, which should be ZHS16GBK

If you don't do that,

Sql> STARTUP;
sql> ALTER SYSTEM ENABLE RESTRICTED SESSION;
sql> ALTER SYSTEM SET job_queue_processes=0;
sql> ALTER SYSTEM SET aq_tm_processes=0;
sql> ALTER DATABASE CHARACTER SET internal_use ZHS16GBK;
Sql> SHUTDOWN IMMEDIATE;
Sql> STARTUP RESTRICT;

After the change, do not forget, and then alter the SYSTEM DISABLE RESTRICTED SESSION;

Otherwise the connection will be restricted

4. If the client cannot connect to the server side, report the adapter error

1) Note that the server-side firewall has no open Oracle ports

2) Local Hosts file to be modified

Add after 127.0.0.1 localhost

192.168.0.244 Rezinserver

5. RedHat 9/FC1 and other system 10g does not support how to install?
Workaround: Install 10g solutions on Linux distributions that are not supported by 10g
1). Run Runinstaller-ignoresysprereqs, which will skip the check.
2). Modify the/etc/redhat-release file:
#su-root
#cp/etc/redhat-release/etc/redhat-release.backup
#cat >/etc/redhat-release << EOF
Red Hat Enterprise Linux as Release 3 (Taroon)
Eof
After installation, perform the following actions:
#su-root
#cp/etc/redhat-release.backup/etc/redhat-release
3). The same idea, we can modify the Oracle Install/oraparam.ini file to achieve the purpose.
6. How do I turn off those ocssd.bin processes?
Workaround: Edit the/etc/inittab file (do Backup)
Comment out this line:
H1:3:RESPAWN:/ETC/INIT.D/INIT.CSSD run >/dev/null 2>, .........

LINUX RHEL as 4 + oracle10g installation detailed

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.