/sapmnt/SID/GLobal SPOOL Files
Hi
We are using Adboe forms and when spool request generate for the Form, there are three files generating on the OS Level @ /sapmnt/SID/global directory. The three files as follows.
SPOOL0000014229_00001.xfd
SPOOL0000014229_00001.pcl
SPOOL0000014229_00001.cfg
We have hundresds of PDFs getting generated everyday and its filling up the FILE system at OS level. These files are deleted when we delete the spool request from SP01.We would like to know if there is any process where we can delete the files from he OS level or can we change in the program tp change path of the files to store in diffrent location.
Regards,
Mahesh Shetty
if there is any process where we can delete the files from he OS level !!
You can use the cron utility (unix) at OS level to delete files from the @ /sapmnt/SID/global directory
.For eg : To delete files older than 2 days schedule the below command through cron to run daily .
find /sapmnt/SID/global/ -mtime +2 -type f -exec rm {} \; (Be careful )
or from SAP level schedule the report RSPO1041 daily to delete spool files.Thanks
Other wise ,if you are using a particular output device to generate the spool you can do the following for the device in transaction SPAD
SPAD -> Change output device -> Edit -> Data storage. and choose storage as database.
Regards
Amit
Similar Messages
-
Reg More files in /sapmnt/ SID /global/ System no JOBLG
hi,
I have activated CCMS
I see around 60000 files in the following folder /sapmnt/<SID>/global/<System no>JOBLG
The file names are like 0001X15531901X61973
The total size of files is around 3 MB
Please let me know the following
1. Why are these files created
2. Can we delete it.
3. Is there any note for this issue
Please helpHi,
The files should be in path should be /sapmnt/SID/global/<clientnumber>JOBLG.
These are the BG log files and you can safely delete these files. But it is suggested that you should keep files of older than 5 days at least in the system for Prod systems.
Please note that once you have deleted these files on OS level, you wont be able to read the job logs in SM37.
Please check that SAP Standard jobs are running in the system or not. Ideally these files should be deleted from the file system when old jobs are deleted from your SAP system using the SAP standard job.
Please refer to SAP note "Note 16083 - Standard jobs reorganization jobs" and "Note 6604 - Deleting job logs at operating system level" also for more details.
With Regards,
Saurabh
Edited by: Saurabh.Arora on May 14, 2009 2:44 PM -
Files occupying /sapmnt/sid/global
Hi all,
I discovered some files in global directory, and checking if anyone of you would know what would trigger such files?
It's consuming lots of space.
-rw-rw---- 1 <sid>adm sapsys 0 Dec 2 01:53 00AF7CUL.<SID>s
-rw-rw---- 1 <sid>adm sapsys 4575308 Dec 2 01:53 00AF7CUL.<SID>
-rw-rw---- 1 <sid>adm sapsys 0 Dec 2 01:58 00AF7TXN.<SID>s
-rw-rw---- 1 <sid>adm sapsys 4575308 Dec 2 01:58 00AF7TXN.<SID>
-rw-rw---- 1 <sid>adm sapsys 0 Dec 2 02:02 00AF7t6v.<SID>s
-rw-rw---- 1 <sid>adm sapsys 4575308 Dec 2 02:02 00AF7t6v.<SID>
-rw-rw---- 1 <sid>adm sapsys 0 Dec 2 02:07 00AF8A9x.<SID>s
-rw-rw---- 1 <sid>adm sapsys 4575308 Dec 2 02:07 00AF8A9x.<SID>
-rw-rw---- 1 <sid>adm sapsys 0 Dec 2 02:12 00AF8RCz.<SID>s
-rw-rw---- 1 <sid>adm sapsys 4575308 Dec 2 02:12 00AF8RCz.<SID>
Thanks.Hello,
After looking at the file names, I don't think these are generated by either SAP standard program or transaction/jobs. Looks like some functional programs or jobs are generating these files.
Please check with your client or functional teams.
Thanks,
Siva Kumar -
How to spool file to where start script file located
I'm writing a sqlplus script, eg. runMe.sql, which is going to run in customer env, will generate some data files eg. result.csv.
By specify location such as 'spool /certain/path/on/disk/result.csv', I can spool to any path I want. However, my concern is below:
1. We gets many customers and the script might be run under different location.
2. I don't know where customer would save the script, furthermore, I don't want customer to input location manually every time.
3. Generally, customer would run the script something like "sqlplus username/password@sid @/certain/path/on/disk/runMe.sql". They don't want to pass any parameter at run time.
4. I wanna spool file to "/certain/path/on/disk" automatically, as a result, result.csv file would appear under same path with runMe.sql.
5. I tried "spool ./result.csv" but it navigate to where sqlplus session is running.
6. Also tried &0 etc, but make no sense.
Can anyone tell me how to obtain start running script file path in sqlplus script(runMe.sql) ? Just like access command parameters under Linux.
$0 is the name of the command
$1 first parameter
$2 second parameter
$3 third parameter etc. etc
$# total number of parameters
$@ all the parameters will be listed
Thanks in advance.Are you looking for SQLPATH ?
A good and clear example by Paul @ https://forums.oracle.com/message/3727891
In this way your customer has to set one environment variable SQLPATH=/location/of/script/file/where/they/put/your/runMe.sql and just say :
spool %sqlpath%\result.csv
in your runMe.sql. So, runMe.sql and result.csv will be on SQLPATH location.
Regards
Girish Sharma -
Date and time in spool file name
Hi,
can anyone show me how i can write the code below so that the spool file will automatically take the system time and date?
thanks again.
set term off;
set echo off;
set heading off;
set linesize 1500;
set pagesize 9999;
set feedback off;
spool /home/oracle/ATM_Upload/files/CRD000119MMDDYYHHMISS.DAT;
SELECT rec_ind||source_type||bbdsa_code||seq_num||dt_ti_ext||ver_num
as atm_header
FROM atm_dc_hd;
spool off;Hi,
I do something similar to this in a file called ed.sql which I use in SQL*Plus to give me a history of SQL*Plus buffers in separate files which follow the naming convention $DATABASE_$SID_$TIMESTAMP.sql. I use it from SQL*Plus when editing, rather than typing "ed" I type "@ed" and it does the naming for me:
-- Turn off terminal output
set termout off
-- Save current buffer to a temp file
save tmp.txt replace
-- Set editfile name to $DATABASE_$SID_$TIMESTAMP.sql
column fname new_value fname
column sid new_value sid
select trim(sid) sid
from v$mystat
where rownum = 1;
select global_name||'_&sid'||'_'||to_char(sysdate, 'YYYYMMDDHH24MISS')||'.sql' fname
from global_name;
set editfile '&fname'
-- Retrieve our initial buffer
get tmp.txt
-- Turn terminal output back on
set termout on
-- Fire up the editor
edYou could probably adapt this in the following way for your needs:
column fname new_value fname
select 'CRD000119'||to_char(sysdate, 'MMDDYYHH24MISS')||'.dat' fname
from dual;
spool '&fname'I don't know how you get the 'CRD' part of the filename but you may be able to generate that too using the above as a guide.
cheers,
Anthony -
Spool file of a background job
Hello Friends,
In an SAP system, there is a background job which creates a spool file.
If there is no printer configuration done on the SAP server, how to find the location of this file in the filesystem?
Thanks & Regards,
Kunal Patel.Hi,
Thanks for your reply.
I was able to locate the file in the filesystem.
Actually I changed a setting in the printer LOCL so that the spool is stored in Global directory.
But now there is a new problem.
The spool file in the filesystem is in a very different format as below:
Could you let me know how to change the format of the spool?
Command executed: more : /usr/sap/DHS/SYS/global/100SPOOL/00010000026674 :
Target host: unix0006
COL0N COL0H05.03.2008
4 4 4 9 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
5
5 5Lene
5 5Gitte
5 5Orla Bech
5 5Janni 5We
4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 3 - P COL0N COL0H05.03.2008
4 4 4 4 4 4 4 4 4 4 4 4 4 4 9 4 4 4 4 4 4 4 4 9 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 9 4 4 4 4 4 4 4 4 4 4 9 4 4 4 4 4 4 4 4 4 4 4 4
4 4 4 4 4 4 9 4 4 4 4 4 4 4 4 9 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 9 4 4 4 4 4 4 4 4 4 4 9 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
5 ú 5
5 ú 5
5 ú 5
Rgds,
Kunal. -
What data is stored in the CC Background Job Spool File?
What information is stored in the location referenced in the CC Configuration/Miscellaneous setting of 'Background Job Spool File Location'? Our test and production versions of this system are configured the same, with both pointing to the same location on their respective servers. However the test location shows a virsa/bgJobSpool folder in it containing multiple files while our production system shows this location as empty.
Both versions seem to be working OK. We are running backgrounds jobs in each (risk analysis, management reviews, rule generation, etc.) and seeing results.
We updated to the GRC 5.2 a few months ago and are currently on SP9. This issue came up during a system audit, so we need to come up with an explanation for the differences.
Thanks.I had reviewed that SAP note previously, but it does not seem to help any with our situation. We are running ad hoc background risk analysis jobs frequently and can always see the results. Everything seems to work fine from the application side, we just don't see the logs where we thought they should be over on the server.
From the outside, it looks like maybe it is ignoring the configuration setting and is still using the default location for the log. Does it need to be on the same drive as the application? I believe our application and the default location are both on our E drive, but we want to put the location for this and the Alert Log on the D drive.
Thanks. -
Javax.mail.MessagingException: 451 Error while writing spool file??
Hi all friends,
Can any one plz tell me why Iam getting below error when Iam trying to send mail with attachment.Iam using Java Mail API.
javax.mail.MessagingException: 451 Error while writing spool file
Plz tell me what are the reasons behind it.
Regards
BikashThe problem here is that the SMTP server was unable to write its spool file.
The error is probably on the OS side of things and has nothing to do with email except that the lack of the system resource is causing email to fail.
Have the server admin take a look at his error log to find out why the the user that smtp is running as could not write the file. -
FSL-02003 Unable to set owner /sapmnt/MHS/global/security/data for 512.
Hello,
I got the error "FSL-02003 Unable to set owner /sapmnt/MHS/global/security/data for 512" while installing SM 7.0 EhP 1 on Linux at phase "Create Secure Store". I have tried changing owner of the folder, but no change.
Can anybody help?
Thanks for your help
Kris
WARNING[E] 2009-07-24 17:54:48.617
CJSlibModule::writeError_impl()
FSL-02003 Unable to set owner /sapmnt/MHS/global/security/data for 512.
TRACE 2009-07-24 17:54:48.618 [iaxxejsbas.hpp:483]
EJS_Base::dispatchFunctionCall()
JS Callback has thrown unknown exception. Rethrowing.
TRACE 2009-07-24 17:54:48.699 [syuxctask.cpp:1382]
CSyTaskImpl::start(bool)
A child process has been started. Pid = 18576
TRACE 2009-07-24 17:54:48.784 [syuxctask.cpp:1382]
CSyTaskImpl::start(bool)
A child process has been started. Pid = 18577
ERROR 2009-07-24 17:54:48.822 [sixxcstepexecute.cpp:950]
FCO-00011 The step createSecureStore with step key |NW_Doublestack_DB|ind|ind|ind|ind|0|0|NW_CreateDBandLoad|ind|ind|ind|ind|9|0|NW_SecureStore|ind|ind|ind|ind|8|0|createSecureStore was executed with status ERROR .Hi Kris,
Have you tried to change permission of the file as logs are showing ?
Check SAP Note 1257481 - SAP NetWeaver Inst. Based on Kernel 7.11: IBM DB2 for i which is not for your OS but similar error is described in that which is telling that by changing the permission you can proceed.
Thanks
Sunny -
Spool file problem,Can't see the query in output file.
Hello ,
I am facing a very old school kind of problem .....about spool file ....
The scenario -
I have made a script by name DB_Status_checkup.sql which i want to fire on the database to check the database status. In this script their are many queries regarding the data dictionary views to know about the database. It consist of nearly 25-30 different select queries..
The problem is i want to make a spool file of the output of that query....i want to see the SQL query & the output below in the spool file, so it will be easy for me to judge the result. But i can't see the SQL query , i can only see the output , & in so many queries it all gets jumbled up....even i can't understand where the next output starts ...
Sample of my SQL Script ....
clear buffer
spool D:\DB_status.txt
/*To check the database startup time*/
Select to_char(startup_time, 'HH24:MI DD-MON-YY') "Startup time"
from v$instance
.........next query n so on....
spool off;
In the output pf the spool file at D:\db_status.txt..
Startup time
08:25 16-JUL-10It shows only the output of the query in the spool file not the query,
What should i do to get the SQL query as well as the output of that query just below it in the spool file ???
Please suggest if you have anymore ideas , regarding this .....
ORACLE 10g R2
Windows Server 2008
Thanks in advance ...Why don't you just use database control, instead of re-inventing the wheel?
Apart from that, SQL*Plus has it's own reference manual, which you apparently refuse to read.
The answer to your quiz/doc question is
set echo on
Sybrand Bakker
Senior Oracle DBA -
Dunning letters as individual/separate spool file
Hi All,
I've found that dunning run by F150 in my company sometimes gives an output results as separate spool file for every customer what is unexpected. Usually we get one common spool with multiple pages. I would appreciate it somebody can give me the clue what is the reason. I couldn't find any system and transaction settings... Thanks in advance.
GregHi,
see the link below :
http://web.mit.edu/CAO/www/SB2002/AR/F150.htm
SKS -
Spool file error - Buffer Overflow
I've a sql script that is running from a.sql file. The script fetches almost 9 million data as a result of the query. Main problem is related to spool file generation. It is saying buffer overflow. But, when i write that query from sql prompts it is running within 2 mins and completes the task within 15 mins.
I've written -
set serveroutput on size ######
But, still it is not working. Total application is freeze whenever i want to run it. Tell me any suggestion if u have.
Satyaki.i guess what you are more concerned with is the output produced by your query (the spool file).
you need not to see what is displayed on the screen all you need is open up the spool file to
check for those data in there.
to suppress the output from the screen and still generates spool file. use the SET TERMOUT option.
e.g.
-- code for a producing a sample spool file
spool r:\sample_spool.txt;
select * from emp;
spool off;
at the SQL*Plus command line:
SQL> @r:\sample_spool.sql;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7566 JONES MANAGER 7839 02-APR-81 2975 1000 20
7902 FORD ANALYST 7566 03-DEC-81 3000 20
7839 KING PRESIDENT 17-NOV-81 5000 10
7698 BLAKE MANAGER 7839 01-MAY-81 2850 30
7782 CLARK MANAGER 7839 09-JUN-81 2450 10
7369 SMITH CLERK 7902 17-DEC-80 800 20
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
7788 SCOTT ANALYST 7566 09-DEC-82 3000 20
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
7876 ADAMS CLERK 7788 12-JAN-83 1100 20
7900 JAMES CLERK 7698 03-DEC-81 950 30
7934 MILLER CLERK 7782 23-JAN-82 1300 10
14 rows selected.
SQL> -- the above example displays the output on the screen
SQL> -- now we want to turn it off by using the SET TERMOUT option
SQL> SQL> set termout off;
SQL> @r:\sample_spool.sql;
SQL>
after executing the script sample_spool.sql it does not display output from the screen which
we want to avoid the buffer overflow error. and still produce the spool file:
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7566 JONES MANAGER 7839 02-APR-81 2975 1000 20
7902 FORD ANALYST 7566 03-DEC-81 3000 20
7839 KING PRESIDENT 17-NOV-81 5000 10
7698 BLAKE MANAGER 7839 01-MAY-81 2850 30
7782 CLARK MANAGER 7839 09-JUN-81 2450 10
7369 SMITH CLERK 7902 17-DEC-80 800 20
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
7788 SCOTT ANALYST 7566 09-DEC-82 3000 20
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
7876 ADAMS CLERK 7788 12-JAN-83 1100 20
7900 JAMES CLERK 7698 03-DEC-81 950 30
7934 MILLER CLERK 7782 23-JAN-82 1300 10
14 rows selected. -
How to spool out put of multiple scripts and get a single spool file output
Hi,
I have one master script that calls three other scripts. The three scripts each produce their own spool files. But I would like to have the master script also produce one single output (in addition to the three indiviual output I mean). How to do that? Can you please help.
Following are the scripts:
--m.sql (master script)
spool c:\m.log
@1.sql
@2.sql
@3.sql
spool off
--1.sql
spool c:\1.log
insert into test values(1);
commit;
spool off
--2.sql
spool c:\2.log
insert into test values(2);
commit;
spool off
spool c:\3.log
insert into test values(3);
commit;
spool off
--table used
SQL> desc test
Name Null? Type
A NUMBERWhen I run the above script m.sql it does produce the other 3 log files (1.log,2.log etc) but m.log (which is master log file which should have output of each of the three calling script) is empty file with 0 byte!
Thanks
Edited by: orausern on May 1, 2011 3:17 AMI have one master script that calls three other scripts. The three scripts each produce their own spool files. But I would like to have the master script also produce one single output (in addition to the three indiviual output I mean). How to do that? Can you please help. Not sure if that's possible directly with sqlplus spool option
When you spool to a different file in a single session, sqlplus stops writing to earlier spool file and redirects the output to the file specified in last spool command.
at the end of the script, however, below may help
host type c:\1.log >> c:\m.log
host type c:\2.log >> c:\m.log
host type c:\3.log >> c:\m.log -
When I right click and go save image/page/ect as the file save popup screen appears and on the right side of the File Name bar there is an arrow. If you click the arrow it shows the last 20? items that have been saved and their save location. Is there anyway to not have the list of recent items there or at the very least a way to clear them? I'm running Firefox 17 on Windows 7.
Also when you save items as you were typing in the name you want to save them as it used to show filenames with the same name as you type that are saved in that directory so instead of typing the whole filename or copy/pasting you could start typing a filename and then hit the up or down arrow, backspace and just change the end of the filename without having to retype the entire filename.
Hopefully you understand what I mean and can help me fix it, thanks.It's in the proper directory. I can scroll down the window on the right and see the files but if I start typing the file name of one of them the autocomplete drop down thing that shows matching file names does not appear. In the back of my mind I'm starting to think a setting got changed and then the list of matching file names stopped appearing but I can't recall what setting may have been changed, if it was a firefox or microsoft change or for certain if anything got changed at all. Yeah I know I'm not helping my own cause but what can you do.
-
How to get the number of rows written to the header of the spool file.
Hi
I need to create a header line for the spool file .
the header line should include fixed length values .
The header should include the number of records found in the table with a maximum begin date (begin_date is the column of the table)
To get the header in the spool file , i wrote a select query has :-
--SPOOL 'C:\Documents and Settings\abc\Desktop\output.TXT'
select 'W'||to_char(sysdate,'MM/DD/YYYYMi:HH:SS')||lpad(max(rownum),9,'000000000') ||'R'||max(to_char(school_from_date,'MM/DD/YYYY')) ||
rpad(' ',76,' ')
from dad.school
group by sysdate;
SPOOL OFF
which gets me all the rows in the table , but i only want the rows with the latest school_begin_date .
how can i achieve that ...
I know that a subquery should be written in the from clause to get the number of rows found with a maximum school_begin_date.
select 'W'||to_char(sysdate,'MM/DD/YYYYMi:HH:SS')||lpad(max(rownum),9,'000000000') ||'R'||max(to_char(school_from_date,'MM/DD/YYYY')) ||
rpad(' ',76,' ')
from dad.school where
select rownum from dad.school
where school_begin_date = max(school_begin_date) ;
the error i get is
ORA-00934: group function is not allowed here
I NEED HELP ..IN GETTING THE ROWNUM JUST FOR THE LATEST BEGIN_DATE ?
PLS HELP ME IN WRITING THE QUERY .
THANKS IN ADVANCE .Try this:
select 'W'||to_char(sysdate,'MM/DD/YYYYMi:HH:SS')||lpad(max(rownum),9,'000000000')||'R'||max(to_char(school_from_date,'MM/DD/YYYY')) || rpad(' ',76,' ')
from dad.school
where school_begin_date = (select max(school_begin_date)
from dad.school);
Maybe you are looking for
-
How can I cut/paste a rasterized PDF?
I have a bunch of scanned-in PDF documents. I want to cut parts out from one scanned-in document and paste it into another scanned-in document. They aren't individual pictures, rather just pieces of the document. I can't figure out how to accomplish
-
Best practices for large ADF projects?
I've heard mention (for example, ADF Large Projects of documentation about dealing with large ADF projects. Where exactly is this documentation? I'm interested in questions like whether Fusion web applications can have more than one ViewController pr
-
TypeKit font becoming thicker in the browser!
I've just moved to Muse from Dreamweaver and all seemed to be going well. Well, I've just wrote some body text using "Bree Serif" and it looks sweet! However the font loads thicker in the browser - not how I want it. If I export the site as HTML, the
-
When I i open a picture from my Documents it automatically opens in Photoshop. I want it to open in Lightroom. How do I change this preference?
-
Hi could some one assist. Our requirement is Number of tickets by Size per each month, the data in Trade table like this Trade_id-->Size-->trade_Date-->Market 1-------->110----->01/02/11-->AA 2-------->80------>25/01/11-->AB 3-------->210----->17/01/