我买的是redhat linux12.0,装上的是redhat enterprise linux5.
现在准备在上面安装oracle.我按照网上给的步骤进行,发现我的linux环境差很多东西。
grep MemTotal /proc/meminfo没有值, meminfo文件是空的。
还却少openmotif等几个包(提示未安装)。。
我发现第二张碟里面有那些包,但是安装不了。提示有依赖关系,但是在里面找不到那个依赖的包。
请大家帮忙解决。。小弟不胜感激。。
现在准备在上面安装oracle.我按照网上给的步骤进行,发现我的linux环境差很多东西。
grep MemTotal /proc/meminfo没有值, meminfo文件是空的。
还却少openmotif等几个包(提示未安装)。。
我发现第二张碟里面有那些包,但是安装不了。提示有依赖关系,但是在里面找不到那个依赖的包。
请大家帮忙解决。。小弟不胜感激。。
解决方案 »
- oracle 10g里中的listener.ora tnsname.ora和sqlnet.ora三个文件的作用含义是什么?里面的各个变量是怎样解释?
- sqlplus如何要求用户输入数据
- 求一个SQL语句,或者给出举例也可,急中
- 请教oracle10触发器问题
- 一张表有三个联合主键,怎么做查询
- //
- oracle 9i安装的弱智奇怪问题!求助大侠!急急急急急急!!!在线等
- 如何限定一个表里面的最大纪录数?
- 高手们,如何指定orcale 用户内存?系统优化
- 一个ORACLE和PB结合程序在广域网中的问题,100分求救!!
- oracle10g2版本有类似sql server2005的复制(发布\分发\订阅)功能吗?
- 位图索引与 B-tree 索引:选择与时间 进来解释一下
我记得,我好像是全装了的。。 就有一些杂东西没装。。难道要重新装linux?
难道是我留给linux的空间太小了(7G)?
yum install 包名
建议重新装个吧,按照默认的来装就可以了。
把缺少的文件到网上搜一下,看能否下载到。
联网了的... 这个方法我试过...没有成功!我想问7G的空间装oracle和delphi够不够?(准备重装)
不过red hat linux 12还从来没听说过。最新的要么就enterprise linux 5,要么fedora 9
就是 enterprise linux 5 啊
里面的一个企业级服务器版的
在引导的最后一步的时候,要第二张盘。。我放进去了,但是提示找不到自动运行程序。。具体怎么用哦(我试过完整名,没成功。通配符怎么用?)!
===============================================
当然了,oracle 数据库系统总是要安装的,安装可数据库系统才能将原来的数据导入啊
1>默认安装redhat5
2>.添加如下几个程序包
glibc-headers-2.5-12.i386.rpm
glibc-devel-2.5-12.i386.rpm
compat-gcc-34-3.4.6-4.i386.rpm
compat-gcc-34-c++-3.4.6-4.i386.rpm
libgomp-4.1.1-52.el5.i386.rpm
gcc-4.1.1-52.el5.i386.rpm
compat-libstdc++-33-3.2.3-61.i386.rpm
libXp-1.0.0-8.i386.rpm
--------------------------------------------------------------------------------[root@cc Server]# rpm -ivh glibc-headers-2.5-12.i386.rpm
warning: glibc-headers-2.5-12.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:glibc-headers ########################################### [100%]
[root@cc Server]# rpm -ivh glibc-devel-2.5-12.i386.rpm
warning: glibc-devel-2.5-12.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:glibc-devel ########################################### [100%]
[root@cc Server]# rpm -ivh compat-gcc-34-3.4.6-4.i386.rpm
warning: compat-gcc-34-3.4.6-4.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:compat-gcc-34 ########################################### [100%]
[root@cc Server]# rpm -ivh compat-gcc-34-c++-3.4.6-4.i386.rpm
warning: compat-gcc-34-c++-3.4.6-4.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:compat-gcc-34-c++ ########################################### [100%][root@cc Server]# rpm -ivh libgomp-4.1.1-52.el5.i386.rpm
warning: libgomp-4.1.1-52.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:libgomp ########################################### [100%]
[root@cc Server]# rpm -ivh gcc-4.1.1-52.el5.i386.rpm
warning: gcc-4.1.1-52.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:gcc ########################################### [100%]
[root@cc Server]# [root@cc Server]# rpm -ivh compat-libstdc++-33-3.2.3-61.i386.rpm
warning: compat-libstdc++-33-3.2.3-61.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:compat-libstdc++-33 ########################################### [100%]
3>编写内核参数kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
做法:进入 /etc/sysctl.conf ,添加上面的内容
/sbin/sysctl -p[root@cc Server]# more /etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.# Controls IP packet forwarding
net.ipv4.ip_forward = 0# Controls source route verification
net.ipv4.conf.default.rp_filter = 1# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0# Controls whether core dumps will append the PID to the core filename
# Useful for debugging multi-threaded applications
kernel.core_uses_pid = 1# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1# Controls the maximum size of a message, in bytes
kernel.msgmnb = 65536# Controls the default maxmimum size of a mesage queue
kernel.msgmax = 65536# Controls the maximum shared segment size, in bytes
kernel.shmmax = 4294967295# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 268435456
# added by cx
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 2621444>建立oracle用户,dba组
groupadd dba
useradd -G dba oracle
passwd oracle
5>设置oracle用户的环境变量
[root@rac1 ~]# su - oracle
[root@cc Server]# su - oracle
[oracle@cc ~]$ vi .bash_profile
# .bash_profile# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi# User specific environment and startup programsPATH=$PATH:$HOME/bin
ORACLE_BASE=/oracle ; export ORACLE_BASEexport PATH
6>安装oracleoracle@cc ~]$
[oracle@cc ~]$ ls
10201_database_linux32.zip database
[oracle@cc ~]$ cd database/
[oracle@cc database]$ ls
doc install response runInstaller stage welcome.html
[oracle@cc database]$ export LANT=US
[oracle@cc database]$ ./runInstaller
正在启动 Oracle Universal Installer...正在检查安装程序要求...检查操作系统版本: 必须是redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
通过
所有安装程序要求均已满足。准备从以下地址启动 Oracle Universal Installer /tmp/OraInstall2008-08-04_09-29-27PM. 请稍候...[oracle@cc database]$ Xlib: connection to ":0.0" refused by server
Xlib: No protocol specifiedException in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
at java.awt.Window.init(Unknown Source)
at java.awt.Window.<init>(Unknown Source)
at java.awt.Frame.<init>(Unknown Source)
at oracle.ewt.popup.PopupFrame.<init>(Unknown Source)
at oracle.ewt.lwAWT.BufferedFrame.<init>(Unknown Source)
at oracle.sysman.oio.oioc.OiocOneClickInstaller.<init>(OiocOneClickInstaller.java:378)
at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:2091)[oracle@cc database]$ xhost +
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specifiedxhost: unable to open display ":0.0"
[oracle@cc database]$ ./runInstaller
正在启动 Oracle Universal Installer...正在检查安装程序要求...检查操作系统版本: 必须是redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
通过
所有安装程序要求均已满足。准备从以下地址启动 Oracle Universal Installer /tmp/OraInstall2008-08-04_09-30-00PM. 请稍候...[oracle@cc database]$ Warning: Cannot convert string "-isas-song ti-medium-r-normal--*-140-*-*-c-*-gb2312.1980-0" to type FontStruct[oracle@cc database]$ export LANG=US
[oracle@cc database]$ ./runInstaller
Starting Oracle Universal Installer...Checking installer requirements...Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
Passed
All installer requirements met.Preparing to launch Oracle Universal Installer from /tmp/OraInstall2008-08-04_09-30-25PM. Please wait ...[oracle@cc database]$ Starting Installer in advanced mode ...
Oracle Universal Installer, Version 10.2.0.1.0 Production
Copyright (C) 1999, 2005, Oracle. All rights reserved.
记得rpm 包顺序不能错,
还有 如果是远程用 xmanger安装,记得用root权限
做操作 xhost +
按你的做法还是出现此错误阿
[oracle@linux-for-zhone ~]$ Initializing Java Virtual Machine from /tmp/OraInstall/jre/bin/jre. Please wait...
/tmp/OraInstall/jre/bin/../lib/i686/green_threads/libzip.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference (libzip.so)
Unable to initialize threads: cannot find class java/lang/Thread
Could not create Java VM
先把LINUX搞定,再去弄Oracle.
需要的环境,包都有..
就是装oracle出问题..
如果是9i的话 打patch p3006854_9204_linux.zip 。修改oracle 的.bash_profile,添加如下一行
export LD_ASSUME_KERNEL=2.4.1
再尝试运行runinstaller
看看:
http://download-uk.oracle.com/docs/cd/B19306_01/install.102/b15660/title.htm
离目标越来越近了..
苦苦研究这么多天还没OK..唉..
谢谢大家的配合..
再不结贴..要挨骂了..忽忽~