Get the App
SLTechnology News&Howtos  ›  Database  › 

Reconstruction control file error

Shulou Source: shulou.com Published: 2022-06-01 09:21:30 10月03日 Update

SQL > CREATE CONTROLFILE REUSE DATABASE "EMREP" NORESETLOGS FORCE LOGGING ARCHIVELOG

2 MAXLOGFILES 16

3 MAXLOGMEMBERS 3

4 MAXDATAFILES 100

5 MAXINSTANCES 8

6 MAXLOGHISTORY 292

7 LOGFILE

8 GROUP 1'/ u01 SIZE SIZE 50m

9 GROUP 2'/ u01 SIZE SIZE 50m

10 GROUP 3'/ u01 SIZE SIZE 50m

11-- STANDBY LOGFILE

twelve

SQL > DATAFILE

SP2-0042: unknown command "DATAFILE"-rest of line ignored.

SQL >'/ u01scarp appAccord oradataSystem01.dbf'

SP2-0734: unknown command beginning "/ u01 rest of line ignored.

SQL >'/ u01qqappActionoradata 'EMREPscarundotbs01.dbf'

SP2-0734: unknown command beginning "/ u01 rest of line ignored.

SQL >'/ u01qqappActionoradataGrease EMREPscarp sysaux01.dbf'

SP2-0734: unknown command beginning "/ u01 rest of line ignored.

SP2-0044: For a list of known commands enter HELP

And to leave enter EXIT.

SQL >'/ u01qqappActionoradataGrease EMREPscarpusers01.dbf'

SP2-0734: unknown command beginning "/ u01 rest of line ignored.

SQL >'/ u01qqappAccord oradataUniplicEMREPeryexample01.dbf'

SP2-0734: unknown command beginning "/ u01 rest of line ignored.

SQL >'/ u01qqappActionoradata'EMREPUniple goldengate01.dbf'

SP2-0734: unknown command beginning "/ u01 rest of line ignored.

SQL >'/ u01qqapp.oracleUnixoradataandEMREPscargguser.dbf'

SP2-0734: unknown command beginning "/ u01 rest of line ignored.

SP2-0044: For a list of known commands enter HELP

And to leave enter EXIT.

Solution:

SQL > set sqlbl on

The above error is caused because we have a blank line in the script when we execute the script.

The following is an explanation of the documents from here:

SET SQLBL [ANKLINES] {ON | OFF}

SET SQLBLANKLINES is not 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

Tags: Script document method time White Line interpretation File Control Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology OPPO Reno vpn Microsoft Docker