Solved

what can do in MY schema in oracle

Posted on 2011-02-26
6
387 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
[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
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 74

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
Technology Partners: 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!

 

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and theā€¦
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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 how to recover a database from a user managed backup

738 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