Redirect *.TMP files into another directory
Hello,
We have Forms 6i and also Forms 10g applications, and alll these run on a IBM AIX server.
We noticed that our applications generated sometimes a lot of big or less big *.TMP files in the /tmp directory of our server.
These files are usually automatically deleted when the application closes as normal. But, when a crash occurs, then *.TMP files remains for ever...
We would like to monitor these problems, and see whether it's possible to redirect the *TMP files on the server into another directory on the same server.
I suppose that there is some setup to make.. but I have no idea what to do.
Thanks,
Olivier
Hello,
Here is the content of a Metalink note:
Subject: Files Types .t and .temp and .tmp, are Saving Under /var/tmp
Doc ID: Note:145487.1 Type: PROBLEM
Last Revision Date: 28-JUL-2003 Status: PUBLISHED
* fact: HP 9000 Series HP-UX
* fact: Oracle Application Object Library
* symptom: /var/tmp directory is runnig out space
* symptom: The user Applmgr is creating the file OFFAAAa(5 digit number).t under /var/tmp:
* symptom: The user Oracle also is creating the file o(seven digit number). tmp under /var/tmp
* symptom: The user Oracle also is creating the file l(seven digit number). temp under /var/tmp
* symptom: Using the "browse" window in forms
* symptom: Running forms creates a temp file /var/tmp that keeps getting filled up
* change: NOTE ROLE --------- .t files - ASCII files - temporary files generated by reports Open up the .t files the first 5 characters indicate what report in Applications created the .t file. .tmp and .temp files - binary files - temporary files generated by forms Forms uses the operating system function call tmpnam() to generate file names that can be used safely for temporary files. tmpnam() depends on the setting of P_tmpdir defined in /usr/include/stdio.h (HP may have a different directory). The P_TMPDIR can only be changed from the OS side. After changing the P_TMPDIR all forms in applications must be recompiled. P_TMPDIR is equivalent to TMPDIR on some UNIX boxes. If the TMPDIR (or P_TMPDIR) is not set up then all the temporary files are created under /var/tmp directory.
* cause: There is a lack of disc space for temporary files.
fix:
1. Redirect /var/tmp under a different/new disk which has more space
OR
Make a soft link from /var/tmp to a directory with sufficient space on the same
disk.
2. Set up a CRON job to clean up the files under /var/tmp frequently.
UNIX system administrator and/or the operating sytem vendor, HP, has
knowledge/information about this clean up script.
3. Change P_TMPDIR or TMPDIR on the operating system if P_TMPDIR or TMPDIR is
not set up correctly.
4. Recompile all forms in apps with adadmin utility afterwards.
5. Set up P_TMPDIR or TMPDIR (depending on the UNIX brand) if it is not yet set
up.
WORKAROUND:
1. Ask the UNIX administrator and HP about spool file directory and user quota
on the operating system HP.
2. Change/Increase the value of "
3. Change the spool file directory to something other than /var/tmp.
Francois
Similar Messages
-
How to store file into a directory?
i want to save the file(text file) into the directory which i have created using File object in the codes below. how do i do it?
public void saveString(String filename, String string)
//declare textfile to be null
PrintWriter textFile = null;
String line = null;
try {
// writes to write.txt
textFile = new PrintWriter (new FileWriter(filename,true));
line = string;
// save string in textfile
textFile.println(line);
textFile.close();
// create a directory (to store (output).xml file)
File fobj = new File("Testing");
fobj.mkdir();
catch (IOException e) {
System.out.println("Error in opening file");
System.exit(0);
}create the directory first and then create the file u want liek this
File f = new File (fobj,filename);
and then open the fiel to write like this
textFile = new PrintWriter (new FileWriter(f,true));
regards
rohan -
How to move a page file to another directory ?
Hi,
What I did to try to move a page to another directory is:
1. copy the page file to another directory /public_html/mydirectory.
2. modify the nevigation-rule in the faces-config.xml file so that the nevigation-rule
point to the file in the new directory.
But when run the page, there is an FacesException: Cannt instantiate backing_bean.
How to move a page file to another directory?
Thanks
Stephenbesides moving the file to the new directory, i'd advise you to find the name of your page in every file of your application (ultraedit does this very well) and append the directory wherever it appears otherwise you'd probably miss a reference and have a problem like you have.
-
How to upload and download a files into AL11 directory in ABAP
Hi,
How to upload and download a files into AL11 directory in ABAP
thanks
Moderator message: please search for available information/documentation.
Edited by: Thomas Zloch on Mar 21, 2011 9:18 AMYou should try one of these forums for an answer to your question:
http://swforum.sun.com/jive/forum.jspa?forumID=116
http://community.java.net/netbeans
http://linux.java.net -
How can I insert a completed file into another PDF file I am developing?
How can I insert a completed file into another PDF file I am developing?
Please refer : http://acrobatusers.com/tutorials/how-to-insert-a-pdf-into-a-pdf
-
Insert pdf file into another pdf file keeps getting stuck
I am trying to insert a 5 page pdf file into another pdf file (both unsecured) and it keeps getting stuck at about 71%* conplete. I can't even get the file to show up on the screen so i can close it. Help?
I have tried several different files, and get the same phenomenon with each one –
1. I open an acrobat file.
2. I open a WORD file.
3. I copy a sentence from WORD to the clipboard.
4. I click on View in Acrobat, Tools, Pages, other options, insert from clipboard.
5. Acrobat shows that it is copying, and when it gets to 67% it stops and runs and runs and then only way I can stop it is to go to the task manager and end task.
I tried refrying with a file and that didn’t work, and I can’t imagine that Acrobat was designed so that each time I try to insert from WORD I would have to refry (even if it did work).
Please help!
Thank you
Shirah
Moadim LeSimcha, times of joy! -
How does one copy a PDF file into another PDF document?
I am trying to copy part of a PDF file into another PDF document. So far, the file will copy but will not paste into another PDF document. Any clues?
You can't convert Photoshop to editiable InDesign (though there is a plugin from RecoSoft that claims to make editable ID files from PDF: http://www.recosoft.com/products/pdf2id/).
About the best you can hope for is to leave pixel information in the Photoshop file (where it really belongs) and place that into an ID document, then set any type in ID.
Peter -
Since updating to OS X Yosemite, I am unable to save files into another computer or server. I have to save it on my desktop and then drag it into the server. How do i correct this?
Ok this worked to solve the error.
Use cmd prompt in windows 7 or 8 and run as admin:
sc config lanmanworkstation depend= bowser/mrxsmb10/nsi
sc config mrxsmb20 start= disabled
No need for all that power shell nonsense as shown elsewhere for windows 8.
That's it. Also force smb2 disabling on the apple side for good measure.
With the above I was able to network mavericks and windows 8.1 pro flawlessly. He issues I had before where I could not read video, ISO and audio files (but could open documents and pictures from the windows machine connected to an apple network share folder went away. -
Can we able to take the out put have the file into another file in unix
Hi all ,
My question is .. we are having one shall fill , we need to take the output of that file to another file ,
but the output is not printing into another file..
what am guessing is we have only read and execute permission on that file.. we don't have write permission on that file and the folder where the file is exists .
my Question is , Do we need all permission on File to copy the output to another file... ?
because we are redirecting the output to another folder where we can create the another file and read and write permissions .
-rwxrwxr-x 1 th th 499 Jun 20 01:06 Coverage
like this we are having the permission on that file
for the folder we are having the permission
drwxrwxr-x 6 kpsmith kpsmith 12288 Aug 9 21:59 1.3
can any one help me out from this problem
Thanks
SreedharAssuming 'shall fil' is shell script , other than dumping even more garbage in this forum, what does this question have to do with Oracle?
Or can't you type anything in the address bar of your browser and is this URL the only one you can visit?
Sybrand Bakker
Senior Oracle DBA -
Hi all,
I am having a list of files in a folder named datafiles and I am processing them one by one when I finish each one I want to move the file into a folder archive.
I am having a variable named filename and archivefilename and two fileconnections one is originalfiles and archivefiles
archivefilename=replace( @[User::filename],"datafiles","archive")
orginalfiles connection is an expression =@user:filename
archivefies connection is an expression=@user:archivefilename
the filename comes from reading the folder that contains those files
public void Main()
string[] filenames;
filenames = Directory.GetFiles(@"C:\luminis\datafiles\");
Array.Sort(filenames);
Dts.Variables["filelist"].Value = filenames;
Dts.TaskResult = (int)ScriptResults.Success;
The folder c:\luminis\archive\ exists
why I am getting this error
My filesystem task : destinationpathvariable =false
destinationconnection:archivefile
overwrite=true
operation=movefile
issourcepathvariable=false
sourceconnection=original file
why am i getting this error[File System Task] Error: An error occurred with the following error message: "Could not find a part of the path.".
sohairzakithere may be 2 problem...
1> specify a target directory only, not with the file name.
OR
2> Try using the unc,path format \\computername\sharename\
let us know your observation...
Let us TRY this | Mail me
My Blog :: http://quest4gen.blogspot.com/ -
Copy a file into another folder
Hello,
I have some files in a folder; i picked some of them and put them in listTEST (here below)
List<String> listTEST = ..................Now I have their name but I need to copy them into another folder; which functions do I need?
thanks,You'll need to read their contents from the original files and then write them out to the new ones. You'll want to use FileInputStream and FileOutputStream.
Google for java io tutorial for more details and examples. -
How to upload an XML file into another system
Hi friends,
I have a requirement where I need to upload an XML file into one system
which has been downloaded using another system.
I have tried using the method ' cl_gui_frontend_services=>gui_upload'
to upload the file but it is going for dump.
I have used the method ' w_xml->import_from_file' also,
but it is also going for dump ,because both methods are using the same FM
' GUI_UPLOAD'.
Can any one suggest on this.
Regards,
Bhargavi.D"Here is the Explaination for uploading the XML Format file to sap " through ABAP Program ....
1. Basically you simply have to convert the XML file into the proper IDoc format. There are many ways to achieve this. One solution would be to convert it externally to SAP, e.g. via VB Script or with an XSLT transformation. Or you use the built in SAP functions for importing an IDoc from an XML stream.
2. Uploading a file is either done via GUI_UPLOAD or via the usual way of reading a file from the application server (Open dataset. Read dataset) But what do you mean by "send to external system"? Do you want to convert an IDoc into XML? Then you simply define an XML port with WE21 to send the IDoc out.
Here is an example of code that loads an XML from file and posts it as an IDoc. Please keep in mind that the XML has to be in its canonical format as described in the interface repository: ifr.sap.com (choose the template of the desired IDoc from there as an example).
data: data_tab type table of char1024.
data: XML_STREAM type string.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'D:test.xml'
* FILETYPE = 'ASC'
* HAS_FIELD_SEPARATOR = ' '
* HEADER_LENGTH = 0
* READ_BY_LINE = 'X'
* DAT_MODE = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* CHECK_BOM = ' '
* IMPORTING
* FILELENGTH =
* HEADER =
TABLES
DATA_TAB = DATA_TAB
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'CONVERT_TABLE_TO_STRING'
EXPORTING
I_TABLINE_LENGTH = '1024'
IMPORTING
E_STRING = XML_STREAM
TABLES
IT_TABLE = DATA_TAB[].
write: / xml_stream color col_total.
data: CONTENT_LENGTH type string.
data: CONTENT_TYPE type string.
data: REMOTE_ADDR type string.
CALL FUNCTION 'IDOC_INBOUND_XML_VIA_HTTP'
EXPORTING
XML_STREAM = XML_STREAM
CONTENT_LENGTH = content_type
CONTENT_TYPE = content_type
REMOTE_ADDR = remote_addr
EXCEPTIONS
NO_IDOCS_SAVED = 1
TAG_ERROR = 2
NO_DATA_RECEIVED = 3
NO_IDOCS_RECEIVED = 4
SEGMENT_ERROR = 5
IDOC_WAS_SEND_SECOND_TIME = 6
OTHERS = 7
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
write: / sy-subrc color COL_NEGATIVE.
ENDIF.
reward points if it is usefull.......
Girish -
How do I insert one file into another with track changes intact?
I gather that Pages does not have a way to insert a file into a document in the way that Word has insert file. So all we can do is copy an entire document and then paste it into the second document. But when I do that I lose the track changes, except for the odd comment. What is the way around this?
I'm assuming you're wanting to insert the contents of one Pages document into another. I don't have a need to use tracking, so I'm not sure if this applies but I think it should.
You can insert sections from one Pages document into another. Open your files & show thumbnails. Sections have a yellow border around all of the pages in that section. Now click on the page in the thumbnail pane & copy. If the file is more than one page & you only want one, you'll need to insert a section break to separate the pages. Then go to your other file, click in the thumbnail pane & paste. If you want to insert the other content into the middle of a section in the receiving document, you will need to insert section breaks at the point you want to insert. The whole copied page will be pasted in. Repeat with another section. Styles will copy over with the sections but headers & footers will not. -
1000'S OF iT.TMP FILES IN ItUNES DIRECTORY! ???
Re: iTunes 7.6.1 & 7.6.2.. Windows XP, SP3
Aloha,
After having spent months adding my CD collection to iTunes--over 41 GB worth-- I discovered in the \My Documents\My Music\iTunes folder, right below the iTunes library files were 1000's of IT.tmp files totaling over 7 GB! I only saw this because I was sitting at my computer when it did a backup one night instead of leaving it alone.
I talked with iTunes Tech by phone..they hadn't a clue and just said to delete them, which I did. But iTunes is still doing it and does not delete them when the program closes!
Has anyone else had the same experience? Does anyone know why iTunes is doing this and...maybe...have a fix?
Thanks and Mahalo for your resposnes.
DRDRJAY
Kailua-Kona, Hawai'iAloha Katrina,
Ah Ha ! I must be slow late at night! The .tmp files are the iTunes Music Library.xml as it gets bigger!
I moved the .dll file for Uplayme into a backup folder, then launched iTunes and imported two cds..actually three..Sun Kil Moon's "April" has a short bonus disk. I only got two iT.tmp files, instead of one per track...a great improvement! I'll have to try it again when Ihave a bunch of new ones -- after my next Honolulu business trip. I may try fully uninstalling Uplayme and see what happens then, because it doesn't happen, as I said, on my other laptop with only iConcert Cal as a plugin.
I had thought the Uplayme plugin would be fun because it suppossedly links you to others who share your like sin Music but..alas..I just don't have the time for that sort of thing!
Thanks for your help,
DRDRJAY ( Jay ) -
Move the contents of old file into another before writing in applcn srvr
Hi Friends,
As per the requirement I need to move the contents of the previous file into an archieve folder which is being created by the previous run of the program in the application server.
After the old file has been moved I need to craete the new file in the directory.
So at any time only one file should be present in the application server.
All the previous files will be in the Archieve folder.
Please suggest how can I move the contents of the privious file in the archieve directory.
Thanks and regards,
Smriti Singh
Please do not duplicate post
Edited by: Rob Burbank on Feb 24, 2009 11:16 AMHi Smriti,
check this
1) use the function module 'EPS_GET_DIRECTORY_LISTING' --- to gett the details of files n application dir
eq.
call function 'EPS_GET_DIRECTORY_LISTING'
exporting
dir_name = p_file
tables
dir_list = it_dir_list
exceptions
invalid_eps_subdir = 1
sapgparam_failed = 2
build_directory_failed = 3
no_authorization = 4
read_directory_failed = 5
too_many_read_errors = 6
empty_directory_list = 7
others = 8.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
2) then use this code to archive
open dataset w_file1 for output in text mode encoding default. "Open Backup File
if sy-subrc <> 0.
write: /1 ' error creating file with status - ', sy-subrc.
exit.
endif.
open dataset w_dirname for input in text mode encoding default."Open Real File
if sy-subrc <> 0.
error_flag = 'X'.
write: /1 ' error opening input file with status - ', sy-subrc.
exit.
endif.
*" To read the input file into a internal table
do.
read dataset w_dirname into inrec_lpcfab.
if sy-subrc <> 0.
exit.
else.
if not inrec_lpcfab is initial.
append inrec_lpcfab.
transfer inrec_lpcfab to w_file1 length 180.
endif.
endif.
enddo.
close dataset w_dirname.
Maybe you are looking for
-
[BIOS REQUEST] GTX 970 Gaming 4G
S/N: 602-V316-09SB1411061314 Current Bios Attached to post GPU-Z
-
Internal Microphone and Applications
I was wondering if it is possible to use the internal mic on my macbook with an application such as Rosetta Stone.
-
Weblogic 8.1+ webservice in a diferent queue.
HI, It's possible to customize a queue for a especific webservice? For Example: Webservice A will use the queue X and Webservice B will use queue Y. Thanks in advance. Erick
-
1z0-050_ Oracle Database 11g: New Features for Administrators
Hi all. I' ve passed 1z0-043 (for OCP10g). Is it possible to try/pass 1z0-050 BEFORE obtaining OCP10g (through completion of one of the approved course + the course submission form approval)? PearsonVue seems to allow the 1z0-050 schedule. Thanks Pao
-
Sync Thunderbird with Nokia Ovi Suite 3.0.0.290
Hallo at all, pleas excuse i know my English is not the best one. My Problem: I'm using Nokia Ovi Suite 3.0.0.290 and have all my contacts in it. I want to Sync that contacts with Thunderbird and tryed to use the Sync Option of Ovi. I have done all n