In this blog, I’ll tell you how to load test the oracle
database using loadrunner. There are different ways to achieve it and one
simple way is writing SQL queries in vugen script.
In this blog I’m going to tell how to connect to database,
how to execute query and how to disconnect. I will be using lr_db functions to achieve
this. Loadrunner help is very useful with details about lr_db functions.
Connect to Oracle
database:
lr_db_connect("StepName=Connect",
"ConnectionString=Provider=OraOLEDB.Oracle; dbq=10.xx.xx.xx:1540;
Data Source=XXXX; Persist Security Info=True; User ID=username; Password=password",
"ConnectionName=OracleDB",
"ConnectionType=OLEDB",
LAST );
SQL statement:
lr_db_executeSQLStatement("StepName=PerformQuery",
"ConnectionName=
OracleDB",
"SQLStatement=SELECT
* FROM \"TableName\" ",
"DatasetName=MyDataset",
LAST
);
Disconnect from database:
lr_db_disconnect("StepName=Disconnect",
"ConnectionName= OracleDB",
LAST );
Hello,
ReplyDeleteThe Article on Oracle database load testing, gives detailed information about it. Thanks for Sharing the information about oracle Load Testing. For More information check the detail on the load testing here Mobile App Testing
An impressive share, I simply given this onto a colleague who was doing a little bit analysis on this. And he the truth is bought me breakfast because I found it for him.. smile. So let me reword that: Thnx for the deal with! However yeah Thnkx for spending the time to discuss this, I really feel strongly about it and love studying more on this topic. If doable, as you change into experience, would you thoughts updating your weblog with extra details? It's highly helpful for me. Big thumb up for this blog publish! gsn casino games
ReplyDeleteThis is a very basic information on how to connect to Oracle database.
ReplyDeleteCan you please let me know how to call a stored procedure using LR_DB functions ?
when we execute the script in controller , the response time for running the query is close to 0sec( 0.001sec),, any idea y?
ReplyDeleteThat means your query was super fast. Good Job~
DeleteIs that any way as until now the Vugen version already stable at v12.52, the sql query run in HTTP protocol?
ReplyDeleteGreat post... i am able to get the value from DB in Vugen but script fails in Performance Centre at the setp of Connecting DB. I have theOracle client installed on the Load Generator machines but still it fails. Any idea WHY?
ReplyDeleteHi,
ReplyDeleteThanks for the post. Can you please specify what is the datasource and what can be the value for it. Because we have custom JDBC Urls to connect to the database and I am not able to find the value for datasource attribute
Thanks in advance
Great and that i have a super proposal: How Much For House Renovation Uk home restoration companies
ReplyDelete