分类:技术
技术
Oracle BI Answers Direct Database Request issue
环境: Oracle BIEE 10.1, sql server 2000
问题描述: 在OBIEE Answers界面创建数据库直接请求,其中连接池设置为: [stat].[connection pool]出现错误提示:error : Odbc driver returned an error (SQLExecDirectW).
error : State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27022] Unresolved Connection Pool object: “[stat].[connection pool]”. (HY000)
error : SQL Issued: {call NQSGetQueryColumnInfo(‘EXECUTE PHYSICAL CONNECTION POOL “[stat].[connection pool]” select * from t_gate’)}
显示出无法解析连接池对象。
解决方法:将连接池设置为”stat”.”connection pool”,一定要加上双引号。
Oracle dbconsole can’t start
环境: redhat 5.0 , oracle 10g
OC4J Configuration Issue: $ORACLE_HOME/oc4j/j2ee/OC4J_DBConsole_host_sid not found
emctl start dbconsole fails with the following error:
OC4J Configuration Issue: $ORACLE_HOME/oc4j/j2ee/OC4J_DBConsole_host_sid not found
There are three cases for this issue:
a) ORACLE_HOME variable needed to run emctl is set to the wrong database home. Set the right value and retry the process.
b) Network changes. If the hostname where Database Control was created in the first place is not resolvable anymore startup will fail with above error.
c) Database Control was not configured.
由于主机名变更,使得dbconsole无法启动。
在数据库命令行中使用操作系统命令
Oracle : 在命令行中输入host
DB2 : 命令行中输入 !
PostgreSQL : \\!
MySQL : system 或 \\! (注:只能在unix 和 linux下使用)
Oracle SQL Developer 连接Oracle
Oracle SQL Developer连接Oracle有二种方式: 1. 通过设置连接监听器 2. 直接JDBC连接
配置如图所示:
Oracle Net Manager 主机设置问题
有时候在配置监听器,将主机设置为IP地址。当更改IP后就无法通过Net Manager设置的连接字符串连接数据库。特别是笔记本上的设置,所以最好设置其为主机名。
配置OBIEE 连接 SSAS 2005
环境: SSAS 2005 , OBIEE
1. 在sql server 2005 安装目录下的 \\MSSQL.2\\OLAP\\bin\\isapi 拷贝到 C:\\Inetpub\\wwwroot\\olap
2. 在IIS上创建一个虚拟目录olap,本地路径为 C:\\Inetpub\\wwwroot\\olap。在olap属性界面选择“配置”,添加应用程序映射,在可执行文件(X):中输入 C:\\Inetpub\\wwwroot\\olap (确定按钮一直都是灰色的,只要用鼠标在文件路径的文本框中再次点击一下即可解决问题)
3. 如果只是本机登录的话,在配置文件 C:\\Inetpub\\wwwroot\\olap\\msmdpump.ini设置为<ServerName>localhost</ServerName>。其它设置为<ServerName>http://secondmachine/olap/msmdpump.dll</ServerName>
4. 在Oracle BI Administration Tool中 Import —> from Multi-dimensional
其中URL为 http://localhost/olap/msmdpump.dll , username 和 password为操作系统的用户和密码。
主流数据库的默认端口
数据库 默认端口 查询方法
Oracle 1521 在Oracle Net Manager界面中查看
DB2 5000 在命令行中输入 get dbm cfg ,找到SVCENAME,
然后到 C:\\WINDOWS\\system32\\drivers\\etc\\services 或 /etc/services 找到对应的项。
SQL Server 1433 在SQL Server Configuration Manager中查看
PostgreSQL 5432 在命令行中输入 show port
MySQL 3306 在命令行中输入 show variables like ‘port%’
RHEL 5下安装Oracle 10g报操作系统的版本检查失败
安装Oracle数据库的时候出现错误提示:
Checking installer requirements…
Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
Failed <<<<
Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2009-11-9_15-11-48PM/installActions2009-11-
9_15-11-48PM.log
原因为Oracle 10g尚未通过RHEL5测试。
解决方法:修改$oracleInstaller/database/install/oraparam.ini的参数,在后面加上redhat-5
# vi install/oraparam.ini
[Certified Versions]
Linux=redhat-3,SuSE-9,redhat-4,redhat-5,UnitedLinux-1.0,asianux-1,asianux-2
[UnitedLinux-1.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256
[Linux-redhat-3.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256
[Linux-redhat-4.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256
[Linux-redhat-5.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256
Oracle lsnrctl 无法启动
在RHEL 5下安装Oracle 11g后,启动监听程序lsnrctl,发现显示错误提示:
TNS-12537: TNS:connection closed
TNS-12560: TNS:protocol adapter error
TNS-00507: Connection closed
Linux Error: 29: Illegal seek
原因: 错误语法在/etc/hosts文件中
解决方法: 设置为其中的一行为 127.0.01 localhost.localdomain localhost


crossListener.JPG