oracle 10g $imp時出現的非常怪異的錯誤!

來源:互聯網
上載者:User

前段時間用oracle 10g匯入的時候,出現了一個很怪異的錯誤,尋找了很長時間都沒有發現原因和解決方案,

結果重新做了系統之後,重新安裝了oracle10g 2版,重新匯入資料,卻發現不出現這個錯誤,雖然我還是沒有找到具體的原因,

但是我把我兩次匯入的過程寫出來,希望能夠有協助.

 

我第一次匯入之前建立資料表空間的代碼已經找不到了,記得上次匯入報錯的時候,

我自己手動建立了資料表空間(tablespace),暫存資料表空間(tempory tablespace), 付給我自己建立立的賬戶(user),給user賦予dba許可權,

 

但這次重新做了系統,重新安裝之後的建立資料表空間的代碼如下

 

------建立資料表空間

create tablespace dxjl
datafile 'E:\oracle\product\10.2.0\oradata\orcl\dxjl.dbf'
size 100m autoextend on
next 10m
maxsize 20480m
extent management local uniform size 128k
segment space management auto

 

------建立使用者賦予資料表空間和暫存資料表空間

create user ryan identified by ryan
default tablespace dxjl
temporary tablespace temp;

 

--------賦予dba許可權

grant dba to ryan

 

------查看所有資料表空間利用率的代碼塊

select df.tablespace_name "資料表空間名",totalspace "總空間M",freespace "剩餘空間M",round((1-freespace/totalspace)*100,2) "使用率%"

from

(select tablespace_name,round(sum(bytes)/1024/1024) totalspace

from dba_data_files

group by tablespace_name) df,

(select tablespace_name,round(sum(bytes)/1024/1024) freespace

from dba_free_space

group by tablespace_name) fs

where df.tablespace_name=fs.tablespace_name;

 

 

我不記得第一次的代碼了,但是我記得第一次建立資料表空間的時候,在下面的程式碼片段裡有一些差別

extent management local uniform size 128k
segment space management auto

 

所以我想不出現上面的錯誤的原因應該在這兩句代碼裡-----------

 

希望我寫的這些會對大家有協助!!

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.