Rebuilding Controlfiles errors in Oracle

Source: Internet
Author: User

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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.