File getName on Linux platform
Hello, I am trying to utilize the Jakarta commons upload component. When I try to run the following locally, it works:
while(i.hasNext()) {
FileItem item = (FileItem)i.next();
File fullFile = new File(item.getName());
logger.info("Name is " + item.getName());
File savedFile = new File(getServletContext().getRealPath("/"), fullFile.getName());
logger.info("SavedFile is " + savedFile.toString());
item.write(savedFile);
}However, when I deploy this to a Linux server, it doesn't work properly since the fullFile.getName() line is returning the full path and not just extracting the file name. I read that is because Linux allows the '\' and such in filenames. Is there a way around this?
Not sure if you got an answer but I just ran into this issue too. The issue is that the \ character is valid in a file name on Linux.
What I ended up doing is translating the \ character to / in the path. To get the name then you have to create a File object with the translated name then us the getName() method.
while(i.hasNext()) {
FileItem item = (FileItem)i.next();
File fullFile = new File(item.getName());
logger.info("Name is " + item.getName());
// I added these three lines and changed the object in the savedFile instantiation to tempFile
String tempName = fullFile.getName();
tempName = tempName.replace('\\','/');
FIle tempFile = new File(tempName);
File savedFile = new File(getServletContext().getRealPath("/"), tempFile.getName());
logger.info("SavedFile is " + savedFile.toString());
item.write(savedFile);
}
Similar Messages
-
Hi,
I have a web application with file upload , which is working fine in my local machine(Windows platform). But when I deploy the .war file in Linux based system, the file upload option is not working. I have used the following in my jsp
page.
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ page import="org.apache.commons.fileupload.DiskFileUpload"%>
<%@ page import="org.apache.commons.fileupload.FileItem"%>I have given all (rwx) the permissions to the folder
to which i am uploading the files.it's having a problem with the TEMP dir. -
Running a perl shell command through a java program on linux platform
i'm trying to execute the following command in a java program "perl xxx.pl" using the runtime.getruntime method
here is the piece of code
String[] cmd={"perl","-c","AraMorph.pl",""};
Process p = Runtime.getRuntime().exec(cmd,null,new File("/home/ahmed/buckwalter_morphan_1/data"));
p.waitFor();
BufferedReader in=new BufferedReader(new InputStreamReader(p.getInputStream()));
String line;
while ((line=in.readLine())!=null)
System.out.println(line);
but it doesn't output anything even if i tried to print the output to a file
i'm trying to execute this program on linux platform but its working properly on a windows platform
thx
raarString[] cmd={"perl","AraMorph.pl"," </home/ahmed/in.txt"," >/home/ahmed/ast.txt"};
Process p = Runtime.getRuntime().exec(cmd,null,new File("/home/ahmed/buckwalter_morphan_1/data"));
BufferedReader in=new BufferedReader(new InputStreamReader(p.getErrorStream()));
String line;
while ((line=in.readLine())!=null)
System.out.println(line);
p.waitFor();
String str2=p.getInputStream().toString();
System.out.println("==================================="+str2);
and it still outputs nothing but goes in something like infinite loop or as assumed in the article u suggested a deadlock but even all solutions to all pitfalls didn't succeed -
Couldn't view the JMC startup menus on linux platforms
Hi Team,
We are trying to invoke jmc 5.2 locally on a Linux platform having RHEL 64-bit server edition.
2.6.18-238.9.1.el5 #1 SMP Fri Mar 18 12:42:39 EDT 2011 x86_64 x86_64 x86_64.
To view the GUI on rhel server edition we installed the respective packages necessary for X server.
We also verified whether are we able to view any gui app for example xclock. Everything went well.
But when we tried to invoke jmc we could see the jmx browser without any of the menu titles. We could see only boxes not the menu title.
JDK version used : /tmp/jdk1.7.0_45/bin
[Not able to insert a image]
Could you please help us.
Thanks
Sattish.Hi Hernandez,
Thanks for your inputs. Have listed the complete debug message while starting jmc on linux.
./jmc -debug
Start VM: /opt/oracle/jdk1.7.0_45/bin//./java
-XX:+UseG1GC
-XX:+UnlockCommercialFeatures
-XX:+FlightRecorder
-Djava.net.preferIPv4Stack=true
-jar /opt/oracle/jdk1.7.0_45/bin//../lib/missioncontrol/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /opt/oracle/jdk1.7.0_45/bin/jmc
-name Jmc
--launcher.library /opt/oracle/jdk1.7.0_45/bin//../lib/missioncontrol/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807/eclipse_1502.so
-startup /opt/oracle/jdk1.7.0_45/bin//../lib/missioncontrol/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.overrideVmargs
-exitdata 17900a1
-debug
-vm /opt/oracle/jdk1.7.0_45/bin//./java
-vmargs
-XX:+UseG1GC
-XX:+UnlockCommercialFeatures
-XX:+FlightRecorder
-Djava.net.preferIPv4Stack=true
-jar /opt/oracle/jdk1.7.0_45/bin//../lib/missioncontrol/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
Install location:
file:/opt/oracle/jdk1.7.0_45/lib/missioncontrol/
Configuration file:
file:/opt/oracle/jdk1.7.0_45/lib/missioncontrol/configuration/config.ini loaded
Configuration location:
file:/opt/oracle/jdk1.7.0_45/lib/missioncontrol/configuration/
Framework located:
file:/opt/oracle/jdk1.7.0_45/lib/missioncontrol/plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
Framework classpath:
file:/opt/oracle/jdk1.7.0_45/lib/missioncontrol/plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
Splash location:
/opt/oracle/jdk1.7.0_45/lib/missioncontrol/configuration/org.eclipse.equinox.launcher/com.jrockit.mc.rcp.application_5.2.0.157284/splash.bmp
Debug options:
file:/opt/oracle/jdk1.7.0_45/bin/.options not found
Time to load bundles: 7
Starting application: 23907
Dec 06, 2013 3:00:13 AM com.jrockit.mc.rcp.application.ApplicationPlugin initializeDebug
INFO: JMC debug mode enabled
Dec 06, 2013 3:00:13 AM com.jrockit.mc.rcp.logging.LoggingToolkit initializeLogging
INFO: Debug settings enabled - loaded debug settings for the logger from logging_debug.properties.
Dec 06, 2013 3:00:14 AM com.jrockit.mc.rcp.logging.LoggingToolkit initializeLogging
FINE: Logger initialized
Dec 06, 2013 3:00:14 AM com.jrockit.mc.jdp.client.Pruner run
FINE: JDP prune thread started!
Dec 06, 2013 3:00:14 AM com.jrockit.mc.rcp.application.ApplicationPlugin start
FINE: Initializing com.jrockit.mc.console.ui to register open handler for DND.
Dec 06, 2013 3:00:14 AM com.jrockit.mc.rcp.application.p2.UpdateSiteURLToolkit isOnOracleNetwork
INFO: Could not find interface on Oracle internal network. Oracle internal update site disabled.
Dec 06, 2013 3:00:15 AM com.jrockit.mc.rcp.application.p2.UpdateSiteURLToolkit isOnOracleNetwork
INFO: Could not find interface on Oracle internal network. Oracle internal update site disabled.
Dec 06, 2013 3:00:20 AM com.jrockit.mc.common.mbean.LocalMBeanToolkit <clinit>
FINE: Acquired local PID. PID resolved to 26343
Dec 06, 2013 3:00:20 AM com.jrockit.mc.browser.attach.LocalJVMToolkit populateAttachableVMs
INFO: Done resolving PID 21924
Dec 06, 2013 3:00:20 AM com.jrockit.mc.browser.attach.LocalJVMToolkit populateAttachableVMs
INFO: Done resolving PID 26343
Dec 06, 2013 3:00:25 AM com.jrockit.mc.browser.attach.LocalJVMToolkit populateAttachableVMs
INFO: Done resolving PID 29768
Dec 06, 2013 3:00:31 AM com.jrockit.mc.browser.attach.LocalJVMToolkit populateAttachableVMs
INFO: Done resolving PID 31451
Dec 06, 2013 3:00:36 AM com.jrockit.mc.browser.attach.LocalJVMToolkit populateAttachableVMs
INFO: Done resolving PID 31839
Dec 06, 2013 3:00:36 AM com.jrockit.mc.browser.attach.LocalJVMToolkit populateAttachableVMs
INFO: Done resolving PID 29066
Dec 06, 2013 3:00:41 AM com.jrockit.mc.browser.attach.LocalJVMToolkit populateAttachableVMs
INFO: Done resolving PID 2177
Dec 06, 2013 3:00:47 AM com.jrockit.mc.browser.attach.LocalJVMToolkit populateAttachableVMs
INFO: Done resolving PID 27120
Dec 06, 2013 3:00:52 AM com.jrockit.mc.browser.attach.LocalJVMToolkit populateAttachableVMs
INFO: Done resolving PID 31443
Dec 06, 2013 3:00:57 AM com.jrockit.mc.browser.attach.LocalJVMToolkit populateAttachableVMs
INFO: Done resolving PID 15316
Dec 06, 2013 3:01:02 AM com.jrockit.mc.browser.attach.LocalJVMToolkit populateAttachableVMs
INFO: Done resolving PID 31205
Dec 06, 2013 3:01:03 AM com.jrockit.mc.ui.misc.SwingSupport initLookAndFeel
INFO: Initializing Swing L&F!
Dec 06, 2013 3:01:24 AM sun.awt.X11.XToolkit setupModifierMap
FINE: In setupModifierMap
Dec 06, 2013 3:01:24 AM sun.awt.X11.XToolkit setupModifierMap
FINE: metaMask = 0
Dec 06, 2013 3:01:24 AM sun.awt.X11.XToolkit setupModifierMap
FINE: altMask = 8
Dec 06, 2013 3:01:24 AM sun.awt.X11.XToolkit setupModifierMap
FINE: numLockMask = 16
Dec 06, 2013 3:01:24 AM sun.awt.X11.XToolkit setupModifierMap
FINE: modeSwitchMask = 128
Dec 06, 2013 3:01:24 AM sun.awt.X11.XToolkit setupModifierMap
FINE: modLockIsShiftLock = 0
Dec 06, 2013 3:01:24 AM sun.awt.X11.XToolkit setBackingStoreType
CONFIG: The system property sun.awt.backingStore is not set, by default backingStore=NotUseful
Dec 06, 2013 3:01:30 AM sun.awt.X11.XWM <init>
FINE: Window manager: NO WM
Dec 06, 2013 3:01:30 AM com.jrockit.mc.ui.misc.SwingSupport initLookAndFeel
INFO: System Swing L&F is javax.swing.plaf.metal.MetalLookAndFeel
Dec 06, 2013 3:01:30 AM com.jrockit.mc.ui.misc.SwingSupport initLookAndFeel
INFO: Setting L&F to javax.swing.plaf.metal.MetalLookAndFeel
Dec 06, 2013 3:01:33 AM sun.awt.X11.XAWTXSettings initXSettings
FINE: Initializing XAWT XSettings
Dec 06, 2013 3:01:35 AM sun.awt.X11.XMSelection selectPerScreen
FINE: Grabbing XServer
Dec 06, 2013 3:01:35 AM sun.awt.X11.XMSelection selectPerScreen
FINE: Screen = 0 selection name = _XSETTINGS_S0
Dec 06, 2013 3:01:35 AM sun.awt.X11.XMSelection selectPerScreen
FINE: UnGrabbing XServer
Dec 06, 2013 3:01:35 AM sun.awt.X11.XAWTXSettings initPerScreenXSettings
FINE: Updating Per XSettings changes
Dec 06, 2013 3:01:35 AM sun.awt.X11.XAWTXSettings getUpdatedSettings
FINE: owner =0
Dec 06, 2013 3:03:04 AM com.jrockit.mc.ui.misc.SwingSupport initLookAndFeel
INFO: Initializing Swing L&F!
Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
FINE: Prefs node: General org.eclipse.ui.preferencePages.Workbench
Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
FINE: Prefs node: Security org.eclipse.equinox.security.ui.category
Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor removePrefsPage
INFO: Removed preference page Security (ID:org.eclipse.equinox.security.ui.category)
Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
FINE: Prefs node: Network Connections org.eclipse.ui.net.NetPreferences
Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
FINE: Prefs node: Java Mission Control com.jrockit.mc.ui.preferences.MissionControlPage
Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
FINE: Prefs node: JVM Browser com.jrockit.mc.browser.preferences.BrowserPreferencePage
Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
FINE: Prefs node: Local com.jrockit.mc.browser.attach.preferences.AttachPreferencePage
Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
FINE: Prefs node: JDP com.jrockit.mc.browser.jdp.preferences.JDPPreferencePage
Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
FINE: Prefs node: JMX Console com.jrockit.mc.console.ui.preferences.GeneralPage
Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
FINE: Prefs node: Persistence com.jrockit.mc.console.ui.preferences.PersistencePage
Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
FINE: Prefs node: Communication com.jrockit.mc.console.ui.preferences.CommunicationPage
Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
FINE: Prefs node: MBean Browser com.jrockit.mc.console.ui.preferences.MBeanBrowserPage
Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
FINE: Prefs node: Flight Recorder com.jrockit.mc.flightrecorder.ui.main.preference.page
Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
FINE: Prefs node: JMXRMI com.jrockit.mc.rjmx.ui.preferences.JMXRMIPreferencePage
Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
FINE: Prefs node: Install/Update org.eclipse.equinox.internal.p2.ui.sdk.ProvisioningPreferencePage
Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
FINE: Prefs node: Available Software Sites org.eclipse.equinox.internal.p2.ui.sdk.SitesPreferencePage
Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
FINE: Prefs node: Automatic Updates org.eclipse.equinox.internal.p2.ui.sdk.scheduler.AutomaticUpdatesPreferencePage
Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
FINE: Prefs node: Help org.eclipse.help.ui.browsersPreferencePage
Dec 06, 2013 3:05:22 AM com.jrockit.mc.rcp.application.ApplicationWorkbenchWindowAdvisor logPrefsNode
FINE: Prefs node: Content org.eclipse.help.ui.contentPreferencePage
Application Started: 344013
Please review and let me know for further details
Thanks
Sattish. -
Getting exec file permission on Linux
Hi,
I have read http://forum.java.sun.com/thread.jspa?forumID=256&threadID=302708, but this is the old stuff.
My problem is as follows: I need to sftp-y file from one Linux account to the other Linux one. It is not a big deal. However, I would like to preserve file permission of the copied file. Particularly, I am interested in preserving 'x' (exec) permissions. (java.io.FilePermission are silent about 'exec' permission).
The solutions to this problem I can see are the following:
1. I can give all sftp-ied files 'x' permission even if the original file has no 'x' permission
2. I can 'exec("ls -l ") and parse it.
However, I do not like these solutions. I would like to check file permissions on the local host and then 'chmod' of the sftp-ied file. And I would like to do it without parsing any 'ls -l'-like command. Do you have some clues how to do this?
ThanksBut this class allows to grant permissions.
The actions to be granted are passed to the
constructor in a string containing a list of one or
more comma-separated keywords. The possible keywords
are "read", "write", "execute", and "delete".
I would like to get the permission of a given
file.Sorry. I'm quite sure I saw something the like of this coming in a new release, but am not able to find it again. When I saw "FilePermissions", I assumed it was that.
... Ah, now I found it. It's a mustang thing, so it's of no help.
http://java.sun.com/developer/technicalArticles/J2SE/Desktop/mustang/enhancements/
The weird thing is this quote:
The methods of determining whether a file is readable, writable, or executable
remain from the previous version of this platform, Java 2 Platform,
Standard Edition (J2SE) 5.0.
public boolean canRead();
public boolean canWrite();
public boolean canExecute();But there's no "canExecute()" method in the [url http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html]1.5 docs... -
I'm creating a DLL on a Red Hat flavor of linux. However when i'm
running into the error "Unknown Linux platform" from
platdefines.h. I don't know why its throwing this error or idea
of how to fix this problem. If anyone could help it will be
greatly appriciated.Hello Mess88,
I noticed in your first post you mentioned that you are trying to create a
DLL. I would assume that you are actually trying to create .so file as
Linux is unable to handle DLLs. I noticed that LabVIEW will still have a
default name of My DLL but it will actually be a .so file.
After looking through the platdefines.h file I was able
to determine the section that yields this error:
#if defined(i386)
#define ProcessorType
kX86
#define NI_BIG_ENDIAN
0
#elif defined(__alpha)
#define ProcessorType
kDECAlpha
#define NI_BIG_ENDIAN
0
#elif defined(powerpc)
#define ProcessorType
kPPC
#define NI_BIG_ENDIAN
1
#elif defined(sparc)
#define ProcessorType
kSparc
#define NI_BIG_ENDIAN
1
#elif defined(mips)
#define ProcessorType
kMIPS
#define NI_BIG_ENDIAN
1
#elif defined(arm) || defined(__arm__)
#define ProcessorType
kARM
#define NI_BIG_ENDIAN
0
#elif defined(__x86_64__)
#define ProcessorType
kX64
#define NI_BIG_ENDIAN
0
#else
#error "Unknown Linux platform"
#endif
So it looks like it checks to see the type of processor that you have and if
it is not one of the types listed in the "if else" statements then it
will eventually get to the "Unknown Linux Platform" error. Can
you verify what processor you are using?
Also, is this the first time that you have tried to implement a solution
like this before? Did it ever work in the past or would you get this
error no matter what you tried to do. Please just let me know if you have
any further questions! I hope this helps!
Thanks!
Bob H
Applications Engineer
National Instruments -
Jdbc driver for sybase in linux platform
Dear freinds,
I want to connect to sybase from java program in a linux platform. Can anyone help me in getting jdbc driver for the same and the instructions?
Thanks in advance
Regards,
MariaDear Terry,
Thank you for your response.I am new to this environment!
In that linux server, 11.0.3.3 version of sybase database is installed, which is free. Is it has jdbc driver? In sybase i can find zip files of jdbc.
Thanks
Regards,
Maria -
Setting up FMS on a remote server with Linux platform
Can anybody help me with setting up FMS on a remote server
that runs linux?First of all you must download linux distribution of fms with
wget url.
Than
tar -zxvf FlashMediaServer2.tar.gz
This will create a directory which contains the installation
files.
cd into newly created directory something like
cd FMS_2_0_3_r68_linux
you will see an executable file named installFMS in the dir
if you list the files with ls.
just type ./installFMS and press enter.
You should be able to set it up without problem if you
officially set it up on linux platforms which are described on its
help page but you must use -platformWarnOnly parameter to start if
you want to set it up on a platform orther than support list.
it will ask you some questions which you must answer
appropriately.
it will install itself into /opt/macromedia/fms and you will
be able to manage the service by /etc/init.d/fms.
you can check the service if it has started succesfully by
running
ps aux|grep fms
or
netstat -aln|grep 1935
there should be a running process named fms
or
the port 1935 should be listenning on some interfaces
if you don't see any of them than service might not be
started succesfully.
You may try to start the service manually by typing
/etc/init.d/fms start
if you can't start it again
cd /opt/macromedia/fms/
and run
./server start
you should see some complaints about some packages needed
such as netscape libraries or ulimit problem
if you see problem about ulimit than change your ulimit to
32768
ulimit -u 32768
Please do all of the aboves with your attention. -
Connect to MS SQL server from OWB on Linux platform
Hi,
I want to connect to MS SQL server through OWB, on Linux platform.
I suppose I would use JDBC driver, and Heterogeneous services. Is that possible?
I did not see anything on JDBC driver for MS SQL server for Linux platform from Oracle.
Also, I was wondering is Oracle Gateway 10g for Linux a way to connect to MSSQL server?
Any leads would be appreciated.
Thanks
AniHi,
This quite an actual topic for myself, so I decided to take some time to collect some information.
Start at:
* Oracle Generic Connectivity and Oracle Transparent Gateway - http://www.oracle.com/technology/products/gateways/gateways_fov.html
You can use the free Heterogenous Services component named Generic Connectivity for connecting to SqlServer over ODBC. You will need to find (or purchase?) a third-party ODBC driver for SqlServer for Linux, e.g. from www.datadirect.com. Setting this up will allow you to define a databaselink to the SqlServer. Open Gateways implements a limited set of the oracle SQL, so you will have to find out what is possible and what not.
See also:
* How To Setup HSODBC on Linux - https://metalink.oracle.com/metalink/plsql/showdoc?db=NOT&id=264567.1
* Generic Connectivity Available on Linux x86 with 10g - https://metalink.oracle.com/metalink/plsql/showdoc?db=NOT&id=261726.1
You can also use the Transparent Gateway for SqlServer (HS), which is about EURO 12000 per computer(!). This gives you a full implementation of Oracle SQL and you can access the SqlServer like it was Oracle.
You can also install Microsofts JDBC drivers into Oracle's JVM, and connect through JDBC to SqlServer. This is however not supported by Oracle, but it will work. See:
* What is required for a Java Stored Procedure to connect to a SQL Server Database? - https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=276167.1
See also:
* Options for Connecting to Foreign Data Stores and Non-Oracle Databases - https://metalink.oracle.com/metalink/plsql/showdoc?db=NOT&id=233876.1
* JDBC Developer's Guide - http://download-west.oracle.com/docs/cd/B14117_01/java.101/b10979/overvw.htm
Good luck, Erik Ykema -
Differences between Oracle 8i for a UNIX Platform and Oracle 8i for a Linux Platform
Hello,
J would like to know if there are some differences between Oracle 8i for a UNIX Platform and Oracle 8i for a Linux Platform.
I know that there are some differences on Oracle 8i Parallel Server and i know that some products are not include like precompiler (Mod*Ada, Pro*FORTRAN) on a Linux Platform.
Thank you.We have installed Oracle 8i on Solaris 8 and it had a great performance, of course that the hardware and licence invested here was costed my the office where i work. Personaly i'd installed linux reh hat 8 and oracle 8i, imagine that, it could be implemented by any individual that has the time to do so.
By buyinng from a company that has a good background you could be sure that you will have support.
Bottom line, if you have the $ to buy great hardware go for a unix platform. But if you don't a Red Hat Linux Server Licence with a 1 year sopport and Oracle data base is about 3500Dls.
Visit www.red-hat.com
Rewards... Bye -
Differences between Oracle 8i for a UNIX Platform and a Linux Platform
I want to know the differences between Oracle 8i for a UNIX Platform and Oracle 8i for a Linux Platform. And which platform is better?
ThanksWe have installed Oracle 8i on Solaris 8 and it had a great performance, of course that the hardware and licence invested here was costed my the office where i work. Personaly i'd installed linux reh hat 8 and oracle 8i, imagine that, it could be implemented by any individual that has the time to do so.
By buyinng from a company that has a good background you could be sure that you will have support.
Bottom line, if you have the $ to buy great hardware go for a unix platform. But if you don't a Red Hat Linux Server Licence with a 1 year sopport and Oracle data base is about 3500Dls.
Visit www.red-hat.com
Rewards... Bye -
OS Command in ORACLE LINUX platform
Hi All,
I am facing the same issue while using OS Command in ORACLE LINUX platform.
I am using the command as ls -1 /home/oracle/data > /home/oracle/data/All_FILES_NAMES.txt
Its working in terminal, But not in ODI procedure.
Its throwing error as 'wrong process return code-2'.
Kindly help me.
Thanks,
HareeCKMs moves the error records to E$ table. In your case I believe you can achieve it through procedure by having first step to copy the error record in MISSED_REC table and then have a second step to read from this tabel and send our email through oditool.
-
How to work with file system in linux within a JSF app?
I use this line in my backing bean to log some events:
FileHandler fhxml = new FileHandler("../webapps/MyWebApp/Log/MyWebAppLog.xml", append);
fhxml.setFormatter(new XMLFormatter());That works fine in windows but when I deploy it in my Tomcat 6 in linux It doesn't work. How can I work with file system in linux?You should never use relative paths to access the filesystem. The path would be relative to the current working directory which is not per se the same in all environments. To convert a relative web path to an absolute file system path, you need ServletContext#getRealPath(). Use this absolute file system path in the java.io stuff. In a JSF application on top of Servlet API you can get the underlying ServletContext by ExternalContext#getContext().
Alternatively, if the file is located in one of the default paths of the classpath or if its path is added to the classpath, you can also just use ExternalContext#getResource() or even #getResourceAsStream() using just the file name. -
Is JavaMail 1.3.3 supported on z/Linux platform
Hi, I would like to know are following libraries supported on z/Linux platform ?
1) JavaMail 1.3.3 and
2) Java Activation Framework 1.0.2
Or can you please send me the known issues, if any ?
Also would appreciate if could send me any info/link for 64 bit JVM support for these.
Thanks a lot in advance / Rajan KumarJava is supposed to be Write Once Run Anywhere. So I would assume that ordinary Java code would run on z/Linux, 64-bit or otherwise, until my tests proved otherwise.
-
Installation Oracle E-Business Suite 11.5.10 on a redhat linux platform 5.5
Dear All,
Can someone has already installed Oracle E-Business Suite 11.5.10 on a redhat linux platform 5.5? I'm having issues with compat-oracle5 library who is requesting binutils15 and on the linux box it's version binutils17?
Thanks
Dilbert137Pl post all EBS related questions in the EBS forums at http://forums.oracle.com/forums/category.jspa?categoryID=3
Pl post complete details of the error message.
HTH
Srini
Maybe you are looking for
-
When I get a phone call or text message it will not make the sound. Just vibrate. But the switch is on normal. When I change it to vibrate the volume thing will not show. Nor will my up volume up key work. Is there any way to fix it?
-
Reg. Tuxedo license in MP mode.
Hi all, We are having a tuxedo environment operated in MP mode. We are using BEA temporary license for the time being. The same license file is used in both master and slave boxes. During booting only servers in master are getting started. I am getti
-
Hi all, I'm new to iWeb, but am very much enjoying putting a website together myself. When using the available templates, it seems that I cannot have a page that continues further down than where the template finishes. Is there a way around this? I w
-
ApplicationUpdater UI auto update failing
This is a cross-post from http://forums.adobe.com/thread/1312883 The gist is earlier today the ApplicationUpdater UI was failing to download an update that was posted. Just now the update started to successfully dowload (without any changes) but when
-
Software Update and App Store both are failing on me
I've got an Imac Intel Core 2 Duo running Snow Leopard 10.6.8. Internet runs fine, everything runs fine, except for 2 things. 1) Can't use Software Update 2) Can't sign in to the App Store Have had problem number 1 for at least a