|
我用wajig启动oracle时,
- [color=Red]root@1[littlesnow]# wajig start oracle
- Starting Oracle: /etc/profile: line 26: ulimit: open files: cannot modify limit: Operation not permitted
- LSNRCTL for Linux: Version 10.1.0.3.0 - Production on 04-MAY-2005 00:47:30
- Copyright (c) 1991, 2004, Oracle. All rights reserved.
- Message 1070 not found; No message file for product=network, facility=TNSTNS-12545: Message 12545 not found; No message file for product=network, facility=TNS
- TNS-12560: Message 12560 not found; No message file for product=network, facility=TNS
- TNS-00515: Message 515 not found; No message file for product=network, facility=TNS
- Linux Error: 2: No such file or directory
- /etc/profile: line 26: ulimit: open files: cannot modify limit: Operation not permitted
- SQL*Plus: Release 10.1.0.3.0 - Production on Wed May 4 00:47:30 2005
- Copyright (c) 1982, 2004, Oracle. All rights reserved.
- SQL> Connected to an idle instance.
- SQL> ORACLE instance started.
- Total System Global Area 167772160 bytes
- Fixed Size 778212 bytes
- Variable Size 57679900 bytes
- Database Buffers 109051904 bytes
- Redo Buffers 262144 bytes
- Database mounted.
- Database opened.
- SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
- With the Partitioning, OLAP and Data Mining options
- Database "oracle" warm started.
- OK[/color]
复制代码
当我用sqlplus登录时:
- [color=Red]root@1[littlesnow]# su oracle
- sh-3.00$ cd /oracle/app/oracle/product/10.1.0/Db_2/bin/
- sh-3.00$ ./sqlplus
- SQL*Plus: Release 10.1.0.3.0 - Production on Wed May 4 00:49:30 2005
- Copyright (c) 1982, 2004, Oracle. All rights reserved.
- Enter user-name: sys
- Enter password:
- ERROR:
- ORA-28009: connection to sys should be as sysdba or sysoper
- Enter user-name: sys
- Enter password:
- ERROR:
- ORA-28009: connection to sys should be as sysdba or sysoper
- Enter user-name: sys
- Enter password:
- ERROR:
- ORA-28009: connection to sys should be as sysdba or sysoper
- SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus[/color]
复制代码
我以为我的命令错误,但当我用浏览器时,如截图
我用wajig关闭oracle时.
- [color=Red]root@1[littlesnow]# wajig stop oracle
- Shutdown Oracle: /etc/profile: line 26: ulimit: open files: cannot modify limit: Operation not permitted
- LSNRCTL for Linux: Version 10.1.0.3.0 - Production on 04-MAY-2005 00:54:55
- Copyright (c) 1991, 2004, Oracle. All rights reserved.
- Message 1053 not found; No message file for product=network, facility=TNSTNS-12541: Message 12541 not found; No message file for product=network, facility=TNS
- TNS-12560: Message 12560 not found; No message file for product=network, facility=TNS
- TNS-00511: Message 511 not found; No message file for product=network, facility=TNS
- Linux Error: 111: Connection refused
- /etc/profile: line 26: ulimit: open files: cannot modify limit: Operation not permitted
- SQL*Plus: Release 10.1.0.3.0 - Production on Wed May 4 00:54:55 2005
- Copyright (c) 1982, 2004, Oracle. All rights reserved.
- SQL> Connected.
- SQL> Database closed.
- Database dismounted.
- ORACLE instance shut down.
- SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
- With the Partitioning, OLAP and Data Mining options
- Database "oracle" shut down.
- OK[/color]
复制代码
而我的/etc/profile,/etc/environment如下:
profile:
- [color=RoyalBlue]# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
- # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
- PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:$ORACLE_HOME/bin/:$ORA_HOME/bin"
- if [ "$PS1" ]; then
- if [ "$BASH" ]; then
- PS1='\u@\h:\w\$ '
- else
- if [ "`id -u`" -eq 0 ]; then
- PS1='# '
- else
- PS1='$ '
- fi
- fi
- fi
- export PATH
- umask 022
- if [ $USER = "oracle" ]; then
- if [ $SHELL = "/bin/ksh" ]; then
- ulimit -p 16384
- ulimit -n 65536
- else
- ulimit -u 16384 -n 65536
- fi
- fi[/color]
复制代码
environment:
- [color=Blue]LANGUAGE="zh_CN:zh"
- CVSROOT=/home/cvs
- LC_ALL=zh_CN
- G_BROKEN_NAME=1
- G_BROKEN_FILENAMES=1
- ORACLE_BASE=/oracle/app/oracle
- ORACLE_SID=oracle
- ORACLE_HOME=/oracle/app/oracle/product/10.1.0/Db_2
- ORA_HOME=/oracle/app/oracle/product/10.1.0/Db_2
- export ORACLE_BASE ORACLE_SID ORACLE_HOME ORA_HOME
- #unset ORACLE_HOME
- unset TNS_ADMIN
- LANG=zh_CN[/color]
复制代码
请问哪里出错了? :mad: :mad: |
|