Site Reviews
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignSite Reviews

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 25th, 2003, 12:41 PM
dakira dakira is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 2 dakira User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
table spaces

Hello, I’m fairly new to database design and need some help
with some issues that I am facing.

Here is the problem space, the database I'm designing needs
to be able to hold multiple data sets from multiple servers.

In other words, I can log into Server#1 and save data off into
the database. And then can log into Server#2 and save data from
there. Each of the data sets from each server will be exactly the same.

There is no way of telling how many servers a user can log into. So,
the data allocation needs to be dynamic for each server up to as many
that disk space will allow.

One solution was to add a column to all the tables that the database uses to
include the location of server. Not a bad idea, but it would become a processing night
mare when queries are performed on each table. The server data can be quite
extensive for each server. I’m talking up to 50,000 – 100,000 entries.

So, I thought it would be nice to use table spaces. Each table space could represent a
server. Then I could easily use the SQL command ….

select tablespace_name, contents,status from dba_tablespaces;

to access every table space, but I have problems trying to create the same tables in different table spaces.

To make a long story short, is it possible to assign the same table to multiple table spaces?

Example, create table FooBar (pkey INTEGER NOT NULL) tablespace Server1
create table FooBar (pkey INTEGER NOT NULL) tablespace Server2
create table FooBar (pkey INTEGER NOT NULL) tablespace Server3

Is this legal?

Does the type of table space matter? Does it make a difference if it is a locally managed or dictionary?

Or do I need to create separate databases to handle the concepts discussed above?

Or I am completely off track and there is another concept that will handle this?

Thanks for your time and consideration,

Dk.

PS. Here is the stack trace I get.

java.sql.SQLException: ORA-00955: name is already used by an existing object

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBE rror.java:134)
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAcce ss.java:2321)
at oracle.jdbc.oci8.OCIDBAccess.executeFetch(OCIDBAcc ess.java:1741)
at oracle.jdbc.oci8.OCIDBAccess.parseExecuteFetch(OCI DBAccess.java:1902)

at oracle.jdbc.driver.OracleStatement.executeNonQuery (OracleStatement.ja
va:2047)
at oracle.jdbc.driver.OracleStatement.doExecuteOther( OracleStatement.jav
a:1940)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTi meout(OracleStateme
nt.java:2709)
at oracle.jdbc.driver.OracleStatement.executeUpdate(O racleStatement.java
:796)
at com.raytheon.fst.managers.DBMSManager.createTables (DBMSManager.java:1
574)
at com.raytheon.fst.managers.DBMSManager.main(DBMSMan ager.java:1794)




Last edited by dakira : November 25th, 2003 at 12:43 PM.

Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignSite Reviews > table spaces


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway