Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to create a database during Fedora 2 installation

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to create a database during the installation of Fedora 2. It is very detailed and has a certain reference value. Friends who are interested must read it!

1.Fedora 2 installation

two。 Download Fedora 2

Oralce10G (www.oracle.com), general installation only needs to download ship.db.cpio.gz

3. Uninstall Fedora 2

[oracle @ oar10g oracle] $cd / tmp

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

4. Modify the system parameters of Linux:

As root: (su -)

# cat / proc/sys/kernel/shmmax (View)

33554432

# echo 1073741824 > / proc/sys/kernel/shmmax (change) this value is modified according to the amount of memory on each machine.

# cat / proc/sys/kernel/shmmax (View)

1073741824

The value # vi / etc/sysctl.conf (change) does not need to be modified, and it does not exist in / etc/sysctl.conf installed in Fedora 2.

Kernel.shmmax=1073741824

5.Fedora 2 installation creation user

As root:

# groupadd dba

# useradd-g dba oracle

# passwd oracle

6. Create the path of the Fedora 2 installation for Oracle

As root:

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

# chown-R oracle.dba / opt/oracle

7. Set the environment variables required for the 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. Log back into the system to see if the environment variables are in effect

As oracle:

[oracle @ oar10g oracle] $export | grep ORACLE, you may need to start a new vncserver if you connect in vnc mode.

9. Start Fedora 2 installation

As oracle

$startx (or vncserver)

[oracle @ oar10g oracle] $xterm &

[oracle @ oar10g oracle] $sh / tmp/Disk1/ runInstaller-ignoreSysPrereqs&-system parameter, which means no system type verification is performed. The official oracle10g does not support the installation of Fedora 2, so you need to add this parameter.

10. During Fedora 2 installation, 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. Fedora 2 installation is complete. Do not create the database

Modify the oracle script under $ORACLE_HOME/bin

Cd $ORACLE_HOME/bin

Mv oracle oracle.bin

Cat > oracle

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report