473,837 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Distributed database question

I'm looking for documentation pointers to learn what I need to put together
a distributed database system. I've read through "Oracle 9i Database
Administrator's Guide: Distributed Database Concepts" and Oracle Database
Concepts: Introduction to the Oracle Server: Distributed Databases
Overview", but I don't see how to do what I want.

I would like to set up a distributed database system with location
transparency and a shared schema (i.e. horizontal fragmentation). I'll
provide a little more context: I have three databases, running on separate
systems, all of which use the identical schema. So, each has entries in a
table "foo", which are unique. I'd like to provide a global access to this
data, so a client can effectively query the set of databases. So, asking
for all entries in the "foo" table would retrieve the contents of db1.foo,
db2.foo, and db3.foo. Ideally, when all is said and done, I'm planning to
wrap this in an enterprise java bean to provide an object interface.

Database links looked like the closest idea I could find, but they don't
deal well with the idea that my "foo" table has entries spread across the db
instances.

A pointer in the right direction would be greatly appreciated.

Jason
ja***@fc.hp.com
Jul 19 '05 #1
7 4008
"J Goldman" <ja***@fc.hp.co m> wrote in message
news:3f******** @usenet01.boi.h p.com...
I'm looking for documentation pointers to learn what I need to put together a distributed database system. I've read through "Oracle 9i Database
Administrator's Guide: Distributed Database Concepts" and Oracle Database
Concepts: Introduction to the Oracle Server: Distributed Databases
Overview", but I don't see how to do what I want.

I would like to set up a distributed database system with location
transparency and a shared schema (i.e. horizontal fragmentation). I'll
provide a little more context: I have three databases, running on separate systems, all of which use the identical schema. So, each has entries in a
table "foo", which are unique. I'd like to provide a global access to this data, so a client can effectively query the set of databases. So, asking
for all entries in the "foo" table would retrieve the contents of db1.foo,
db2.foo, and db3.foo. Ideally, when all is said and done, I'm planning to
wrap this in an enterprise java bean to provide an object interface.

Database links looked like the closest idea I could find, but they don't
deal well with the idea that my "foo" table has entries spread across the db instances.

A pointer in the right direction would be greatly appreciated.

Jason
ja***@fc.hp.com

Why do you want them spread over 3 machines? On one machine you might want
to partition the data into 3 tables and access the partition. You could use
database links and views, but it is going to be very inefficient.(th e link
might have to retrieve the whole table and resolve the query on the database
you are attached to - ouch, dragging all that data over a link.) Whereas a
RAC might be better.
Jim
Jul 19 '05 #2
"J Goldman" <ja***@fc.hp.co m> wrote in message news:<3f******* *@usenet01.boi. hp.com>...
A pointer in the right direction would be greatly appreciated.

Jason
ja***@fc.hp.com I would like to set up a distributed database system with location
transparency and a shared schema (i.e. horizontal fragmentation). I'll
provide a little more context: I have three databases, running on separate
systems, all of which use the identical schema. So, each has entries in a
table "foo", which are unique. I'd like to provide a global access to this
data, so a client can effectively query the set of databases. So, asking
for all entries in the "foo" table would retrieve the contents of db1.foo,
db2.foo, and db3.foo. Ideally, when all is said and done, I'm planning to
wrap this in an enterprise java bean to provide an object interface.

Your scenario has 'DISASTER AHEAD' inscribed all over it. You would be
better off by using a few 1000 of voting machines using punchcards.
Your approach would require to use UNIONs for everything, which means
the database will resort to full table scan and sorting for ALL sql
you sunmit.
Need I say more? Why do you want this? Are you up for a career move,
or do you like getting sacked by HP?

Sybrand Bakker
Senior Oracle DBA
Jul 19 '05 #3

"Jim Kennedy" <kennedy-down_with_spamm ers@no_spam.com cast.net> wrote in
message news:eb******** ***********@rwc rnsc52.ops.asp. att.net...
"J Goldman" <ja***@fc.hp.co m> wrote in message
news:3f******** @usenet01.boi.h p.com...
I'm looking for documentation pointers to learn what I need to put together
a distributed database system. I've read through "Oracle 9i Database
Administrator's Guide: Distributed Database Concepts" and Oracle Database Concepts: Introduction to the Oracle Server: Distributed Databases
Overview", but I don't see how to do what I want.

