Solved

what can do in MY schema in oracle

Posted on 2011-02-26
6
381 Views
Last Modified: 2012-05-11
Hi Guys

i just want to know what can i do in my schema in oracle?
can i create any table , for example?

create table test(ID number)

it shows me :ORA-01950:no privileges on tablespace 'USERS'

0
Comment
Question by:SayYou_SayMe
6 Comments
 
LVL 18

Accepted Solution

by:
sventhan earned 125 total points
ID: 34989388
ALTER USER <username> QUOTA 100M ON <tablespace name>
 
GRANT UNLIMITED TABLESPACE TO <username>

http://www.dba-oracle.com/t_ora_01950_no+priviledges_on_tablespace_string.htm
0
 

Author Comment

by:SayYou_SayMe
ID: 34989565
ORA-01031:insufficient privileges

should DBA perform this Alter?

0
 
LVL 73

Assisted Solution

by:sdstuber
sdstuber earned 125 total points
ID: 34989733
yes, your DBA will need to grant you quota on whatever tablespace you try to write to, whether specific value or unlimited.

Also,  you will need the "create table" privilege; but, if you got the quota error then you already have that other wise you would have gotten a different error
0
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.

 

Author Comment

by:SayYou_SayMe
ID: 34989763
can I create a table under my schema
like this ? abc is another schema in the same instance(database)
create table TEST as select * from abc.product where 1=2
0
 
LVL 3

Assisted Solution

by:gopisera
gopisera earned 250 total points
ID: 34989806
Then  You must have the select privilege [given by root user or by the abc user to  your current user] on the table product.

eg.,
As an abc user grant this privilege
grant select on product to <Your user>;

Then from your user you can create a table.

As said from above if you need to create a table space on a particular tablespace.  You should have the quota on that tablespace.
0
 
LVL 3

Assisted Solution

by:gopisera
gopisera earned 250 total points
ID: 34989818
One more thing is that

create table TEST as select * from abc.product where 1=2 ;

This sql statement will transfer the structure of product to test.  Data is null on test table.

By default the table test on <schema>  goes into the default tablespace assigned to that schema;

ALTER USER myuser
DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp
QUOTA 100M ON users;

here users is a tablespace
myuser is a schema
temp is a tempararoy tablespace
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

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
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…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
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

759 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

19 Experts available now in Live!

Get 1:1 Help Now