您好,登錄后才能下訂單哦!
朋友生產(chǎn)數(shù)據(jù)庫在向特定的一張表插入數(shù)據(jù)時報超出表空間data的空間限額如是執(zhí)行下查看用戶所用的表空間配額信息,查看用戶所使用表空間的配額發(fā)現(xiàn)沒有限制,因為max_bytes為 -1
SQL> select * from dba_ts_quotas where username='data'; TABLESPACE_NAME USERNAME BYTES MAX_BYTES BLOCKS MAX_BLOCKS DROPPED ------------------------------ ------------------------------ ---------- ---------- ---------- ---------- ------- data data 8825732464 -1 107735992 -1 NO 1 rows selected SQL> SQL> select 2 fs.tablespace_name "Tablespace", 3 (df.totalspace-fs.freespace) "Used MB", 4 fs.freespace "Free MB", 5 df.totalspace "Total MB", 6 round(100*(fs.freespace/df.totalspace)) "Pct. Free" 7 from 8 (select tablespace_name,round(sum(bytes)/1024/1024) TotalSpace 9 from dba_data_files group by tablespace_name) df, 10 (select tablespace_name,round(sum(bytes)/1024/1024) FreeSpace 11 from dba_free_space group by tablespace_name) fs 12 where df.tablespace_name=fs.tablespace_name; Tablespace Used MB Free MB Total MB Pct. Free ------------------------------ ---------- ---------- ---------- ---------- SYSTEM 7207 3033 10240 30 TEST 6790 34170 40960 83 USERS 173 25427 25600 99 UNDOTBS2 227 24013 24240 99 DATA 990119 176281 1166400 15 SYSAUX 3925 1195 5120 23 UNDOTBS1 12898 28062 40960 69 7 rows selected
查看表lv_data的依賴對象
SQL> select NAME,TYPE from dba_dependencies where REFERENCED_NAME='LV_DATA'; NAME TYPE ------------------------------ ------------------ LV_DATA VIEW FC_UPDATE_CORPFUND PROCEDURE FC_UPDATE_MY PROCEDURE FC_UPDATE_KY PROCEDURE FC_UPDATE_FACTPAY PROCEDURE FC_UPDATE_CALCPAY PROCEDURE FC_UPDATE_KY PROCEDURE ...... LV_DATA SYNONYM LV_DATA VIEW LV_DATA SYNONYM LV_DATA SYNONYM 139 rows selected
查看所有依賴對象的所有者
SQL> select distinct owner from dba_objects where OBJECT_NAME in(select NAME from dba_dependencies where REFERENCED_NAME='LV_DATA'); OWNER ------------------------------ SY SY_BK WEB CX DATA OLD TEST XC CZ OSY BACKUP TJ 12 rows selected
對所有依賴對象所有者授權可以無限制使用表空間
SQL> grant unlimited tablespace to OSY; Grant succeeded SQL> grant unlimited tablespace to SBK; Grant succeeded SQL> grant unlimited tablespace to WEB; Grant succeeded SQL> grant unlimited tablespace to CX; Grant succeeded SQL> grant unlimited tablespace to DATA; Grant succeeded SQL> grant unlimited tablespace to OLD; Grant succeeded SQL> grant unlimited tablespace to TEST; Grant succeeded SQL> grant unlimited tablespace to XC; Grant succeeded SQL> grant unlimited tablespace to CZ; Grant succeeded SQL> grant unlimited tablespace to SY; Grant succeeded SQL> grant unlimited tablespace to BACKUP; Grant succeeded SQL> grant unlimited tablespace to TJ; Grant succeeded
再向表lv_data插入數(shù)據(jù)時恢復正常
免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內(nèi)容。