How to install Oracle 10G on FEDORA2

Source: Internet
Author: User
Tags character set dba

Install FEDORA2 2. Download oralce10g (www. Oracle. com), general installation simply download ship.db.cpio.gz

3. untie

[Oracle @oar10g oracle]$ cd/tmp

[Oracle @oar10g oracle]$ GZIP-CD ship.db.cpio.gz | Cpio–idmv

4. Modify the Linux system parameters:

As Root: (Su-)

# Cat/proc/sys/kernel/shmmax (view)

33554432

# echo 1073741824 >/proc/sys/kernel/shmmax (change) This value is modified according to the number of memory in the respective machine

# Cat/proc/sys/kernel/shmmax (view)

1073741824

# vi/etc/sysctl.conf (change) This value can not be modified and is not present in Fedura2/etc/sysctl.conf.

kernel.shmmax=1073741824

5. Create user

As Root:

# Groupadd DBA

#useradd-G DBA Oracle

#passwd Oracle

6. Create an Oracle installation path

As Root:

#mkdir –p/opt/oracle/product/10.2

#chown-R oracle.dba/opt/oracle

7. Set the environment variables required for Oracle installation:

As Oracle

[Oracle @oar10g oracle]$ Vi. bash_profile

..............

# Add by admin for Install Oracle

#Oracle Environment:

Umask 022

Export Oracle_base=/opt/oracle

Export ORACLE_HOME=/OPT/ORACLE/PRODUCT/10.2/

Export oracle_sid=ora10g

Export Oracle_term=xterm

#export Tns_aimin=set if sqlnet.ora,tnsnames.ora,etc.

#there are not in $ORACLE _home/network/admin.

Export Nls_lang=american

#export ora_nls33= $ORACLE _home/ocommon/nls/admin/data

#LD_LIBRARY_PATH = $ORACLE _home/lib:/usr/lib

Ld_library_path= $ORACLE _home/jdk/fre/lib/i386:
$ORACLE _home/jdk/jre/lib/i386/server:
$ORACLE _home/rdbms/lib: $ORACLE _home/lib: $LD _library_path

Export Ld_library_path

#Set Shell Search paths:

Export path= $ORACLE _home/bin: $PATH

#end Add by Admin for Oracle install.

8. Re-login system to see if the environment variable is effective

As Oracle:

[Oracle @oar10g oracle]$ Export | grep ORACLE, if connected by VNC, may need to restart a vncserver

9. Start Installation

As Oracle

$startx (or Vncserver)

[Oracle @oar10g Oracle] $xterm &

[Oracle @oar10g Oracle] $SH/tmp/disk1/runinstaller-ignoresysprereqs&-system parameters, which indicate no system type validation. Now the official oracle10g does not support fedora installation, so you need to add this parameter.

10. During the installation process, you will be prompted to execute a script as root. :

As Root:

[Oracle @oar10g oracle]$ su–

[Root @oar10g oracle]# sh/opt/oracle/product/10.2/root.sh

11. Installation complete. Do not create a database operation

To modify ORACLE scripts under $oracle_home/bin

CD $ORACLE _home/bin

MV Oracle Oracle.bin

Cat >oracle << "EOF"

#!/bin/bash

Export Disable_hugetlbfs=1

EXEC $ORACLE _home/bin/oracle.bin $@

Eof

chmod +x Oracle

Can see

http://www.oracle-base.com/articles/10g/OracleDB10gInstallationOnFedora2.php

This step is to resolve the ora-27125:unable to create shared memory segment this error. Oracle's Problem? Fedora's problem?

12. Start building a library

Dbca

13. Modify Listner

Can modify Listner according to the actual situation, modify

$ORACLE _home/network/admin/listener.ora file, ORACLE will be the machine name directly as Listner host, can be modified to the machine's IP address according to the actual situation

LISTENER =

(Description_list =

(DESCRIPTION =

(Address_list =

(address = (PROTOCOL = IPC) (KEY = Extproc))

)

(Address_list =

(address = (PROTOCOL = TCP) (HOST = 10.10.0.2) (PORT = 1521))

)

)

)

14. Modify Character Set

1. Connect to server Sqlplus user/password@ora10g

2. Connect SYS as SYSDBA

3. Update props$ set value$= ' your character set ' where name= ' nls_characterset ';

Related Article

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.