Solved

default

Posted on 2013-11-28
5
387 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows how to recover a database from a user managed backup
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

728 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