免费注册 查看新帖 |

Chinaunix

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

[函数] 急!OCI-SCO UNIX 8i client olog 函数连不上Oracle9i [复制链接]

论坛徽章:
0
1 [报告]
发表于 2005-03-17 09:48 |显示全部楼层

急!OCI-SCO UNIX 8i client olog 函数连不上Oracle9i

试一下oci8呢?

论坛徽章:
0
2 [报告]
发表于 2005-03-17 10:39 |显示全部楼层

急!OCI-SCO UNIX 8i client olog 函数连不上Oracle9i

打印出错信息呢?
        if(olog(&lda,(ub1 *)hda,(text *)user,-1,(text *)passwd,-1,(text *)0, -1,(ub4)OCI_LM_DEF))
        {
                err_report((Cda_Def *)&lda);
        }
void err_report(Cda_Def *cursor)
{
        sword n;
        text msg[512];                      /* message buffer to hold error text */
       
        if (cursor->;fc >; 0)
                printf("\n-- ORACLE error when processing OCI function %s \n\n",
        oci_func_tab[cursor->;fc]);
        else
                printf("\n-- ORACLE error\n";
       
        n = (sword)oerhms(&lda, cursor->;rc, msg, (sword) sizeof msg);
        printf("%s\n", msg);
}

论坛徽章:
0
3 [报告]
发表于 2005-03-17 11:24 |显示全部楼层

急!OCI-SCO UNIX 8i client olog 函数连不上Oracle9i

应该是权限问题吧

论坛徽章:
0
4 [报告]
发表于 2005-03-17 11:26 |显示全部楼层

急!OCI-SCO UNIX 8i client olog 函数连不上Oracle9i

重新登陆试一下

论坛徽章:
0
5 [报告]
发表于 2005-03-17 11:58 |显示全部楼层

急!OCI-SCO UNIX 8i client olog 函数连不上Oracle9i

if(olog(&lda,(ub1 *)hda,(text *)user,-1,(text *)passwd,-1,(text *)uid, -1,(ub4)OCI_LM_DEF))

指定下你的uid, 你使用的是非本机的数据库吧

论坛徽章:
0
6 [报告]
发表于 2005-03-17 12:02 |显示全部楼层

急!OCI-SCO UNIX 8i client olog 函数连不上Oracle9i

原帖由 "十年砍柴"]gt;fc 发表:
);
        else
                printf("\n-- ORACLE error\n";
       
        n = (sword)oerhms(&lda, cursor->;rc, msg, (sword) sizeof msg);
        printf("%s\n", msg);
}


你使用的是这个代码吗,呵呵,不好意思, 没有加数据库的uid

论坛徽章:
0
7 [报告]
发表于 2005-03-17 13:50 |显示全部楼层

急!OCI-SCO UNIX 8i client olog 函数连不上Oracle9i

@CFNEW97  这个“@”不需要的。

论坛徽章:
0
8 [报告]
发表于 2005-03-17 13:52 |显示全部楼层

急!OCI-SCO UNIX 8i client olog 函数连不上Oracle9i

你的服务名有 “@“ 的?

论坛徽章:
0
9 [报告]
发表于 2005-03-17 14:35 |显示全部楼层

急!OCI-SCO UNIX 8i client olog 函数连不上Oracle9i

我也不知道了,tnsping CFNEW97 可以的吧。
不知道哪里有问题了,不好意思了。

论坛徽章:
0
10 [报告]
发表于 2005-03-17 14:53 |显示全部楼层

急!OCI-SCO UNIX 8i client olog 函数连不上Oracle9i

还是olog的错??
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP