MaksymBilenko / docker-oracle-12c

:whale: Docker image with Oracle Database 12c on board
Apache License 2.0
679 stars 285 forks source link

There was a problem initializing the tablespace #146

Open imyouzhen opened 4 years ago

imyouzhen commented 4 years ago

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?

init_test.zip

banlex73 commented 1 year ago

should be datafile '/u01/app/oracle/oradata/sino.dbf '