Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/128.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
禁用c++;sql加载器的输出消息 我有一个C++代码,我使用SQLLoad使用 Stand()< /C>。当SQL Loader在运行代码时执行时,我得到了下面提到的要禁用的消息: SQL*Loader: Release 10.2.0.1.0 - Production on Thu Mar 14 14:11:25 2013 Copyright (c) 1982, 2005, Oracle. All rights reserved. Commit point reached - logical record count 20 Commit point reached - logical record count 40 Commit point reached - logical record count 60 Commit point reached - logical record count 80_C++_Linux_G++_Sql Loader - Fatal编程技术网

禁用c++;sql加载器的输出消息 我有一个C++代码,我使用SQLLoad使用 Stand()< /C>。当SQL Loader在运行代码时执行时,我得到了下面提到的要禁用的消息: SQL*Loader: Release 10.2.0.1.0 - Production on Thu Mar 14 14:11:25 2013 Copyright (c) 1982, 2005, Oracle. All rights reserved. Commit point reached - logical record count 20 Commit point reached - logical record count 40 Commit point reached - logical record count 60 Commit point reached - logical record count 80

禁用c++;sql加载器的输出消息 我有一个C++代码,我使用SQLLoad使用 Stand()< /C>。当SQL Loader在运行代码时执行时,我得到了下面提到的要禁用的消息: SQL*Loader: Release 10.2.0.1.0 - Production on Thu Mar 14 14:11:25 2013 Copyright (c) 1982, 2005, Oracle. All rights reserved. Commit point reached - logical record count 20 Commit point reached - logical record count 40 Commit point reached - logical record count 60 Commit point reached - logical record count 80,c++,linux,g++,sql-loader,C++,Linux,G++,Sql Loader,请记住,system函数使用shell来执行命令。因此,您可以使用普通shell重定向: system("/some/program > /dev/null"); 您可以使用silent=ALL选项抑制这些消息: system("/orahomepath/bin/sqlldr silent=ALL ...") 另见: 当SQL*Loader执行时,您还会在屏幕上看到反馈消息,例如: 已达到提交点-逻辑记录计数20 您可以通过使用一个或多个值指定静默来抑制这些消息: 全部-实现所有抑

请记住,
system
函数使用shell来执行命令。因此,您可以使用普通shell重定向:

system("/some/program > /dev/null");

您可以使用
silent=ALL
选项抑制这些消息:

system("/orahomepath/bin/sqlldr silent=ALL ...")
另见:

当SQL*Loader执行时,您还会在屏幕上看到反馈消息,例如:

已达到提交点-逻辑记录计数20

您可以通过使用一个或多个值指定静默来抑制这些消息:

  • 全部-实现所有抑制值:标头、反馈、错误、丢弃和分区

取决于sql*ldr实现,您可能仍然会得到一个或另一个输出-如果您需要完全静音,请参阅下面@Joachim的答案。

请注意,SILENT=ALL也会将该过滤器应用于日志文件,而不仅仅是您在终端屏幕上看到的内容