Solved

what can do in MY schema in oracle

Posted on 2011-02-26
6
385 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 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
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.

Question has a verified solution.

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

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
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…
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

830 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