免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2486 | 回复: 6
打印 上一主题 下一主题

!!AIX 5.2 环境下Oracle10g奇怪的现象!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-15 15:22 |只看该作者 |倒序浏览
【1。无法登陆】

aixboy:/users/oracle% sqlplus / as sysdba
SQL*Plus: Release 10.2.0.2.0 - Production on Wed Aug 15 09:45:59 2007
Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
ERROR:
ORA-12547: TNS:lost contact
Enter user-name:
要求我输入用户名和密码,输入system,sys和正常用户均不能登陆。

aixboy:/users/oracle% sqlplus /nolog
SQL*Plus: Release 10.2.0.2.0 - Production on Wed Aug 15 09:46:43 2007
Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.

以下两种方式也不能登陆
SQL> conn system/**** as sysdba
ERROR:
ORA-12547: TNS:lost contact

SQL> conn system/****@mydb as sysdba
ERROR:
ORA-01031: insufficient privileges

这样可以登陆:
SQL> conn system/****@mydb
Connected.

上述现象导致数据库shutdown后或者重启机器后不能startup数据库。
我感觉是SID不能识别,或者系统认证不能通过导致的。

【2。进行了以下项目的检查】
aixboy:/users/oracle/10.2/db_1/network/admin% df -k
文件系统          1024 块      可用 %Used    Iused %Iused     安装于
/dev/hd4          2097152   1951372    7%     2475     1% /
/dev/hd2         20447232  15055576   27%    83969     2% /usr
/dev/hd9var       2097152   1106224   48%      580     1% /var
/dev/hd3          2097152   2028920    4%       68     1% /tmp
/dev/fwdump        262144    253876    4%       17     1% /var/adm/ras/platform
/dev/hd1          2097152   2030272    4%       18     1% /home
/proc                   -         -    -         -     -  /proc
/dev/hd10opt      2097152   1864460   12%     2168     1% /opt
/dev/lv00        62914560  35011980   45%    25850     1% /users
/dev/lv01          262144    253872    4%       18     1% /var/adm/csd

# lsps -s
总调页空间           使用的百分比

磁盘分配已经够大了,应该和swap和区大小无关

# ulimit -a全部是无限

我的listener.ora文件
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (GLOBAL_DBNAME = mydb)
      (ORACLE_HOME = /users/oracle/10.2/db_1)
      (SID_NAME = mydb)
    )
  )
LISTENER =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = aixboy)(PORT = 1521))
  )

我的tnsnames.ora文件
MYDB =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 9.9.9.30)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = mydb)
    )
  )

lsnrctl监听启动停止都很正常,不知道哪里出问题了。

望各位大侠帮忙!!

[ 本帖最后由 kobeyfly 于 2007-8-15 15:29 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2007-08-15 16:41 |只看该作者
是不是你的密码设置太简单了:)

论坛徽章:
1
CU十二周年纪念徽章
日期:2013-10-24 15:41:34
3 [报告]
发表于 2007-08-15 17:13 |只看该作者
检查LISTENER,把机器名字aixboy改成IP地址,确保LISTENER startup正常。

   lsnrctl start    lsnrctl status

   然后   sqlplus "/ as sysdba"连接看看。

论坛徽章:
0
4 [报告]
发表于 2007-08-15 17:14 |只看该作者
贴出$ORACLE_HOME/network/admin/sqlnet.ora内容

论坛徽章:
0
5 [报告]
发表于 2007-08-15 19:07 |只看该作者
。。。

#sqlnet.authentication_services
#
# Syntax: A single value or a list from {beq, none, all, kerberos5,
#          radius, nts}
# Default: NONE
#
# Enables one or more authentication services.  If
# Oracle Advanced Security has been installed with Kerberos5
# support, using (beq, kerberos5) would enable authentication via
# Kerberos.
#
#sqlnet.authentication_services=(beq, kerberos5)
sqlnet.authentication_services=(none)

。。。


只改了一个认证参数,而且用的是缺省值,其他全部是注释

[ 本帖最后由 kobeyfly 于 2007-8-15 19:19 编辑 ]

论坛徽章:
0
6 [报告]
发表于 2007-08-15 19:16 |只看该作者
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=aixboy)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.2.0 - Production
Start Date                15-AUG-2007 19:07:42
Uptime                    0 days 0 hr. 4 min. 16 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      ON
Listener Parameter File   /users/oracle/10.2/db_1/network/admin/listener.ora
Listener Log File         /users/oracle/10.2/db_1/network/log/listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=aixboy)(PORT=1521)))
Services Summary...
Service "mydb" has 1 instance(s).
  Instance "mydb", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

监听都很正常,不过状态status UNKNOWN我不知道对不对。

用netstat -a|grep 1521
tcp4       0      0  *.1521                 *.*                    LISTEN
这里tcp4不知道什么意思。

论坛徽章:
0
7 [报告]
发表于 2007-08-15 23:01 |只看该作者
原帖由 kobeyfly 于 2007-8-15 19:07 发表
。。。

#sqlnet.authentication_services
#
# Syntax: A single value or a list from {beq, none, all, kerberos5,
#          radius, nts}
# Default: NONE
#
# Enables one or more authenticatio ...


将sqlnet.authentication_services注释,或者改成
sqlnet.authentication_services=(beq,none)
或者
sqlnet.authentication_services=(all)

然后再测试
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP