DataStage官方培训教程7(共18张).pptx
-
资源ID:7836993
资源大小:361.69KB
全文页数:18页
- 资源格式: PPTX
下载积分:20金币
快捷下载
会员登录下载
微信登录下载
三方登录下载:
微信扫一扫登录
友情提示
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
|
DataStage官方培训教程7(共18张).pptx
DataStage EssentialsHashed FilesServer Edition This document and the software described herein are the property of Ascential Software Corporation and its licensors and contain confidential trade secrets. All rights to this publication are reserved. No part of this document may be reproduced, transmitted, transcribed, stored in a retrieval system or translated into any language, in any form or by any means, without prior permission from Ascential Software Corporation. Copyright 2003 Ascential Software Corporation. All rights Reserved Ascential Software Corporation reserves the right to make changes to this document and the software described herein at any time and without notice. No warranty is expressed or implied other than any contained in the terms and conditions of sale. Ascential Software Corporation50 Washington StreetWestboro, MA 01581-1021 USAPhone: (508) 366-3888Fax: (508) 366-3669 Ascential, DataStage, INTEGRITY, MetaRecon, MetaStage and MetaBroker are trademarks of Ascential Software Corporation. Pick is a registered trademark of Pick Systems. Ascential Software is not a licensee of Pick Systems. Other trademarks and registered trademarks are the property of the respective trademark holder. 2/26/2022Upon module completion, students will be able to:Define what a hashed file isList different types of hashed filesList various uses for hashed filesCreate hashed filesSource hashed filesUse caching attributes to accelerate reads and writesImport metadata from hashed filesDelete hashed filesModule Objectives 2002 Ascential Software Corp. All rights reserved.Corporation. All Rights Reserved Reproduction and/or Redistribution Is Prohibited. What is a Hashed File?A DataStage file written to the file systemMost use a hashing algorithm based on key column valuesFiles can be cataloged in the projects VOC file for easy retrieval 2002 Ascential Software Corp. All rights reserved.Corporation. All Rights Reserved Reproduction and/or Redistribution Is Prohibited. Types of Hashed Files21 different typesType 1 and 19 do not use a hashing algorithmTypes 2-18 are static hashed files and use a hashing algorithmType 25 is static and uses a B-tree algorithmType 30 is dynamic and uses a hashing algorithm 2002 Ascential Software Corp. All rights reserved.Corporation. All Rights Reserved Reproduction and/or Redistribution Is Prohibited. Uses of Hashed FilesGood for locally storing tables of a remote database that will be read from frequentlyGood as an intermediate file location in sequences of jobsMain use is as a reference lookup table 2002 Ascential Software Corp. All rights reserved.Corporation. All Rights Reserved Reproduction and/or Redistribution Is Prohibited. Hashing Algorithms (Static File Types)Character typeLocation where most variation occurs in key columnRightMiddleLeftAnyWholly numeric261014Numeric & separators371115ASCII481216Any591317 2002 Ascential Software Corp. All rights reserved.Corporation. All Rights Reserved Reproduction and/or Redistribution Is Prohibited. HashingAlgorithmInserting Records into Hashed FilesGroup 1Group 2Group 3Group 4Group 5 2002 Ascential Software Corp. All rights reserved.Corporation. All Rights Reserved Reproduction and/or Redistribution Is Prohibited. Overflow GroupsGroup 1Group 2Group 3Group 4Group 5Header204840966144819210240GroupAddressoverflowGroup 212288When there is not enough space remaining in a group, the group overflows 2002 Ascential Software Corp. All rights reserved.Corporation. All Rights Reserved Reproduction and/or Redistribution Is Prohibited. Creating Hashed FilesInsert the name of the hashed filecan use parameters Let the job create the hashed fileCan optionally use the CREATE.FILE command from a DataStage command shell or program 2002 Ascential Software Corp. All rights reserved.Corporation. All Rights Reserved Reproduction and/or Redistribution Is Prohibited. How many groups to create initiallyOptions for Creating Hashed FilesWhat percentage of file capacity to create a new groupWhich type of file to createHow large the groups will beWhat percentage of file capacity to remove a groupSimilar to dropping a table 2002 Ascential Software Corp. All rights reserved.Corporation. All Rights Reserved Reproduction and/or Redistribution Is Prohibited. Hashed File LocationsCreate and/or write records to a hashed file in a specific projectdoesnt have to be yours!Create and/or write records to a hashed file in a specific directorycan present issues 2002 Ascential Software Corp. All rights reserved.Corporation. All Rights Reserved Reproduction and/or Redistribution Is Prohibited. Write CachingEnabled from Input page of hashed file stageAllows records to be written to memory buffer initially and flushed to disk onceI/O is extremely expensivethis minimizes writes to diskCan present issues when reading from a hashed file at the same time 2002 Ascential Software Corp. All rights reserved.Corporation. All Rights Reserved Reproduction and/or Redistribution Is Prohibited. Importing Metadata from a Hashed FileChoose the project from the drop-down listAvailable hashed files within the project appearselect one or multiples 2002 Ascential Software Corp. All rights reserved.Corporation. All Rights Reserved Reproduction and/or Redistribution Is Prohibited. Sourcing a Hashed FileInsert the name of the hashed file or use drop-down listcan use parameters Enable or disable read cachingfour methods 2002 Ascential Software Corp. All rights reserved.Corporation. All Rights Reserved Reproduction and/or Redistribution Is Prohibited. Read CachingEnabled from Output page of hashed file stageFour methods are availablebe sure to choose the correct methodAllows records to be read into memory buffer I/O is extremely expensivethis minimizes reads from diskCan present issues when writing to a hashed file at the same time 2002 Ascential Software Corp. All rights reserved.Corporation. All Rights Reserved Reproduction and/or Redistribution Is Prohibited. Deleting Hashed FilesNot advisable to manually delete operating system directories and filesIssue DELETE.FILE command from DataStage Administrator or DataStage command shellCreate shell script to run delete_file.exe program and supply hashed file namedelete_file.exe program is installed when the server is installed and is located in the servers engine directory in the bin subdirectory 2002 Ascential Software Corp. All rights reserved.Corporation. All Rights Reserved Reproduction and/or Redistribution Is Prohibited. 演讲完毕,谢谢观看!