redhat5 下安装 oracle10g

 

      工作中使用的一直是oracle 数据库 从来也没自己装过,今天自己在Liunx5 下装了个oracle10g ,主要还是按照小彦的文档见附件,中间遇到了一些问题,记录下

 

我是用 netb 用户在 151 上装的 oralce

 

 

 

1. 版本问题,由于附件中的文档 是在redhad4 下安装的oracle 10g ,我在redhad5 下安装就遇到了版本问题,见下图:

 

 

 

 

 

解决:

 

Step01 : 查看安装日志。

ORACLE 安装出现问题的时候,首先应该查看安装日志。安装日志通常会给我们某些提示,快速地帮助我们排查安装失败的原因所在。本例中,查看安装日志/tmp/OraInstall2008-12-19_09-11-48PM/installActions2008-12-19_09-11-48PM.log ,我们发现

参数Linux=redhat-3,SuSE-9,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2 ,没有 redhat-5

Step02 : 修改 oraparam.ini 的参数,在后面加上redhat-5

# vi install/oraparam.ini

[Certified Versions]
          Linux=redhat-3,SuSE-9,redhat-4,redhat-5,UnitedLinux-1.0,asianux-1,asianux-2

[UnitedLinux-1.0-optional]
          TEMP_SPACE=80
          SWAP_SPACE=150
          MIN_DISPLAY_COLORS=256

[Linux-redhat-3.0-optional]
          TEMP_SPACE=80
          SWAP_SPACE=150
          MIN_DISPLAY_COLORS=256

[Linux-redhat-4.0-optional]
          TEMP_SPACE=80
          SWAP_SPACE=150
          MIN_DISPLAY_COLORS=256

[Linux-redhat-5.0-optional]
          TEMP_SPACE=80
          SWAP_SPACE=150
          MIN_DISPLAY_COLORS=256

Step03 : 重新启动 Oracle 安装程序。

 

2.安装Oracle数据库时xhost unable to open display

 

  解决:

 

 先在root下xhost + ( 由于是在图形环境中安装oracle ,因此需要在vnc环境中 执行xhost+)

如何是在远程客户端启动桌面服务,需要设置客户机的DISPLAY 值(exportDISPLAY =IP(客户端的IP地址,你要设成别的地址,那你就看不到图形):0.0

如果是在本机执行的话,直接到oracle图形用户下执行exportDISPLAY

如果上述设置后,还是不能启动图形的话,就要检查系统图形界面支持的问题了,例如是否安装了图形程序,是否有权限执行图形程序.或者系统时候屏蔽了图形功能等等.

最后执行./runInstaller就行了                        

 

 

 

 3. 在安装到 以下界面时候报错 ,是目录权限的问题

 

 

 

解决:

 

 chmod -R 777 /home/oracle

 

 

主要就遇到以上3个问题 ,安装好oracle 数据库 以后 为了测试安装的结果

 

内部 指的是 在sqlplus 环境下

外部 指的是 在linux 控制台环境下

 

 

 

外部启动监听:lsnrctl start
查看监听状态:lsnrctl status
内部:
sqlplus /nolog
内部启动库:startup
使用dba 连接库
conn /as sysdba

内部停止库 shutdown immediate
外部停止库 dbstop

 

 

然后需要建立一个 数据库用户,分配表空间和 资源 ,然后可以用 PLSQL Developer 连上来验证 结果,当然需要你配置 tnsnames.ora 文件

 

create user huxl identified by huxl ;


grant dba to huxl; --DBA


grant unlimited tablespace to huxl;--


grant select any table to huxl; --


grant select any dictionary to huxl;


grant connect,resource to huxl ;

 

 

使用select   *   from   all_users;可看到所有用户。  
  使用show   users   可看到当前连接用户。

 

删除用户 drop user hxlcascade;

 

如果删除用户后无法登陆 报错

user ***lacks create session privilege;logon denied

则需要 使用 dba用户  执行

grant create session to xxx;

 

 

 

2011-06-03 在 工作环境启动数据库 发现问题:

 

SQL> startup
ORACLE instance started.

Total System Global Area  805306368 bytes
Fixed Size                  1261444 bytes
Variable Size             318767228 bytes
Database Buffers          482344960 bytes
Redo Buffers                2932736 bytes
Database mounted.
ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
ORA-01110: data file 5: '/usr/lib/oracle/xe/oradata/XE/lqlin_data01.dbf'

 

 

造成这个问题的原因是 用户空间文件丢失,我们可以发现在  /usr/lib/oracle/xe/oradata/XE/ 确实没有lqlin_data01.dbf

 

 

解决方案:


以sysdba 用户登录 sqlplus 执行:

alter database datafile 5 offline drop;
alter database open;

 

 

配置完成以后 验证OK!!

附加中式我 装oracle10g 所看的文档资料

 

 

 

 

QA oracle db 错误 :ORA-03113: end-of-file on communication channel

 

解决方案:

 

 

修改 oracle 启动初始化文件 /opt/oracle/app/oracle/admin/orcl/pfile

 

vi init.ora.0112011173517 processes= 150 processes=300

 

 

 

ORA-00257: archiver error. Connect internal only, until freed

解决方案:

 

 

[oracle@ISFDB1 ~]$ rman target sys/admin nocatalog

 

Recovery Manager: Release 11.2.0.1.0 - Production on Tue Oct 25 12:51:13 2011

 

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

 

connected to target database: ORCL (DBID=1267946274)

using target database control file instead of recovery catalog

 

RMAN>

 

运行

crosscheck copy 

delete copy;

 

打完收工

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值