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

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

时间: 2024-10-16 15:28:09

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

Oracle 11g 客户端连接远程服务器数据库配置

在使用oracle11g Net Manager 连接远程数据库遇到的问题总结. 1 在win7系统上start菜单-->Oracle - OraDb11g_home1-->配置和移植工具-->Net Manager 2 点击服务命名-->打开服务命名向导 在下面的操作中,一定要记得保存网络配置.记着选择使用oracle8发行版8.0兼容标识

Oracle HR 例子用户的建立 10g,11g均可

先将附件(见文章尾部)上的 10 个 .sql 文件放入这个路径中 : $ORACLE_HOME/demo/schema/human_resources Script Name        Description hr_analz.sql Collects statistics on the tables in the schema. hr_code.sql Creates procedural objects in the schema. hr_comnt.sql Creates comme

C# 连接DB2字符串 Oracle免安装客户端连接字符串

以下是DB2连接数据库 1)使用IBM.Data.DB2链接DB2数据库 2)必须安装DB2客户端,IBM.Data.DB2在安装的BIN里可以找到 3)注意一下DB2客户端版本问题,我的就是WIN7需要V10版本,服务器win2008使用的是V9.7版本,在WIN7下V9.7安装不上. 代码 code: string connectionString = "Server=IP地址(可以添加端口号);DataBase=库名;UID=用户名;PWD=密码;";              

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

在linux.oracle 10g/11g x64bit环境中,goldengate随os启动而自己主动启动的脚本 背景描写叙述: goldengate安装于/u01/ggs文件夹下 rhel5.5 oracle 10g/11g x64bit Oracle GoldenGate Command Interpreter for Oracle Version 11.1.1.0.0 Build 078 Linux, x64, 64bit (optimized), Oracle 11 on Jul 28

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

 oracle 10g/11g  命令对照,日志文件夹对照 oracle 11g 中不再建议使用的命令 Deprecated Command Replacement Commands crs_stat crsctl check cluster -all crsctl stat res -t crs_register crsctl add resource crsctl add type crsctl modify resource crsctl modify type crs_unregis

oracle 10g/11g 命令对比,日志目录对比

 oracle 10g/11g  命令对比,日志目录对比 oracle 11g 中不再建议使用的命令 Deprecated Command Replacement Commands crs_stat crsctl check cluster -all crsctl stat res -t crs_register crsctl add resource crsctl add type crsctl modify resource crsctl modify type crs_unregist

[转]Oracle 10g/11g 密码策略 用户口令 大小写敏感

一. Oracle 10g 1.1 说明 在Oracle 10g下,默认情况下,密码是不区分大小写的.这个是由于密码文件的默认参数有关. C:\Users\Administrator.DavidDai>orapwd Usage: orapwd file=<fname>entries=<users> force=<y/n> ignorecase=<y/n>nosysdba=<y/n> where file - name of password

Oracle HR 样例用户的建立 10g,11g均可

先将附件(见文章尾部)上的 10 个 .sql 文件放入这个路径中 : $ORACLE_HOME/demo/schema/human_resources Script Name        Description hr_analz.sql Collects statistics on the tables in the schema. hr_code.sql Creates procedural objects in the schema. hr_comnt.sql Creates comme

oracle 10g/11g RAC 启停归档模式

 oracle 10g rac 启停归档模式  如果Oracle数据库运行在归档模式,当进行数据库维护时,可能需要暂停数据库的归档,在完成维护后,再重新启动归档模式. 通过以下步骤可以从归档模式转换为非归档模式: 以下步骤在一台机器上操作.节点二保持down.在所有的操作完成后在打开节点二的数据库. sql>connect SYS/PASSWORD sql>ALTER SYSTEM SET CLUSTER_DATABASE=FALSE SCOPE=SPFILE; sql>shutdo