docker-oracle-12c
docker-oracle-12c copied to clipboard
There was a problem initializing the tablespace
I want to initialize a tablespace in the ‘entrypoint.sh’,added in line 84:
su oracle -c 'echo -e "create tablespace sino datafile '/u01/app/oracle/oradata/sino.dbf' size 1000M autoextend on next 100M maxsize unlimited;" | $ORACLE_HOME/bin/sqlplus -S / as sysdba'
Log output error information: `create tablespace sino datafile /u01/app/oracle/oradata/sino.dbf size 1000M autoextend on next 100M maxsize unlimited * ERROR at line 1: ORA-02236: invalid file name
` I guess there's a problem with single quotes in the script。 So, what is the correct format?
should be datafile '/u01/app/oracle/oradata/sino.dbf '