求Oracle在linux下的安装和安全配置

troyzhang 2005-02-04 11:40:02
求高手赐教oracle在linux下安装和安全配置的手册
...全文
602 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
glucose 2005-02-06
  • 打赏
  • 举报
回复
不错,收藏
zhaokeke2004 2005-02-06
  • 打赏
  • 举报
回复
楼上各位都收藏的不错嘛
lynx 2005-02-05
  • 打赏
  • 举报
回复
Oracle 8.1.7 for RedHat Linux 7.2的安装过程

1).确认你已安装了以下兼容包:
rpm –ivh compat-libstdc++-6.2-2.9.0.16
rpm –ivh compat-glibc-6.2-2.1.3.2
rpm –ivh compat-egcs-c++-6.2-1.1.2.16
rpm –ivh compat-libs-6.2-3
rpm –ivh compat-egcs-6.2-1.1.2.16
rpm –ivh compat-egcs-objc-6.2-1.1.2.16

2).安装binutils-2.10.91.0.2.i386.rpm包
rpm -Uvh --force --nodeps binutils-2.10.91.0.2-3.i386.rpm

3).安装Jdk1.1.8_v3到/usr/local,这个不用多说了(不一定要的)
bunzip2 jdk118_v3.tar.bz2
tar -xvf jdk118_v3.tar
ln -s jdk118_v3 java

4).获得补丁包------Oracle的glibc-2.1.3-stubs.tar.gz
Oracle的env_ctx.mk ( http://211.100.12.66/o8i/env_ctx.mk)

5).准备用户环境(root)。
groupadd dba
useradd oracle -g dba
passwd oracle
.bash_profile的内容:
ORACLE_BASE=/home/oracle; export ORACLE_BASE
ORACLE_HOME=/home/oracle; export ORACLE_HOME
ORACLE_SID=ORCL; export ORACLE_SID
ORA_NLS33=/home/oracle/ocommon/nls/admin/data; export ORA_NLS33
NLS_LANG=american_america.zhs16cgb231280;export NLS_LANG
LD_LIBRARY_PATH=/home/oracle/lib; export LD_LIBRARY_PATH
CLASSPATH=.:/home/oracle/jdbc/lib/classes111.zip;export CLASSPATH
PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/dbs:/etc; export PATH
./oracle/envlinux.sh
export LD_ASSUME_KERNEL=2.2.5
export LDEMULATION=elf_i386_glibc21
export GCC_EXEC_PREFIX=/usr/i386-glibc21-linux/lib/gcc-lib/
6).临时更改glibc
将/usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh复制一份到/usr/oracle并改名为envlinux.sh.(注:本人在没有复的制的情况下,没能成功运行起i386-glibc21-linux-env.sh)
并在. bash_profile中加入:
./oracle/envlinux.sh
export LD_ASSUME_KERNEL=2.2.5
执行.bash_profile看看是否己替换:
./home/oracle/.bash_profile
gcc –v
替换前是:Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731(Red Hat Linux7.1.2.96.81)
替换后是:Reading specs from
/usr/i386-glibc21-linux/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc driver version 2.96 20000731 (Red Gat Linux 7.1 2.96-81) executing
gcc version egcs-2.91.66
再不行,把机器重启。

