具体配置如下。
1.选择model

2.选择数据类型,为IQD

3.指定IQD文件的路径。我是放在F:\dump\a.iqd,对leveL的选项不是很理解,姑且选择默认,还望牛人指教。

4.点击完成,照理系统应该发布文件了

5.现在问题来了。。。大家看图片,提示cognos.ini文件不能被获取

6.这个奇怪了,网上之前说这个是因为cognos.ini文件配置的问题,我看了黄豆老大的帖子,说是在cognos跟目录下,建立一个这样的文件,在cognos 8.3当中也存在一个D:\Program Files\cognos\c8\CS7Gateways\bin\cs7g.ini文件,两个文件中我都加了数据库的配置
[Databases]
ODS_LOCAL=^User ID:^?Password:;LOCAL;OR;ORACLE@%s@ods/%s@COLSEQ=
其中ODS_LOCAL为本机TNS中配置了链接数据库的字符串

看我的COGNOS。ini具体内容

7.再来看下我的a.iqd文件的语法,不知道会不会是语法的问题
COGNOS QUERY
STRUCTURE,1,1
DATABASE,orcl_LOCAL
TITLE,[orcl_LOCAL].[F_SEM_Response]
BEGIN SQL
{
select to_char(a.month_id) as 月ID,
a.org_id as 单位ID ,
e.corporationname as 单位,
a.RESOURCEID as RESOURCEID,
f.ITEM_NAME as 指标名称,
a.ITEM_VALUE as 本期值
from
(select RESOURCEID,
MONTH_ID,
ORG_ID,
ITEM_VALUE
from orcl_LOCAL.ods_zhcx.idx_item_ot_value_month
where resourceid = 'fzsc03001'
and version_id='7'
) a
left join
(select corporationid,
corporationname from orcl_LOCAL.ods_zhcx.code_pub_cmpy
) e
on (e.corporationid=a.ORG_ID)
left join
(
select RESOURCEID,ITEM_NAME from orcl_LOCAL.ods_zhcx.IDX_ITEM_DEFINE
) f
on (a.RESOURCEID=f.RESOURCEID)
}
END SQL
COLUMN,0,月ID
COLUMN,1,单位ID
COLUMN,2,单位
COLUMN,3,RESOURCEID
COLUMN,4,指标名称
COLUMN,5,本期值
-
6.jpg (92.35 KB)