LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1797|回复: 5

Oracle在Debian的问题?请教.

[复制链接]
发表于 2005-5-4 01:01:32 | 显示全部楼层 |阅读模式
我用wajig启动oracle时,
  1. [color=Red]root@1[littlesnow]# wajig start oracle
  2. Starting Oracle: /etc/profile: line 26: ulimit: open files: cannot modify limit: Operation not permitted

  3. LSNRCTL for Linux: Version 10.1.0.3.0 - Production on 04-MAY-2005 00:47:30

  4. Copyright (c) 1991, 2004, Oracle.  All rights reserved.

  5. 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
  6. TNS-12560: Message 12560 not found; No message file for product=network, facility=TNS
  7.   TNS-00515: Message 515 not found; No message file for product=network, facility=TNS
  8.    Linux Error: 2: No such file or directory
  9. /etc/profile: line 26: ulimit: open files: cannot modify limit: Operation not permitted

  10. SQL*Plus: Release 10.1.0.3.0 - Production on Wed May 4 00:47:30 2005

  11. Copyright (c) 1982, 2004, Oracle.  All rights reserved.

  12. SQL> Connected to an idle instance.
  13. SQL> ORACLE instance started.

  14. Total System Global Area  167772160 bytes
  15. Fixed Size                   778212 bytes
  16. Variable Size              57679900 bytes
  17. Database Buffers          109051904 bytes
  18. Redo Buffers                 262144 bytes
  19. Database mounted.
  20. Database opened.
  21. SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
  22. With the Partitioning, OLAP and Data Mining options

  23. Database "oracle" warm started.
  24. OK[/color]
复制代码



当我用sqlplus登录时:
  1. [color=Red]root@1[littlesnow]# su oracle
  2. sh-3.00$ cd /oracle/app/oracle/product/10.1.0/Db_2/bin/
  3. sh-3.00$ ./sqlplus

  4. SQL*Plus: Release 10.1.0.3.0 - Production on Wed May 4 00:49:30 2005

  5. Copyright (c) 1982, 2004, Oracle.  All rights reserved.

  6. Enter user-name: sys
  7. Enter password:
  8. ERROR:
  9. ORA-28009: connection to sys should be as sysdba or sysoper


  10. Enter user-name: sys
  11. Enter password:
  12. ERROR:
  13. ORA-28009: connection to sys should be as sysdba or sysoper


  14. Enter user-name: sys
  15. Enter password:
  16. ERROR:
  17. ORA-28009: connection to sys should be as sysdba or sysoper


  18. SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus[/color]
复制代码


我以为我的命令错误,但当我用浏览器时,如截图

我用wajig关闭oracle时.
  1. [color=Red]root@1[littlesnow]# wajig stop oracle
  2. Shutdown Oracle: /etc/profile: line 26: ulimit: open files: cannot modify limit: Operation not permitted

  3. LSNRCTL for Linux: Version 10.1.0.3.0 - Production on 04-MAY-2005 00:54:55

  4. Copyright (c) 1991, 2004, Oracle.  All rights reserved.

  5. 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
  6. TNS-12560: Message 12560 not found; No message file for product=network, facility=TNS
  7.   TNS-00511: Message 511 not found; No message file for product=network, facility=TNS
  8.    Linux Error: 111: Connection refused
  9. /etc/profile: line 26: ulimit: open files: cannot modify limit: Operation not permitted

  10. SQL*Plus: Release 10.1.0.3.0 - Production on Wed May 4 00:54:55 2005

  11. Copyright (c) 1982, 2004, Oracle.  All rights reserved.

  12. SQL> Connected.
  13. SQL> Database closed.
  14. Database dismounted.
  15. ORACLE instance shut down.
  16. SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
  17. With the Partitioning, OLAP and Data Mining options
  18. Database "oracle" shut down.
  19. OK[/color]
复制代码

而我的/etc/profile,/etc/environment如下:
profile:
  1. [color=RoyalBlue]# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
  2. # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

  3. PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:$ORACLE_HOME/bin/:$ORA_HOME/bin"

  4. if [ "$PS1" ]; then
  5.   if [ "$BASH" ]; then
  6.     PS1='\u@\h:\w\$ '
  7.   else
  8.     if [ "`id -u`" -eq 0 ]; then
  9.       PS1='# '
  10.     else
  11.       PS1='$ '
  12.     fi
  13.   fi
  14. fi

  15. export PATH

  16. umask 022
  17. if [ $USER = "oracle" ]; then
  18.       if [ $SHELL = "/bin/ksh" ]; then
  19.             ulimit -p 16384
  20.             ulimit -n 65536
  21.       else
  22.             ulimit -u 16384 -n 65536
  23.       fi
  24. fi[/color]
复制代码


environment:
  1. [color=Blue]LANGUAGE="zh_CN:zh"
  2. CVSROOT=/home/cvs
  3. LC_ALL=zh_CN

  4. G_BROKEN_NAME=1
  5. G_BROKEN_FILENAMES=1

  6. ORACLE_BASE=/oracle/app/oracle
  7. ORACLE_SID=oracle
  8. ORACLE_HOME=/oracle/app/oracle/product/10.1.0/Db_2
  9. ORA_HOME=/oracle/app/oracle/product/10.1.0/Db_2
  10. export ORACLE_BASE ORACLE_SID ORACLE_HOME ORA_HOME
  11. #unset ORACLE_HOME
  12. unset TNS_ADMIN

  13. LANG=zh_CN[/color]
复制代码


请问哪里出错了? :mad:  :mad:
发表于 2005-12-28 21:18:35 | 显示全部楼层
使用 sqlplus sys/syspassword as sysdba
登陆看看
[oracle@rrac1 ~]$ sqlplus sys/oracle as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on Wed Dec 28 21:44:25 2005

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options

SQL>


ps下面的语句也可以不要的
             ulimit -u 16384 -n 65536
回复 支持 反对

使用道具 举报

发表于 2005-12-28 23:35:53 | 显示全部楼层
wajig
是什么
你这个应该是系统问题
如果是oracle错误它都有ora- 错误号的
回复 支持 反对

使用道具 举报

发表于 2005-12-28 23:36:58 | 显示全部楼层
Starting Oracle: /etc/profile: line 26: ulimit: open files: cannot modify limit: Operation not permitted

看26行是什么
回复 支持 反对

使用道具 举报

发表于 2005-12-29 09:09:25 | 显示全部楼层
你的Oracle是在linux什么发行版中安装的?Debian下能安装么?怎么安装?
回复 支持 反对

使用道具 举报

发表于 2005-12-29 19:53:12 | 显示全部楼层
我在debian下和redhat下安ÅÇ10g
redhat下也安ÅÇ9i
debian下的9iÙà天正在Å
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表