7).修改内核参数(root用户):
echo 134217728 > /proc/sys/kernel/shmmax
echo –e “250 32000 100 128” > /proc/sys/kernel/sem
或编辑 /etc/services(在安装完oracle之后也可以)
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=10
set semsys:seminfo_semmni=100
set semsys:seminfo_semmsl=100
set semsys:seminfo_semmns=200
set semsys:seminfo_semopm=100
set semsys:seminfo_semvmx=32767
编辑好后存盘重新启动系统。
不然会在启动数据库时出错。
8).安装
根据提示,一步步安装。
9).出现错误提示:
Error in invoking target install of makefile
/home/oracle/ctx/lib/ins_ctx.mk
……..
这就是env_ctx.mk的过错,新开一个konsole窗口,把下载的env_ctx.mk copy 到$ORACLE_HOME/ctx/lib/目录下,然后Retry
10).root.sh的错误:
当提示要运行root.sh时,先修改/home/oracle/root.sh,之后再运行。
注意,Root.sh里有两处错误:
RMF=/bin/rm -f
修改为
RMF="/bin/rm -f"
RUID=`/usr/bin/id|$AWK -F( '{print $2}'|$AWK –F\) '{print $1}`
修改为
RUID=`/usr/bin/id|$AWK -F\( '{print $2}'|$AWK -F\) '{print $1}'`
完成之后点击“OK”
11不要急着点击下一步,新开一个konsole口,把下载下来的Oracle补丁包
glibc-2.1.3-stubs.tar.gz,在$ORACLE_HOME下
tar -xvzf /tmp/glibc-2.1.3-stubs.tar.gz
然后运行,./setup_stubs.sh(也许是这个名),大约5分钟后,一切OK了。返回安装画面,选种Perform typical configuration,下一步。
12).之后系统创建数据库,数据库安装完成。
lynx 2005-02-05
  • 打赏
  • 举报
回复
设置 Oracle 环境

以 Oracle 用户进入,建立 $HOME/.bash_profile:
# Oracle Environment
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/9.0.1
export ORACLE_SID=test
export ORACLE_TERM=xterm
#export TNS_ADMIN= 设置这个变量,如果 sqlnet.ora, tnsnames.ora等不在$ORACLE_HOME/network/admin 目录下。
export NLS_LANG=AMERICAN;
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/openwin/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/td/lib:/usr/ucblib:/usr/local/lib
export LD_LIBRARY_PATH
# Set shell search paths:
PATH=/bin:/usr/bin:/usr/sbin:/etc:/opt/bin:/usr/ccs/bin:/usr/openwin/bin:/opt/local/GNU/bin
PATH=$PATH:/opt/local/bin:/opt/NSCPnav/bin:$ORACLE_HOME/bin
PATH=$PATH:/usr/local/samba/bin:/usr/ucb:
export PATH
# CLASSPATH must include the following JRE locations:
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib

启动 runInstaller

Oracle 不再支持字符模式的安装,因此必须设置 DISPLAY 变量,假设节点名为 oracleserver,那么 oracleserver 必须允许 runInstaller 显示 X 信息。如果你不在远程安装数据库,可以跳过下面的第一和第二步。
第一步:yourdesktop:user$ xhost +oracleserver
第二步:从 oracleserver 的控制台上以 Oracle 用户执行:
oracleserver:oracle$ export DISPLAY=yourdesktop:0.0
第三步a:从第一张 CD ,执行 runInstaller (不要 cd 到 /mnt/cdrom !)
oracleserver:oracle$ mount /mnt/cdrom
oracleserver:oracle$ /mnt/cdrom/runInstaller
第三步b:或者从下载点:
oracleserver:oracle$ Disk1/RunInstaller


运行 Oracle 安装

下面是我回答 runInstaller 的问题: What would you like as the base directory (Inventory Location): /opt/oracle/oraInventory
UNIX Group Name (permission for updating Oracle software): oinstall
Full path name of the Oracle Home: /opt/oracle/product/9.0.1
JDK Home Directory: /usr/local/java
注意:

如果没有“降级” binutils 包的话,安装到第三张 CD 时,你会看到下面的错误:
"Error invoking target install of makefile /opt/oracle/product/9.0.1/plsql/lib/ins_plsql.mk"
解决的办法请看后面的“Oracle 安装错误”。

你可能还会碰到 "Oracle Net Configuration Assistant" 挂起的问题,请参考后面的”Oracle 安装中重要的技巧和提示“。

启动 Oracle 9i 数据库

9i 中已经没有 svrmgrl 了,所有的管理工作都听过 sqlplus 来完成:
dba$ sqlplus /nolog
SQL> connect / as sysdba
SQL> startup


Oracle 安装中重要的技巧和提示


如果遇到 gunzip 出错,检查文件的校验和:
$ md5sum Linux9i_Disk1.cpio.gz Linux9i_Disk2.cpio.gz Linux9i_Disk3.cpio.gz
f1a99eb8c8aca1d69a9eeaa8858570d7 Linux9i_Disk1.cpio.gz
f2444c0fa53c898e7d2f78c184829d7d Linux9i_Disk2.cpio.gz
ec655402d8bc547ed031f14122da574b Linux9i_Disk3.cpio.gz

