Plus there is the issue of double quotes when Oracle create data objects

problem 

After reading his statement to create a table space, find sql statement similar to the following:

CREATE TABLESPACE "a" DATAFILE 

  '/u01/app/oracle/oradata/100G/orcl/users01.dbf' SIZE 5242880

  AUTOEXTEND ON NEXT 1310720 MAXSIZE 32767M;

Cause Analysis 

Because of this statement is to create a table space applications automatically generated, while table space name is added to the double quotation marks, double quotation marks in case the name is sensitive; that is create tablespace a XXX and create tablespace "a" XXX in the database are actually two different objects.

Oracle objects are created by default capitalized, the following two statements are equivalent:

CREATE TABLESPACE "A" DATAFILE 

  '/u01/app/oracle/oradata/100G/orcl/users01.dbf' SIZE 5242880

  AUTOEXTEND ON NEXT 1310720 MAXSIZE 32767M;


CREATE TABLESPACE a DATAFILE 

  '/u01/app/oracle/oradata/100G/orcl/users01.dbf' SIZE 5242880

  AUTOEXTEND ON NEXT 1310720 MAXSIZE 32767M;

But it is not the same as the above statement with the following:

CREATE TABLESPACE “a” DATAFILE 

  '/u01/app/oracle/oradata/100G/orcl/users01.dbf' SIZE 5242880

  AUTOEXTEND ON NEXT 1310720 MAXSIZE 32767M;

Guess you like

Origin www.linuxidc.com/Linux/2019-09/160673.htm