Topic: Database Administration >> Doubt on Creating Table
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| Title: Doubt on Creating Table |
| Virusminus |
Posted: Apr 15, 2008 08:56:44 AM |
Total Post: 15
Joined: Jan, 2008
|
Hi All,
I have a small doubt, If I create a table for some other user whose default tablespace will it go into? Will it be mine default tablespace or will it be the user's for whom I am creating the table? |
|
|
Mohammed Taj |
| Posted: Apr 15, 2008 11:03:17 AM | |
|
Total Post: 746
Joined: Jul, 2007
|
default tablespace specification define at schema level not reference level.
SQL> select username,default_tablespace
2 from dba_users
3 where username in ('U01','U02');
USERNAME DEFAULT_TABLESPACE
------------------------------ ------------------------------
U02 SPI
U01 USERS
SQL> conn u01/u01
Connected.
SQL> create table u02.test ( no number);
Table created.
SQL> conn / as sysdba
Connected.
SQL> select table_name,tablespace_name from dba_tables where table_name='TEST'
2 and owner ='U02';
TABLE_NAME TABLESPACE_NAME
------------------------------ ------------------------------
TEST SPI
|
|
|
|
|
Virusminus |
| Posted: Apr 15, 2008 11:23:42 AM | |
|
Total Post: 15
Joined: Jan, 2008
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 857 |
| Mohammed Taj | 746 |
| positive fanatic | 483 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| Vinoth Kumar | 367 |
| Gopu Gopi | 340 |
| Gitesh Trivedi | 322 |
| neeraj sharma | 258 |
| Ramesh Jois | 246 |
|
|