不要 cd 到 /mnt/cdrom 执行 ./runInstaller !
否则你将不能在安装时弹出 CD,因为 unmount 不能把挂接着的 CD 卸下来。
(译者注:我安装 9iAS 遇到的就是这样的问题啊!害得我把 CD 复制到硬盘再安装)。

如果忘记了设置 DISPLAY 环境变量或者忘记赋予数据库服务器在桌面 PC 上显示 X 信息的权限(例如: xhost +oracleserver),将得到下面的错误:
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
解决的办法是:rm -rf /tmp/OraInstall
如果不这样做,安装程序将挂在那里,没有任何错误信息。同时也要检查 runInstaller 是否在后台停止了运行。
当 runInstaller 开始配置工具时,"Oracle Net Configuration Assistant" 会挂起,简单的解决办法是停止其配置,重新配置或者继续安装,当其他安装结束后,再来一次“Retry"。
如果在安装中系统停止了反应,可能就是没有足够的交换空间了。如果发生这样的事情,只能等待到系统反应为止。
Oracle 的安装还需要运行 make 等程序,在生产环境中,你或许没有安装编译器和其他开发工具,所以,需要临时安装下面的几个包:
cpp, egcs, egcs-c++, glibc-devel, kernel-headers 。
如果不能成功安装 9i 而需要重来的话,需要清除下面的文件和目录:
rm -rf /etc/oraInst.loc /etc/oratab /tmp/OraInstall
rm -rf $ORACLE_BASE/*
/tmp/


Oracle 安装错误

下面是别人关于 Oracle 安装时碰到的问题和解决的办法,我并没有遇到其中的大多数问题,因此不能确定这些解答是否正确,如果你有好的解决办法或者其他问题,可以写信给我,我将会加入到这个文件中。


首先检查/tmp/OraInstall 中的错误日志,如果遇到 make 的错误,检查: $ORACLE_HOME/install/make.log 。
"Error invoking target install of makefile /opt/oracle/product/9.0.1/plsql/lib/ins_plsql.mk"
"Error invoking target install of makefile /opt/oracle/product/9.0.1/precomp/lib/ins-precomp.mk"
"Error invoking target install of makefile /opt/oracle/product/9.0.1/precomp/lib/ins-net-client"
"Error invoking target install of makefile /opt/oracle/product/9.0.1/precomp/lib/ins-oemagent"
编辑 $ORACLE_HOME/bin/genclntsh 把
LD_SELF_CONTAINED="-z defs"
改成:
LD_SELF_CONTAINED=""
然后运行脚本:$ORACLE_HOME/bin/genclntsh:
$ $ORACLE_HOME/bin/genclntsh
Created /opt/oracle/product/9.0.1/lib/libclntst9.a
$
在错误对话框中点击 重试。
"Error in setting permissions of file/directory /opt/oracle/jre/1.1.8/bin/i686/native_threads/.extract_args.
当错误框打开时,手工找到并从安装 jre 的目录下拷贝文件 .extract_args 到 runInstaller 提示文件丢失的地方。
Oracle 的链接
lynx 2005-02-05
  • 打赏
  • 举报
回复
我也贴来一点:
Oracle9i 在Red Hat 7.1和7.2上的安装


本文是我在 Red Hat 7.1 (内核版本:2.4.2-2 )和 7.2(内核版本:2.4.7-10) 上安装 Oracle 9i (9.0.1) 数据库的总结,如果需要更多的信息请参考 Oracle 的文档: Oracle9i Database Documentation for Linux。


需要说明的是, 7.1 已经得到了 9i 和 9iAS 的验证,可以参考: " Red Hat Announces Validation Of Red Hat Linux For Oracle",但是截止到 2001年年底,7.2 的验证还是没有通过。

下载 9i 并刻录 CD

Oracle9i for Linux 可以从下面的站点下载:

http://otn.oracle.com/software/products/oracle9i/htdocs/linuxsoft.html

Oracle 并不提供这些文件的校验和,下面是我产生的校验和:

$ md5sum Linux9i_Disk1.cpio.gz Linux9i_Disk2.cpio.gz Linux9i_Disk3.cpio.gz
f1a99eb8c8aca1d69a9eeaa8858570d7 Linux9i_Disk1.cpio.gz
f2444c0fa53c898e7d2f78c184829d7d Linux9i_Disk2.cpio.gz
ec655402d8bc547ed031f14122da574b Linux9i_Disk3.cpio.gz


解开压缩文件:
gunzip Linux9i_Disk1.cpio.gz Linux9i_Disk2.cpio.gz Linux9i_Disk3.cpio.gz

解开打包文件:
cpio -idmv < Linux9i_Disk1.cpio
cpio -idmv < Linux9i_Disk2.cpio
cpio -idmv < Linux9i_Disk3.cpio

可以得到三个安装文件的目录:
Disk1
Disk2
Disk3

我用外置 USB 的 HP-8230e 刻录机,烧出这三张光盘(并非必须的步骤):
mkisofs -r Disk1 | cdrecord -v --eject dev=0,0,0 speed=4 -
mkisofs -r Disk2 | cdrecord -v --eject dev=0,0,0 speed=4 -
mkisofs -r Disk3 | cdrecord -v --eject dev=0,0,0 speed=4 -

(设备号可以通过执行 cdrecord -scanbus 得到)。


交换空间

Oracle 推荐的交换空间大小为物理内存的两倍或者最少 512MB,采用两者之中大的那个值。我建议使用更多的交换空间,特别是你有其他的程序运行在 Oracle 服务器上时,我的 PC 有 256MB 内存,我使用了 600MB 的交换空间。如果在安装 Oracle 时没有足够的交换空间,特别是在建库时,将会导致系统几分钟没有任何反应。

检查交换空间:
cat /proc/swaps

增加交换空间:
dd if=/dev/zero of=tmpswap bs=1k count=300000
chmod 600 tmpswap
mkswap tmpswap
swapon tmpswap

"binutils" RPM 版本的问题

7.1 和 7.2 随带的 binutils RPM 包使 9i 的 Universial Installer 不能跑起来,也没有更新的版本能解决这个问题,你可以有两个选择:

下载下面版本的 RPM 包,“降级” Oracle 服务器上的 binutil :

ftp://ftp.redhat.com/pub/redhat/linux/7.0/en/os/i386/RedHat/RPMS/binutils-2.10.0.18-1.i386.rpm

安装:
rpm -Uvh --force --nodeps binutils-2.10.0.18-1.i386.rpm
安装完 Oracle 后,别忘了把 binutil 升级回去。

另外一个简单的办法时在安装中等待出现下面的错误,然后手工修复:
"Error invoking target install of makefile /opt/oracle/product/9.0.1/plsql/lib/ins_plsql.mk"
请参考 Running Oracle Installation 以及 Oracle Installation Errors ,我推荐使用第二种方法。

安装 JDK

下载 JDK 1.3.1 或者 Blackdown 1.1.8_v3(我总是使用 Blackdown ,这是 Oracle 以前推荐给 Linux 用户的)。

根据 JDK 的文档,把 JDK 安装在 /usr/local 目录下并建立 JDK 的符号连接到 /usr/local/java:
bzip2 -dc jdk118_v3-glibc-2.1.3.tar.bz2 | tar xf - -C /usr/local ln -s /usr/local/jdk118_v3 /usr/local/java

建立 Oracle 用户

groupadd dba
groupadd oinstall
useradd -g oinstall -G dba oracle
passwd oracle

建立 Oracle 目录

mkdir /opt/oracle
mkdir /opt/oracle/product
mkdir /opt/oracle/product/9.0.1
chown -R oracle.oinstall /opt/oracle
mkdir /var/opt/oracle
chown oracle.dba /var/opt/oracle
chmod 755 /var/opt/oracle

zhpsam109 2005-02-05
  • 打赏
  • 举报
回复
楼上的兄弟不错阿!
子陌红尘 2005-02-04
  • 打赏
  • 举报
回复
以下是在RedHat6.1的Linux环境下装的,用的是Oracle815EE(企业版)+jdk1.2.2+j re 1.1.7v3

标准步骤:
1、
卸载RedHat6.1中自带的kaff(不卸载也可以,但以后jdbc会有问题)
2、
Download jdk1.2.2 for linux,展开到/usr/local下,将路径加入PATH,如/usr/local/jdk1.2.2/bin
3、
Download jre 1.1.7v3,展开jre 1.1.7v3 到/usr/local下,改目录名jre1.1.7 为jre
4、
安装Oracle815EE,即运行orainst/install/linux/runIns.sh,选custom,系统安装时不要create database
5、
runIns.sh要运行多次,分次安装client/server/...
6、
安装完毕设置系统环境变量,如:
ORACLE_HOME=/u02/app/oracle/product/8.1.5

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:$ORACLE_HOME/jdbc/lib
ORACLE_BASE=/u02/app/oracle
CLASSPATH=./:$CLASSPATH:$ORACLE_HOME/jdbc/lib/816classes12b.zip:$ORACLE_HOME/jdbc/lib/816nlscharset12b.zip
PATH=$PATH:$ORACLE_HOME/bin
ORACLE_TERM=386
7、
展开并运行升级补丁包linux_815patches.tgz,从www.oracle.com下载。
8、
建库,运行
dbassist &
除非必要,否则不建议安装JServer and Application Replica,
因为这两选项让我的P3/550 128M机器狂转了5个小时。
9、
database建好后,将jdbc driver for oracle文件
816classes12b.zip,816nlscharset12b.zip(从www.oracle.com下载)
拷贝到$ORACLE_HOME/jdbc/lib,就可以用jdbc了。
10、
在$ORACLE_HOME/network/admin下创建listener.ora,tnsnames.ora文件,在$ORACLE_BASE/admin/[yourdbname]/pfile下创建init[yourSID].ora文件,注意用你在创建数据库时定义的DB name and SID替代“[yourdbname]”“[yourSID]”。
在$ORACLE_BASE/network/admin/下创建listener.ora,tnsnames.ora文件,文件格式参考oracle资料。
11、
添加系统环境变量
ORACLE_SID=yourSID;export ORACLE_SID
用你在安装过程时定义的SID替代yourSID
13、
OK!安装完成,可以试试了,
svrmgrl
connect internal
startup
quit
看看结果,应该work了。
12、
启动 Listener
lsnrctl start
成功否?
13、再后就是创建用户、分配权限了。
注:此Oracle 815EE for linux 版的安装程序粗制滥造,
安装过程中经常误报错误,不要管它,go ahead...
以上步骤我已经在好几台不同配置的机器上装过无数遍了,铁定可以成功,当然安装过程中要仔细理解提示说明。
子陌红尘 2005-02-04
  • 打赏
  • 举报
回复
Part II:
------------------------------------------------------------------------------

# Oracle 9i
ORACLE_BASE=/home/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/9.2.0.1.0; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=$PATH:$ORACLE_HOME/bin:/usr/local/java131/bin; export PATH
ORACLE_SID=TSH1; export ORACLE_SID

LD_LIBRARY_PATH=$ORACLE_HOME/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

TMP=/usr/temp; export TMP
TMPDIR=$TMP; export TMPDIR

Save the .bash_profile file and re-login as the oracle user. Make sure the .bash_profile ran correctly by issuing the following command:

set | more
Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable:

DISPLAY=<machine-name>:0.0; export DISPLAY
Start the Oracle Universal Installer (OUI) by issuing the following command in the Disk1 directory:

./runInstaller
Continue with the installation as normal.

Before the linking phase of the installation begins you should edit the $ORACLE_HOME/bin/genclntsh script altering the following line:

LD_SELF_CONTAINED="-z defs"
to:

LD_SELF_CONTAINED=""
The linking phase should now proceed correctly.

Post Installation
Edit the /etc/oracle file setting the restart flag for each instance to 'Y':

TSH1:/home/oracle/product/9.2.0.1.0:Y
Create a file called /etc/init.d/dbora containing the following:

#!/bin/sh
# Set ORA_HOME to be equivalent to the $ORACLE_HOME
# from which you wish to execute dbstart and dbshut;
#
# Set ORA_OWNER to the user id of the owner of the
# Oracle database in ORA_HOME.
ORA_HOME=/home/oracle/product/9.2.0.1.0
ORA_OWNER=oracle
if [! -f $ORA_HOME/bin/dbstart]
then
echo "Oracle startup: cannot start"
exit
fi
case "$1" in
'start')
# Start the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c $ORA_HOME/bin/dbstart &
;;
'stop')
# Stop the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c $ORA_HOME/bin/dbshut &
;;
esac
Use chmod to set the privileges to 750:

chmod 750 /etc/init.d/dbora
Link the file into the appropriate run-level script directories:

ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora
ln -s /etc/init.d/dbora /etc/rc3.d/S99dbora
The relevant instances should now startup/shutdown automatically at system startup/shutdown.
子陌红尘 2005-02-04
  • 打赏
  • 举报
回复
Part I:

----------------------------------------------------------------------------------

Oracle9i (9.2.0.1.0) Installation on RedHat 8.0 Linux
This article is intended as a brief guide to installing Oracle9i (9.2.0.1.0) on RedHat 8.0 Linux. For additional information and platform variations read the "Installation Guide for UNIX Systems".


Unpack Files
First unzip the files:

gunzip lnx_920_disk1.cpio.gz
gunzip lnx_920_disk2.cpio.gz
gunzip lnx_920_disk3.cpio.gz
Next unpack the contents of the files:

cpio -idmv < lnx_920_disk1.cpio
cpio -idmv < lnx_920_disk1.cpio
cpio -idmv < lnx_920_disk1.cpio
You should now have three directories (Disk1, Disk2 and Disk3) containing installation files.

Set Kernel Parameters
The following table contains minimum kernel settings. If the current settings exceed these figures then do not alter them:

Parameter Minimum Setting
SEMMNI 100
SEMMNS 256
SEMOPM 100
SEMMSL 100
SHMMAX 2147483648
SHMMIN 1
SHMMNI 100
SHMSEG 4096
SHMVMX 32767

The current semaphore settings can be viewed using the following command:

cat /proc/sys/kernel/sem

250 32000 32 128
The values listed are for the SEMMSL, SEMMNS, SEMOPM, and SEMMNI parameters. The adjusted values can be set using:

# echo SEMMSL_value SEMMNS_value SEMOPM_value SEMMNI_value > /proc/sys/kernel/sem
echo 250 32000 100 128 > /proc/sys/kernel/sem
The shared memory settings can be viewed using the following command:

cat shared_memory_parameter
The values can be set using:

echo 2147483648 > /proc/sys/kernel/shmmax
Set the File Handles, Sockets and Process limit using:

echo 65536 > /proc/sys/fs/file-max
ulimit -n 65536
echo 1024 65000 > /proc/sys/net/ipv4/ip_local_port_change
ulimit -u 16384
The necessary parameter changes can be combined in a script and run during system startup:

echo 250 32000 100 128 > /proc/sys/kernel/sem
echo 65536 > /proc/sys/fs/file-max
ulimit -n 65536
echo 1024 65000 > /proc/sys/net/ipv4/ip_local_port_change
ulimit -u 16384
Setup
Install the Java development kit:

tar -xvjf j2sdk-1.3.1-FCS-linux-i386.tar.bz2 -C /usr/local/
Create the new groups and users:

groupadd oinstall
groupadd dba
groupadd oper
groupadd apache

useradd -g oinstall -G dba oracle
passwd oracle

useradd -g oinstall -G apache apache
passwd apache
Create the directories in which the Oracle software will be installed:

mkdir /home/oracle/product
mkdir /home/oracle/product/9.2.0.1.0
chown -R oracle.oinstall /home/oracle
mkdir /usr/temp
chmod 777 /usr/temp
Login as root and issue the following command:

xhost +<machine-name>
Login as the oracle user and add the following lines at the end of the .bash_profile file:

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