Reg: Creating bottlenecks for testing on databases
Hi all,
I am doing database benchmarking for one database and i want to compare with other databases like sql server,postgress etc...
For that i want to create test scenarios and benchmark on multiple databases.
eg:where we can stress the database by creating the problem...
Its urgent......
Thanks in advance..
In order to do this, you need to populate your server with some test data (preferably a high volume of data) and then write scripts that access the data again and again, with larger and larger numbers of logged in users.
Normally, you would use specialist loading software, such as Mercury LoadRunner (which I think is owned by IBM these days) - they are very expensive but worthwhile if you have specific performance targets that you need to meet and of course the budget!
Otherwise, you could write your own test rig but this is probably a project in itself - having need to find a low-cost benchmarking tool myself earlier in the year, I know that there is next to nothing on the market which could be considered 'low cost'!
cheers.
R
Similar Messages
-
hi all,
I am trying to setup ASM for test purpose on winxp with oracle 10g release 1.
I have created asm instance with
oradim -NEW -ASMSID +ASM -STARTMODE auto
and my pfile located in E:\oracle\product\10.1.0\Db_1\database looks like.
INSTANCE_TYPE=ASM
ASMALLOW_ONLY_RAW_DISKS = FALSE
DB_UNIQUE_NAME = +ASM
ASM_DISKSTRING ='E:\asmdisks\*'
LARGE_POOL_SIZE = 16M
BACKGROUND_DUMP_DEST ='E:\oracle\product\10.1.0\admin\+ASM\bdump'
USER_DUMP_DEST = 'E:\oracle\product\10.1.0\admin\+ASM\udump'
CORE_DUMP_DEST = 'E:\oracle\product\10.1.0\admin\+ASM\cdump'
I have created 3 disks with following commands
asmtool -create e:\asmdisks\disk1 512
asmtool -create e:\asmdisks\disk2 512
asmtool -create e:\asmdisks\disk3 512
now when i do
SET ORACLE_SID=+ASM
and
sqlplus / as sysdba
I get
SQL> select path, mount_status from v$asm_disk;
no row selected.
and for obvious reasons I get following message
SQL> create diskgroup data external redundancy disk
2 'E:\asmdisks\disk1';
create diskgroup data external redundancy disk
ERROR at line 1:
ORA-15018: diskgroup cannot be created
ORA-15031: disk specification 'E:\asmdisks\disk1' matches no disks
ORA-15025: could not open disk 'E:\ASMDISKS\DISK1'
ORA-15059: invalid device type for ASM disk
OSD-04018: Unable to access the specified directory or device.
O/S-Error: (OS 1200) The specified device name is invalid.
Please guide me..I am very new to ASM .Hi all,
my problem got resolved.
I have created same fake disks by asmtool and the created diskgroups by "create diskgroup.. " then I was able to see the diks in v$asm_disk view..
I have successfully migrated my database to ASM if u have any questions do mail me @ [email protected]. -
Urgent -Create RFC for update the database and delete from the database
Hi Guy's,
Please help me how to create the RFC for update to databse and delete from database(step-by-step) procedure.
Thanks and Regards,
Sai.Hi,
Please go through the following link,
reward if helps.
[RFC Step By Step|https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action?pageId=39728]
regards,
mahantesh -
Creating .bat for analyzing the Database.
Hi Experts,
I am having a doubt in scheduling database analysis process windows 2003 server.
Every Sunday, we have to schedule the database analysis. just view the below example
sysuser login id : testlogin
sysuser password: demotest
connection string: demotest
file - demo.sql is available in d:\
Now i need to create a .bat file for scheduling purpose.
in the bat file, i want to connect as sysuser and then execute the above mentioned sql file. please suggest me how to give the syntax for connecting to oracle database as sysuser through a .bat file.
One more doubt: we have to analyze the database in sysuser mode only or also in local user mode???
suggest me about this...
Thanks in Advance.oracle recommends generation of statistics using dbms_stats package with
dbms_jobs package.
You can use following procedure as sys user
variable jobno number;
variable instno number;
begin
select instance_number into :instno from v$instance;
dbms_job.submit(:jobno, 'dbms_stats.GATHER_SCHEMA_STATS(ownname=>'<schema Name>,OPTIONS=>''GATHER'',cascade=>TRUE);', TO_DATE('18-JUN-05--21','DD-MON-YY--HH24'), '(SYSDATE+1)', TRUE, :instno);
commit;
end;
/ -
Creating Standby for RAC ASM database using RMAN
We are having a Primary Site of 3-Node RAC ASM and we takes daily RMAN backup with the following script
run
allocate channel c1 device type disk format 'g:\rmanbackup\%U';
backup database;
backup archivelog from time 'trunc(sysdate-1)' until time 'sysdate';
We have configured 3-Node RAC Cluster in Standby site. We have copied the rman backup folder to one of the Nodes in the Standby site.
Request your help to restore the RMAN backup. The backup size is around 200GB. We do not know how to use DUPLICATE DUPICATE option in RMAN as if it is restoring from the Primary Location, then transferring 200GB over the network will not be possible.
We need a solution to restore it directly from the Backup folder available in the DR Server. We are not using catalog.
OS : Windows IA 64-bit
RDBMS : Oracle 10.2.0.4
Storage : ASM
DB Nodes at Primary Site, Node1, Node2, Node3
DB instances at primary site : ORCL1, ORCL2, ORCL3
DB Nodes at Standby Site, Node101, Node102, Node103
DB instances at Standby site : ORCL1, ORCL2, ORCL3
DB Name : ORCL on both the sites.When you create the standby, you can use catalogued backups, stored somewhere local to your standby servers.
For that, they need to be copied to the standby server, or taken from production there, and after restoring the standby controlfile on the standby server, use rman to catalogue the backups to be used. Then, you can use DUPLICATE... and it will be reading your local backup files.
The directory g:\rmanbackup of your rman script is local to standby servers ?
The docs for this have a lot of details: http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/rcmbackp.htm
Regards. -
Error when creating Infopath for testing webservice
I have done below steps in Microsoft Infopath
1) i clicked on New form data source infopath
2) selected web service then click next
3) selectec Receve and submit data then click on next
4) specified the http://xidev:8000/sap/xi/engine?type=entry (this URL i got when i created webservice in ID of xi)
when i click next i am getting following error.
<b>could not open http://xidev:8000/sap/xi/engine?type=entry</b>
after i click ok, then again igot the 2nd message
InfoPath cannot find or cannot access the specified web service description
may i know the reason.
thanks
pranai
nullHello Anthes,
Please Check the things in following sequence :
1.Use latest SAPehpi, R3trans and tp versions.
2. users/group authorization issue and/or ownersip limitations (set 777) .Reboot the server to make sure, that the authorisations are updated and there is no lock on a file in the EHPI dir.Repeat the phase.
Folders where permissions should be 777 are Upgrade directory, Data Directory, Cofile directory and .../EPS/in.
3. Source file corruption can be ruled out by execution
R3trans -l /usr/sap/<SID>/..../abap/data/R-700BGINPLMWUI.SAP (The data file corresponding to the Package which is giving error). Check if this ends fine.
Note 2050
4. Confirm that your transport tool is 'healthy' by testing it in STMS. In SPAM in client 000 use the function Disassemble package and enter the package <Package name>.
5. Try to update the kernel if it not helps.
Best Regards
Niraj -
Hi all,
This is a suggestion rather than a question.
I sometimes need a folder with a nice small well defined set of data for testing.
Rather than have to go to the DA and ask them to add a table to the Oracle database and then add it to the Business Area I found a simpler solution:
In Discoverer Administrator Create a Custom Folder.
Add SQL something like:
SELECT 'A' AS Type, 1 AS Days, 10 AS DailyCost FROM DUAL
UNION SELECT 'A',2,20 FROM DUAL
UNION SELECT 'B',3,50 FROM DUAL
UNION SELECT 'B',4,100 FROM DUAL
This will provide a table with three fields: Type, Days & DailyCost.
And four records.
Save this and give it a sensible name such as TestTable and it's then available
for running tests.
It's not too complex to create a series of Excel formulae which will take a table of values and create the SQL to be used to create a custom folder.
This is a fairly quick (if hackish) way of getting a table of values into the business area until such time as it can be put into the database by the DA.
In Excel
For a table with field names in cells A1..C1 and records in A2..C5 use the following formulae in Cells E2..E5 and then copy these four cells to get the SQL!
="SELECT "&IF(ISTEXT(A2),"'"&A2&"'",A2&"")&" AS "&A1&","&IF(ISTEXT(B2),"'"&B2&"'",B2&"")&" AS "&B1&","&IF(ISTEXT(C2),"'"&C2&"'",C2&"")&" AS "&C1& " FROM DUAL"
="UNION SELECT "&IF(ISTEXT(A3),"'"&A3&"'",A3&"")&","&IF(ISTEXT(B3),"'"&B3&"'",B3&"")&","&IF(ISTEXT(C3),"'"&C3&"'",C3&"")& " FROM DUAL"
="UNION SELECT "&IF(ISTEXT(A4),"'"&A4&"'",A4&"")&","&IF(ISTEXT(B4),"'"&B4&"'",B4&"")&","&IF(ISTEXT(C4),"'"&C4&"'",C4&"")& " FROM DUAL"
="UNION SELECT "&IF(ISTEXT(A5),"'"&A5&"'",A5&"")&","&IF(ISTEXT(B5),"'"&B5&"'",B5&"")&","&IF(ISTEXT(C5),"'"&C5&"'",C5&"")& " FROM DUAL"
Yours nerdily
SuhadaHi Suhada
Like Rod, I'm a fellow nerd and am always on the lookout for cool ways to expand and work on data inside Discoverer.
With your permission, I'd like to take this idea and make a posting on my blog (http://learndiscoverer.blogspot.com/). I'll give you credit for the idea but thought it might be nice if I could show it working with screenshots of Excel and inside both Discoverer Admin and Plus.
If you don't object, please send me ([email protected]) the Excel spreadhsheet that you used for your test and I'll see if I can't get something up within the next week or so.
Best wishes
Michael -
How create data block corruption for test DBMS_REPAIR
Hello to all
I wanna create data block corruption in a table for testing Dbms_repair
is it possible ? if yes please say to me how I can do it ,by example please
thanksthank you so much that link was helpful (specially it's last respond)
I could create data block corruption and I tested DBMS_REPAIR and RMAN for data block recovery
but now I got head spin that if we have rman backup from database so using dbms_repair is what for?
while we can recover corrupted data blocks
please guide me
thanks -
How do I create a new emkey for Enterprise Manager Database Control?
Hi,
I just installed 11gR2.
I am evaluating it.
How do I create a new emkey for Enterprise Manager Database Control?
I tried various combinations of this command:
emctl config emkey
I did find a probable bug:
$ emctl config emkey -emkey -emkeyfile emkey.ora -force -sysman_pwd he11ow0rld
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
Undefined subroutine &EmKeyCmds::promptUserPasswd called at /u2/app/oracle/product/11.2.0/dbhome_1/bin/EmKeyCmds.pm line 160, <FILE> line 3.
$
Again,
How do I create a new emkey for Enterprise Manager Database Control?
I do have a copy of my old key but it is no longer good because I reinstalled the repository with these commands:
emca -repos drop ...
emca -repos create ...
Oh, and where is emctl "documented".
I poked around in some book-index links and with the search engine.
I could not find anything.
Thanks,
-Janisuser11892726 wrote:
Oh, and where is emctl "documented".
http://download.oracle.com/docs/cd/B16240_01/welcome.html -
Hi All,
Please help me out against this issue. I have spent so much (3 working days) time just figuring out what is the issue and its solution.
I am learning Tabular Mode and trying to create a mode based on PowerPivot model. I am getting following error message:
'The PowerPivot workbook could not be imported. The service account for the workspace database server does not have permission to read from the PowerPivot workbook.'
Here is my infrastructure:
1. SSAS in Tabular Mode is installed on my Windows 8 Laptop
2. PowerPivot is also in my laptop
3. There is only my account (as Admin of course) for SSAS
Here are my questions:
1. What is this error and how can I cope with that? A step by step explanation would be highly appreciated :-)
2. Do I need to change something in Windows settings or in SSAS?
3. I am confused about my workspace database server as well, Do I have to install SSAS twice; one for development and one for workspace?
Looking forward for the expert advise.
Tahir
Thanks, TAHi,
I suspect you might have more luck if you try the SSAS forum: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlanalysisservices
Regards
Jamie
ObjectStorageHelper<T> – A WinRT utility for Windows 8 |
http://sqlblog.com/blogs/jamie_thomson/ |
@jamiet |
About me -
Creating sequences for all tables in the database at a time
Hi ,
I need to create sequences for all the tables in my database.
i can create individually ,using toad and sqlplus.
Can any one give me a code for creating the sequences dynamically at a time for all the tables.
it is urgent ..
Regards.I need to create sequences for majority of the tables that are having ID column
which is sequences."The majority" is not the same as all. So you probably want to drive your generation script off the ALL_TAB_COLUMNS view...
where column_name = 'ID'You need to think about this carefully. You might want different CACHE sizes or different INCREMENT BY clauses for certain tables. You might even (whisper it) want a sequence to be shared by more than one table.
Code generation is a useful technique, but it is a rare application where one case fits all.
Cheers, APC
Blog : http://radiofreetooting.blogspot.com/ -
I am trying to understand and make use of Tutorial: Data Modeling for a Small Database
During this tutorial I'm supposed to make Transactions Entity containing two attributes that will refer to Patrons (patron_id) and Books Entities (book_id) (2.1.4)
Later, I'm adding two one-to-many relations that duplicate mentioned attributes in Transactions Entity (patron_id1 and book_id1). (2.1.5)
So here comes my questions: what's the purpose of creating those attributes in point 2.1.4 if they're then duplicated in paragraph 2.1.5?
If it might be crucial, i'm using Oracle SQL Developer Data Modeler Version 4.0.0.825 Build 825 on jdk1.7.0_25.
Bonus question: How to turn on attributes types on Logical Diagram? I can't find corresponding option anywhere...
I would be really grateful for every answer and for every trick!You are looking at release 2 documentation. I checked 3.3 and 4.0 EA3 and the tutorial has been corrected You may want to download the latest version and use that documentation.
-
How to use the default database service name on creating procedure for data
how to use the default database service name on creating procedure for datagaurd client failover ??? all oracle doc says create a new service as below and enable at DB startup. but our client is using/wanted database default service to connect from application on the datagaurd environment (rac to non rac setup).please help.
Db name is = prod.
exec DBMS_SERVICE.CREATE_SERVICE (service_name => 'prod',network_name =>'prod',failover_method => 'BASIC',failover_type => 'SELECT',failover_retries => 180,failover_delay => 1);
says already the service available.
CREATE OR REPLACE TRIGGER manage_dgservice after startup on database DECLARE role
VARCHAR(30);BEGIN SELECT DATABASE_ROLE INTO role FROM V$DATABASE;
IF role = 'NO' THEN DBMS_SERVICE.START_SERVICE('prod');
END IF;
END;
says trigger created, but during a swithover still the service is listeneing on listener.
tns entry.
prod =
(DESCRIPTION =
(ADDRESS_LIST =
(LOAD_BALANCE = YES)
(ADDRESS = (PROTOCOL = TCP)(HOST = prod1)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = prod2)(PORT = 1521)) ---> primary db entry
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = proddr)(PORT = 1521)) --> DR DB entry
(CONNECT_DATA =
(SERVICE_NAME = prod)
thanks in advance.
Edited by: 854393 on Dec 29, 2012 11:52 AMHello;
So in the example below replace "ernie" with the alias you want the client to use.
I can show you how I do it :
First an entry need to be added to the client tnsnames.ora that uses a SERVICE_NAME instead of a SID.
ernie =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = Primary.host)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = Standby.host)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ernie)
)Next the service 'ernie' needs to be created manually on the primary database.
BEGIN
DBMS_SERVICE.CREATE_SERVICE('ernie','ernie');
END;
/After creating the service needs to be manually started.
BEGIN
DBMS_SERVICE.START_SERVICE('ernie');
END;
/Several of the default parameters can now be set for 'ernie'.
BEGIN
DBMS_SERVICE.MODIFY_SERVICE
('ernie',
FAILOVER_METHOD => 'BASIC',
FAILOVER_TYPE => 'SELECT',
FAILOVER_RETRIES => 200,
FAILOVER_DELAY => 1);
END;
/Finally a database STARTUP trigger should be created to ensures that this service is only offered if the database is primary.
CREATE TRIGGER CHECK_ERNIE_START AFTER STARTUP ON DATABASE
DECLARE
V_ROLE VARCHAR(30);
BEGIN
SELECT DATABASE_ROLE INTO V_ROLE FROM V$DATABASE;
IF V_ROLE = 'PRIMARY' THEN
DBMS_SERVICE.START_SERVICE('ernie');
ELSE
DBMS_SERVICE.STOP_SERVICE('ernie');
END IF;
END;
/lsnrctl status - should show the new service.
When I do this the Database will still register with the listener. I don't give that to the clients. That one will still be available but nobody knows about it. Meanwhile "ernie" moves with the database role.
So in my example the default just hangs out in the background.
Best Regards
mseberg
Edited by: mseberg on Dec 29, 2012 3:51 PM -
Do I need to install Oracle database 12c on PC to create tables for Weblogic server
Hi,
I am new to WebLogic and I am following a book Java EE Development
with Eclipse published by PACKT Publishing to learn Java EE. I have installed Oracle Enterprise Pack for Eclipse
on the PC and I am able to log into the WebLogic Server
Administration Console and set up a Data Source. However the next step is to create
tables for the database. The book says that the tables can be
created using SQL script run from the SQL command line.
I cannot see any way of inputting SQL script into the WebLogic
Server Admistration Console. Aslo there is no SQL Command line
in DOS.
I have put a previous question on the Oracle Forum about the above and I was advised to use SQL Plus
to create the tables for the weblogic server but no mention was made of installing Oracle database.
I have downloaded InstantClient SQL Plus and Instantclient Basic on a PC and
put the files into the same directory C:\SQLPlus but now I am having a problem in that it is
looking for a username and password when I run the sqlplus.exe file.
Now I assume that I need to have an installation of Oracle databse on the
PC so as to be able to use SQL Plus. Am I correct in this or can I create tables for the
datasource in weblogic without an Oracle database?
Thanks in advance for your help. BrianYou should install it separately and also need to change the OBIEE's user.sh to tell it where is your Oracle client installed.
-
How to create service for new database
i am working on 8i.i want to create new database instead of existing for which first service have to create.i had created parameter file and perform changes,now with oradim i am trying to create service but it is giving incorrect version bcaz i have win2000 and oradim works with winnt only.
Goodfire wrote:
I want after creation of a custom database to execute a script that will create a Network Service without having to go through the UI
Its just adding those 5 lines at tsnames.ora on the client dir
How can I do i through a script?
So I can plant it after Create DB script and have both in 1 step.
P.S.
The most obvious keywords on main SE don't return something for this so it worths adding it
keywords : how to create client network service from script oracleWrong approach.
Better: create database template and execute dbca in silent mode.
Also execute netca in silent mode as Harrison suggest.
PS: Adding the 5 lines to tnsnames.ora does not create a network service, first you have to set the "service_names" init parameter and the listener will create the service when the database starts (simplified explanation).
:p
Maybe you are looking for
-
I'm unsure about how to approach sharpening of individual photos for my photo books. Here's the workflow I follow to print books at Shared Ink: Import RAW images into Lightroom 2. Color Correct/Sharpen images within the Develop Module Export RAW imag
-
I have 2 HP G71 Notebooks - with WIN 7; 4:0 GB; 64 Bit and both dispaly the Internal Battery 601 error message. How/where do I get replacement batteries?
-
Unable to merge events in iPhoto
I am unable to merge two events in iPhoto 9.4.2. When I select two events to merge and then go to the Event menu there is no "merge" option, not even a greyed out one. When I try to drag one event on top of the other I can't. Help menu says either
-
Can we link one application instance with multiple databases ?
We have R12.1.1 and db is 11.1.0.7 on redhat 5.3 ( 64 bit). Can we link one application instance ( apps / , inst / ) with multiple database ( db / ), is this possible ? if yes how ?
-
Remove Following people from mysite for all users
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server") $web = Get-SPWeb https://www.contoso.com/teams/yourteam $context = [Microsoft.SharePoint.SPServiceContext]::GetContext([Microsoft.SharePoint.SPSite]$web.Site) $upm = New-Obj