I would like to set up a distributed database system with location
transparency and a shared schema (i.e. horizontal fragmentation). I'll
provide a little more context: I have three databases, running on

separate
systems, all of which use the identical schema. So, each has entries in a table "foo", which are unique. I'd like to provide a global access to

this
data, so a client can effectively query the set of databases. So, asking for all entries in the "foo" table would retrieve the contents of db1.foo, db2.foo, and db3.foo. Ideally, when all is said and done, I'm planning to wrap this in an enterprise java bean to provide an object interface.

Database links looked like the closest idea I could find, but they don't
deal well with the idea that my "foo" table has entries spread across

the db
instances.

A pointer in the right direction would be greatly appreciated.

Jason
ja***@fc.hp.com

Why do you want them spread over 3 machines? On one machine you might

want to partition the data into 3 tables and access the partition. You could use database links and views, but it is going to be very inefficient.(th e link
might have to retrieve the whole table and resolve the query on the database you are attached to - ouch, dragging all that data over a link.) Whereas a RAC might be better.
Jim

Well, the first reason why they're spread over three machines is that I'm
adding
this to an existing product, where the databases have already been set up
like this.
This is designed such that each machine controls its own domain and one
machine
cannot access another's data. Aside from security, locality of data is also
relevant.
I'm just adding a global management view to collect all that data.

I'll have to read up on RAC to see if that addresses my needs. Thanks.

Regards,
Jason
ja***@fc.hp.com

Jul 19 '05 #4
Well, thanks for the vote of confidence. I appreciate your point that
this approach doesn't seem doomed to success. With that in mind,
can you offer any contructive suggestion on how I might provide
global access to this data? My other main thought has been to create
a set of entity EJBs local to each machine, along with a set of global
session beans. The global session beans would use something like a
dbhost parameter (where appropriate) to guide which db should be
read. Generic requests would query all of the DBs.

Jason
ja***@fc.hp.com
"Sybrand Bakker" <po*****@sybran db.demon.nl> wrote in message
news:a2******** *************** ***@posting.goo gle.com...
"J Goldman" <ja***@fc.hp.co m> wrote in message

news:<3f******* *@usenet01.boi. hp.com>...
A pointer in the right direction would be greatly appreciated.

Jason
ja***@fc.hp.com

I would like to set up a distributed database system with location
transparency and a shared schema (i.e. horizontal fragmentation). I'll
provide a little more context: I have three databases, running on separate systems, all of which use the identical schema. So, each has entries in a table "foo", which are unique. I'd like to provide a global access to this data, so a client can effectively query the set of databases. So, asking for all entries in the "foo" table would retrieve the contents of db1.foo, db2.foo, and db3.foo. Ideally, when all is said and done, I'm planning to wrap this in an enterprise java bean to provide an object interface.

Your scenario has 'DISASTER AHEAD' inscribed all over it. You would be
better off by using a few 1000 of voting machines using punchcards.
Your approach would require to use UNIONs for everything, which means
the database will resort to full table scan and sorting for ALL sql
you sunmit.
Need I say more? Why do you want this? Are you up for a career move,
or do you like getting sacked by HP?

Sybrand Bakker
Senior Oracle DBA

Jul 19 '05 #5

"Jim Kennedy" <kennedy-down_with_spamm ers@no_spam.com cast.net> wrote in
message news:eb******** ***********@rwc rnsc52.ops.asp. att.net...
Why do you want them spread over 3 machines? On one machine you might

want to partition the data into 3 tables and access the partition. You could use database links and views, but it is going to be very inefficient.(th e link
might have to retrieve the whole table and resolve the query on the database you are attached to - ouch, dragging all that data over a link.) Whereas a RAC might be better.
Jim

Well, I did a little bit of reading and I'm not convinced that a cluster
approach will
really address my problem. I'm leaning towards more of an EJB approach that
I
mentioned in another response. Thanks for the suggestions though.

