Utl_file under unix
hi,
how ro read a file which is under windowsNT
from a sun?
how is the location-string?
locaten = '//server//computer_name/my_dir'
or so?
thanks for answer
I did it once from a NT server with Oracle to a NT workstation. Then the file-string was:
\\<pcname>\<sharename>\<the rest>
The UTF parameter in the init.ora must be set correctly (in my case it was * (I know not very secure)). For UNIX it must be something alike (i think).
Similar Messages
-
Hi,
I have this problem: a part of my application is reading a file name. Sometimes the file name contains special characters: �, �.... Everything works fine when I'm testing on Windows. When I'm testing under UNIX I get '?' insteed of �. I can see that la file has a corect name on the HDD.
Why my application displays different results on Windows and UNIX?
Ex:
File f = new File("bla/bla1/bla2");
Filter filter = new Filter(".txt");
String[] files = f.list(filter);
The files array contains diferennts strings on Windos comparing to UNIX.Que? File names are allowed to contain certain characters in windows, and another set of characters in unix.
/Kaj -
Using utl_file and unix pipes
Hi,
I'm trying to use utl_file and unix pipes to communicate with a unix process.
Basically I want the unix process to read off one pipe and give me back the result on a different pipe.
In the example below the unix process is a dummy one just copying the input to the output.
I cant get this to work for a single plsql block writing and reading to/from the pipes - it hangs on the first read of the return pipe.
Any ideas?
======== TEST CASE 1 ===============
create directory tmp as '/tmp';
on unix:
cd /tmp
mknod outpip p
mknod inpip p
cat < inpip > outpip
drop table res;
create table res (m varchar2(200));
declare
l_filehandle_rec UTL_FILE.file_type;
l_filehandle_send UTL_FILE.file_type;
l_char VARCHAR2(200);
begin
insert into res values ('starting');commit;
l_filehandle_send := UTL_FILE.fopen ('TMP', 'inpip', 'A', 32000);
insert into res values ('opened inpip ');commit;
l_filehandle_rec := UTL_FILE.fopen ('TMP', 'outpip', 'R', 32000);
insert into res values ('opened outpip ');commit;
FOR i in 1..10 LOOP
utl_file.put_line(l_filehandle_send,'line '||i);
insert into res values ('written line '||i); commit;
utl_file.get_line(l_filehandle_rec,l_char);
insert into res values ('Read '||l_char);commit;
END LOOP;
utl_file.fclose(l_filehandle_send);
utl_file.fclose(l_filehandle_rec);
END;
in a different sql session:
select * from res:
starting
opened inpip
opened outpip
written line 1
============ TEST CASE 2 =================
However If I use 2 different sql session (not what I want to do...), it works fine:
1. unix start cat < inpip > outpip
2. SQL session 1:
set serveroutput on size 100000
declare
l_filehandle UTL_FILE.file_type;
l_char VARCHAR2(200);
begin
l_filehandle := UTL_FILE.fopen ('TMP', 'outpip', 'R', 32000);
FOR i in 1..10 LOOP
utl_file.get_line(l_filehandle,l_char);
dbms_output.put_line('Read '||l_char);
END LOOP;
utl_file.fclose(l_filehandle);
END;
3. SQL session 2:
set serveroutput on size 100000
declare
l_filehandle UTL_FILE.file_type;
begin
l_filehandle := UTL_FILE.fopen ('TMP', 'inpip', 'A', 32000);
FOR i in 1..10 LOOP
utl_file.put_line(l_filehandle,'line '||i);
--utl_lock.sleep(1);
dbms_output.put_line('written line '||i);
END LOOP;
utl_file.fclose(l_filehandle);
END;
/> it hangs on the first read of the return pipe.
Correct.
A pipe is serialised I/O device. One process writes to the pipe. The write is blocked until a read (from another process or thread) is made on that pipe. Only when there is a reader for that data, the writer is unblocked and the actual write I/O occurs.
The reverse is also true. A read on the pipe is blocked until another process/thread writes data into the pipe.
Why? A pipe is a memory structure - not a file system file. If the write was not blocked the writer process can writes GBs of data into the pipe before a reader process starts to read that data. This will drastically knock memory consumption and performance.
Thus the purpose of a pipe is to serve as a serialised blocking mechanism between a reader and a writer - allowing one to write data that is read by the other. With minimal memory overheads as the read must be serviced by a write and a write serviced by a read.
If you're looking for something different, then you can open a standard file in share mode and write and read from it using two different file handles within the same process. However, the file will obviously have a file system footprint ito space (growing until the writer stops and the reader terminates and trashes the file) .
OTOH a pipe's footprint is minimal. -
Bug with RMI server under Unix
I have a server/client apps, and it work under Windows but not under Unix.
With Unix i have an exception :
java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
at java.net.Socket.<init>(Socket.java:268)
at java.net.Socket.<init>(Socket.java:95)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:20)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:115)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:494)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:169)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:78)
at ServeurChatImpl_Stub.connect(Unknown Source)
at ClientDistantImpl.main(ClientDistantImpl.java:85)
Why?Your question is very vague. Are you running the client and the server on the same machine or not at least it seems so. Are you using UnicastRemoteObject, RemoteObject or Activatable for extension. Also post some of your code and settings only then would somebody be able to help u.
-
Error Generating PDF under Unix
Error Generating PDF under Unix
I am calling one report from another,
My requirement is when i run the first report the second report should generate pdf in unix directory ('/ora1/app/1.pdf').
If i use my local drive pdf is getting created but, if I use unix directory in the desname (dynamically) , iam getting error SCABA 14.
Please guide me !!!Hi,
has the oracle user respectively the User that starts the Oracle Reports process on your unix machine the right to write in the specified unix directory? If this doens´t help you make sure you give the report the right directory values and try some variants of this directory values.
If you´re running Oracle Reports 6i, what I hope is not the case, this might be interessting for you: http://www.oracle.com/technology/documentation/forms/6idocs/bugfix_p11_s.html
regards -
Aruutil (web-analysis users) under unix
Hello,
I created a xml document an want to set ARUImport.properties and adjust the
ARUUtil.sh. <- all under Unix.
We are using system 9.3. Can someone confirm that this process is working?
Can someone post me examples of these two files so I can see what I have to adjust (my unix is not installed,..yet)
Thanks[WARN] main com.hyperion.analyzer.usersession_base.HYABaseClient - Using Config: config_client.xml
[ERROR] main com.hyperion.atf.services.ServiceManager - Creating dummy lock.
[FATAL] main com.hyperion.analyzer.administrator.HYAAdministratorCommandLine - AUTHEN_CSSLoginFailed
com.hyperion.atf.security.authentication.TokenAuthenticationException: AUTHEN_CSSLoginFailed -
Identify the SAP Product Under Unix Env
Hello All
There are few hosts in our server enviroment which have SAP running on them.
We have a fingerprinting engine which runs through these hosts and collects useful data such as version string ,patch level etc.All these hosts are under unix env.
Our problem is we are not able to identify what product it is by just looking at version string.
We do not know if there is any way we can find out about that Product ,under unix env.
We want to know if there is any command or script that can be run and find out what product it is.
Regards
Abhi> Is anyone aware of 'saplicense -show' command ?
> Would this command help me?
No.
> and yes,anyone who uses any product should know it byhand but in my case i am not the end user .I am a third party survilling all the products existing in my enviroment.Thats what my engine does.
I can just repeat myself.
Even if you had all component information (ABAP and/or Java) it's not possible to distinguish from that for what purpose the system is used.
It's the same as having 100 PCs, all equipped with Word, Excel and SAPGUI. No matter what you do you can't tell whether the system is a secretary working place, a PC in the factory or a PC in the financial department.
Markus -
Getting a files inode under unix
i want to take a list of files and sort them according to their inodes.
how do i get file i-nodes under unix system?Pure Java wont work.
You need an external command (-i flag for ls)
or a native method accessing:
STAT(2) System calls STAT(2)
NAME
stat, fstat, lstat - get file status
SYNOPSIS
#include <sys/stat.h>
#include <unistd.h>
int stat(const char file_name, struct stat buf); -
Help about the j2sdk1.2 install under unix
hi:
i got some java package: java2sdk2.pkg java2pls2.pkg and java2man.pkg
but i don't know how to install the package under unix
my system is Sco operserver 5.0
thanks!I haven't run OpenServer, but if they implemented
System 5 packages the same way Sun did, you install
from package stream files like
pkgadd path/to/stream/file PKGNAME
where PKGNAME is the name of the package. On
Solaris if you omit PKGNAME it will list the packages
in the stream file and you pick which ones to install. If
you can't do that on OpenServer, then
pkginfo -d path/to/file
to list the packages within the stream file.
If they implemented things differently, they probably
still have pkgadd and pkginfo and their man pages. -
Good book on learning underlying UNix in OS X?
Looking for suggestion on a good book to acquire to learn the underlying Unix commands in Terminal for technical admin knowledge?
Any suggestions would be appreciated!Here's a good and free starting point-
http://developer.apple.com/documentation/MacOSX/Conceptual/OSXTechnology_Overview/CommandLine/chapter_950_section_1.html#//appleref/doc/uid/TP40001067-CH271-BBCBEAJD -
I have execute an example of RMI on 2 stations client/server
under the same one systeme(Windows)mais when I have to try to test it
under Unix, I do not have arrive
what is it necessary for me like configuration?well: how far have you gone or tested the app? where are you getting stuck? i'm running rmi on linux and i may be able to help out, but you need to give me more details.
-
Pb with compiling form under unix
Hi
I tried to compile a form under unix. I got an error saying that it can't find a function which is in a PL SQL library .
All the Pll's files and the Fmb's are in the same directory. I put this directory in the forms_path ( default.env) but still got the same error
Is there any configuration file that I should set ?
Thanksthe default-env setting is only relevant for the runtime. For compile-time, you should set the environment-variable FORMS_PATH and export it.
-
Accentuated characters under Unix?
Hi,
How to manage the accentuated characters under Unix?
we need to transmit data containing accentuated caracters in XML files which will be analyzed by a SAX parser in C++. We encounter problems when accents appear at the end of the attribute or the end of the element, the parser announces errors like :
- "LPX-00244 invalid use of less-than ('<') character (use <)"
- "LPX-00245 end-element tag does not match start-element tag"
- "LPX-00007 unexpected end-of-file encountered "
depends on the position of the accentuated characters.
We does not encounter these problems on NT, is this a problem of the parser on Unix?
or a problem of file format?
Here an example of XML file accent.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<accent>
<test att="`ihjot|yg">`ihjot|yg</test>
</accent>
To analyze it, we used the program xml.exe provided with XDK :
xml - x accent.xmlnullSee this note:
http://homepage.mac.com/thgewecke/woutlook.html -
SQL script runs under SQL Devoper, will not run under UNIX, SQLPlus
I have a sql program I developed under the SQL Developer tool and it runs fine. I have ftp'd the sql to the Unix server and I am trying to run the same program under SQL Plus in unix. The program echo's back the line number that is the last line number in the code before the 'Exception' code in the program and it goes out into never never land.
I can't figure out why this runs under SQL Developer but will not run under SQLPlus in Unix. Any ideas would be appreciated!!!!Assuming that the ftp process did not append any invisible characters(which it usually does) at the end of each line,
did you put the '/' symbol at the end of your program before running in sql*plus
something like
begin
end;
/ -
Hi Friends,
I wanted to calculate total storage space on our UNIX BOX,
From the following if i wanted to calculate the total storage allocated for a the SID(BEP) should i add
41943049355264 2097152020971521048576+1044480 etc ,... or should i take the storage for /USR/SAP/SID consider the same.
/dev/vgdbciBEP00_01/lvol2
4194304 808578 3177224 20% /export/sapmnt/BEP
/dev/vgdbciBEP00_01/lvol3
9355264 3959636 5058695 44% /export/usr/sap/trans/BEP
/dev/vgdbciBEP00_01/lvol4
20971520 4390010 15545206 22% /oracle/BEP
/dev/vgdbciBEP00_01/lvol5
2097152 459134 1535760 23% /oracle/BEP/sapreorg
/dev/vgdbciBEP00_01/lvol6
1048576 432382 577734 43% /usr/sap/BEP/DVEBMGS00
/dev/vgdbciBEP00_02/lvol1
26214400 16417145 9185178 64% /oracle/BEP/saparch
/dev/vgdbciBEP00_03/lvol1
1044480 269124 726902 27% /oracle/BEP/origlogA
/dev/vgdbciBEP00_03/lvol2
1044480 181204 809327 18% /oracle/BEP/origlogB
/dev/vgdbciBEP00_04/lvol1
220200960 89871976 129310896 41% /oracle/BEP/sapdata1
/dev/vgdbciBEP00_04/lvol2
188743680 91848896 96137904 49% /oracle/BEP/sapdata2
/dev/vgdbciBEP00_04/lvol3
188743680 115036344 73132952 61% /oracle/BEP/sapdata3
/dev/vgdbciBEP00_04/lvol4
220200960 119653304 99762168 55% /oracle/BEP/sapdata4
/dev/vgdbciBEP00_04/lvol5
534773760 272340952 260382624 51% /oracle/BEP/sapdata5
/dev/vgdbciBEP00_04/lvol6
513802240 247002256 264715672 48% /oracle/BEP/sapdata6
Please help me regd the same.
I will definetely give points.
RAMA.Hi ,
/dev/vg00/lvol23 2097152 168618 1808044 9% /usr/sap/BEP
/dev/vgdbciBEP00_01/lvol2
4194304 807695 3178219 20% /export/sapmnt/BEP
/dev/vgdbciBEP00_01/lvol3
9355264 3959753 5058581 44% /export/usr/sap/trans/BEP
/dev/vgdbciBEP00_01/lvol4
20971520 4393288 15542122 22% /oracle/BEP
/dev/vgdbciBEP00_01/lvol5
2097152 581940 1420628 29% /oracle/BEP/sapreorg
/dev/vgdbciBEP00_01/lvol6
1048576 309243 693176 31% /usr/sap/BEP/DVEBMGS00
/dev/vgdbciBEP00_02/lvol1
26214400 5607606 19319187 22% /oracle/BEP/saparch
/dev/vgdbciBEP00_03/lvol1
1044480 271012 725132 27% /oracle/BEP/origlogA
/dev/vgdbciBEP00_03/lvol2
1044480 181204 809327 18% /oracle/BEP/origlogB
/dev/vgdbciBEP00_04/lvol1
220200960 89873864 129309024 41% /oracle/BEP/sapdata1
/dev/vgdbciBEP00_04/lvol2
188743680 91848896 96137904 49% /oracle/BEP/sapdata2
/dev/vgdbciBEP00_04/lvol3
188743680 135516424 52812872 72% /oracle/BEP/sapdata3
/dev/vgdbciBEP00_04/lvol4
220200960 119653304 99762168 55% /oracle/BEP/sapdata4
/dev/vgdbciBEP00_04/lvol5
534773760 272340952 260382624 51% /oracle/BEP/sapdata5
/dev/vgdbciBEP00_04/lvol6
513802240 247002256 264715672 48% /oracle/BEP/sapdata6
dbciBEP:/export/sapmnt/BEP
4194304 807696 3178216 20% /sapmnt/BEP
I just want to make sure before i give details to the user, they want everything under SID
Sorry for asking again.
From the above, so here from the above total storage for BEP will be
2097152 + 4194304 + 9355264 + 20971520 + 2097152 + 1048576 + 26214400 + 1044480 + 1044480 + 220200960 + 188743680 + 220200960
+ 534773760 + 513802240 + 4194304
From the above it will be BEP = 1749983232
Please reply whether i am right or wrong.
Thanks
rama
Maybe you are looking for
-
Serial to USB Converter?
I'm assisting a friend in switching his current (very old PC) network to an wireless network. As well as very compatible USB laser printer, he also has a serial-cabled dot matrix printer which he would rather not lose. If I were to hook this up to an
-
i forgot my passcode in my iphone 5s. i dont wanna lose my phone, its new so i dont have files yet so its ok with me if all the files deleted, but i want to use my phone,
-
Opening pdf files in IE from over the network turning black
Client is opening pdf files from another network inside IE 8 and while they may open properly to start with they very quickly turn black. Saving the same file to the desktop then opening in Acrobat Reader doesn't cause the same issue. Any suggestions
-
Validating XML against an external DTD
I've three questions concerning the validation of an XML file on Checkin: 1. Can the SimpleXMLParser validate an XML file against an external (internal) DTD. 2. How do I have to construct the !DOCTYPE Reference in my XML file for the parser to find m
-
EHP4 sp upgrade using SAINT?
We upgraded our ABAP only ER6.0 server to EHP4 sp3 using the EHPI tool. Now we want to upgrade to EHP4 sp4. I really liked the SAINT tool using the STACK xml file to upgrade our Solution Manager stack. I also liked using the xml file to upgrade j2ee