Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: placing objects in the database (was: auto increment ? 'enum' datatype ?
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
![]() |
![]() |