Regards,
Jason
ja***@fc.hp.com
Jul 19 '05 #6
No, move all the data to 1 machine and have 3 schemas. Then you can create
a view that joins the 3 schemas(1 view for each table). The entity bean
approach is a Java programmer with a hammer that thinks everything is a
nail.]
Jim

--
Replace part of the email address: ke************* ***********@att bi.com
with family. Remove the negative part, keep the minus sign. You can figure
it out.
"J Goldman" <ja***@fc.hp.co m> wrote in message
news:3f******** @usenet01.boi.h p.com...
Well, thanks for the vote of confidence. I appreciate your point that
this approach doesn't seem doomed to success. With that in mind,
can you offer any contructive suggestion on how I might provide
global access to this data? My other main thought has been to create
a set of entity EJBs local to each machine, along with a set of global
session beans. The global session beans would use something like a
dbhost parameter (where appropriate) to guide which db should be
read. Generic requests would query all of the DBs.

Jason
ja***@fc.hp.com
"Sybrand Bakker" <po*****@sybran db.demon.nl> wrote in message
news:a2******** *************** ***@posting.goo gle.com...
"J Goldman" <ja***@fc.hp.co m> wrote in message news:<3f******* *@usenet01.boi. hp.com>...
A pointer in the right direction would be greatly appreciated.

Jason
ja***@fc.hp.com

I would like to set up a distributed database system with location
transparency and a shared schema (i.e. horizontal fragmentation). I'll provide a little more context: I have three databases, running on separate systems, all of which use the identical schema. So, each has entries
in a table "foo", which are unique. I'd like to provide a global access to this data, so a client can effectively query the set of databases. So, asking for all entries in the "foo" table would retrieve the contents of db1.foo, db2.foo, and db3.foo. Ideally, when all is said and done, I'm
planning
to wrap this in an enterprise java bean to provide an object interface.

Your scenario has 'DISASTER AHEAD' inscribed all over it. You would be
better off by using a few 1000 of voting machines using punchcards.
Your approach would require to use UNIONs for everything, which means
the database will resort to full table scan and sorting for ALL sql
you sunmit.
Need I say more? Why do you want this? Are you up for a career move,
or do you like getting sacked by HP?

Sybrand Bakker
Senior Oracle DBA


Jul 19 '05 #7
"Jim Kennedy" <kennedy-down_with_spamm ers@no_spam.com cast.net> wrote in message news:<mVsab.507 793$Ho3.85596@s ccrnsc03>...
No, move all the data to 1 machine and have 3 schemas. Then you can create
a view that joins the 3 schemas(1 view for each table). The entity bean
approach is a Java programmer with a hammer that thinks everything is a
nail.]
Jim

--
Replace part of the email address: ke************* ***********@att bi.com
with family. Remove the negative part, keep the minus sign. You can figure
it out.
"J Goldman" <ja***@fc.hp.co m> wrote in message
news:3f******** @usenet01.boi.h p.com...
Well, thanks for the vote of confidence. I appreciate your point that
this approach doesn't seem doomed to success. With that in mind,
can you offer any contructive suggestion on how I might provide
global access to this data? My other main thought has been to create
a set of entity EJBs local to each machine, along with a set of global
session beans. The global session beans would use something like a
dbhost parameter (where appropriate) to guide which db should be
read. Generic requests would query all of the DBs.

Jason
ja***@fc.hp.com
"Sybrand Bakker" <po*****@sybran db.demon.nl> wrote in message
news:a2******** *************** ***@posting.goo gle.com...
"J Goldman" <ja***@fc.hp.co m> wrote in message news:<3f******* *@usenet01.boi. hp.com>... > A pointer in the right direction would be greatly appreciated.
>
> Jason
> ja***@fc.hp.com I would like to set up a distributed database system with location
> transparency and a shared schema (i.e. horizontal fragmentation). I'll > provide a little more context: I have three databases, running on separate > systems, all of which use the identical schema. So, each has entries in
a > table "foo", which are unique. I'd like to provide a global access to this > data, so a client can effectively query the set of databases. So, asking > for all entries in the "foo" table would retrieve the contents of db1.foo, > db2.foo, and db3.foo. Ideally, when all is said and done, I'm planning
to > wrap this in an enterprise java bean to provide an object interface.
>
Your scenario has 'DISASTER AHEAD' inscribed all over it. You would be
better off by using a few 1000 of voting machines using punchcards.
Your approach would require to use UNIONs for everything, which means
the database will resort to full table scan and sorting for ALL sql
you sunmit.
Need I say more? Why do you want this? Are you up for a career move,
or do you like getting sacked by HP?

