企业安全策略下的跨平台数据同步--中英文翻译.doc

上传人:yyf 文档编号:5093503 上传时间:2020-02-01 格式:DOC 页数:14 大小:49KB
返回 下载 相关 举报
企业安全策略下的跨平台数据同步--中英文翻译.doc_第1页
第1页 / 共14页
企业安全策略下的跨平台数据同步--中英文翻译.doc_第2页
第2页 / 共14页
企业安全策略下的跨平台数据同步--中英文翻译.doc_第3页
第3页 / 共14页
企业安全策略下的跨平台数据同步--中英文翻译.doc_第4页
第4页 / 共14页
企业安全策略下的跨平台数据同步--中英文翻译.doc_第5页
第5页 / 共14页
点击查看更多>>
资源描述

《企业安全策略下的跨平台数据同步--中英文翻译.doc》由会员分享,可在线阅读,更多相关《企业安全策略下的跨平台数据同步--中英文翻译.doc(14页珍藏版)》请在三一文库上搜索。

1、 淮 海 工 学 院毕业设计(论文)外文资料翻译系 (院): 计算机科学系 专 业: 计算机科学与技术 姓 名: 王 琴 学 号: 3202000142 (用外文写)外文出处: Data Synchronization Over Different Platforms Under Enterprise Security Policy 附 件: 1.外文资料翻译译文;2.外文原文。 指导教师评语:外文资料的选材比较正确,内容是企业安全策略下的跨平台数据同步的方法。译文基本准确,该同学认真地完成了外文资料翻译任务。 签名: 2004年 4月 16 日注:请将该封面与附件装订成册。附件1:外文资料翻

2、译译文企业安全策略下的跨平台数据同步摘 要:本文探讨了跨平台数据同步的方法,并举例说明了在企业安全策略下实现跨平台数据同步在设计Intranet自动化工具中的应用。关键词:企业安全策略、Intranet自动化工具、Socket通信、组件化编程1. 引言关于B-S开发模式的好处已经被讨论了很多,Intranet自动化工具在现代企业办公自动化中的应用正日益普及。随着现代企业朝着国际化、集团化的方向发展,现代企业内部各部门之间出现了分工细密化和分布全球化的趋势。分工细密化和分布全球化的趋势使得各部门之间难以找到一个较完整的可共享的数据和可适用于各部门间独立管理的工具,各部门在开发自己的Intrane

3、t自动化工具的时候会根据本部门的特点和资源条件选择自己的Intranet发布平台。一方面,部门原有的数据发布平台在一定程度上影响了部门对Intranet发布平台的选择;另一方面,在选定了自己的Intranet发布平台的同时,原来与其他部门共享数据的部门也相应地选择了自己的数据发布平台。同时,现代企业内部各部门之间的协同工作也越来越密切,不同部门之间通常需要访问的数据能同步更新,或者至少能在一定的时间间隔内进行数据同步。虽然大部分的数据库产品都有自己的基于TCP/IP的访问方式,但在企业安全的策略下,各部门通常会更改对IP端口的访问方式的配置,并开发出自己的内部数据访问工具;有的部门即使使用了数

4、据库产品的默认设置,也很少公开数据库访问的用户名和密码。因此,在各部门之间通过数据库客户端访问工具进行直接的跨平台数据访问与同步几乎不具备可行性。本文是笔者在摩托罗拉中国软件中心实习期间参与开发Intranet自动化工具的设计开发过程中面临的数据同步问题解决方案的总结。2. 几种跨平台数据同步方案在介绍常用跨平台数据同步方法之前有必要简要介绍一下所开发的Intranet自动化工具的设计目的和状况。所开发的Intranet自动化工具是运行在Windows NT平台上的ASP应用程序,其设计目的是将本地Windows NT平台上的CR Tracking(Change Request Trackin

5、g, 变更需求跟踪)Access数据库与美国UNIX平台上含有CR跟踪信息的Rational ClearDDTS(Distributed Defects Tracking System, 分布式错误跟踪系统。以下简称DDTS)数据库进行同步更新,以实现与本项目相关的CR信息的本地Web访问和跟踪。在数据同步中要求实现的功能包括:获取DDTS数据库中的新数据用于Access数据库的添加、获取DDTS数据库中指定纪录的字段值用于Access数据库的更新。在接手进一步开发Intranet自动化工具之前,本项目组已经有了一个CR跟踪的Intranet工具,使用该工具可以进行CR的输入、修改、查询和列表

