Cognos Query_studio
- 格式:pdf
- 大小:1.07 MB
- 文档页数:80
Cognos汇总cognos学习笔记第⼆部分 Query Studio介绍 (p15)在Query Studio中创建⾃助式报表。
选择“包(Packege)”:使⽤Query Studio 和Report Studio操作报表之前都要先选择⼀个“包”。
“包”事先由技术⼈员在Framework Manager中打好并发布。
进⼊门户后可以看到已经发布的“包”。
“包”中只含有数据结构⽽不含数据本⾝。
Query Studio 界⾯:menu: insert data,edit data,change layout,run report,manage fileedit data:filter过滤,sort排序,summarize,format格式,calculate计算,rename重命名change layout:chart,edit title,set web page size,set page breaks,group,pivotrun report:run with all data,preview with no data,view in PDF/excel 2000/CSV/XML format,advanced query optionsmanage file: new report,save,save as查询主题和查询项:模型是来⾃⼀个或多个数据库的数据结构的业务展现。
模型含有若⼲查询主题(query subject),查询主题包含⼀些能够添加到报表中的查询项(query item)。
模型的数据内容来⾃Framework Manager发布的“包”(Package)。
结构如下:模型-->查询主题-->查询项。
查询主题类似“表”,查询项类似“字段”。
Query Studio ⼯具栏 (p21)删除、撤消、重做、运⾏、过滤、排序、汇集、计算、图表、分组、交叉表、去分组、设段、交换、组收缩、组展开给⾃助式报表添加数据:⽅式有:双击(查询项),拖拽(查询项)、(选中查询项)按Insert data。
DES客户端使用设置说明客户端通过IE浏览器访问DES系统,由于各IE版本的安全性设置不尽相同,对正常使用系统功能可能会有影响。
下面针对客户端浏览器的正确设置给出具体说明,以IE6.0设置为例,其他版本设置方式稍有不同。
1.客户端IE版本要求使用Microsoft Internet Explorer 6.0以上版本。
2.允许弹出窗口设置影响内容:登录DES页面后点击某些功能按钮需要打开新的IE窗口(例如点击报表编号执行报表),此时无反应。
设置方法:1)在IE工具栏中点击工具->Internet选项…:2)在选项窗口选择“隐私”标签,在“弹出窗口组织程序”中将复选框取消选中:3)如果希望仍然限制其他站点的弹出窗口,可在上一页面中仍然选中复选框,点击“设置”按钮,在输入地址的编辑框中输入DES登录页面的地址,并点击“添加”按钮:4)点击关闭完成设置。
3.信任站点设置影响内容:打开DES登录页面图片和输入框显示不正常;在DES登录页面输入正确的用户和密码后页面不跳转,返回登录页面;登录DES页面后在打开的新窗口中提示输入用户名和密码。
设置方法:1)在IE工具栏中点击工具->Internet选项…:2)在选项窗口选择“安全”标签,选中“受信任的站点”,再点击站点按钮:3)在输入网址的编辑框中输入所有服务器的地址依次添加,包括DES的应用服务器和报表服务器(包括集群的服务器地址),将窗口中的复选框取消选择,再点击添加按钮:4)点击关闭和确定后完成设置。
重新刷新页面。
4.隐私站点设置影响内容:登录DES页面后在打开的新窗口中提示输入用户名和密码。
设置方法:1)在IE工具栏中点击工具->Internet选项…:2)在选项窗口选择“隐私”标签,点击站点按钮:3)在输入网址的编辑框中输入所有报表服务器的地址依次添加(包括集群的服务器地址),再点击允许按钮:4)点击确定后完成设置。
关闭IE重新登录DES系统。
Cognos常用操作手册1.模型的更改当需求有变动,需更改模型的时候,首先打开framework Manager ,然后选中要更改的模型。
当新引用一张表的时候,右键物理层(所有引进的原表都放在物理层,不做任何改动),选中Run Metadata Wizard ,单击。
在弹出的窗口中选中Data Sources ,然后Next选中数据源,单击Next选中OCRMINST展开,展开后选中所要添加表的表名选中后,选择下面的的第一项import and create a unique name ,点击确定去掉前面的钩,不把表所带的任何关系引进来(一般都是引进表之后,自己建立关系)点击import后,导入之后点击finish。
这样就完成表的导入。
接下来完成对表的汉化(翻译),右键逻辑层(对表进行一些加工,抽取有用的字段,过滤所需要的数据等等)选择creat—>Query Subject。
填写表名,单击ok点击后拖拽到右边即可,选好后ok。
如果要对某个字段进行加工计算时(如通过汇率转换币种),单击右下角的add填写字段名称,选好加工字段后,左边的标签切换到Funotions(一些常用的函数),个字段也可以直接翻译。
接下来是展示层(就是打包后能给报表制作人员看的部分),首先在根目录ocrm下,右键create—>Namespace(这是在建模型时为了划分不同的主题,而建多个namespace,但是如果添加的表属于某个名字空间下,那么直接加到他的目录下,不用新建一个新的namespace。
如果是要单独成立一个主题,那么就需要新建一个namespace),建好namespace或选好namespace后,右键单击新建一个Query Subject,之后的步骤跟上面在逻辑层汉化一张表的步骤一样,唯一不同的就是不需要再进行一次汉化了。
这样一张新表从数据源中就引到模型中,进行了汉化和展示。
2.表与表之间建立关系选中两张要建关系的表,右键单击选中Create Relationship,选好相关联的字段,和关系类型(1:1&1:n&n:1…)确定3.切换的数据源如果数据源改变,模型也可以切换数据源,但要保证所切换的数据源要有与模型里的表相同的表名。
Cognos产品功能介绍Cognos产品构成系统物理结构共分为四层1.数据源层:包括业务数据库、数据集市、数据仓库、多维立方体以及其他来源的非关系型数据,作为查询统计分析的数据来源。
2.模型定义层:模型定义层可以分为两部份,一部分通过Cognos BI Modeling 将数据库在应用层定义为数据查询模型,定义的内容包括:数据库中的表字段在模型层被重新命名,重新组织,使其符合业务人员的逻辑;表及字段被赋予应用级安全性,保证恰当的人可以看到恰当的数据。
第二部分是将通过Cognos BI OLAP Modeling统计汇总数据按照业务逻辑生成多维立方体,将数据按照多维信息重新进行组织并且在应用层设置权限,使用户进行统计分析时得到较好的性能和灵活的查询组合方式。
3.应用服务器层:应用服务器层的Cognos BI Server for Reporting和Cognos BI Server for Analysis将在模型定义层中定义的模型和多维立方体通过Web Server进行发布展示。
需要注意的是,查询模型和多维立方体是可以通过“穿透钻取”有效的连接起来,使得分析—然后—查询的Cognos分析模式得到很好的体现。
4.浏览器层:企业用户可以通过浏览器无需任何插件来进行查询、统计分析,得到正确的信息。
对系统进行管理。
在整个系统中,Cognos主要如下产品:Cognos BI OLAP ModelingCognos BI Server for AnalysisCognos BI ModelingCognos BI Server for Reporting(1) BI OLAP ModelingBI OLAP Modeling是Cognos提供的企业级OLAP 模型设计工具,它将从各类数据源(数据库、数据仓库、平面文件)中筛选出来的数据创建成多维数据立方体。
立方体是按探察业务的OLAP多维因素分析模型的设计创建,通过对多维数据立方体的OLAP分析,用户可以辨明趋势、跟踪业务运作、创建高效的统计汇总报表。
cognos常见问题汇总Cognos常见问题汇总(1).Cube如何自动刷新?在cognos8中,如何自动更新cube呢?将类似于以下代码保存为.bat文件\Files\\cognos\\cer5\\bin\\trnsfrmr.exe\生产\\工作票合格率.pyi\其中n2表示显示执行过程窗口,n1表示最小化执行窗口,n表示不显示执行窗口.注意:powerplay transformer模型文件.pyi路径与数据立方体文件.mdc的生成路径要为同一目录.如果碰到生成之后数据不变,就要在powerplay transformer中的files-首选项菜单中设cube的临时目录,运行方式,可以直接双击.bat文件立刻生成新的cube,也可以用 cognos自带的Scheduler设置定时更新,当然也可以用windows自带的Scheduler(应该可以,没有试.)(2)oracle数据出错:ORA-12154:TNS:无法处理服务名是由于oracle没有配制好。
(3)我用transformer manager发布包mypackage后并生成iqd文件,在生成立方体的时候出现错误:Database Signon mypackage wasn't fount on the local machine.这是怎么回事?需本在配制文件congif.ini中添加数据源。
(4)我用framework manager发布包后,用query studio打开后为什么是这样的呀(点不开的,我是直接从数据库取数据发布包的,不是从cube). 不知其原因!晕倒,重装cognos解决.(5)怎么调用DTS包,让它执行,ASP、Java(JSP)、都行,怎么调用DTS包?可以用存储过程调,比较通用,调用DTS的方法 --存储过程方法:CREATE PROCEDURE my_proc1 ASEXEC master.dbo.xp_cmdshell 'dtsrun /S /E /N\包名称\/A\/A\文件.xls\数据库名\GOE:.net调用方式://说明需要添加 Microsoft.SqlServer.DTSPkg80.Package2Class ////// 运行DTS(Data Transformation Services )////// public string runDTS() { try {string returnValue;Microsoft.SqlServer.DTSPkg80.Package2Class package = newMicrosoft.SqlServer.DTSPkg80.Package2Class(); string fileName = \string password = null; string packageID = null; string versionID = null; string name = \object pVerpersistStfOfHost = null;package.LoadFromStorageFile(fileName,password,packageID,versionID,name,refpVerpersistStfOfHost); package.Execute(); package.UnInitialize();package=null;returnValue = \return returnValue; }catch(Exception ex) {throw ex; } }(6)如何使用模板技术?参照Report Studio的快速入门教程。
Cognos与FreeQuery 统一登录集成解决方案Cognos, 方案Cognos8.3 BI Web产品简介Cognos Connection 是Cognos 8 BI门户,以web 形式展现。
您可以从此处开始访问您的BI 信息和Cognos 8 的功能。
使用该门户可以发布、查找、管理、组织和查看组织的业务智能内容,例如报表、记分卡和代理。
如果您具有所需的权限,则可以从该门户访问各个工作室并将该门户用于内容管理,包括计划和分发报表及创建作业产品组件有:1、Query Studio即席查询,给用户制作列表、交叉表、图表开发环境。
在Cognos 8 中创建简单查询和报表的报表工具。
只是偶尔使用或没有经验的用户,可以使用Query Studio 创建回答简单业务问题的自助式报表。
2、Report Studio 报表开发,为用户定制专业报表,可以开发BI报表、IT报表。
Cognos 8 BI 已进行扩展以满足用户对快速轻松创建报表和格式化功能的需要,并且不需要专业创建技能。
现在Report Studio既包含传统的专业创建模式(在此版本中进行了增强),也包含快速创建模式。
3、Analysis StudioCube分析,管理人员和分析人员可以使用Analysis Studio来更好地了解业务,并获得有关业务问题的答案。
而用户则可以快速、轻松地执行分析来了解事件或行为背后的问题及原因,从而提高业务绩效。
4、Report Viewer 报表查看,用来展现HTML 和PDF等报表的界面,可嵌入到客户应用或Web页面中。
5、Metric Studi o可以创建自定义的记分卡环境来监控和分析整个组织的业务度量标准。
Metric Studio 可以帮助您将组织的战略转换为相关的可度量目标,从而使每位员工的行为和职能都与战略计划保持一致。
6、Event Studio在事件发生时,使用Event Studio通知事件组织中的决策者,以便他们可以作出及时有效的决策。
Cognos介绍与应用目录contents•Cognitive Cognos•Cognos Core Components •Application of Cognos in DataAnalysis•The Value of Cognos in Business Intelligence•Cognos Implementation and Deployment Precautions•Cognos training support and after sales service01CognitiveCognosCognos Definition and FunctionalityDefinitionCognos is a business intelligence and performancemanagement software suite that provides reporting,analysis, dashboard, scoring, and event managementcapabilitiesFunctionalityCognos enables organizations to transform data intoinsights and make informed decisions by providingtools for data integration, modeling, visualization, andcollaborationDevelopment history and market positionDevelopment historyCognos was founded in the 1960s and has since grown to become aleading provider of business intelligence solutions Over the years, it hasacquired several companies and technologies to enhance its productoffersMarket positionCognos is a well recognized brand in the business intelligence market,known for its robust functionality, scalability, and ease of use It competeswith other leading BI vendors such as Tableau, Power BI, and QlikViewCognos is widely used in various industries such as finance, healthcare, retail, manufacturing, and government It can be applied to areas such as financial reporting, operational analysis, market research, and customer relationship managementApplication fields Some of the key advantages of using Cognosinclude its ability to handle large volumes of data, provide real-time analytics, support collaborative decision making, and offer a wide range of customization options Additionally, its intuitive interface and drag and dropfunctionality make it easy for users to create and share reports and dashboardsAdvantagesApplication fields and advantages02Cognos CoreComponentsReport Studio Report DesignIntuitive report design interfaceEnable users to create pixel perfect reports with a drag and drop interface,providing full control over report layout and formattingData visualizationIncorporates charts, graphs, and other visual elements to enhance datapresentation and understandingInteractive reportingSupports drill down, filtering, and sorting capabilities to enable users to interactwith and explore data dynamicallyQuery Studio Data QueryPowerful data query toolAllow users to retrieve data from multiple sources,including relational databases, cubes, and other datarepositoriesIntrinsic query builderProvides a graphical interface for building complexqueries without requiring extensive knowledge ofSQL or other query languagesReal time data accessEnable users to run queries and view results in realtime, facilitating fast decision makingAnalysis Studio data analysisAdvanced analyticsProvides a range of statistical andpredictive analytics tools to helpusers gain deeper insights intotheir dataData visualizationUtilize charts, graphs, and othervisual aids to simplify complexdata sets and highlight key trendsand patternsInteractive analysis Supports ad hoc analysis anddata exploration through dragand drop functionality anddynamic filteringEvent Studio event handlingEvent driven architecture01Enable real-time event handling and response, allowing users totrigger actions based on specific events or conditionsCustomized event rules02Provide a flexible framework for defining event rules andresponses, enabling users to detail the system to their specificneedsIntegration with other systems03Facilities integration with external systems and applications toenable seamless event handling and automation of businessprocesses03Application ofCognos in DataAnalysisData source connection and integrationConnect to multiple data sourcesCognos can connect to various data sources such as relational databases,multi-dimensional databases, and data warehousesData integrationIt can integrate data from different sources and transform them into a unifiedformat for analysisData virtualizationCognos provides data virtualization technology, which can integrate multipledata sources into a virtual data layer for easier data access and analysisData cleaningCognos provides data cleaning functions such as data deduplication, missing value filling, and outlier processing to ensure data qualityIt can convert data fromdifferent formats andstructures into a unifiedformat for analysis, such asconverting text data intonumerical dataCognos also provides datatransformation functionssuch as data aggregation,calculation, and filtering tomeet different analysisneedsDataconversionDatatransformationData cleaning and conversionData visualization displayDiverse chart typesCognos supports a variety of chart types such as barcharts, line charts, pie charts, scatter plots, etc., whichcan visually display data and enhance understandingInteractive visualizationIt provides interactive visualization functions such asdrill down, slicing and dicing, and filtering, allowingusers to explore data more deeplyDashboard customizationUsers can customize dashboards according to theirneeds, combining different charts and widgets todisplay key indicators and analysis resultsReport designCognos provides a report designer tool that allows users to design reports with a variety of layouts and formats Interactive reportsIt supports interactive reports,which can be viewed andanalyzed in real time based onuser input and selectionsReport schedulingand distributionUsers can schedule reportgeneration and distribution tasks,automatically sending reports tospecific recipients via email orother channels010203 Interactive report production04The Value ofCognos inBusinessIntelligenceImprove decision making efficiency and accuracy•Provide comprehensive data analysis and visualization tools: Cognos offers a variety of data analysis and visualization functions, such as charts, graphs, and dashboards, which can help users quickly understand market trends, customer needs, and business situations•Real time data monitoring and alerting: With Cognos, users can set up real-time data monitoring and alerting mechanisms to track key business indicators and receive timely notifications when data changes occur, enabling faster and more accurate decision making•Data driven predictive analysis: By leveraging historical data and advanced algorithms, Cognos can help users predict future trends and outcomes, providing valuable insights for strategic planning and decision makingAutomated routing tasks and workflows: Cognos can automate routing data collection, processing, and reporting tasks, freeing up human resources for more value added work and reducing operational costs Optimize resource allocation:Through data analysis, Cognoscan help enterprises identifyefficient or redundant processesand resources, enabling morerational allocation of resourcesand cost savingsImprove collaboration andcommunication efficiency: Withits powerful collaboration andsharing functions, Cognos canfacilitate better communicationand collaboration betweendepartments and teams,improving overall businessefficiency010203 Optimize business processes and reduce costsEnhance enterprise competitiveness and innovation capability•Gain insights into market and competitor information: By analyzing external data sources such as market research reports and competitor information, Cognos can help enterprises gain a deep understanding of market trends and competitor strategies, enabling more targeted business decisions•Foster a data-driven culture of innovation: With easy access to data and insights provided by Cognos, enterprises can cultivate a culture of data-driven innovation where employees are resourced to explore new ideas and opportunities based on data insights•Accelerate product development and market launch: By leveraging data insights from Cognos, enterprises can identify customer needs and preferences more accurately and develop products that better meet market demands, then accelerate product development cycles and time to market05CognosImplementation andDeploymentPrecautionsSystem environment setup requirementsOperating SystemEnsure compatibility with the Cognos software, such asWindows, Linux, or UnixHardware RequirementsAdequate memory, storage, and processing power to supportCognos operationsNetwork ConfigurationPropose network setup to allow for effective data transmissionand accessDatabase ConnectivityEnsure seamless integration with variable databases for dataretrieval and storageUser permission setting policyRole Based Access Control (RBAC)Implement RBAC to manage user permissions and restrictaccess to sensitive data and functionsUser AuthenticationUtilize secure authentication mechanisms to verify useridentity and prevent unauthorized accessPermission LevelsDefine different permission levels for users based on theirroles and responsibilities within the organizationRegular AuditingConduct regular audits to monitor user activity and detect anysuspicious or unauthorized behaviorData security measuresEncryptionApply encryption techniques toprotect sensitive data both during transmission and at restAccess Controls Implement strict access controls to prevent unauthorized users from accessing or modifying dataData MaskingUse data masking to hide sensitive information from unauthorized users while maintaining data integrityBackup and Recovery Establish robust backup andrecovery mechanisms to ensure data availability in case of disasters or failures06Cognostrainingsupport andafter salesservice1 2 3Offers a variety of training materials, including video tutorials, user guides, and webinarsCognos Official WebsiteCognos has a team of certified trainers who provide in person and online training coursesCertified TrainersCognos partners with several training organizations to offer a wide range of courses and certificatesTraining PartnersIntroduction to Official Training ResourcesGuidelines for Using Online Learning Platforms •Access to Online Courses: Customers can ACTHANKS感谢观看。
Cognos报表打开参数查看门户页⾯http://localhost:9300/p2pd/servlet/dispatch?b_action=xts.run&m=portal/cc.xts&gohome=路径访问http://localhost:9300/p2pd/servlet/dispatch?b_action=xts.run&m=portal/cc.xts&m_folder=i46F09ECF3E8F4E8498BDB3ED729A7CE1报表访问http://192.168.133.37:9080/p2pd/servlet/dispatch?b_action=cognosViewer&ui.action=run&ui.object=%2fcontent%2fpackage%5b%40name%3d%27New%20Package1%27%5d%2freport%5b%40name%3d%27%e5%a2%9e%e5%8a%a0%e6%8f%90%e7%a4%ba%e9%a1%b5%e7%9a &=%e5%a2%9e%e5%8a%a0%e6%8f%90%e7%a4%ba%e9%a1%b5%e7%9a%84crosstab &run.outputFormat=&run.prompt=true&ui.backURL=%2fp2pd%2fservlet%2fdispatch%3fb_action%3dxts.run%26m%3dportal%2fcc.xts%26m_folder%3diAF892715743C4F388D889DC738AFBA9B%26m_section%3d16http://192.168.133.37:9080/p2pd/servlet/dispatch? :cognos10的⽹关地址b_action=cognosViewer :执⾏启动cognos10组件cognosViewer&ui.action=run:对对象的操作,如run、view、new等指定采取的⾏动,对cognos view来说可能的值是run和view,run表⽰运⾏报表&ui.object=%2fcontent%2fpackage%5b%40name%3d%27New%20Package1%27%5d%2freport%5b%40name%3d%27%e4%ba%a7%e5%93%81%e5%ad%a3%e5%ba%a6%e9%94%80%e5%94%a 指定要打开的报表等组件的(包,报表等对象)搜索路径(search path)。
Reportstudio操作手册Reportstudio具有强大的报表制作功能和展示功能的组件。
它所展现的报表基于Framework定制出的数据结构,Reportstudio是基于Web的即席查询报表制作工具,不用安装任何插件,用户可以在浏览器中制作报表,格式灵活,元素丰富,并且可以制作例如KPI,地图,仪表盘等特色报表。
1、编辑模式打开报表进入公共文件夹,打开要查询分析的数据包,例如户外销售与零售商。
点击一个Reportstudio报表右侧的按钮,如下图所示红圈处。
则打开一个新的浏览器,进入该报表的编辑模式:2、新建报表。
左上角三个按钮分别是新建,打开,保存,点击新建:弹出新建提示框,在数据包位置是现在使用的数据包名称,点击数据报右侧的红圈处,可以转换成其他的数据包,也可以转换数据报使用的语言,如英语改为中文。
新建的表样格式有空白,列表,交叉表,图表等等,使用熟练以后可以新建一个空白表,然后把需要的插件,如列表,交叉表,图表等手工加入进来。
下面我们以新建一个空白表为例子,选择空白,点确定:如上图,默认可插入对象选择深红色圈处“来源”,表示在可插入对象一栏显示现在数据包中已经定义好的数据。
点中第二个红圈处“数据项”时,可插入对象栏显示现在报表查询中已经有的数据项,第三个红圈处是“工具箱”。
左下角是属性栏目,表示当前选中对象的属性,一般包括条件,方框,颜色背景,字体等,当然,不同的对象有着各自不同的属性,上图中选中的区域为空白区域。
3、创建页眉,创建页脚,加标题。
1、创建页眉选中空白区域后,右上角红圈处分别为,给列表加页眉页脚,创建页眉,创建页脚。
点击创建页眉,如下图所示,页眉有了以后,选中工具箱:2、创建标题在工具箱里选中文本项目,拖动它到右侧的页眉里面。
如下图所示:单击选中“双击以编辑文本”,则左下角属性栏里显示该文本项目的属性,可以双击以编辑文本,也可以在属性栏目中红圈部分点开,编辑要显示的文本。