Loadrunner对ORACLE进行参数化.docx

  1. 1、本文档共6页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Loadrunner对ORACLE进行参数化

loadrunner可以参数化一些参数,其中一种可以用直接连接数据库取值的方式:选中参数,右键:Replace with Paramater,选择type,点击Properties:点Data Wizard后可以设置数据库:下一步后,点Create-->机器数据源-->新建-->系统数据源-->下一步:1、postgres数据库:选择你需要的数据源(如:PostgresSQL ODBC Driver(UNICODE))-->下一步-->完成:这时可以点击Test查看你的数据库配置是否正确这些做完后,输入sql语句,Finish即可:2、oralce数据库:先安装oracle客户端,其间有建立Net服务名(前面跟postgres数据库一样,然后)选择你安装的oracle:-->下一步-->完成-->Data Source Name:the name used to identify the data source to ODBC. For example, "odbc-pc". You must enter a Data Source Name.Description - a description or comment about the data in the data source. For example, "Hire date, salary history, and current review of all employees." The Description field is optional.TNS Service Name - the location of the Oracle database from which the ODBC driver will retrieve data. This is the same name entered in configuring network database services using the Oracle Net Manager. For more information, see the Oracle Net Services documentation and Using the Oracle ODBC Driver for the First Time. The TNS Service Name can be selected from a pulldown list of available TNS names. For example, "ODBC-PC". You must enter a TNS Service Name.User ID - the user name of the account on the server used to access the data. For example, "scott". The User ID field is optional.-->点击:Test Connection看是否可以连接-->输入用户名密码-->OK-->OK-->选择你的数据库源名称,然后确定-->输入用户名密码在SQL statement框里输入你要查询的sql语句:Finish就OK了

文档评论(0)

xjj2017 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档