DBA组下不同成员登录ORACLE的情况

简介:
DBA组下不同成员登录ORACLE的情况,报错的问题。
将admin 用户加入oracle 用户组。
root@r01c05011.yh.com # usermod -g oinstall admin
root@r01c05011.yh.com # usermod -g dba admin    
root@r01c05011.yh.com # su - admin
admin@r01c05011.yh.com:/home/admin>sqlplus /nolog       
sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory
查询metalink发现是ORACLE 10g R2的一个BUG,版本号为4516865。下载补丁,并解压。
oracle@r01c05011.yh.com # unzip p4516865_10201_Linux-x86-64.zip
Archive:  p4516865_10201_Linux-x86-64.zip
   creating: 4516865/
   creating: 4516865/files/
   creating: 4516865/files/install/
  inflating: 4516865/files/install/restrict.lst  
  inflating: 4516865/files/install/changePerm.sh  
   creating: 4516865/etc/
   creating: 4516865/etc/config/
  inflating: 4516865/etc/config/inventory  
  inflating: 4516865/etc/config/actions  
   creating: 4516865/etc/xml/
  inflating: 4516865/etc/xml/GenericActions.xml  
  inflating: 4516865/etc/xml/ShiphomeDirectoryStructure.xml  
  inflating: 4516865/README.txt
 
