Heim  >  Artikel  >  Datenbank  >  创建表空间遇到的字符大小些问题

创建表空间遇到的字符大小些问题

WBOY
WBOYOriginal
2016-06-07 16:59:01937Durchsuche

SQLgt; create tablespace test datafile

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";

表空间已删除。

不论创建表空间时是否加"",实际生成的数据文件名都是大写的。

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn