运行脚本时用"SPOOL"保存运行结果的问题
2013-03-28 11:51
274 查看
很多人都遇到过这样的情况,在sqlpluws中运行脚本时用SPOOL保存运行结果, 但SPOOL每次都将原来的文件覆盖了, 目前的Oracle10g就没这个问题了,示例如下:
e:>sqlplus xsb@tns1 SQL*Plus: Release 10.1.0.2.0 - Production on 星期三 11月 12 20:13:21 2007 Copyright (c) 1982, 2004, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options SQL> spool 1.txt SQL> select *from v$version; BANNER ---------------------------------------------------------------- Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod PL/SQL Release 10.2.0.1.0 - Production CORE 10.2.0.1.0 Production TNS for 32-bit Windows: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production SQL> spool off SQL> spool append 1.txt SP2-0108: The filenames CREATE, REPLACE, APPEND, FILE, and abbreviations may not be used. SP2-0769: Usage: SPOOL { <file> | OFF | OUT } where <file> is file_name[.ext] [CRE[ATE]|REP[LACE]|APP[END]] SQL> spool 1.txt append SQL> select *from v$version; BANNER ---------------------------------------------------------------- Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod PL/SQL Release 10.2.0.1.0 - Production CORE 10.2.0.1.0 Production TNS for 32-bit Windows: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production SQL> spool off |
相关文章推荐
- 关于Entity Framework 4中保存时抛出"其它线程在运行,无法新建事务"的问题
- 在使用django框架搭建web中如果需要单独运行py脚本出现AppRegistryNotReady("Apps aren't loaded yet.")问题
- eclipse运行android项目出现"The connection to adb is down, and a severe error has occured."的问题
- "设备未准备好。如果目标是ActiveSync 设备,请验证ActiveSync 连接是否在运行"问题的解决
- Eclipse下好使,但是cmd下执行java运行class文件提示Exception in thread "main" java.lang.NoClassDefFoundError问题
- 去掉"为了有利于保护安全性,Internet Explorer 已限制此网页运行可以访问计算机的脚本或ActiveX控件"的提示
- Linux shell脚本中执行命令结果赋值给变量&&echo输出变量是否包含换行符的问题
- DreamWeaver文件保存时,提示"发生共享违例"问题的解决方法
- 网页中"IE限制网页访问脚本或ActiveX控件"的提示问题的解决方法
- Hibernate 级联保存时 偶尔会出现 "id to load is required for loading" 问题的解决办法
- DreamWeaver文件保存时,提示"发生共享违例"问题的解决方法
- 运行"使用DroidPlugin实践应用的插件化"里面demo碰到的问题(附个人解决方案)
- MacPorts卡在"正在运行软件包脚本"解决方法
- SQL2008"阻止保存要求重新创建表的更改"问题的解决
- "设备未准备好。如果目标是ActiveSync 设备,请验证ActiveSync 连接是否在运行"问题的解决
- IDE-----VS2005运行过程中"没有找到MFC80UD.DLL,因此这个程序未能启动.重新安装应用程序可能会修复此问题"? 的解决
- python脚本处理文本时遇到的字符问题:UnicodeDecodeError: " " codec can't decode byte
- node中"require"不是内部或外部命令,也不是可运行的程序 或批处理文件;express -V无法显示express版本信息等问题。
- 运行android项目出现"Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE"问题
- 解决"cvCreateVideoWriter保存视频帧压缩格式只能用-1"的问题