新增加一個Linux使用者登入sqlplus

來源:互聯網
上載者:User

安裝好Oracle之後,想用其他Linux使用者登入sqlplus,
$usermod -g oinstall zhou
$cp /home/oracle/.bash_profile /home/zhou/.bash_profile

發現失敗!
出現如下的問題:
SQL*Plus: Release 9.2.0.1.0 - Production on 星期五 7月 27 02:19:10 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
ERROR:
ORA-01034: ORACLE not available
ORA-27121: unable to determine size of shared memory segment
Linux Error: 13: Permission denied

從上面的提示來看主要是許可權不夠,操作被os拒絕了,shared memory segment無法訪問,

$cd $ORACLE_HOME/bin/
$chmod +s oracle
這樣不見得是最好的授權方式,你可以根據自己的環境來給group 或other授予s許可權
讓其他os 使用者可以訪問oracle的共用記憶體,然後再讓其他os使用者運行sqlplus來登入資料庫,就不報這樣的錯誤了。


ilasserver用非oracle使用者起動不了。
是因為其他使用者權限不夠,不能訪問ilasserver目錄下檔案;
chmod -R 777 ilasserver就可以了;

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.