6、统计。该Intranet工具要求与CR相关的人员主动使用DDTS工具查询相关CR的信息,并将信息在Web录入页面上输入到Web服务器上的本地数据库,供CR跟踪使用。这种Intranet工具使用的数据同步方法是利用DDTS数据访问工具,手工数据同步。该数据同步的方法实现简单,但操作繁琐,特别是在查询时需要重复性地输入类似的SQL语句,使得这项工作显得枯燥无味。从严格意义上讲,这不能算是一种跨平台数据同步的解决方案。考虑到大部分的数据库产品都有自己的基于TCP/IP的访问方式,要求相关部门开放数据库的IP端口访问及受限的用户名和密码给Intranet开发人员也许是一个简单的实现跨平台数据同步的方法

7、。使用这种方法,只需在Windows NT Web服务器中安装相应的ODBC驱动程序,然后在设计ASP程序时使用ADO编程,进行数据的简单查询和添加、修改即可进行跨平台数据同步,设计十分简单。但这种方法存在两方面的问题:一是在开放数据库IP端口访问的用户名和密码的同时,即给该数据库所在部门带来了安全隐患,一旦Web服务器受到攻击而使用户名和密码被窃取,开放的数据库也就处在被攻击的风险之中;二是有的部门使用的是第三方开发的基于数据库的工具(如DDTS工具),其部门本身并没有数据库的管理权限,因而也就无法添加用户名和分配权限。在开发过程中,采用基于Socket通信的跨平台数据同步方法。3 .一种基

8、于Socket通信的跨平台数据同步方法基于Socket通信的跨平台数据同步方法采用客户机/服务器的概念,在分属于不同部门的不同平台的计算机上分别开发负责侦听的Socket服务器和负责连接的Socket客户端。以获取DDTS数据库中指定纪录的字段值为例,当客户端和服务器连接成功时,客户端向服务器发送相关CR的关键字以及需要获取的字段名,服务器通过调用DDTS工具的相应命令来获得客户端所需要的字段数据并发送给客户端。Socket服务器运行在DDTS所在的美国UNIX主机上,采用多进程编程。编程过程中,对建立连接时产生的EINTR错误的处理和对SIGCHLD信号的处理是关键,如果处理不好,将会出现无

9、法多次连接和连接关闭后导致僵死进程的情况。在开发过程中,使用popen函数运行一个perl脚本获取所需的数据并将其通过管道返回程序,该脚本使用DDTS工具来获取数据。这种方法充分利用了已有工具和perl语言的灵活性,降低了开发难度。为了确保侦听程序始终运行,采用了在UNIX主机的系统crontab里添加了一条指令使得系统每隔一分钟检查侦听程序scksvr是否正在运行,并在因系统异常导致其中断运行的情况下重新启动。客户端运行在Windows NT平台上,采用Microsoft Visual C+的ATL(Active Template Library)模板COM开发和MFC Socket编程做成

10、一个COM组件。使用COM组件可以避免在多个ASP文件中使用Winsock ActiveX控件进行编程,实现代码复用。该COM组件还用于一些VBScript脚本,这些VBScript脚本使用该COM组件并访问本地数据库实现数据的同步,具体实现的是自动获取DDTS上的当天CR到本地数据库并发送E-mail给相关人员、指定条件获取DDTS上的CR到本地数据库并发送E-mail给相关人员、自动更新正在进行的CR的状态、根据CR和人员进行的工时收集、CR统计与跟踪等任务,可以使用Windows NT的Schedule Service来定时运行这些VBScript脚本实现数据的定时自动同步。4. 结束语

11、本文分析了在企业安全策略下跨平台数据同步面临的问题和几种数据同步方法,在分析手工同步和开放数据库访问IP端口的利弊基础上提出了一种基于Socket通信的数据同步解决方案。在实现基于Socket通信的数据同步时,服务器端充分利用了已有的工具和perl语言的灵活性;根据实现Intranet自动化工具的需要,客户端使用了Visual C+的ATL模板设计了一个Socket客户端COM组件。在设计的自动化工具中,利用Windows NT的Schedule Service实现CR的定时自动同步、更新及发送通知E-mail等任务,使用ASP设计对本地数据库访问的交互页面进行CR跟踪。在实际使用中,这种方案

