Solved

default

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Via a live example, show how to take different types of Oracle backups using RMAN.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

947 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

20 Experts available now in Live!

Get 1:1 Help Now