Solved

default

Posted on 2013-11-28
5
357 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.

Join & Write a Comment

Suggested Solutions

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now