spool

sql plus output is not coming in proper CSV format if we use the colsep ,

怎甘沉沦 提交于 2021-02-08 10:25:21
问题 The issue i am facing is that even the data in the CSV file also getting separated if the value consists of , (comma) I am using shell script connect to oracle using the sql plus and spooling the data in the CSV file In the CSV the colsep , (comma) is working fine to separate columns but the data also getting separated. for example if the value of the company name is (Southern textiles,LICO ) In that case even SOuttheren textiles is in one column and LICO is moving to another column and thee

UTL_FILE saving in local machine

半城伤御伤魂 提交于 2020-12-27 05:29:19
问题 Hello, I wanted to save all the functions,procedures,packages in my local machine. I tried with SPOOL but with spool im not sure to get the filename and save it. So i tried with UTL_FILE.. But the problem is my database is in UNIX and I wanted to save in my windows local machine. Im getting the below mentioned error Fehlerbericht - ORA-29283: Ungültiger Dateivorgang ORA-06512: in "SYS.UTL_FILE", Zeile 536 ORA-29283: Ungültiger Dateivorgang ORA-06512: in Zeile 24 29283. 00000 - "invalid file

UTL_FILE saving in local machine

柔情痞子 提交于 2020-12-27 05:27:46
问题 Hello, I wanted to save all the functions,procedures,packages in my local machine. I tried with SPOOL but with spool im not sure to get the filename and save it. So i tried with UTL_FILE.. But the problem is my database is in UNIX and I wanted to save in my windows local machine. Im getting the below mentioned error Fehlerbericht - ORA-29283: Ungültiger Dateivorgang ORA-06512: in "SYS.UTL_FILE", Zeile 536 ORA-29283: Ungültiger Dateivorgang ORA-06512: in Zeile 24 29283. 00000 - "invalid file

Spool file is getting duplicates

泄露秘密 提交于 2020-01-25 14:18:55
问题 I have created the following Script ( name.sql ) which is then called from a windows.bat file. The problem is that the .xls file that is created has twice the resultset from the SQL query. I send you the script to help me udnerstnad what i do wrong in the .sql script: set linesize 999 verify off feedback off set markup html on entmap on spool on preformat off table 'align=right width=40% border=10 bordercolor=black bgcolor=white' set echo off pagesize 1000 linesize 255 feedback off heading on

Hide SQL > statements in the spool file

喜夏-厌秋 提交于 2020-01-14 03:30:05
问题 I want to hide the "SQL> @test.sql" and "SQL> spool off" in the file test.txt(spool file) my steps set heading off set pages 0 set trimspool on set lines 120 set feedback off set echo off set termout off spool test.txt @test.sql spool off test.txt SQL> @test.sql 2002452199 2797 9/1/2014 9/30/2014 OO56128665 934 90087318 1 6046 10226342 ########## 0 0 SQL> spool off 回答1: reason for getting sql statements into results is:-     If you copy those sql scripts and paste directly on sql prompt,and

Clear the heading in Oracle spool

安稳与你 提交于 2020-01-12 07:19:44
问题 I have spooled a file before running the below command and got the output like this, I have set heading off, feedback off SET HEADING OFF SET FEEDBACK OFF SPOOL D:\TEST.TXT SELECT SYSDATE FROM DUAL; SPOOL OFF OUTPUT in TEST.TXT: SQL> SELECT SYSDATE FROM DUAL; 20-JAN-09 SQL> SPOOL OFF How can i remove the two SQL> lines. I want only the output. Thanks in advance. 回答1: The command you need is: SET ECHO OFF However, it only works for code run from scripts, not command entered interactively. You

Can Spool Dir of flume be in remote machine?

烈酒焚心 提交于 2020-01-04 02:45:06
问题 I was trying to fetch files from a remote machine to my hdfs whenever a new file has arrived into a particular folder. I came across the concept of spool dir in flume, and it was working fine if the spool dir is in the same machine where the flume agent is running. Is there any method to configure a spool dir in a remote machine ?? Please help. 回答1: You might be aware that flume can spawn multiple instances, i.e. you can install several flume instances which pass the data between them. So to

coldfusion - cfprint issues with large spool files

≯℡__Kan透↙ 提交于 2019-12-24 03:35:32
问题 I am using cfprint from ColdFusion to print multiple PDFs from a directory. The problem I am having is that when the files are spooled to the printer the size of the file dramatically increases and slows down everything. The file in the folder is 125K and when it is in the printer spool it increases up to 15.7MB. Here is the ColdFusion code: <cfprint source="[FILELOCATION]/[FILE].pdf" color="yes" printer="[printer name]"> The files will eventually print but it can take upwards of 15-20

coldfusion - cfprint issues with large spool files

混江龙づ霸主 提交于 2019-12-24 03:35:07
问题 I am using cfprint from ColdFusion to print multiple PDFs from a directory. The problem I am having is that when the files are spooled to the printer the size of the file dramatically increases and slows down everything. The file in the folder is 125K and when it is in the printer spool it increases up to 15.7MB. Here is the ColdFusion code: <cfprint source="[FILELOCATION]/[FILE].pdf" color="yes" printer="[printer name]"> The files will eventually print but it can take upwards of 15-20

sqlplus spooling: How to get rid of first, empty line?

北慕城南 提交于 2019-12-18 12:59:14
问题 I'm doing the following spooling statement: SET VERIFY OFF SET FEEDBACK OFF SET HEADING OFF SET TRIMSPOOL ON SET TERM OFF SPOOL &pathRelations START scripts/relations.sql &parent SPOOL OFF SET TERM ON The scripts/relations.sql file contains a simple select statement. Unfortunately, the spooled file contains an empty line as the first one in the file. This line causes trouble in our framework. Of course I could get rid of these line through sed but ain't there a way to suppress its creation in