Character size issues when creating a tablespace

Source: Internet
Author: User

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

The name of the actually created tablespace is TEST.

Execute the following three commands to delete the tablespace:

SQL> drop tablespace test;

The tablespace has been deleted.

SQL> drop tablespace TEST;

The tablespace has been deleted.

SQL> drop tablespace "TEST ";

The tablespace has been deleted.

That is, if "" is not added to the provided tablespace name when the tablespace is deleted, the characters submitted to the table are converted to uppercase.

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

If you add "" to the tablespace name when creating a tablespace, for example:

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

The created tablespace name is test. If you use drop tablespace test2009 to delete the tablespace, an error is returned:

SQL> drop tablespace test;
Drop tablespace test
*
Row 3 has an error:
ORA-00959: tablespace 'test' does not exist

You can run the following command successfully:

SQL> drop tablespace "test ";

The tablespace has been deleted.

Whether or not "" is added during table space creation, the name of the actually generated data file is in upper case.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.