Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: placing objects in the database (was: auto increment ? 'enum' datatype ?

Re: placing objects in the database (was: auto increment ? 'enum' datatype ?

From: DI Karl Heinz Hörmann <kh.hoermann_at_penta.at>
Date: Fri, 28 Jan 2000 10:14:35 +0100
Message-ID: <86rmc1$gk0$1@newsmaster01.magnet.at>

Otis Gospodnetic schrieb in Nachricht <86prj0$dos$1_at_nnrp1.deja.com>...
>Another basic question - how do I tell Oracle that I want to make
>tables, triggers, sequences, etc. only in certain database's space?
>At one point I did:
> "CREATE DATABASE MYDBNAME"
>while logged in as system/manager, and then later I issued:
> "CREATE USER MYUSER IDENTIFIED BY MYPASS"
oops - two pairs of shoes !

ONE ORACLE database can hold any number of Schemas (= Users) so what you did is : you created a new database (supposed this did work so easy ...)
then you created in the database you had been logged in (presumably your default instance ORCL) an new Schema called MYUSER -

to control object placement you got to be aware of how ORACLE handles space:

a database consists of tablespaces which in turn consist of files - in the create statements of the database objects you can specify the tanlespace you want the object be created in. you can associate every user with a default tablespace, where his objects are created in when he does not specify a tablespace on object creation - be aware that objects go into the SYSTEM-tablespace, when you don't specify anything !!!

so: you can control where the tablespaces go in terms of file storage you can control where the objects go in term of user / tablespaces

hth Received on Fri Jan 28 2000 - 03:14:35 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US