473,394 Members | 1,567 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Creating a database is slow on Windows XP

I am a developer working on a database client program. I am testing this
program on a Windows XP machine (1.5 GHz AMD chip, 480 Mb RAM, 60 Gb disk)
This machine has Oracle 9.2.0.1.0 and RedBrick database software installed.
I am testing the software by creating small test databases.
If I create an Oracle database using the Database Configuration Assistant,
it takes forever just to create the database. If I choose to create a
new database and deselect all the options (Example Schemas, Data Mining,
OLAP, JVM, Intermedia etc) it still takes 10 minutes to create the
database. With RedBrick I can create a database in less than 10 seconds.
Once the database has been created, loading and accessing the data
takes about the same time with Oracle and RedBrick.

So here are my questions:
1. Why does Oracle take so long just to create an empty database/
what is it doing during database creation?
2. Oracle includes tuning tools, but I think these are only for use
on existing databases. Is there any Oracle settings I can change to
speed up database creation?
3. If I installed more memory on my machine would it significantly
speed up database creation?

Thanks
Jul 19 '05 #1
6 6827

"Dim St Thomas" <di*********@yahoo.com> wrote in message
news:1e**************************@posting.google.c om...
I am a developer working on a database client program. I am testing this
program on a Windows XP machine (1.5 GHz AMD chip, 480 Mb RAM, 60 Gb disk)
This machine has Oracle 9.2.0.1.0 and RedBrick database software installed. I am testing the software by creating small test databases.
If I create an Oracle database using the Database Configuration Assistant,
it takes forever just to create the database. If I choose to create a
new database and deselect all the options (Example Schemas, Data Mining,
OLAP, JVM, Intermedia etc) it still takes 10 minutes to create the
database. With RedBrick I can create a database in less than 10 seconds.
Once the database has been created, loading and accessing the data
takes about the same time with Oracle and RedBrick.

So here are my questions:
1. Why does Oracle take so long just to create an empty database/
what is it doing during database creation?
2. Oracle includes tuning tools, but I think these are only for use
on existing databases. Is there any Oracle settings I can change to
speed up database creation?
3. If I installed more memory on my machine would it significantly
speed up database creation?

Thanks


Why are you creating databases again and again? I don't know anything about
Redbrick, but in Oracle you are creating a lot of structures etc. Usually,
one creates one database and then creates multiple schemas.(which don't take
long at all, seconds, tops)
Jim
Jul 19 '05 #2
Dim St Thomas wrote:
I am a developer working on a database client program. I am testing this


I have a strong suspicion that you might be creating databases where you
really should be creating schemas.

With all due respect, the way you phrase your question implies you do not
understand enough of the Oracle internals to program efficiently toward the
way Oracle implements the database constructs. All SQL is NOT created
(actually implemented) equally.

If you have not done so already, PLEASE get and read a copy of Thomas Kyte's
Expert One-on-one Oracle.

/Hans
Jul 19 '05 #3
10 minutes, whow that's fast :)

You can create a new database from sqlplus using 'create database' SQL
statement.
That's fast too.
DCA creates the db and runs a complete set of scripts to load all
PL/SQL API's. On my server this makes over 200 MB of data.

To speed up creation, you can tell DCA NOT to generate the DB but to build
a creation script for you. In this script you can comment out subscripts
creating obsolete parts of system schema (like oracle 7 compatible
replication views or other junk)...
On 12 May 2004 20:11:23 -0700, Dim St Thomas <di*********@yahoo.com> wrote:
I am a developer working on a database client program. I am testing this
program on a Windows XP machine (1.5 GHz AMD chip, 480 Mb RAM, 60 Gb
disk)
This machine has Oracle 9.2.0.1.0 and RedBrick database software
installed.
I am testing the software by creating small test databases.
If I create an Oracle database using the Database Configuration
Assistant,
it takes forever just to create the database. If I choose to create a
new database and deselect all the options (Example Schemas, Data Mining,
OLAP, JVM, Intermedia etc) it still takes 10 minutes to create the
database. With RedBrick I can create a database in less than 10 seconds.
Once the database has been created, loading and accessing the data
takes about the same time with Oracle and RedBrick.

So here are my questions:
1. Why does Oracle take so long just to create an empty database/
what is it doing during database creation?
2. Oracle includes tuning tools, but I think these are only for use
on existing databases. Is there any Oracle settings I can change to
speed up database creation?
3. If I installed more memory on my machine would it significantly
speed up database creation?

Thanks


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Jul 19 '05 #4
Hans Forbrich <fo******@yahoo.net> wrote in message news:<w%Coc.4114$RM.3429@edtnps89>...

Thanks for all replies.
Dim St Thomas wrote:
I am a developer working on a database client program. I am testing this
I have a strong suspicion that you might be creating databases where you
really should be creating schemas.


I think you are right. That's what happens when you are brought up on
MS Access. I have looked in the online doc which gives the following
definition of a schema:

A named collection of objects, such as tables, views, clusters,
procedures, and packages, associated with one or more particular
users.

