Tablespace quota

In partition table when a new partition is created on tablespace , why I dont require to assign quota limit on same to user inserting data in that table.....

created new normal table with sysdba privs in normal user schema
create table user1.test (a varchar (2) ) tablespace tools ;
grant insert on user1.test to user2;
conn user2/user2 ;
insert into user1.test values ('AB') ;
1 row inserted.
commit ;
sucess
select * from dba_ts_quotas where tablespace_name = 'TOOLS' ;
no row selected
now how come user2 able to insert data into user1.test which is located on TOOLS tablespace. Where as I have not assign any quota on TOOLS tablespace.
Edited by: user9964251 on Sep 29, 2009 12:42 AM

Similar Messages

  • ORA-01536: Tablespace Quota Error...

    Hi all,
    I am testing a SQL script to one of my databases. After several tests, I receive the ORA-01536: Tablespace quota has been reached for tablespace "USERS".
    This doesn't look reasonable since the user is SYSDBA with unlimited tablespace privilege and both tablespaces I tried are about 20% full with unlimited autoextend option.
    What am I doing wrong? Please help me...
    Thanks in advance...

    This doesn't look reasonable since the user is SYSDBA Is this user the owner of the table you are inserting into? The tablespace quotas enforced are the ones assigned to the table owner not the inserter. If this is the case you need to grant a larger quota to the table owner, using the command Chris posted.
    By the way, I think running scripts as a SYSDBA user is dangerous - these are powerful accounts in their own right and should be used as little as possible. Also, tests by a SYSDBA user don't prove anything if the script has to be run by a non-SYSDBA account.
    By the way #2, I don't think anybody should be given the UNLIMITED TABLESPACE privilege. That's just asking for trouble. Same applies to the RESOURCE role.
    Cheers, APC

  • Ora - 01536 Tablespace Quota

    I am getting an error
    ORA - 01536 : Space Quota exceeded for tablespace 'Tablespacename';
    I have tried options like
    alter user <username> quota unlimited on <Tablespacename>;
    Grant resource to <username>;
    I am still getting the same error
    Please can any one help me
    Lakshmi Nar

    Perhaps you are giving quota in the wrong tablespace. Can you post the complete error ?
    Perhaps that user is trying to stored objects in another tablespace different than its default tablespace.
    Joel Pérez

  • Increasing tablespace quota

    Hi
    i have a requirement in which i need to increase tablespace size for my schema. actually the tablespace that is given to me is shared by many other 'owners' too but i want the datasize just for me to be increased.
    SELECT OWNER,TABLESPACE_NAME,SUM(BYTES/1024/1024) "Allocated Size in MB"
    FROM DBA_SEGMENTS WHERE TABLESPACE_NAME = 'DATA_TS1'
    GROUP BY OWNER,TABLESPACE_NAME ORDER BY OWNER;
    will give this result
    OWNER | TABLESPACE_NAME| Allocated Size in MB
    30026882 | DATA_TS1 | 170.9375
    30042534 | DATA_TS1 | 0.1875
    myself | DATA_TS1 | 106951.875
    now how can i just increase quota for 'myself'?
    Can this be done? and if so can you plz provide me with syntax?

    Hi,
    974647 wrote:
    SELECT OWNER,TABLESPACE_NAME,SUM(BYTES/1024/1024) "Allocated Size in MB"
    FROM DBA_SEGMENTS WHERE TABLESPACE_NAME = 'DATA_TS1'
    GROUP BY OWNER,TABLESPACE_NAME ORDER BY OWNER;
    will give this result
    OWNER | TABLESPACE_NAME| Allocated Size in MB
    30026882 | DATA_TS1 | 170.9375
    30042534 | DATA_TS1 | 0.1875
    myself | DATA_TS1 | 106951.875That's showing you the space already being used. The quotas for each user are obviously at least that large, but the query above doesn't say anything more about quotas. Query dba_ts_quotas to see the quota information.
    now how can i just increase quota for 'myself'?
    Can this be done? and if so can you plz provide me with syntax?
    ALTER USER myself    QUOTA x M    ON data_ts1;where x is the new number of megabytes.
    There is no way to guarantee that other users won't use the newly created space if they have sufficiently large quotas. If you want to make some space available only to a given user, then you need a tablespace where nobody except that user has a quota.

  • Unlimited tablespace and unlimited quota

    What is the differences between granting a user unlimited tablespace and giving unlimited quota. Is unlimited tablespace mean the user can create object in any tablespace?
    Thanks,
    Nur Hidayat

    unlimited tablespace = user can create objects in any tablespace. In any tablespace he can use unlimited amount of space.
    unlimited quota can be given to a user for a particular tablespace.
    Disadvantages of giving unlimited tablespace privilege
    1) The privilege overrides all explicit tablespace quotas for the user.
    2) You cannot selectively revoke tablespace access from a user with the UNLIMITED TABLESPACE privilege. You can grant access selectively only after revoking the privilege.
    -aijaz

  • Unlimited tablespace issue

    Hi,
    would like to have a better understanding on the unlimited tablespace privilege isue.
    1.) Am i right to say that when an account for example A is granted with the unlimted tablespace privilege, A can use any tablespace in the database, no restriction on the amount of size to be used?
    2.) For example, tables were created on tablespace T1_data. So when user account B insert records into the tables, where will the data be stored at? The default tablespace that the user B is assigned or the T1_data tablespace? Does the user account B need to be granted with the unlimited tablespace or quota on the T1_data tablespace?
    Thank You. Anyone can advise.

    http://download.oracle.com/docs/cd/B19306_01/network.102/b14266/admusers.htm#sthref1493
    Oracle® Database Security Guide
    10g Release 2 (10.2)
    Part Number B14266-01
    11.1.1.4.2 UNLIMITED TABLESPACE System Privilege
    To permit a user to use an unlimited amount of any tablespace in the database, grant the user the UNLIMITED TABLESPACE system privilege. This overrides all explicit tablespace quotas for the user. If you later revoke the privilege, then explicit quotas again take effect. You can grant this privilege only to users, not to roles.

  • No privileges on tablespace

    i exported a table from database test to other database through logical backup.
    while importing i am getting error ora-01950-no privileges on table space 'mchtbs'
    the user from which i exported the table default table space is mchtbs.
    i am getting my table imported to the user who has default table space mchtbs
    why this is happening.can any one suggest me
    thanks in advance

    So?
    Isn't this just a quota issue?
    Did you look up the error message?
    Your initial post is so vague, one would need an interpreter to understand it.
    If you would have set up the target user with the correct default tablespace, quota on the default tablespace, and no quota on the original tablespace, it would have worked.
    And obviously, the resolution to ora-1950 has been posted all over the Internet.
    But why would one use a search engine, when you can post the question again?
    Sybrand Bakker
    Senior Oracle DBA

  • Export from 8i to 11g does not create object in default tablespace

    Hello
    I have exported and schema from oracle 8i and i try to import it in oracle 11g in a different architecture (8i is sparc. 11g is x86)
    i have created an user with default tablespace and the original tablespace does not exist in this database, but I am getting the error;
    IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'TS_ARCCLAIMS_DAT' does not exist
    if i create an indexfile and create all the objects by removing the REM from the indexfile i have countless contrains errors so i bet this is not an option.
    this is how the user is created in 11g:
    CREATE USER ARCCLAIMS
      IDENTIFIED BY <password>
      DEFAULT TABLESPACE ARCCLAIMS_DAT
      TEMPORARY TABLESPACE GN_TMP
      PROFILE DEFAULT
      ACCOUNT UNLOCK;
      -- 2 Roles for ARCCLAIMS
      GRANT CONNECT TO ARCCLAIMS;
      GRANT RESOURCE TO ARCCLAIMS;
      ALTER USER ARCCLAIMS DEFAULT ROLE ALL;
      -- 1 System Privilege for ARCCLAIMS
      GRANT UNLIMITED TABLESPACE TO ARCCLAIMS;
      -- 1 Tablespace Quota for ARCCLAIMS
      ALTER USER ARCCLAIMS QUOTA UNLIMITED ON ARCCLAIMS_DAT;
    what do i have to do in order to have the objects go to the default tablespace of the user?
    thank you
    Mario G,

    Hello,
    I believe that you are right, the tables seem to have a clob datatype..
    here is it one of the tables affected:
    IMP-00017: following statement failed with ORACLE error 959:
    "CREATE TABLE "CLM_MAIL_INBOX" ("IBX_CODE" NUMBER(6, 0) NOT NULL DISABLE, "I"
    "BX_CLM_CODE" NUMBER(10, 0), "IBX_IMP" CHAR(1), "IBX_FROM" VARCHAR2(50), "IB"
    "X_SUBJECT" VARCHAR2(200), "IBX_CREATION" DATE, "IBX_ATTACH_TYPE" VARCHAR2(1"
    "0), "IBX_ATTACH" BLOB, "IBX_CONTENT" VARCHAR2(1000), "IBX_RESP_STN" VARCHAR"
    "2(3))  PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 LOGGING STORAGE(INITIA"
    "L 16384 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "TS_ARCCLAIMS_DAT" LOB (""
    "IBX_ATTACH") STORE AS  (TABLESPACE "TS_ARCCLAIMS_DAT" DISABLE STORAGE IN RO"
    "W CHUNK 8192 PCTVERSION 10 NOCACHE  STORAGE(INITIAL 24576 FREELISTS 1 FREEL"
    "IST GROUPS 1))"
    IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'TS_ARCCLAIMS_DAT' does not exist
    I have already reviewed the document 1180873.1
    could the DEFERRED_SEGMENT_CREATION=false be enough..
    could this be done with alter system or alter session? which one is better?
    thank you

  • User specific previledges on a particular tablespace

    Hi,
    1. I have created a user giving him permission for a
    default tablespace for him.Can i revoke his
    permissions from all other available tablespaces . If
    yes? How?
    2. I have gone through some related documents that says
    we can change user's tablespace quota to zero.Can we
    make it zero for all other tablespaces except his
    default tablespace.If yes ? How?

    As long as the user does not have resourse role, or DBA role, then he, by default, has no quota on any tablespaces... even his default one. So, you allot quota per tablespace to the user.
    ALTER USER SCOTT
    QUOTA UNLIMITED ON EXAMPLE_TS
    "UNLIMITED" could be "5M" or whatever you want it to be. To remove this quota, make that be "0K". That's a zero followed by a K - not the work "okay". OK?
    Tom Best

  • UNLIMITED TABLESPACE vs MAXEXTENTS...

    Hi,
    Let's assume that :
    1)a db user has been granted the UNLIMITED TABLESPACE privilege....
    2)all tables's extents he created have been full ....
    3)the tables's maximum number of extents has been reached....
    4)there is almost no other free tablespace empty..... so , it must be resized....
    when a/some records in one table are going to be inserted.... what may happen....????
    1) because of the maxextents number has been reached... so as there is no possibility another extent(s) to be added..., the records will not be inserted....????
    2) because of the UNLIMITED TABLESPACE... the tablespace would be resized and as a result the records... will be inserted....????
    In other words....which one is prevailing....
    the UNLIMITED TABLESPACE.... or MAXEXTENTS .....????
    Thanks... a lot
    Sim

    unlimited tablespace privilege means tablespace quotas do not apply and you can create objects in any tablespace, including SYSTEM.
    Consequently, granting UNLIMITED TABLESPACE should be avoided, as it allows the grantee to create havoc in your database.
    Setting maxextents is a thing of the past. Usually maxextents is unlimited.
    You forgot however: datafiles have limits too
    As to your questions:
    If you did set quota for the owner of the table and the quota is used up, the statement will fail.
    However, usually one sets quota unlimited on the tablespace(s) the owner has access to, and one sets the tables maxextents to unlimited.
    In that case the statement will fail when the datafile and/or the disk is full.
    Final note: as altering quotas is quite easy, you could have experimented, and one proper answer would have been 'did you try?'
    Hth
    Sybrand Bakker
    Senior Oracle DBA

  • UNLIMITED TABLESPACE in RESOURCE role

    Hi all,<br>
    It's known that UNLIMITED TABLESPACE is included in RESOURCE role.<br>
    My question is: <b>Why I don't see the system privilige UNLIMITED TABLESPACE when I try to display the priviliges granted to that role?</b><br>
    SQL> select PRIVILEGE     
      2  from   ROLE_SYS_PRIVS
      3  where
      4   role='RESOURCE'
      5  /
    PRIVILEGE
    CREATE TYPE
    CREATE TABLE
    CREATE CLUSTER
    CREATE TRIGGER
    CREATE OPERATOR
    CREATE SEQUENCE
    CREATE INDEXTYPE
    CREATE PROCEDURE<br>
    Also, in the Enterprise Manager, it is shown that a user who is granted the RESOURCE role has the UNLIMITED TABLESPACE. However, when I display the priviliges granted to the RESOURCE role, I don't see the privilige granted to the role.<br>
    Oralce DB 10g R2 on Win XP<br><br>
    Thanks in advance

    Why I don't see the system privilige UNLIMITED TABLESPACE
    when I try to display the priviliges granted to that role?Because that privilege cannot be granted to a role, but to a user only, albeit granting RESOURCE role implicitly grants UNLIMITED TABLESPACE, That's why I never grant RESOURCE role directly to a user. See this example.
    SYS@db102 SQL> create role user_role;
    Role created.
    SYS@db102 SQL> grant connect, resource to user_role;
    Grant succeeded.
    SYS@db102 SQL> create user test1 identified by test1;
    User created.
    SYS@db102 SQL> grant user_role to test1;
    Grant succeeded.
    SYS@db102 SQL> conn test1/test1
    Connected.
    TEST1@db102 SQL> select * from session_privs;
    PRIVILEGE
    CREATE SESSION
    CREATE TABLE
    CREATE CLUSTER
    CREATE SEQUENCE
    CREATE PROCEDURE
    CREATE TRIGGER
    CREATE TYPE
    CREATE OPERATOR
    CREATE INDEXTYPE
    9 rows selected.
    TEST1@db102 SQL> conn / as sysdba
    Connected.
    SYS@db102 SQL> create user test2 identified by test2;
    User created.
    SYS@db102 SQL> grant connect,resource to test2;
    Grant succeeded.
    SYS@db102 SQL> conn test2/test2
    Connected.
    TEST2@db102 SQL> select * from session_privs;
    PRIVILEGE
    CREATE SESSION
    UNLIMITED TABLESPACE
    CREATE TABLE
    CREATE CLUSTER
    CREATE SEQUENCE
    CREATE PROCEDURE
    CREATE TRIGGER
    CREATE TYPE
    CREATE OPERATOR
    CREATE INDEXTYPE
    10 rows selected.
    TEST2@db102 SQL>                                                               The following is from Oracle documentation :
    UNLIMITED TABLESPACE
    Use an unlimited amount of any tablespace. This privilege overrides any specific quotas assigned. If you revoke this privilege from a user, then the user's schema objects remain but further tablespace allocation is denied unless authorized by specific tablespace quotas. You cannot grant this system privilege to roles.

  • EXP & IMP only restores to same tablespace(s)

    Hi All...
    I created new user with new tablespace and import dmp to new user
    but the import utility imported same tablepspace (increase old datafile size).
    even I dropped new user but the old tablespace (datafile) size not reduced?
    Sudhir

    Normal behavior.
    Using conventional exp/imp the correct method to 'relocate' an user is
    - make sure the target user doesn't have unlimited tablespace privilege by revoking it
    - make sure the user doesn't have quota on the old tablespace and does have quota on the new tablespace
    alter user <target user> default tablespace <new tablespace> quota unlimited on <new tablespace> quota 0 on <old tablespace>
    - Now import with indexes=n
    - run a second import using the parameter indexfile=<any filename>
    - Edit the resulting file, changing all tablespaces
    - now run the file in sqlplus
    - this should be it
    Using expdp and impdp, remap_tablespaces on impdp is sufficient
    Hth
    Sybrand Bakker
    Senior Oracle DBA

  • Livecycle ES2, Oracle configuration, limited tablespace

    Hello,
    I am busy preparing and installing a clustered environment:
    2 servers, each their own WAS. Both instances must use a Oracle 11G database configuration.
    According the documentation livecycle requires the Oracle database to allow the LC runtime user to have the following privileges:
    CREATE SEQUENCE
    CREATE VIEW
    UNLIMITED TABLESPACE
    CREATE TABLE
    CREATE CLUSTER
    CREATE SESSION
    The database expert involved does not want to grant the bold-indicated privilege.
    Will this introduce installation or runtime errors?
    I ran through most of the installation documentation but i cannot find any clue about the consequences of not granting this specific privilege except that this right is essential during bootstrap.
    Thanks for any reaction!
    gr.
    Marcel

    Thanks KhushwantSingh.
    I do have some extra remarks/question though.
    I can imagine livecycle needs to extend it's tablespace unlimitly to prevent database locks during deployment or runtime process handling. No question about that!
    The unlimited tablespace setting is not about extending a specific tablespace but about granting a user an unlimited amount of any tablespace in the database.
    See Unlimited tablespace Oracle definition:
    =====================
    UNLIMITED TABLESPACE System Privilege
    To permit a user to use an unlimited amount of any tablespace in the database, grant the user the UNLIMITED TABLESPACE system privilege. This overrides all explicit tablespace quotas for the user. If you later revoke the privilege, explicit quotas again take effect. You can grant this privilege only to users, not to roles.
    Before granting the UNLIMITED TABLESPACE system privilege, consider the consequences of doing so.
    Advantage:
    You can grant a user unlimited access to all tablespaces of a database with one statement.
        Disadvantages: 
    The privilege overrides all explicit tablespace quotas for the user.
    You cannot selectively revoke tablespace access from a user with the UNLIMITED TABLESPACE privilege. You can grant access selectively only after revoking the privilege.
    =====================
    The oracle administrator is not really happy with assigning such rights to a specific user, because of the risk of locking all tablespaces in the database.
    Can you please confirm if it absolutely necessary to grant the unlimited tablespace right to the livecycle user according to the definition of this right as described above?
    Thanks alot (again) for your reaction!

  • How to decrease workspace quota ?

    Hello :)
    When creating a new APEX workspace with new schema, APEX initially asks for a Space Quota.
    How do I increase and/or decrease the initially specified space quota for a workspace ?
    I've looked around in "Manage Workspaces" (eg. "Manage File Utilization") but cannot find any option to change a workspace quota. The only way I know to change a workspace quota is to raise a Service Request, but this only allows increasing quota - what if I want to decrease the quota ?.

    jarola wrote:
    Hi,
    You can not do that from APEX.
    DBA need modify data file.That is strange, because I can see in OEM that (1) the user tablespace quota is unlimited, (2) the tablespace is set to autoextend, and (3) USER_TS_QUOTAS and DBA_TS_QUOTAS dictionary views show that Max_Bytes and Max_Blocks is "-1" (unlimited).
    This suggests to me that there is an additional quota being enforced by APEX. This should be modifiable somewhere but where ?
    As of APEX version 4.2.1, it appears to me that the only way to increase workspace/schema quota is via a Service Request. This means somebody has to go through a tedious process: (1) log in a particular workspace, (2) raise a service request, (3) then log in as an instance administrator to approve the request in order to increase a workspace quota. And the change direction is only one-way (ie. only allows increases and not decreases) -- so what if an instance administrator initially specifies a huge 1000 gigabyte workspace/schema quota by mistake and then later wants to restrict it ?
    There should be a place in Manage Workspaces for an APEX instance administrator to modify/manage workspace or schema quotas in a central location.
    Edited by: mvanle on May 4, 2013 6:56 PM

  • Script quota changes

    I've searched here and the documentation but I can't find out where/how to modify the script quotas.
    Any help appreciated (even if it's pointing out the obvious...)
    Greg

    Hi Sven,
    Me too, i only knows tablespaces quotas before finding this today !
    When we connect to APEX, then > SQL > Scripts SQL and on the right we can
    see "Post the quotas" !
    Perhaps Greg have problem with storage for his scripts ?
    Regards
    Henri

Maybe you are looking for

  • How do I sync my iPod with a new iTunes account without losing pictures

    The old PC broke and data lost so need to start afresh but don't want to lose the pictures - or can we sync those to my iTunes account?

  • OIM - iPlanet User Recon

    I am using OIM 9.1 connectors. I was trying to reconcile users from iPlanet. The following are the details from Task Scheduler ( iPlanet User Recon Task) IsIPlanetTarget     true TrustedSource     false Role     Contractor Organization     Xellerate

  • How to import DVD+VR (full res.) into iMovie HD?

    I created the disks from old VCR tapes using a Lite-On DVD Recorder and now I want to edit them (full res.) and burn them back to DVD. This is one of the main reasons I purchased this comp. (sales clerk said it would do it "No problem") I've tried a

  • Handshake failure

    Hello everyone here iam struggling with a problem, of handshake failure. the synoptical story is 1. I am developing a java client to connect a payware merchant server at a port 3443 through SSL, with package JSSE from JDK1.4.1 on windows 2000 using s

  • Importing Adobe photshop album files and tags

    I am moving off the PC and onto a new Mac. I am using Adobe Photshop album on my PC and have all my 5 GB of pictures "tagged" with information on who is in it and where it was taken. I will be copying the photos onto the mac and want to use IPHoto. I