The following error was reported when executing the script to create the control file:
Sql> @/orac/controlfile.sql
Sp2-0042:unknown command "datafile"-rest of line ignored.
Sp2-0734:unknown command Beginning "'/orac/ora ..."-rest of line ignored.
Sp2-0734:unknown command Beginning "'/orac/ora ..."-rest of line ignored.
Sp2-0734:unknown command Beginning "'/orac/ora ..."-rest of line ignored.
Sp2-0044:for a list of known commands enter help
And to leave enter EXIT.
Sp2-0734:unknown command Beginning "'/orac/ora ..."-rest of line ignored.
Sp2-0734:unknown command Beginning "'/orac/ora ..."-rest of line ignored.
Sp2-0734:unknown command Beginning "'/orac/ora ..."-rest of line ignored.
Sp2-0734:unknown command Beginning "'/orac/ora ..."-rest of line ignored.
Sp2-0044:for a list of known commands enter help
And to leave enter EXIT.
Sp2-0734:unknown command Beginning "'/orac/ora ..."-rest of line ignored.
Sp2-0734:unknown command Beginning "'/orac/ora ..."-rest of line ignored.
Sp2-0734:unknown command Beginning "'/orac/ora ..."-rest of line ignored.
Sp2-0734:unknown command Beginning "'/orac/ora ..."-rest of line ignored.
Sp2-0044:for a list of known commands enter help
And to leave enter EXIT.
Sp2-0734:unknown command Beginning "'/orac/ora ..."-rest of line ignored.
Sp2-0734:unknown command Beginning "CHARACTER ..."-rest of line ignored.
1 CREATE controlfile Reuse DATABASE "JASON" Noresetlogs Archivelog
2 Maxlogfiles 16
3 Maxlogmembers 3
4 Maxdatafiles 100
5 Maxinstances 8
6 Maxloghistory 292
7 LOGFILE
8 GROUP 1 '/orac/oradata/jason/redo01.log ' SIZE 50M,
9 GROUP 2 '/orac/oradata/jason/redo02.log ' SIZE 50M,
GROUP 3 '/orac/oradata/jason/redo03.log ' SIZE 50M
11*--STANDBY LOGFILE,
You only need to execute the following statement to resolve the
Sql> set SQLBL on
The explanation for the SQLBL parameter is as follows (from the official) because there is a blank line in our SQL script, so there is an error in executing the script.
SET Sqlbl[anklines] {on | OFF}
SET Sqlblanklines isn't supported in Isql*plus
Controls whether sql*plus puts blank lines within a SQL command or script. On interprets blank lines and new lines as part of a SQL command or script. Off, the default value, does not allow blank lines or new lines in a SQL command or script or script.
Enter the blockterminator to stop SQL command entry without running the SQL command. Enter the sqlterminator character to stop SQL command entry and run the SQL statement
This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/database/Oracle/