But this seems to be an arbitary collection rather than a "real"
database object. In the example schemas, a schema is equivalent to a
user. Is this an acceptable model, i.e. create a new user account for
each schema?
With all due respect the way you phrase your question implies you do not
understand enough of the Oracle internals to program efficiently toward the
way Oracle implements the database constructs.


Yes, I wouldn't claim to be anything other than an Oracle novice.
Thanks for your help (and respect - an unusual thing on usenet!).
Jul 19 '05 #5

"Dim St Thomas" <di*********@yahoo.com> wrote in message
news:1e**************************@posting.google.c om...
Hans Forbrich <fo******@yahoo.net> wrote in message news:<w%Coc.4114$RM.3429@edtnps89>...
Thanks for all replies.
Dim St Thomas wrote:
I am a developer working on a database client program. I am testing
this
I have a strong suspicion that you might be creating databases where you
really should be creating schemas.


I think you are right. That's what happens when you are brought up on
MS Access. I have looked in the online doc which gives the following
definition of a schema:

A named collection of objects, such as tables, views, clusters,
procedures, and packages, associated with one or more particular
users.

But this seems to be an arbitary collection rather than a "real"
database object. In the example schemas, a schema is equivalent to a
user. Is this an acceptable model, i.e. create a new user account for
each schema?
With all due respect the way you phrase your question implies you do not
understand enough of the Oracle internals to program efficiently toward the way Oracle implements the database constructs.


Yes, I wouldn't claim to be anything other than an Oracle novice.
Thanks for your help (and respect - an unusual thing on usenet!).


Yes, use schemas. You create one database and have many schemas in it. (at
least one, but you can have many) Then create a user who is going to own
all the objects. Other users can access those objects by referring to them
as owner.object_name. So if the owner is finance and the table is invoices
users would refer to the invoices table as
select ... from finance.invoices where....

Hope that is clearer and causes you to spin your wheels less.
Jim
Jul 19 '05 #6
Dim St Thomas wrote:
But this seems to be an arbitary collection rather than a "real"
database object. In the example schemas, a schema is equivalent to a
user. Is this an acceptable model, i.e. create a new user account for
each schema?


An Oracle schema is a collection as described. Generally a schema is used
to define a consistent collection ... consistency preferrably defined in
terms of a specific application. As such a schema could be considered the
set of tables, indexes, views, stored procedures, security and audit
mechanisms (and so on) that form the data core to an application.

(As an aside, note also that Oracle supports Java Stored Procedures, which I
find often overlooked but in many instances preferrable to middle tier
procedures.)

The second part of a schema is that it needs an 'owner' to take
responsibility for the definition. Historically the 'owner' translates to
a 'user'. However, this need not be the case as it is possible to have an
owner account locked out and it's objects still accessible. (As a personal
opinion, I believe this 'locked account ownership model' is frequently a
sign of a professional Oracle development environment.)

To see one specific variant of this, refer to the MDSYS owner which holds
the object types for the 'spatial' and 'locator' geometries as well as the
universal lookup tables and their contents but should be locked out. In
this model , the stored procedures can be used as required, and the type
defs are used as complex columns (objects or intelligent structures) in
your application tables.
I very strongly encourage your research starting with the Thomas Kyte
'Expert One On One Oracle' book, followed by (or concurrently studied with)
the Concepts manual for your version - found at http://docs.oracle.com and
these followed by the appropriate "Administrator's Guide" or "Developer's
Guide(s)" from the same location.

Good luck (and apologies for my [typical] wordiness)
/Hans
Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Toto | last post by:
I have an access 97 database on a windows 95 platform and windows 95/XP client that query on the database. Client computer under 95 have not query problems but computer under XP are very slow and...
7
by: Jim Lawton | last post by:
I'm not sure where my problem lies, but someone here might have a suggestion. I'm developing a .NET web application, (but I don't really) think that's relevant. I'm running MySQL 4.1.7-nt on...
2
by: Jelena B | last post by:
What could be the common or possible reasons that can slow down an VB.NET windows database (SQL Server) application. What is the normal time needed for such an application to initialize and show is...
0
by: clintonG | last post by:
I applied aspnet_regsql to SQL2K which was working fine throughout Beta 2 development. After installing Visual Studio and SQL Express RTM my application has blown up. Logging in to the application...
4
by: RSH | last post by:
Hi, I have a situation where I have created a little application that makes an Access database from a SQL Database for reporting purposes. it does the job well, but it seems a bit slow. Is...
24
by: Kosmos | last post by:
Hey guys I'm a newbie and in fact I'm not even a programmer but decided to take up the task of learning access and creating a database. And I've gotten pretty far in terms of importing from excel and...
2
by: gnomee2 | last post by:
Hello Everyone, I have a strange problem that I cannot seem to solve. I have two server running Windows 2003 MSSQL on one IIS on the other. Out of the blue I have slow queries that cause asp...
6
by: Dim St Thomas | last post by:
I am a developer working on a database client program. I am testing this program on a Windows XP machine (1.5 GHz AMD chip, 480 Mb RAM, 60 Gb disk) This machine has Oracle 9.2.0.1.0 and RedBrick...
2
by: HeMan_Speaks | last post by:
I m currently developing a java based application and want to know how can i make client access database located on the server?
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.