2016-07-20 21 views
0

のOracle 11Gは、行ORA-01950を挿入することはできません:表領域

には何の権限は、私は、ユーザー

ALTER USER CWS_APP quota unlimited on CWS_APP; 
grant RESOURCE,CONNECT,UNLIMITED TABLESPACE to CWS_APP; 

しかし、まだテーブルに行を挿入することができないにすべての権限を付与されていない:

insert into CWS_RULES.pr4_base(pzinskey, pxcommitdatetime) values('abc',sysdate) 
Error report - 
SQL Error: ORA-01950: no privileges on tablespace 'CWS_RULES' 
01950. 00000 - "no privileges on tablespace '%s'" 
*Cause: User does not have privileges to allocate an extent in the 
      specified tablespace. 
*Action: Grant the user the appropriate system privileges or grant the user 
      space resource on the tablespace. 

答えて

0

オブジェクトの所有者はデータを所有しており、適切な表領域に適切な割当て制限が必要です。挿入を引き起こしたユーザーは関係ありません。オラクルが特定のテーブルのどの行を特定のユーザーが挿入して、その行をそのクォータに対してカウントするかを追跡しなければならない場合、それは良いことです。

テーブルはcws_rulesによって所有されています。したがって、cws_rulesユーザーは、データを収容するために十分な割り当てをcws_rules表領域に配置する必要があります。 cws_appは、データを所有していないため、どのような割り当てが行われてもかまいません。