建立資料表空間遇到的字元大小些問題

來源:互聯網
上載者:User

SQL> create tablespace test datafile 'Y:\test.dbf' size 20M;

實際建立的資料表空間名字為 TEST。

按照下面3行命令執行都可以刪除資料表空間:

SQL> drop tablespace test;

資料表空間已刪除。

SQL> drop tablespace TEST;

資料表空間已刪除。

SQL> drop tablespace "TEST";

資料表空間已刪除。

也就是刪除資料表空間時,提供的資料表空間名如果不加"",則提交到內部的字元會轉換為大寫。

-------------------------------------------------------------------------------

如果在建立資料表空間時給資料表空間名加上"",如:

SQL> create tablespace "test" datafile 'Y:\test.dbf' size 20M;

則建立出來的資料表空間名就是test,如果用drop tablespace test2009來刪除資料表空間會出現報錯:

SQL> drop tablespace test;
drop tablespace test
*
第 1 行出現錯誤:
ORA-00959: 資料表空間 'TEST' 不存在

執行如下命令則可以成功:

SQL> drop tablespace "test";

資料表空間已刪除。

不論建立資料表空間時是否加"",實際產生的資料檔案名都是大寫的。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.