我试图为一个sqlplus进程设置一些参数,并运行一个查询来获得一个htmlop文件
session = Popen(['sqlplus','-S','abc/abc'], stdin=PIPE, stdout=PIPE, stderr=PIPE)
session.stdin.write(' SET MARKUP HTML ON ')
session.stdin.write(' SPOOL op.html')
session.stdin.write(' select sysdate from dual;')
session.stdin.write(' exit;')
stdout, stderr = session.communicate()
但我总是会犯一些错误
^{pr2}$或者
SP2-0158: unknown SET option ";spool"
我是否需要创建进程1以将标记HTML设置为ON并将其输出通过管道发送到SPOOL操作html因为它在sqlplus中工作正常。在
目前没有回答
相关问题 更多 >
编程相关推荐