12、很好地满足了设计目的,与原有Intranet工具相比,大大降低了所有项目组成员在CR跟踪上所贡献的时间和精力。附件2:外文原文(复印件)Data Synchronization Over Different Platforms Under Enterprise Security PolicyAbstract: This paper discusses methods of data synchronization over different platforms. Then it gives an example to illuminate the application of impleme

13、ntation of data synchronization over different platforms under enterprise security policy in the design of intranet automatic tools.Key Words: Enterprise Security Policy, Intranet Automatic Tools, Socket Communication, Componential Programming1. introduction Have been discussed as for B- S developpi

14、ng the advantage of the mode a lot of, the Intranet automation tool transacts the application in the automation in the modern business enterprise increasingly universal.Along with modern business enterprise towards the direction that internationalization, group turn develops, modern business enterpr

15、ise internal and each section a trend for appearing cent work closely turning with distributing world turning.The cent work is close to turn to turn to make with the world that distribute the trend each section a data for hardly finding out aly more completely sharing with applicably the tool of the

16、 independence management among each section, each section will choose with the resources term according to the characteristics of this section at the time of developping own Intranet automating the tool own Intranet announces the terrace.On the other hand, the original data in section announces the

17、terrace to affected the section to announce the choice of the terrace to the Intranet on the certain degree;On the other hand, at make selection own Intranet announce the terrace at the same time, share with other section the section of the data originally too the ground of cowgirl chose own data an

18、nounces the terrace.At the same time, modern business enterprise internal and each section a data for being in conjunction with work too more and more closely, different section usually needing visitting can renew synchronously, or at least can in certain time partition the proceeding data is synchr

19、onous.Although big and part of databases product has own according to TCP/ IP interview method, the strategy in enterprise security is next, each section will usually change to install to the port of IP interview method, combining to develop an own internal data interview tool;The section of having

20、used even the tacit approval of the database product establishes, and also few public the customer of the database interview with password.Therefore, pass the database between each each section the customer carry to visit the tool proceed the direct cross-platform data interview with do not have the

21、 possibility synchronously and almost.This text is summary that the synchronous problem in data solution that the writer faces in motor pull period of Chinese software center practice participate Intranet that develop design development process automate tool.2. Synchronous project in data in a few c

22、ross-platformsHave the necessary synopsis introduction before introducing synchronous method in data in in common use cross-platform once an Intranet for developping automates the design purpose of the tool with the condition.An Intranet for developping automation tool is a Rational to circulates in

23、 the applied procedure in Windows NT the ASP on the terrace, its design purpose is ascend with the UNIX terrace of the United States the native Windows NT the CR on the terrace Tracking( Change Request Tracking, change need follow) the database of Access to imply CR follow the information ClearDDTS(

24、 Distributed Defects Tracking System, the distribute type mistake follows the system.Below brief name DDTS) the database proceeds the synchronous renewal, toing realize with the native Web of the related the information of CR in this item visit with follow.Request synchronously and inside in the dat

25、a the function that realizes include:The new data that obtain the DDTS database middle finger the database of Access DDTS database inside useds for the word a value increase, obtains the record settles the renewal useds for the database of Access.Before taking up further development Intranet automat

26、ion tool, this item a the tool of Intranet for thering has been a CR following, use that tool can proceed the CR importation, modification, search with row form statistics.The Intranets tool requests to search with active usage in related personnel in CR DDTS tool the information of the related CR,

27、combining to input information to the server of Web native database in Web recording into page, providing the CR follow the usage.The synchronous method in data of this kind of Intranet tool usage is to makes use of the DDTS data the interview the tool, handicraft data is synchronous.The synchronous

28、 method in that data realizes simple, but the operation is tedious, especially while searching the demand repeats sex a SQL for inputting similarly language sentence, make this work seemed to be dull.Speak from the strict meaning, there in no be regarded as the synchronous solution in data in a kind

29、 of cross-platform.In consideration of big and part of databases product has own according to TCP/ IP interview method, request the IP port interview related section opens the database and is customer by the limit develops the Intranet the personnel with the password perhaps is a realizes in brief s

