File permission in unix - file is created by File Adapter
I've created a composite that creates an output file in unix server. Problem that I have is the file permission. When file is created it has a permission like below even though this directory is widely open - chmod 777.
-rw-r----- 1 oracle dba 1123 May 4 17:30 Item_18.xml
How can I configure this so that when file is created by SOA composite it can share with others. As you see third group doesn't even have "read" permission.
Edited by: user613835 on May 5, 2011 9:09 AM
Hi,
That means at os level it using umask value of 002 ...where as when you create it from ABAP it is using umask of 022.
Is the owner for both the files are sidadm only?
Thanks.
Similar Messages
-
i want to export a vcard from contacts but when I do it doesn't give me the next step of saving the file anywhere and if it automatically creates a file, where is it saved?
its from icloud contacts. I select all and then go to export to a vcard and then nothing happens.
-
Exporting Layers to PNG files using each layer name to create the file name??
Hi All
I'm trying to sort the following problem and was hoping somebody here could help with a scripting solution - my knowledge extends as far as actions unfortunately - which I don't think is appropriate for this.
I've created a User interface in Illustrator with many layers and have exported this as a psd with layers.
Basically what i'm wanting to do is export every layer as a png file while using the layer name to create the file name - each layer needs to be clipped.
There is no transparency in the png.
I've run the export to files script - but the names are too long and there is no anti aliasing.
I've tried running a script from Illustrator - but it doesn't see sub layers - and doesn't name the layers.
any help would be appreciated.
thanking you in advance
regards
nateHi,
We just released this tool: FERRY (http://ferry.thedamarmada.com). It does exactly what you want and a little bit more.
I think it's worth it a try.
It comes with a free demo that will export 5 layers.
Take a look and let us know if it's what you need.
It could be easily tweaked.
Jordi -
Can't open my Keynote files after last update on Ipad 2. I created the files on the same Ipad. No Mac involved. What can I do to open and use the files again?
Finally, this helped me:
https://discussions.apple.com/message/23602871#23602871 -
How to create UTL file from on Unix server
Hi,
I have created a stored procedure in Oracle (8.0.6) which will create a flat file using UTL_File. The oracle server is running on unix system.
When I am executing the PL/SQL procedure from Unix's Sql Plus, it is creating the file properly. When I try to execute the same from a windows client using SQL Plus / PLSQL Developer, It is not creating the file.
Any input is worh.
also, pls find below the code I am using.
P_Dir = ' /apps/ullcis/dev/data'
P_File = 'test.log'
dbms_output.put_line('In Create Log File ');
l_file_handle := UTL_FILE.FOPEN(P_Dir,P_File, 'w');
dbms_output.put_line('Opened in Write');
UTL_FILE.PUT_LINE (l_file_handle,'sample text');
UTL_File.fflush(l_file_handle);
UTL_FILE.FCLOSE (l_file_handle);
Regards
SamI'm writing to unix file path not onto the windows client.And i have permission in that unix direcotry to create a file.The above code does well if invoked from sql prompt of unix but it does not create file, if i invoke from sqlplus in windows client. Any help ...?
Thanks -
NCP Rights needed to create a file
I have to give users Read, Write, Create, Modify, File Scan and ERASE rights to create a file. There are some folders that we want users to be able to create documents in but not be able to delete them. I think what is going on is as the document is being created it is creating a temp file that has to be deleted and it cannot do it with out the erase right. It happens in all word processors that I have tested, Word, Word Perfect, notepad. Does anybody know if that is what is happening and is there a solution? Thanks
dgonnse wrote:
>
> I have to give users Read, Write, Create, Modify, File Scan and ERASE
> rights to create a file. There are some folders that we want users to
> be able to create documents in but not be able to delete them. I
> think what is going on is as the document is being created it is
> creating a temp file that has to be deleted and it cannot do it with
> out the erase right. It happens in all word processors that I have
> tested, Word, Word Perfect, notepad. Does anybody know if that is
> what is happening and is there a solution? Thanks
I know when you use MS Office apps, it creates a temporary, hidden
version of the file and then deletes it when you exit the application.
Your best solution here would be to advise users to create the file
locally, then when they are finished save it to the location on the
network. This would allow you to revoke E without causing any issues.
In fact, the only permission they would need is C but if you want them
to also see what's out there then give them R,F as well.
Your world is on the move. http://www.novell.com/mobility/
Supercharge your IT knowledge. http://www.novell.com/techtalks/ -
/dev/null file permission changes frequently
Hi,
We are experiencing file permission change issue frequently for the
following files:
root@domain5 # ls -l /devices/pseudo/mm@0:null
crw-rw-rw- 1 root sys 13, 2 Apr 22 2009
/devices/pseudo/mm@0:null
root@domain5 # ls -l /dev/null
crw-rw-rw- 1 root sys 13, 2 Oct 25 07:01 /dev/null
By default, above is the file permission settings. If the file permission
changes, it will look like as below:
root@domain5 # ls -l /devices/pseudo/mm@0:null
cr--r--r-- 1 root sys 13, 2 Apr 22 2009
/devices/pseudo/mm@0:null
root@domain5 # ls -l /dev/null
cr--r--r-- 1 root sys 13, 2 Oct 25 07:01 /dev/null
Due to this file permission change the script which uses this file loose
the write permission and the script fails. To fix this issue, we will be
manually changing the permission. Can you please help me to know the cause for
this file permission change.
Thanks,
Ram.You need to correlate any changes on the system to when you have the problem, or see the date on /dev/null change. Software packages can change this, applications can change this, sometimes even patch installs.
Even certain administrative practices.
Here's one example, where touching a vendor software-created printer config with native Solaris admintool would change /dev/null permissions
http://www.rootunix.org/SOLARIS/printFAQ.txt
10) ONLY ROOT CAN SEND PRINT JOBS:
This problem is caused by network spooling software that for a
network printer that uses /dev/null for the printer device. The
software monitors the queue and spools the print requests over the
network to the printer. If the printer setup is modified in any
way with Admintool, the printer device (/dev/null) permissions will
change to 600 owner lp. -
Creating XML File Using xmldom Package
How can I create an XML file from scratch using the PL/SQL xmldom package?
I want to create an XML file using the xmldom package instead of building the individual tags as strings of VARCHAR2 character data. There is quite a bit of documentation regarding manipulating input XML files using DOM -- but not for creating XML files from scratch given known "tagnames" (<lastName>) and retrieved database "values" ("Smith").
<person>
<lastName>Smith</lastName>
</person>
Is there any documentation that you can recommend?
Thank you.Here is an example.
The create_file procedure creates the file.
The other procedures are generic procs that can be used with any XML.
PROCEDURE create_file_with_root(po_xmldoc OUT xmldom.DOMDocument,
pi_root_tag IN VARCHAR2,
po_root_element OUT xmldom.domelement,
po_root_node OUT xmldom.domnode,
pi_doctype_url IN VARCHAR2) IS
xmldoc xmldom.DOMDocument;
root xmldom.domnode;
root_node xmldom.domnode;
root_element xmldom.domelement;
record_node xmldom.domnode;
newelenode xmldom.DOMNode;
BEGIN
xmldoc := xmldom.newDOMDocument;
xmldom.setVersion(xmldoc, '1.0');
xmldom.setDoctype(xmldoc, pi_root_tag, pi_doctype_url,'');
-- Create the root --
root := xmldom.makeNode(xmldoc);
-- Create the root element in the file --
create_element_and_append(xmldoc, pi_root_tag, root, root_element, root_node);
po_xmldoc := xmldoc;
po_root_node := root_node;
po_root_element := root_element;
END create_file_with_root;
PROCEDURE create_element_and_append(pi_xmldoc IN OUT xmldom.DOMDocument,
pi_element_name IN VARCHAR2,
pi_parent_node IN xmldom.domnode,
po_new_element OUT xmldom.domelement,
po_new_node OUT xmldom.domnode) IS
element xmldom.domelement;
child_node xmldom.domnode;
newelenode xmldom.DOMNode;
BEGIN
element := xmldom.createElement(pi_xmldoc, pi_element_name);
child_node := xmldom.makeNode(element);
-- Append the new node to the parent --
newelenode := xmldom.appendchild(pi_parent_node, child_node);
po_new_node := child_node;
po_new_element := element;
END create_element_and_append;
FUNCTION create_text_element(pio_xmldoc IN OUT xmldom.DOMDocument, pi_element_name IN VARCHAR2,
pi_element_data IN VARCHAR2, pi_parent_node IN xmldom.domnode) RETURN xmldom.domnode IS
parent_node xmldom.domnode;
child_node xmldom.domnode;
child_element xmldom.domelement;
newelenode xmldom.DOMNode;
textele xmldom.DOMText;
compnode xmldom.DOMNode;
BEGIN
create_element_and_append(pio_xmldoc, pi_element_name, pi_parent_node, child_element, child_node);
parent_node := child_node;
-- Create a text node --
textele := xmldom.createTextNode(pio_xmldoc, pi_element_data);
child_node := xmldom.makeNode(textele);
-- Link the text node to the new node --
compnode := xmldom.appendChild(parent_node, child_node);
RETURN newelenode;
END create_text_element;
PROCEDURE create_file IS
xmldoc xmldom.DOMDocument;
root_node xmldom.domnode;
xml_doctype xmldom.DOMDocumentType;
root_element xmldom.domelement;
record_element xmldom.domelement;
record_node xmldom.domnode;
parent_node xmldom.domnode;
child_node xmldom.domnode;
newelenode xmldom.DOMNode;
textele xmldom.DOMText;
compnode xmldom.DOMNode;
BEGIN
xmldoc := xmldom.newDOMDocument;
xmldom.setVersion(xmldoc, '1.0');
create_file_with_root(xmldoc, 'root', root_element, root_node, 'test.dtd');
xmldom.setAttribute(root_element, 'interface_type', 'EXCHANGE_RATES');
-- Create the record element in the file --
create_element_and_append(xmldoc, 'record', root_node, record_element, record_node);
parent_node := create_text_element(xmldoc, 'title', 'Mr', record_node);
parent_node := create_text_element(xmldoc, 'name', 'Joe', record_node);
parent_node := create_text_element(xmldoc,'surname', 'Blogs', record_node);
-- Create the record element in the file --
create_element_and_append(xmldoc, 'record', root_node, record_element, record_node);
parent_node := create_text_element(xmldoc, 'title', 'Mrs', record_node);
parent_node := create_text_element(xmldoc, 'name', 'A', record_node);
parent_node := create_text_element(xmldoc, 'surname', 'B', record_node);
-- write the newly created dom document into the buffer assuming it is less than 32K
xmldom.writeTofile(xmldoc, 'c:\laiki\willow_data\test.xml');
EXCEPTION
WHEN xmldom.INDEX_SIZE_ERR THEN
RAISE_APPLICATION_ERROR(-20120, 'Index Size error');
WHEN xmldom.DOMSTRING_SIZE_ERR THEN
RAISE_APPLICATION_ERROR(-20120, 'String Size error');
WHEN xmldom.HIERARCHY_REQUEST_ERR THEN
RAISE_APPLICATION_ERROR(-20120, 'Hierarchy request error');
WHEN xmldom.WRONG_DOCUMENT_ERR THEN
RAISE_APPLICATION_ERROR(-20120, 'Wrong doc error');
WHEN xmldom.INVALID_CHARACTER_ERR THEN
RAISE_APPLICATION_ERROR(-20120, 'Invalid Char error');
WHEN xmldom.NO_DATA_ALLOWED_ERR THEN
RAISE_APPLICATION_ERROR(-20120, 'Nod data allowed error');
WHEN xmldom.NO_MODIFICATION_ALLOWED_ERR THEN
RAISE_APPLICATION_ERROR(-20120, 'No mod allowed error');
WHEN xmldom.NOT_FOUND_ERR THEN
RAISE_APPLICATION_ERROR(-20120, 'Not found error');
WHEN xmldom.NOT_SUPPORTED_ERR THEN
RAISE_APPLICATION_ERROR(-20120, 'Not supported error');
WHEN xmldom.INUSE_ATTRIBUTE_ERR THEN
RAISE_APPLICATION_ERROR(-20120, 'In use attr error');
WHEN OTHERS THEN
dbms_output.put_line('exception occured' || SQLCODE || SUBSTR(SQLERRM, 1, 100));
END create_file; -
How to create multiple files with Receiver File Adapter in SAP PI 7.31 Java Stack
Dear Friends,
I am using Sender JDBC Adapter and Receiver File Adapter in Integration Flow in SAP PI 7.3 EHP 1 SP08 Java Stack environment. The requirement is that we need to create multiple files based on the row count in jdbc resultset. If there are 5 rows in resultset, we need to create 5 XML files with one row elements in one file. Similarly if there are 10 rows, we need to create 10 XML files.
So how can we create multiple files in this scenario. I tried placing a for loop in the Java Mapping as below in the transform method:
DynamicConfiguration conf = arg0.getDynamicConfiguration();
StringBuffer sbFileData = new StringBuffer();
for (int i =0; i < record.size(); i++ {
. // Create XML for each row and Marshal the object into to the String Buffer
String strFileName = "DC_" + new SimpleDateFormat("ddMMyyyyHHmm").format(new java.util.Date())+"_"+i+".xml";
conf.put(KEY_FILENAME, strFileName);
arg1.getOutputPayload().getOutputStream().write(sbFileData.toString().getBytes("UTF-8"));
arg1.getOutputPayload().getOutputStream().flush();
So here I'm flushing the OutputStream for each record. But it's not creating the multiple file, instead it creates only one file will all record XMLs appended to each other.
Please let me know if I missing something or need to do some thing else.
Regards,
Shreyansh ShahHi
You can easily achieve this using graphical mapping. Create your target message type like below
MT_Target
Details 0 to 1
Data 0 to 1
Source sample structure
<resultset>
<row>
<column-name>column-value</ column-name>
</row>
Then do the message mapping like below
map <row> with MT_Target
contant ----> Deatils
column-name ------>Data
In the signature tab of message mapping, choose the occurrence of your target message type as
0 to unbounded.
This will generate multiple files from multiple rows.
Let me know if you have any doubt. -
Expdp fails to create .dmp files in NFS mount point in solaris 10,Oracle10g
Dear folks,
I am facing a wierd issue while doing expdp with NFS mount point. Kindly help me on this.
===============
expdp system/manager directory=exp_dumps dumpfile=u2dw.dmp schemas=u2dw
Export: Release 10.2.0.4.0 - 64bit Production on Wednesday, 31 October, 2012 17:06:04
Copyright (c) 2003, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-31641: unable to create dump file "/backup_db/dumps/u2dw.dmp"
ORA-27040: file create error, unable to create file
SVR4 Error: 122: Operation not supported on transport endpoint
I have mounted like this:
mount -o hard,rw,noac,rsize=32768,wsize=32768,suid,proto=tcp,vers=3 -F nfs 172.20.2.204:/exthdd /backup_db
NFS=172.20.2.204:/exthdd
given read,write grants to public as well as specific user782011 wrote:
Hi sb92075,
Thanks for ur reply. pls find the below. I am able to touch the files while exporting log files also creating having the error msg as i showed in previous post.
# su - oracle
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
You have new mail.
oracle 201> touch /backup_db/dumps/u2dw.dmp.test
oracle 202>I contend that Oracle is too dumb to lie & does not mis-report reality
27040, 00000, "file create error, unable to create file"
// *Cause: create system call returned an error, unable to create file
// *Action: verify filename, and permissions -
Problem Creating PDF Files from Excel 2007
I am running WinXP SP2, Office 2007, and Acrobat v8.1.2. I have an Excel workbook with multiple worksheets. When I was using Excel 2003 I could create a PDF file using five of the six worksheets. Since upgrading to Office 2007 I am unable to create PDF files from Excel. I can create PDF files from Word 2007. When I attempt to use the Acrobat Plug-in to create a PDF I get a message saying the file needs to be saved first. It then attempts to save the file to a strange, somewhat random, file name (e.g. A234G53). When I say OK Excel just hangs and is unresponsive. The way that I can clear it is to stop Excel using Task Manager. I have tried reinstalling Acrobat without successfully solving the problem. Any ideas on how I can diagnose and/or solve the problem?
Thanks.Is your Excel file on a location outside your machine's disk? If so, try copying to local disk.
Does the Excel file have any protection applied to it? If so, try removing the protection
If these don't work, can you post a sample file that demonstrates the problem. -
How do I create a file using Alchemy?
I have C++ code that uses the following method to create a file: open(filename, access, perms) to create a file, just a standard C++ method from <fcntl.h> library. It works perfect in C++, it creates the file, however, if I compile it into a swc file and use it in my Flex project, it does not create the file. Is there any way I can use that method, compile that C++ code into swc and use it in Flex project and still be able to create a file?
Hi Jim,
That's right.Your understanding on my question is right.
I know to write a file, we need record,file and sql object to work.
record creates and instantiates the rowset for that record.
sql fetches all fields using the by passing the record parameter and %selectall(:1) where bind variable is record name.
File object helps to create ,open write and close the file.
I wanted to know How could implement/integrate the rowset feature to filter and extract the data specifcally.Since I am new to App engine.I checked out people books where they have mentioned the syntax but not the integration.
Regular code that i am trying with the above objects is like this below:
Local File &MyFile;
Local Record &rec1;
Local SQL &SQL1;
/*Create Instance of Record */
&rec1 = CreateRecord(record.tc_help_me_tbl);
&MyFile = GetFile“c:\temp\help_me.txt”, , “A” %FilePath_Absolute);
&MyFile.setFileLayout(FileLayout.help_me);
/*Create SQL object to populate rowset */
&SQL1=CreateSQL(“%selectall(:1)”,&rec1);
While &SQL1.Fetch(&rec1)
&MyFile.WriteRecord(&rec1);
End-While;
&MyFile.Close();
provide me the rowset code by integrating in between them(fill it with one field)
Thanks and Regards -
Creating a file with content conversion
Hi all,
I have a scenario in XI which i create a file in it,
I want to create the file with the content conversion option but with no field separator.
I have an error message - "File adapter receiver channel is not initialized. Unable to proceed: null" if i don't use the fieldSeperator option.
I don't want to use this option, I want the file to be created without separators.
Thanks,
NaamaHi Namma,
Go through very imp blogs:
File Content prameters for the Receiver Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm
File Content prameters for the Sender Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
Refer
File Receiver with Content Conversion
File Receiver with Content Conversion
Configuring the Receiver File/FTP Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/95/bb623c6369f454e10000000a114084/frameset.htm
File content conversion sites:
Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
File Receiver with Content Conversion
Content Conversion (Pattern/Random content in input file)
NAB the TAB (File Adapter)
Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
How to send a flat file with various field lengths and variable substructures to XI 3.0
Content Conversion (Pattern/Random content in input file)
NAB the TAB (File Adapter)
File Content Conversion for Unequal Number of Columns
Content Conversion ( The Key Field Problem )
The specified item was not found.
File Receiver with Content Conversion
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Please see the below links for file content conversion..
The specified item was not found. - FCC
The specified item was not found. - FCC
File Content Conversion for Unequal Number of Columns
File Content Conversion for Unequal Number of Columns - FCC
Content Conversion (Pattern/Random content in input file)
Content Conversion (Pattern/Random content in input file) - FCC
XI Configuration for MDM Integration - Sample Scenario - FCC - MDM
Thanks,
Satya Kumar -
Issue in Creating EAR File Using ANT in ADF 11g of Jdeveloper11g IDE
Hi
Rookie to this ADF 11g Framework and during the exploring of ADF 11g gone through ADF essentials in OTN and i did sample application of ANT build script and in the ADF Essentials of Ant i came across creating build.xml,build.properties and finally creating WAR file and currently i want to create EAR file so that EAR file can be deployed to my oracle Weblogic server.But ADF Essentials of ANT is totally confined to build.xml,build.properties,WAR file only ! Can any one suggest me the template build.xml of EAR file of any Sample Application so that i can come across what are the patterns,jars,excluded names,included names of EAR .
Thanks In Advance,
Regards
RKRK,
There are a few options. If I were doing this today, I'd just use ojdeploy (and the ojdeploy ANT task) to create the EAR file with a minimum of fuss (refer to the JDeveloper docs for more information).
If you wanted to create an EAR file using the same technique that I used in the ADF Development Essentials article, just follow the same techniques - create an EAR file using JDeveloper and unzip it to discover the structure of what it should look like.
Best,
John -
Hi. In my application I'm trying hard to create a file storing accounts information "accounts.dat", but I am not able to do so, after trying many things. This is the final code that I have, but I don't see a new file created. Any suggestion?
try
File file = new File( accountsFile ); // accountsFile = "accounts.dat"
// Create file if it does not exist
boolean success = file.createNewFile();
if ( success )
// File did not exist and was created
else
// File already exists
writer = new PrintWriter( new FileOutputStream( file ) );
reader = new BufferedReader( new InputStreamReader( new FileInputStream( file ) ) );
catch ( IOException e )
e.printStackTrace();
}The file may initially exist or not, if not I'm trying to create it.
import java.io.*;
import java.net.*;
import java.util.Vector;
import javax.swing.JOptionPane;
public class AccountsManager
private Vector accounts;
private String accountsFile;
private PrintWriter writer;
private BufferedReader reader;
public AccountsManager( String accFile )
accounts = new Vector();
accountsFile = accFile;
initializeFileStreams();
loadAccounts();
public void initializeFileStreams()
try
File file = new File( accountsFile );
// Create file if it does not exist
boolean success = file.createNewFile();
if ( success )
// File did not exist and was created
else
// File already exists
writer = new PrintWriter( new FileOutputStream( file ) );
reader = new BufferedReader( new InputStreamReader( new FileInputStream( file ) ) );
catch ( IOException e )
e.printStackTrace();
public void loadAccounts()
Account a;
String userName, password;
try
while ( ( userName = reader.readLine() ) != null
&& ( password = reader.readLine() ) != null )
addAccount( userName, password );
catch ( EOFException eofe )
// do nothing; simply return
catch ( IOException ioe )
ioe.printStackTrace();
public void saveAccounts()
Account a;
for ( int i = 0; i < accounts.size(); i++ )
a = ( Account ) accounts.elementAt( i );
writer.println( a.getUserName() );
writer.println( a.getPassword() );
writer.flush();
writer.close();
}
Maybe you are looking for
-
I recently fried my iphone3gs from accidental water submersion . Is it possible to retrieve any photos from the some card and transfer to my new iphone5
-
Upgrade OS 10.0.4 to 10.3 or higher
HI WE have an old blue iMac (from about 2000). It's one of the dual operating system ones. I'd like to set it up so our son can use it to run his Lego Robotics on, and that requires OS 10.3 or 10.4. Will it run on this mac? Can I upgrade or do I have
-
Mountain lion crashes my computer during install.
Help! I've got a solid backup, but during install, Mountain Lion threw my computer into a dead stop during the BSD init process. Anyone else having this problem? I'm downloading the ML installer to try and boot from USB, but at this point I'm at a bi
-
hi, plz need hpl for this i have this query : q = "select count(*) from logs where dateLog=current_date";i have a logs in this current date but i havn't any data output ?
-
Prime 1.3 and FTP to Reports
Hi all, I am trying to figure out how to FTP to my Prime installation to export reports to SQL Reporting services. I first attempted to change the location under Administration > System Settings > Report but see that it must be local. Now what I thin