sqlplus -s ****:****/****<<+
#set echo off
#set heading off
#set pagesize 0
#set trimspool on
#set feedback off
#set TRIMS OFF
#set colsep "|"
#col COL1 FORMAT A20
#col COL_VERYLONG FORMAT A400
#set termout off
spool xxx.log
.............
spool off
exit
+我想用sql文件替换上述代码中省略部分,本sql文件中包含很多条语句。
#set echo off
#set heading off
#set pagesize 0
#set trimspool on
#set feedback off
#set TRIMS OFF
#set colsep "|"
#col COL1 FORMAT A20
#col COL_VERYLONG FORMAT A400
#set termout off
spool xxx.log
.............
spool off
exit
+我想用sql文件替换上述代码中省略部分,本sql文件中包含很多条语句。
解决方案 »
- pl sql导入表,出现了errors detected
- 一个简单的两个表,update的问题
- [紧急] PACKAGE中动态SQL文的写法
- oracle截取查询字段
- 这段代码该如何理解??(表分区的)
- 一个简单的ORACLE存储过程的问题
- sqlplus有关问题--在线等待
- 求救,请大侠执教,忘记了进入sqlplus的用户名和密码怎么办,oracle中有哪个文件保存这个信息?
- 关于Replication执行无效果
- 有高手在c++中用Odatabase (oracle 公司提供的oledb)访问数据库嘛?
- 遇到问题:java.sql.SQLException: ORA-01861: 文字与格式字符串不匹配
- linux中安装oracle,在./runInstaller时出现了问题,什么原因呀
linux 远程脚本?CMD配置监听,连接到oracle,你实际操作的就是linux上的oracle哦在sqlplus下连接到linux下的oraclesql>@xxx/xxx/xxx/xxx.sql回车执行,后面加个 show errors 回车.
第二种情况:本地SQLPLUS调用服务器的.sql文件,那么需要先建立dblink:ex_dblink,在服务器端将脚本语句保存为存储过程xx_proc,之后在本地执行./xx_proc@ex_dblink.
sqlplus user/password@tnsname @D:\his.sql