30、ynchronous method in data in cross-platform.Use this kind of method, a simple search for needing in Windows NT Web server installing homologous ODBC driving procedure, then while designing ASP procedure usage ADO weaving distance, proceeding data with increase, the modification can immediately proce

31、ed the cross-platform data synchronous, design very and in brief.But this kind of method exsits the problem of the both side:While ising in customer a risk for with password at the same time, then bringing the databases place section safe getting, once the server of Web suffering attack and usage na

32、me of account with password burglarizing taking, liberal database too being placed in drive attackstoning that open database IP port interview;Two what certain sections uses are the third square the development of according to the tool( such as the tool of DDTS) of the database, its section oneself

33、management without database legal power, as a result also cant increase customer with assign the legal power.In develop process, adoption according to the cross-platform data that Socket correspondence synchronous method.3. A kind of according to Socket correspondence of cross-platform data synchron

34、ous methodAccording to Socket correspondence of cross-platform data synchronous the method adopts the concept of customers machine/ server, the calculation accordinglying belong to in the different section in different terrace is on board distinguish development responsible for the server of Socket

35、that hear with responsible for the copular the customer of Socket carries.Regard obtaining the word a value that DDTS database middle finger settle record as word a that a key word for, being customer carrying with server linking success, customer carrying sending out to server related CR and demand

36、s obtain, the server pass to adjust to acquire with the tool of DDTS cowgirl order the word that customer need when carrying a data erupts to give the customer carries.The server of Socket circulates the United States in the place of DDTS UNIX host the top, adoption many progress plait distance.Plai

37、t distance process inside, produces to handles falsely with handles to the signal of SIGCHLD to the hour of conjunction that establish the EINTR is circumstance that key, if handle not good, willing appear cant link with link to cause the progress after closing many times.In develop process, the usa

38、ge popen function circulates a perl the data that script need when obtaining combines its pass the piping return the procedure, that script usage DDTS tool to obtain the data.This kind of method made use of to there has been the tool well with the perl phonetic and vivid, lowering the difficulty of

39、development.For insuring the hears the procedure to circulate always, adopting to increase in system in the host of UNIX crontab an instruction make the each in system penny clock check 侦 hear the procedure scksvr whether in the movement, and start afresh under the situation of causing break among t

40、hem the movement unusually because of the system.The customer carries to circulate on the terrace of Windows NT, adoption Microsoft Visual C+ of the ATL( Active Template Library) template COM development makes into a COM module with the MFC Socket plait distance.The usage COM module can avoid using

41、in several ASPs document the Winsock ActiveX controls the piece proceeds to weave the distance, realizing the code reply to use.The COMs module still useds for the some the script of VBScript, these the script of VBScriptses use the COMs module and visit the native database realizes data of synchron

42、ous, realizes in a specific way of obtain the top of DDTS that very day CR automatically the native database erupt to send to E- mail to related personnel and specify the CR term obtain the top of DDTS the native database erupts to send to E- mail to related personnel and renew automatically under w

43、ay of CR appearance, according to CR is with the man-hour that personnel proceed collect, the CR statisticses with follow to wait the mission, can use the Windows NT Schedule Service to settle luck a these the script of VBScriptseses realizes the data settles hour auto synchronous.4. End languageThi

44、s text under the enterprise security strategy analyzed problem that cross-platform data synchronously face with a few datas synchronous method, put forward in analyzing the handicraft synchronously with openning the gains or losses foundation that database visit IP port a kind of according to the da

45、ta that Socket correspondence synchronous solution.At realize according to Socket correspondence of the data is synchronous, the server carried to make use of the tool that there has been well with perl phonetic and vivid;According to Intranet that realizes the demand automates the tool, the custome

46、r carried to use the Visual C+ of the template of ATL designed a Socket the customer carries the module of COM.In the automation tool that design, make use of the Windows NT Schedule Service realizes the CR settles auto synchronous, renew and send out to notify the E- mail etc. mission, usage ASP th

47、e design visits to the native database of hand over with each other page proceed CR follow.In actual usage, this kind of project satisfies to design the purpose nicely, comparing with the tool of Intranet originally possessed, lowering consumedly all items constitute the member a time for contributing in CR following with energy.

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 绩效管理


经营许可证编号:宁ICP备18001539号-1