亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 1762 | 回復: 6
打印 上一主題 下一主題

linux as3 登陸oracle10g問題 [復制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2006-09-21 10:49 |只看該作者 |倒序瀏覽
剛剛在linux下裝完oracle 10G 10.20,可是想登陸時卻提示:
[root@localhost root]# su - oracle
-bash: /etc/profile: 權(quán)限不夠,
請問這是什么原因,還是那里沒設(shè)置好!

相關(guān)的設(shè)置也設(shè)置了
groupadd dba
groupadd oinstall
useradd ?g oinstall ?G dba oracle
passwd oracle
mkdir /u01/app/oracle
mkdir /u02/oradata

chown ?R oracleinstall /u01/app/oracle /u02/oradata
chmod 755 /var/opt/oracle

論壇徽章:
0
2 [報告]
發(fā)表于 2006-09-21 11:03 |只看該作者
ls -al /etc/profile
看看oracle用戶是不是對這個文件沒有讀的權(quán)限.
在我的機器上這個文件的權(quán)限是644, 所有者為root

論壇徽章:
0
3 [報告]
發(fā)表于 2006-09-21 11:11 |只看該作者
是的,我的權(quán)限也是644,所有者也是root ,曾經(jīng)有把它改成755也是不行.

論壇徽章:
0
4 [報告]
發(fā)表于 2006-09-21 11:38 |只看該作者
/etc/profile中某條命令,ORACLE用戶沒有權(quán)限權(quán)限執(zhí)行
試關(guān)在profile一開始的地方加上set -x,再su - oracle看一下,哪出的問題

論壇徽章:
0
5 [報告]
發(fā)表于 2006-09-21 12:45 |只看該作者
/etc/profile帖出來看看

論壇徽章:
0
6 [報告]
發(fā)表于 2006-09-22 19:52 |只看該作者
# /etc/profile

# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

pathmunge () {
        if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
           if [ "$2" = "after" ] ; then
              PATH=$PATH:$1
           else
              PATH=$1:$PATH
           fi
        fi
}

# Path manipulation
if [ `id -u` = 0 ]; then
        pathmunge /sbin
        pathmunge /usr/sbin
        pathmunge /usr/local/sbin
fi

pathmunge /usr/X11R6/bin after

unset pathmunge

# No core files by default
ulimit -S -c 0 > /dev/null 2>&1

USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"

HOSTNAME=`/bin/hostname`
HISTSIZE=1000

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
    INPUTRC=/etc/inputrc
fi

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC

for i in /etc/profile.d/*.sh ; do
    if [ -r "$i" ]; then
            . $i
    fi
done

unset i
cat >> /etc/profile <<EOF
if [ $USER = "oracle" ]; then  
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
if [ root = "oracle" ]; then  
if [ /bin/bash = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi

[ 本帖最后由 blue_stone 于 2006-9-22 22:22 編輯 ]

論壇徽章:
0
7 [報告]
發(fā)表于 2006-09-22 22:34 |只看該作者
刪除/etc/profile中下面的代碼.  

  1. cat >> /etc/profile <<EOF
復制代碼


每個用戶登錄時都試圖執(zhí)行/etc/profile中的


  1. cat >> /etc/profile <<EOF
復制代碼

但是oracle對/etc/profile文件沒有寫權(quán)限,  無法修改這個文件, 所以會報權(quán)限不夠的錯誤.
事實上, 你希望在/etc/profile中設(shè)置用戶limit, 也就是執(zhí)行"cat >> /etc/profile <<EOF"后面的部分.
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP