Solved

default

Posted on 2013-11-28
5
365 Views
Last Modified: 2013-11-28
When we create a table what is the default user ... if we do not specify.
same way what will be the default tablespace..
0
Comment
Question by:dev_dba
  • 2
  • 2
5 Comments
 
LVL 28

Expert Comment

by:Naveen Kumar
ID: 39684687
default tablespace -> check in dba_users with the below query

select default_tablespace from dba_users
where username='SCOTT'
0
 
LVL 22

Expert Comment

by:Steve Wales
ID: 39684689
If you don't specify an owner, the table is owned by who ever who are connected to the database as.

Type "show user" to see who you are connected as (if in sqlplus).

Each user has a default tablespace assigned when the user is created.  If no tablespace is specified in the create table statement, that tablespace is used.

select default_tablespace from dba_users where username = 'YOUR_OWNER_NAME';
0
 
LVL 28

Accepted Solution

by:
Naveen Kumar earned 500 total points
ID: 39684690
Before creating a table, you would have connected to the database using a database username right. That would be the username in which you have created the table.
0
 
LVL 22

Expert Comment

by:Steve Wales
ID: 39684692
Further to my above, if not using sqlplus (TOAD or some other tool) you can also do this to see your connected username:

SELECT sys_context('USERENV', 'SESSION_USER') FROM DUAL;
0
 

Author Closing Comment

by:dev_dba
ID: 39684699
Thank you..
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question