Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

what can do in MY schema in oracle

Posted on 2011-02-26
6
Medium Priority
?
393 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 500 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 500 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
Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

 

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 1000 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 1000 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

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
Suggested Courses

810 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