OBIEE 11g BI 管理工具 连接OCI 10g/11g数据源时报错[连接失败]

OBIEE 11g Client Admin Tool Connection To Datasource In Offline Mode Fails With Error "The Connection Has Failed

使用OBIEE 11g BI 管理工具 导入元数据,连接OCI 10g/11g数据源时,点击连接会报错[连接失败],如下图:

 

参考了Oracle Notes
OBIEE 11g Client Admin Tool Connection To Datasource In Offline Mode Fails With Error "The Connection Has Failed" [ID 1296370.1]

解决方法如下:

#Applies to
Business Intelligence Server Enterprise Edition - Version: 11.1.1.3.0 [1905] and later [Release: 11g and later ]
Generic Windows

#Symptoms
Created a new repository (RPD) using the Oracle Business Intelligence Enterprise Edition (OBIEE) Admin Tool. When trying to import data in offline mode, the following error occurs with both ODBC and OCI connection:

#Error
The Connection has failed.
You may also notice all or some of the following errors in NQSAdminTool.log:
[路径是:<安装路径>\oraclebi\orainst\diagnostics\logs\OracleBIServerComponent\coreapplication\Administrator_NQSAdminTool.log]

[2011-02-07T11:26:19.000+00:00] [OracleBIServerComponent] [nQSError: 17003] Oracle gateway error: OCIEnvNlsCreate or OCIEnvInit failed to initialize environment. Please check your Oracle Client installation and make sure the correct version of OCI libraries are in the library path.
...
[2011-02-08T15:42:58.000+00:00] [nQSError: 17014] Could not connect to Oracle database. [
[nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified
at OCI call OCIServerAttach
...

[2011-02-08T15:46:08.000+00:00] [nQSError: 17014] Could not connect to Oracle database. [
[nQSError: 17001] Oracle Error code: 12705, message: ORA-12705: Cannot access NLS data files or invalid environment specified at OCI call OCISessionBegin
...
The issue is not reproducible while in Online mode.

#Cause
Multiple Oracle Homes exist which can cause confusion to the OBIEE Admin Tool for where to reference OCI libraries, NLS and the tnsnames.ora entries.

Additional configuration steps are required to ensure the desired files are used.
SolutionTo prevent this error, you need to complete the following configuration tasks:

NOTE: In all cases, the OBIEE Admin Tool should be started by using the Start -> Programs -> Oracle Business Intelligence -> Administration Tool menu item and not by double-clicking the RPD file itself. Starting the Admin Tool via the menu item is required to initialize required environment variables.

Setting the TNSNAMES.ORA entry to use the same name as the Oracle Database SID is recommended. The TNS_ADMIN environment variable needs to point to the physical location of the TNSNAMES.ORA file in the local environment (whether this be the OBIEE server machine or Admin Tool machine).

##1. For the Admin Tool installed with the complete OBIEE server installation:

1.1. Edit registry under HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\<Oracle_Home> to make sure NLS_LANG key is set to a valid characterset for the Oracle Client used as the DSN.

1.2. Please edit the file %MiddleWare_Home%\instances\instance1\bifoundation\OracleBIApplication\coreapplication\setup\bi-init.cmd to set %ORACLE_HOME%\bin as first entry in the PATH.
e.g.

set PATH=%OBIEE_HOME%\bin;%OBIEE_HOME%\bifoundation\server\bin;%OBIEE_HOME%\bifoundation\web\bin;C:\Oracle\BIEE_11g\jre\bin;%windir%;%windir%\system32;%PATH%

1.3. Please edit the file %MiddleWare_Home%\instances\instance1\bifoundation\OracleBIApplication\coreapplication\setup\user.cmd to set TNS_ADMIN to your Oracle client tnsnames.ora home directory path (in case exists) or to your OBIEE tnsadmin %OBIEE_Client_Home%\Oracle_BI1\network\admin.
e.g.

set TNS_ADMIN=C:\oracle\product\11.2.0\client_1\network\admin

~ OR ~

set TNS_ADMIN=C:\Oracle\OracleBIEE11g\Oracle_BI1\network\admin

##2. For the Admin Tool installed with the new standalone installer:

2.1. Edit registry under HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\<Oracle_Home> to make sure NLS_LANG key is set to a valid characterset for the Oracle Client used as the DSN.

这一步的设置参考如下图,修改NA为SIMPLIFIED CHINESE_CHINA.ZHS16GBK

 
 

2.2. Please edit the file %OBIEE_Client_Home%\\oraclebi\orahome\bifoundation\server\bin\bi_init.bat to set %ORACLE_HOME%\bin as first entry in the PATH.

2.3. Please add TNS_ADMIN entry to the bi_init.bat file to point to your Oracle client tnsnames.ora home directory path.
e.g.

set TNS_ADMIN=C:\oracle\product\11.2.0\client_1\network\admin

最后我设置的文件bi_init.bat为:
===========================================
@echo off

rem overwrite JAVA_HOME

set JAVA_HOME=%~d0%~p0..\..\..\..\..\jre
if exist "%JAVA_HOME%\bin\java.exe" goto:doneJAVAHOME

rem abort

echo *******************
echo ****** ERROR ******
echo *******************
set /p prompt=[Invalid JAVA_HOME: %JAVA_HOME%] Enter return to abort
exit 100

:doneJAVAHOME

set ORACLE_HOME=D:\DevSuiteHome
set TNS_ADMIN=D:\DevSuiteHome\NETWORK\ADMIN
set ORACLE_INSTANCE=D:\BIClient\oraclebi\orainst
set ORACLE_BI_APPLICATION=coreapplication
rem call %ORACLE_INSTANCE%\bifoundation\OracleBIApplication\%ORACLE_BI_APPLICATION%\setup\user.cmd

if NOT "%1" == "" set COMPONENT_NAME=%1

set PATH=%ORACLE_HOME%\bin;%ORACLE_HOME%\bifoundation\server\bin;%ORACLE_HOME%\bifoundation\web\bin;%ORACLE_HOME%\bin;D:\BIClient\jre\bin;%windir%;%windir%\system32;%PATH%

if NOT "%2" == "" %2
===========================================

NOTE: While connecting from your standalone BI Admin Tool client in online mode, the Admin Tool will use the TNSNAMES.ORA file on the BI server. Ensure that your connection pool has the correct entries for your Oracle DB and that the TNSNAMES.ORA file on the BI server has the corresponding TNS entry.

You may instead use the short format for database connection string in the Data Source Name field e.g. dbservername:1521/orcl

转载于:https://www.cnblogs.com/gary-bao/p/4273051.html

oracle biee 11g客户端连接OCI 10g/11g数据源时报错相关推荐

  1. Oracle数据库密码破译方法(10g,11g)

    Oracle10g密码计算原理: (1)使用upper(用户名+密码)作为输入值value (2)先使用b"\x01\x23\x45\x67\x89\xAB\xCD\xEF"作为k ...

  2. Oracle 基础知识——客户端连接oracle数据库服务端的四种方法

    Oracle基础知识 Oracle Database 11g 快捷版 (Oracle Database XE) 是一款基于 Oracle Database 11g 第 2 版代码库的小型入门级数据库, ...

  3. 在Oracle中查看客户端连接的IP信息 .

    前言 oracle 12c 默认session中,未记录客户端ip 可以通过其它方法追加ip到session中的. 方法[转] 大家都知道在v$session 中记录着客户端的机器名称,但是没有IP ...

  4. Android客户端连接SSM(Spring+SpringMVC+Mybatis)框架Java服务器端

    Android客户端开发越来越流行,但是,Android客户端对应的服务器端采用什么框架呢?对于功能较为简单的应用,我建议,直接采用java web开发最简单的MVC框架即可(很多Android应用的 ...

  5. oracle版本迭代更新 10g,11g,12c,18c,19c

    oracle版本迭代更新 10g,11g,12c,18c,19c 时间:2021年2月20日 官网截图 看清楚官网上各各大版本下的稳定版本顺序,方便对照自己oracle版本针对分析 区别: Oracl ...

  6. Oracle Database 9i 10g 11g编程艺术 深入数据库体系结构 第2版pdf

    下载地址:网盘下载 <Oracle Database 9i/10g/11g编程艺术:深入数据库体系结构>是公认的Oracle数据库权威指南,凝聚了世界顶尖的Oracle专家Thomas K ...

  7. oracle 10g/11g 命令对照,日志文件夹对照

     oracle 10g/11g  命令对照,日志文件夹对照 oracle 11g 中不再建议使用的命令 Deprecated Command Replacement Commands crs_st ...

  8. 在linux oracle 10g/11g x64bit环境中,goldengate随os启动而自己主动启动的脚本

    在linux oracle 10g/11g x64bit环境中,goldengate随os启动而自己主动启动的脚本 在linux.oracle 10g/11g x64bit环境中,goldengate ...

  9. Oracle BIEE 链接oracle 数据库的问题,报:Check if 'Oracle OCI 10G' database client is installed

    环境:AIX 5305 64bit:oracle 10g(64bit);oracle BIEE 10;错误信息如下 [NQODBC] [SQL_STATE: HY000] [nQSError: 100 ...

最新文章

  1. uva 315 (poj 1144 求割点)
  2. 360推两款无刘海新机,主打安全和AI,起售价1199
  3. 瑞星播报:3月8日需警惕“灰鸽子变种AWM”病毒
  4. 中国式微服务技术栈2.0
  5. 图形处理(六)拖拽式网格融合-Siggraph 2010
  6. 【Java9】异常,finally,线程创建(卖票),线程同步(卖包子),线程练习
  7. telnet命令详解
  8. hMailServer 邮件系统安装配置篇
  9. centos svn服务器端口配置文件,centos下配置svn服务器
  10. c ajax传递多个参数,c# – 使用jQuery AJAX将字符串数组传递给具有可变参数数量的webmethod...
  11. 传智播客 C/C++学习笔记 数组和指针的关系, 字符串学习
  12. solr6 mysql增量更新_solr 的全量更新与增量更新
  13. 英语打字练习软件-c语言编写
  14. Redis源码分析01——基本数据结构
  15. Snagit 2019 快速截图
  16. 微信小程序通过url 上传远端图片 到微信小程序临时素材库 java
  17. 丧心病狂的Github技巧
  18. HP服务器配置远程管理端口iLO的基本方法
  19. JAVA计算机毕业设计藏宝阁游戏交易系统Mybatis+系统+数据库+调试部署
  20. 计算机组装前需要的准备工作,手把手教你攒电脑:组装电脑全过程

热门文章

  1. 动手学pytorch之tensor数据(一)
  2. 两种方法解决pip、conda安装库时慢的问题
  3. 自动驾驶:蛇形曲线跟踪(Stanley Model)
  4. rpm打包的流程包括以下哪些_Linux 下RPM打包制作流程
  5. MySQL运算符ppt_mysql运算符
  6. 常见数据库默认端口号
  7. 00038oracle,ORACLE错误一览表
  8. 为什么只能sudo进mysql_解决项目中MySQL数据库执行删除语句时间太长的问题
  9. Java 数组转成集合List三种方法和(数组、集合List、Set相互转换)
  10. mysql 中常用的基本操作