oracle@r01c05011.yh.com:/home/4516865/files>cd install
oracle@r01c05011.yh.com:/home/4516865/files/install>ls
changePerm.sh  restrict.lst
oracle@r01c05011.yh.aliyun.com:/home/4516865/files/install>ll
total 24
-rw-r--r-- 1 oracle oinstall 11401 Apr 13 17:59 changePerm.sh
-rw-r--r-- 1 oracle oinstall  8746 Apr 13 17:59 restrict.lst
oracle@r01c05011.yh.com:/home/4516865/files/install>chmod 755 changePerm.sh
oracle@r01c05011.yh.com:/home/4516865/files/install>chmod 644 restrict.lst
oracle@r01c05011.yh.com:/home/4516865/files/install>ls -l
total 24
-rwxr-xr-x 1 oracle oinstall 11401 Apr 13 17:59 changePerm.sh
-rw-r--r-- 1 oracle oinstall  8746 Apr 13 17:59 restrict.lst
oracle@r01c05011.yh.com:/home/4516865/files/install>./changePerm.sh
Cannot find file /opt/oracle/products/10.2.0/install/restrict.lst.
Please ensure that this file exists in the same directory as this shell script.
将install目录下的changePerm.sh和restrict.lst这两个文件解压到$ORACLE_HOME/install文件夹下。
oracle@r01c05011.yh.com:/home/4516865/files/install>cp changePerm.sh $ORACLE_HOME/install
oracle@r01c05011.yh.com:/home/4516865/files/install>cp restrict.lst  $ORACLE_HOME/install
oracle@r01c05011.yh.com:/home/4516865/files/install>cd $ORACLE_HOME/install             
oracle@r01c05011.yh.com:/opt/oracle/products/10.2.0/install>ll
total 252
drwxrwx--- 2 oracle oinstall   4096 Apr 13 15:43 chainedInstall
-rwxr-xr-x 1 oracle oinstall  11401 Apr 13 18:09 changePerm.sh
-rw-r----- 1 oracle oinstall      0 Apr 13 15:43 createseed1.sh
-rw-r----- 1 oracle oinstall      0 Apr 13 15:43 createseed.sh
-rw-r----- 1 oracle oinstall    974 Apr 13 15:43 envVars.properties
drwxrwx--- 2 oracle oinstall   4096 Apr 13 15:43 jlib
-rw-r----- 1 oracle oinstall 179464 Apr 13 15:43 make.log
-rwxr-xr-x 1 oracle oinstall      0 Apr 13 15:43 oratab
-rw-r----- 1 oracle oinstall     33 Apr 13 15:43 portlist.ini
-rw-r----- 1 oracle oinstall    254 Apr 13 15:43 readme.txt
-rw-r--r-- 1 oracle oinstall   8746 Apr 13 18:09 restrict.lst
-rwxr-xr-x 1 oracle oinstall    816 Apr 13 15:43 rootdeletenode.sh
-rw-r----- 1 oracle oinstall   9638 Apr 13 15:43 rootlocaladd
-rw-r----- 1 oracle oinstall      0 Apr 13 15:43 seed.log
-rw-r----- 1 oracle oinstall   2800 Apr 13 15:43 templocal
drwxrwx--- 2 oracle oinstall   4096 Apr 13 15:43 unix
drwxrwx--- 2 oracle oinstall   4096 Apr 13 15:43 utl
再次执行脚本changePerm.sh   
oracle@r01c05011.yh.com:/opt/oracle/products/10.2.0/install> ./changePerm.sh            
-------------------------------------------------------------------------------
Disclaimer: The purpose of this script. is to relax permissions on some of the
files in the database Oracle Home so that all clients can access them.
Please note that Oracle Corporation recommends using the most restrictive file
permissions as possible for your given implementation.  Running this script
should be done only after considering all security ramifications.
-------------------------------------------------------------------------------
Do you wish to continue (y/n) [n]: y
Finished running the script. successfully
Please see /tmp/changePerm_err.log for errors and /tmp/changePerm.log for the log of events
看到此,说明成功完成补丁。
dba组中另一个用户admin 再次使用sqlplus 验证
admin@r01c05011.yh.com:/home/admin>sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Apr 13 18:13:05 2011
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
SQL>  
至此,问题解决了。。 
相关文章
|
10月前
|
人工智能 运维 Oracle
ChatGPT能代替Oracle DBA吗?用Oracle OCP(1z0-083)的真题测试一下(文末投票)
ChatGPT已经通过了很多考试,姚远老师是Oracle OCP和MySQL OCP讲师,我很好奇ChatGPT能不能通过Oracle OCP的考试呢?让我们拿Oracle 19c OCP考试(1z0-082)的真题对ChatGPT进行一个测试。
134 0
|
10月前
|
人工智能 运维 Oracle
ChatGPT能代替Oracle DBA吗?用Oracle OCP(1z0-083)的真题测试一下。
第1道题ChatGPT就做错了,姚远老师心里不禁窃喜,看来ChatGPT也不咋地,我们也许不会失业,让我们来看看第一道题的题目
120 0
|
Oracle 关系型数据库 数据库管理
ORACLE分配DBA权限
ORACLE分配DBA权限
|
Oracle 安全 关系型数据库
【Oracle】什么?作为DBA,你竟然不会安装Oracle??
很长一段时间内,国内互联网公司都在提倡“去IOE”,但是很多企业还是愿意为昂贵的Oracle数据库买单,不少读者所在的公司也在用Oracle,很多读者自行安装Oracle数据库时,多多少少遇到了些问题,苦恼于几天下来还是没能解决问题。这不,不少读者跑来问我,让我输出一篇如何在物理机上安装Oracle的文章,最好是安装过程中不会出现各种“疑难杂症”。哈哈,这要求不过分,我周末也着实捣鼓了一番,不过我是安装在CentOS 7/ CentOS 8虚拟机中的,效果和在物理机中一样,整个过程也算是小有所成吧!输出此文,记录捣鼓的过程,与各位Oracle开发者共勉。
117 0
【Oracle】什么?作为DBA,你竟然不会安装Oracle??
|
SQL 存储 监控
Oracle DBA遇到频次最高的五十个问题
随着数据价值在企业地位越来越高,DBA这一职位更是受到重视和支持,如何帮助各位数据达人维护好数据,也是ITPUB社区一直秉承的理念,本期我们将社区DBA关注最多的50个问题,已经各位大师对问题的解决方式进行了汇总和整理,期待大家更多给与问题和反馈,以下是问题和解决方案。 问题1:如何收集统计信息不影响数据库? 解决方案 大多数情况下,表的统计信息不准导致了优化器对于执行计划的错误计算,因此需要对表的统计信息进行更正, 以便让优化器重新选择准确的 执行计划。 但是在生产情况下,随意的收集统计信息,则会给数据库带来隐患: 1、对重新收集统计信息的表,对应的一些SQL可能需要重新硬解
290 0
|
SQL Oracle 关系型数据库
【学习资料】第1期Oracle DBA 增值 PostgreSQL,Greenplum 学习计划 - 珍藏级
大家好,这里是Oracle DBA 增值 PostgreSQL,Greenplum 学习计划 - 珍藏级
|
存储 SQL Oracle
【学习视频】第6期2019-Oracle迁移到PostgreSQL - 适合DBA与业务开发者
大家好,这里是《PG干O,仁心所象 - 去O实战培训》 公益活动纪录 - 《PG开发者指南、去O、管理与优化实践》

推荐镜像

更多