How to install oracle 10 GB on fedora2

Source: Internet
Author: User

Install Fedora2 2. Download Oralce10G (www.OracleFor general installation, only ship.db.cpio.gz needs to be downloaded.

3. Unlock

[Oracle @ oar10g oracle] $ cd/tmp

[Oracle @ oar10g oracle] $ gzip-cd ship.db.cpio.gz | cpio-idmv

4. Modify 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 of the respective machines

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

1073741824

# Vi/etc/sysctl. conf (Change) This value can be left unchanged and does not exist in/etc/sysctl. conf of Fedura2.

Kernel. shmmax = 1073741824

5. Create a 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/products/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. log on to the system again and check whether the environment variables take effect.

As oracle:

[Oracle @ oar10g oracle] $ export | grep ORACLE, if connected in vnc mode, you 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 parameter indicates that the system type is not verified. Currently, the official oracle10g does not support installation of fedora, therefore, 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 is complete. Do not create a database

Modify the oracle script under $ ORACLE_HOME/bin

Cd $ ORACLE_HOME/bin

Mv oracle. bin

Cat> oracle <"EOF"

#! /Bin/bash

Export DISABLE_HUGETLBFS = 1

Exec $ ORACLE_HOME/bin/oracle. bin $ @

EOF

Chmod + x oracle

See

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

This step is to solve the ORA-27125: unable to create shared memory segment error. ORACLE problems? What is the problem with Fedora?

12. Start database creation

Dbca

13. Modify the listner

You can modify the listner according to the actual situation.

$ ORACLE_HOME/network/admin/listener. ora file. oracle will directly use the machine name as the Host of listner, which can be changed to the IP address of the machine 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 the 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.