重建控制文件报错
admin
2023-05-14 05:01:50
0

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/app/oracle/oradata/EMREP/redo01.log'  SIZE 50M,
  9    GROUP 2 '/u01/app/oracle/oradata/EMREP/redo02.log'  SIZE 50M,
 10    GROUP 3 '/u01/app/oracle/oradata/EMREP/redo03.log'  SIZE 50M
 11  -- STANDBY LOGFILE
 12 
SQL> DATAFILE
SP2-0042: unknown command "DATAFILE" - rest of line ignored.
SQL>   '/u01/app/oracle/oradata/EMREP/system01.dbf',
SP2-0734: unknown command beginning "'/u01/app/..." - rest of line ignored.
SQL>   '/u01/app/oracle/oradata/EMREP/undotbs01.dbf',
SP2-0734: unknown command beginning "'/u01/app/..." - rest of line ignored.
SQL>   '/u01/app/oracle/oradata/EMREP/sysaux01.dbf',
SP2-0734: unknown command beginning "'/u01/app/..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SQL>   '/u01/app/oracle/oradata/EMREP/users01.dbf',
SP2-0734: unknown command beginning "'/u01/app/..." - rest of line ignored.
SQL>   '/u01/app/oracle/oradata/EMREP/example01.dbf',
SP2-0734: unknown command beginning "'/u01/app/..." - rest of line ignored.
SQL>   '/u01/app/oracle/oradata/EMREP/goldengate01.dbf',
SP2-0734: unknown command beginning "'/u01/app/..." - rest of line ignored.
SQL>   '/u01/app/oracle/oradata/EMREP/gguser.dbf'
SP2-0734: unknown command beginning "'/u01/app/..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.

 

解决方法:

SQL> set sqlbl on

因为我们在执行脚本的时候脚本中有空白行所以造成以上的报错。

 

以下是来之文档的解释:

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

相关内容

热门资讯

马尔代夫史上最严重单次潜水事故... 当地时间14日,在马尔代夫发生一起5名游客在潜水时全部身亡的惨剧。遇难者中包括一名大学教授和她的女儿...
180多万元莫名通过支付宝捐给... “关闭支付功能后 180多万元凌晨莫名通过支付宝捐给慈善机构”一事被曝光后,引发网友高度关注。5月1...
日本自卫队,该去捕熊了 当你清晨起床,看到一头陌生的黑熊正在敲你家的玻璃窗,是什么感觉?今年,日本的“熊灾”愈发厉害了。这些...
美团龙珠等入股AI软件开发商超... 天眼查App显示,近日,上海超维无际电子科技有限责任公司发生工商变更,新增北京龙珠股权投资基金合伙企...
苹果华为高端机降价 华为Pur... 5月15日,618大促前夕,华为苹果率先打响高端手机价格战,iPhone 17 Pro在京东、天猫、...
智启确山·AI赋能 确山县第七... 大象新闻记者 雷刚 通讯员 李闯志 纪兴红 为推进人工智能科普教育,点燃青少年科创梦想,2026年5...
社团焕彩逐光前行 科技赋能筑梦... 为进一步提升全区学校社团建设水平,搭建校际交流互鉴平台,5月12日,梁园区2026年中小学学生社团巡...
吃火锅、蒸桑拿、访企业,这位北... ·明凯,1966年出生,毕业于芬兰赫尔辛基大学政治史专业,2024年起出任芬兰驻华大使至今。当地时间...
除了大熊猫,这些外国市长还想从... 5月15日,成都飘起小雨。作为配套活动之一,2026成都国际友城合作与发展大会的嘉宾们走进成都大熊猫...
郑州新城建一期进入收尾阶段,C... 【大河财立方 记者 唐卫东】 随着第58个世界电信和信息社会日临近,郑州“新城建”试点项目迎来阶段性...