Sybrand Bakker
Senior Oracle DBA


If the DBS have to be in different locations, dosn't sound like RAC
would do you much good. What about doing all the work in the Middle
Tier and have your java app connect to all three servers and launch a
seperate query to each one? The oracle app server 9iAS should be able
to deal with all this easily (have to spend money though if you don't
have it) as it's meant to connect to many nodes. I would be leary of
links and union which may come to a screaching hault if one of the DBs
is unavailable.

Not sure how much data you have or how often it gets inserts and
updates, or how up the the minute data your query requires, but look
into materialized views if data and activity set is not too large or
you could use replication to have at least one database with all 3 DBs
data (kind of a data mart approach).
Jul 19 '05 #8

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

Similar topics

1
6721
by: channa_s | last post by:
Hi, I would be very grateful if anyone could help me with the following. I want to create a SIMPLE distributed database. It is as follows: There is a institution which has branches all over the country offering
7
2390
by: Richard Maher | last post by:
Hi, I am seeking the help of volunteers to test some software that I've developed which facilitates distributed two-phase commit transactions, encompassing any resource manager (e.g. SQL/Server or Oracle) controlled by Microsoft's Distributed Transaction Coordinator in a Windows2000 environment, with any resource manager under the control of DECdtm (e.g. Rdb (or Oracle via the XA Veneer)) in a VMS environment.
0
2470
by: DotNetJunkies User | last post by:
I am writing a distributed transaction code. My current scenario include a client database(Suppose client- having 4 main database) which can be installed anywhere which would connect to a public database placed at ISP datacentre(Suppose Server- having 2 database). this server database is added to client as linked server through vb.net interface. i have a transmission routine which transmitts the data from the client to Server and update client...
1
439
by: Avanish Pandey | last post by:
Hello All We have 3 differen services (in 3 different server) Service A,B,C . We want to implement distributed transaction when call methods of B and C from A. Is it possible? if yes then how? I have read the doc regarding this: http://www.developer.com/net/asp/article.php/3385631 but it will not work when methods are in different services on
3
1849
by: Joris Dobbelsteen | last post by:
Dear, I have some considerations I need to take designing a distributed application (it's for a school project). Basically I'm looking for some reference or guidiance material/literature and advises on (potential) issues I should take caution for. The design involves a distributed simulation application. It simulates sheeps in a pasture, together with dogs, wolves and shepherd. The pastures contain grass. There are also multiple...
2
1624
by: thunder | last post by:
Hey! Suggest me. What are needed to creat a distributed database library. Protocol,design,and implementation,etc... I am a master thesis student.
0
3022
by: gshawn3 | last post by:
Hi, I am having a hard time creating a Trigger to update an Oracle database. I am using a SQL Server 2005 Express database on a Win XP Pro SP2 desktop, linked to an Oracle 10g database on a remote Windows 2003 server. Both machines are on the same domain and very close physically (<1ms ping). I have set up the Oracle linked server in SQLEXPRESS, added the login/pw information, and I can execute select and update queries
4
2929
by: dgleeson3 | last post by:
Hello all I am creating a VB.Net distributed SQL server 2005 application. Each computer in the system has a database with a table of users and their telephone numbers. Each computer has a unique 4 digit identifying code. The central server runs an application which reads the database table on each computer.
7
188
by: J Goldman | last post by:
I'm looking for documentation pointers to learn what I need to put together a distributed database system. I've read through "Oracle 9i Database Administrator's Guide: Distributed Database Concepts" and Oracle Database Concepts: Introduction to the Oracle Server: Distributed Databases Overview", but I don't see how to do what I want. I would like to set up a distributed database system with location transparency and a shared schema...
0
9827
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9678
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10609
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9390
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7798
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6987
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5663
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5838
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4034
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.