Home Database Mysql Tutorial 在fedora2上安装oracle 10G的方法

在fedora2上安装oracle 10G的方法

Jun 07, 2016 pm 04:18 PM
oracle Install method

安装Fedora2 2. 下载Oralce10G (oracle.com),一般安装只需下载ship.db.cpio.gz 3. 解开 [oracle @oar10g oracle]$ cd /tmp [oracle @oar10g oracle]$ gzip -cd ship.db.cpio.gz | cpio idmv 4. 修改Linux的系统参数: As root: (su - ) # cat /proc/sys/kerne

安装Fedora2 2. 下载Oralce10G (oracle.com),一般安装只需下载ship.db.cpio.gz

3. 解开

[oracle @oar10g oracle]$ cd /tmp

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

4. 修改Linux的系统参数:

As root: (su - )

# cat /proc/sys/kernel/shmmax (查看)

33554432

# echo 1073741824 >/proc/sys/kernel/shmmax (更改) 这个值根据各自机器内存的数量修改

# cat /proc/sys/kernel/shmmax(查看)

1073741824

# vi /etc/sysctl.conf (更改) 这个值可以不修改,而且在Fedura2的/etc/sysctl.conf中是不存在这项的。

kernel.shmmax=1073741824

5. 创建用户

As root:

# groupadd dba

#useradd -g dba oracle

#passwd oracle

6. 创建Oracle的安装的路径

As root:

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

#chown -R oracle.dba /opt/oracle

7. 设置Oracle安装需要的环境变量:

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. 重新登陆系统,察看环境变量是否生效

As oracle:

[oracle @oar10g oracle]$ export | grep ORACLE,如果以vnc的方式连接的话可能需要重新起一个vncserver

9. 开始安装

As oracle

$startx (or vncserver)

[oracle @oar10g oracle]$xterm &

[oracle @oar10g oracle]$sh /tmp/Disk1/ runInstaller -ignoreSysPrereqs& --系统参数,表示不进行系统类型的验证,现在官方的oracle10g不支持fedora的安装,所以需要加这个参数。

10. 安装过程中,会提示你以root的方式来执行一个脚本。:

As root:

[oracle @oar10g oracle]$ su –

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

11. 安装完成。不进行创建数据库的操作

修改$ORACLE_HOME/bin 下的oracle脚本

cd $ORACLE_HOME/bin

mv oracle oracle.bin

cat >oracle

#!/bin/bash

export DISABLE_HUGETLBFS=1

exec $ORACLE_HOME/bin/oracle.bin $@

EOF

chmod +x oracle

可以参见

这一步是为了解决 ORA-27125: unable to create shared memory segment 这个错误。ORACLE的问题?Fedora的问题?

12. 开始建库

dbca

13. 修改listner

可以根据实际情况修改listner,修改

$ORACLE_HOME/network/admin/listener.ora文件,oracle会将机器名直接作为listner的Host,,可以根据实际情况修改为机器的ip地址

LISTENER =

(DESCRIPTION_LIST =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))

)

(ADDRESS_LIST =

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

)

)

)

14. 修改字符集

1. 连接到服务器 sqlplus user/password@ora10g

2. connect sys as sysdba

3. update props$ set value$=’你的字符集’ where name=’NLS_CHARACTERSET’;

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to encrypt oracle view How to encrypt oracle view Apr 11, 2025 pm 08:30 PM

Oracle View Encryption allows you to encrypt data in the view, thereby enhancing the security of sensitive information. The steps include: 1) creating the master encryption key (MEk); 2) creating an encrypted view, specifying the view and MEk to be encrypted; 3) authorizing users to access the encrypted view. How encrypted views work: When a user querys for an encrypted view, Oracle uses MEk to decrypt data, ensuring that only authorized users can access readable data.

How to delete all data from oracle How to delete all data from oracle Apr 11, 2025 pm 08:36 PM

Deleting all data in Oracle requires the following steps: 1. Establish a connection; 2. Disable foreign key constraints; 3. Delete table data; 4. Submit transactions; 5. Enable foreign key constraints (optional). Be sure to back up the database before execution to prevent data loss.

What to do if the oracle can't be opened What to do if the oracle can't be opened Apr 11, 2025 pm 10:06 PM

Solutions to Oracle cannot be opened include: 1. Start the database service; 2. Start the listener; 3. Check port conflicts; 4. Set environment variables correctly; 5. Make sure the firewall or antivirus software does not block the connection; 6. Check whether the server is closed; 7. Use RMAN to recover corrupt files; 8. Check whether the TNS service name is correct; 9. Check network connection; 10. Reinstall Oracle software.

How to paginate oracle database How to paginate oracle database Apr 11, 2025 pm 08:42 PM

Oracle database paging uses ROWNUM pseudo-columns or FETCH statements to implement: ROWNUM pseudo-columns are used to filter results by row numbers and are suitable for complex queries. The FETCH statement is used to get the specified number of first rows and is suitable for simple queries.

How to solve the problem of closing oracle cursor How to solve the problem of closing oracle cursor Apr 11, 2025 pm 10:18 PM

The method to solve the Oracle cursor closure problem includes: explicitly closing the cursor using the CLOSE statement. Declare the cursor in the FOR UPDATE clause so that it automatically closes after the scope is ended. Declare the cursor in the USING clause so that it automatically closes when the associated PL/SQL variable is closed. Use exception handling to ensure that the cursor is closed in any exception situation. Use the connection pool to automatically close the cursor. Disable automatic submission and delay cursor closing.

How to create cursors in oracle loop How to create cursors in oracle loop Apr 12, 2025 am 06:18 AM

In Oracle, the FOR LOOP loop can create cursors dynamically. The steps are: 1. Define the cursor type; 2. Create the loop; 3. Create the cursor dynamically; 4. Execute the cursor; 5. Close the cursor. Example: A cursor can be created cycle-by-circuit to display the names and salaries of the top 10 employees.

How to create oracle dynamic sql How to create oracle dynamic sql Apr 12, 2025 am 06:06 AM

SQL statements can be created and executed based on runtime input by using Oracle's dynamic SQL. The steps include: preparing an empty string variable to store dynamically generated SQL statements. Use the EXECUTE IMMEDIATE or PREPARE statement to compile and execute dynamic SQL statements. Use bind variable to pass user input or other dynamic values ​​to dynamic SQL. Use EXECUTE IMMEDIATE or EXECUTE to execute dynamic SQL statements.

How to stop oracle database How to stop oracle database Apr 12, 2025 am 06:12 AM

To stop an Oracle database, perform the following steps: 1. Connect to the database; 2. Shutdown immediately; 3. Shutdown abort completely.

See all articles