Unable to execute find command
I am trying to execute a command as below:
find . -name '*' -mtime +20 -printf "%f %t\n\r" | sort;
The error after this is as below:
find: bad option -printf
find: path-list predicate-list
I am also trying to execute the same as above in the following way:
find . -name '*' -mtime +20;
This throws an error saying:
find: cannot open .: Permission denied
What could be the problem?
The details of the server: SunOS LOMa 5.9 Generic_122300-50 sun4u sparc SUNW,Sun-Fire-V240 Solaris
Please post your thread in the UNIX forum rather than wasting everyones time here...This forum is exclusively for Oracle ...Please close the thread..
Similar Messages
-
Unable to execute QEMU command 'qom-list': The command qom-list has not been found
I have been trying to get openstack working on the 2 Node Architecture - Controller (OL6.6) and Compute(OL.6.6). I am following the Oracle Openstack Installation Document but I keep getting the following error -
2015-03-26 20:32:13.662 8067 INFO nova.scheduler.filter_scheduler [req-92279e25-f098-4a7a-b8d5-a75bc965a3d3 6e5fe2a1961a4b31921c37f0d2e74265 326a884b9db44e56a68e8a9761ffcf84] Attempting to build 1 instance(s) uuids: [u'9fb4d99c-a7f7-4cd2-bbbc-4056ac0e8f1c']
2015-03-26 20:32:13.676 8067 INFO nova.scheduler.filter_scheduler [req-92279e25-f098-4a7a-b8d5-a75bc965a3d3 6e5fe2a1961a4b31921c37f0d2e74265 326a884b9db44e56a68e8a9761ffcf84] Choosing host WeighedHost [host: kvm4A.com, weight: 1.0] for instance 9fb4d99c-a7f7-4cd2-bbbc-4056ac0e8f1c
2015-03-26 20:32:33.586 8067 INFO nova.scheduler.filter_scheduler [req-92279e25-f098-4a7a-b8d5-a75bc965a3d3 6e5fe2a1961a4b31921c37f0d2e74265 326a884b9db44e56a68e8a9761ffcf84] Attempting to build 1 instance(s) uuids: [u'9fb4d99c-a7f7-4cd2-bbbc-4056ac0e8f1c']
2015-03-26 20:32:33.588 8067 ERROR nova.scheduler.filter_scheduler [req-92279e25-f098-4a7a-b8d5-a75bc965a3d3 6e5fe2a1961a4b31921c37f0d2e74265 326a884b9db44e56a68e8a9761ffcf84] [instance: 9fb4d99c-a7f7-4cd2-bbbc-4056ac0e8f1c] Error from last host: kvm4A.com (node kvm4A.com): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1328, in _build_instance\n set_access_ip=set_access_ip)\n', u' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 393, in decorated_function\n return function(self, context, *args, **kwargs)\n', u' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1740, in _spawn\n LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u' File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1737, in _spawn\n block_device_info)\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2297, in spawn\n block_device_info)\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 3704, in _create_domain_and_network\n power_on=power_on)\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 3605, in _create_domain\n domain.XMLDesc(0))\n', u' File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 3600, in _create_domain\n domain.createWithFlags(launch_flags)\n', u' File "/usr/lib/python2.6/site-packages/eventlet/tpool.py", line 179, in doit\n result = proxy_call(self._autowrap, f, *args, **kwargs)\n', u' File "/usr/lib/python2.6/site-packages/eventlet/tpool.py", line 139, in proxy_call\n rv = execute(f,*args,**kwargs)\n', u' File "/usr/lib/python2.6/site-packages/eventlet/tpool.py", line 77, in tworker\n rv = meth(*args,**kwargs)\n', u' File "/usr/lib64/python2.6/site-packages/libvirt.py", line 738, in createWithFlags\n if ret == -1: raise libvirtError (\'virDomainCreateWithFlags() failed\', dom=self)\n', u"libvirtError: internal error: unable to execute QEMU command 'qom-list': The command qom-list has not been found\n"]
2015-03-26 20:32:33.592 8067 INFO nova.filters [req-92279e25-f098-4a7a-b8d5-a75bc965a3d3 6e5fe2a1961a4b31921c37f0d2e74265 326a884b9db44e56a68e8a9761ffcf84] Filter RetryFilter returned 0 hosts
2015-03-26 20:32:33.592 8067 WARNING nova.scheduler.driver [req-92279e25-f098-4a7a-b8d5-a75bc965a3d3 6e5fe2a1961a4b31921c37f0d2e74265 326a884b9db44e56a68e8a9761ffcf84] [instance: 9fb4d99c-a7f7-4cd2-bbbc-4056ac0e8f1c] Setting instance to ERROR state.
Any suggestions?
ThanksHi Avi,
The guide is for OL6 (see excerpt from page 5)
"A compute node is a system running Oracle Linux using KVM, or Oracle VM Server Release 3.3. You can download
installation ISOs of the latest version of Oracle Linux 6, or Oracle VM Server Release 3.3, from the Oracle Software
Delivery Cloud at:"
And although 1.0 release says OL6.5 and later I cannot find the OL7 pacakges on the public yum server. The only ones I can find are http://public-yum.oracle.com/public-yum-openstack-ol6.repo which is clearly OL6. I tried them on OL7 and the install fails.
[ol6_openstack10]
name=OpenStack 1.0 packages for Oracle Linux 6 (x86_64)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/openstack10/x86_64/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
[ol6_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
If you have an Oracle Openstack install running I'd love to hear how you did it and what you did to accomplish it.
Right now I'm running OL6.6 with a RDO icehouse packstack install and I'm running into problems mounting volumes.
Openstack will be awesome once I get it running
Thank you for any assistance.
Dave -
Unable to execute update commands after improper shutdown
Hi!
It sounds a little strange.
I am unable to execute update commands from my application. My machine was shutdown improperly. Then I loaded the datastores again. I was able to execute select commands but unable to execute update commands. It was working fine before shutdown.
Regards
/AhmadHi Chris!
SQLExecute method of ODBC is returning -1.
I have checked the syntax of the query its also correct. I am also very confused on it why is this happening. If I execute the update command from ttisql it works ok.
The code is the same that we discussed in our previous conversation.
The steps I did after improper shutdown:
1. Started TimeTen daemon >ttdaemonadmin -start
2. Loaded the Data store >ttAdmin -ramLoad spiderM
3. Executed the code
The output of ttstatus is as follows:
TimesTen status report as of Fri Jun 29 21:45:41 2007
Daemon pid 8273 port 17001 instance tt70
TimesTen server pid 8284 started on port 17003
TimesTen webserver pid 8280 started on port 17005
Data store /tmp/spiderM
There are 6 connections to the data store
Data store is in shared mode
Shared Memory KEY 0x08004f3c ID 557070
Type PID Context Connection Name ConnID
Subdaemon 8278 0x0000000000570520 Worker 2042
Subdaemon 8278 0x00000000005dc4d0 Flusher 2043
Subdaemon 8278 0x000000000060d5d0 Checkpoint 2044
Subdaemon 8278 0x000000000063e5a0 Aging 2045
Subdaemon 8278 0x000000000066f570 HistGC 2046
Subdaemon 8278 0x00000000006a0430 Monitor 2047
RAM residence policy: Manual
Data store is manually loaded into RAM
Replication policy : Manual
Cache agent policy : Manual
Data store /usr/users/spider/TimesTen/tt70/info/TT_tt70
There are no connections to the data store
Replication policy : Manual
Cache agent policy : Manual
Access control enabled.
End of report
Regards
/Ahmad -
Unable to execute Linux command from Java
Hi,
I am currently working on a code wherein i need to execute Linux command from Java. Below are some of the query i have.
1) Is there any efficient method of running OS commands from Java, rather than using Runtime and Process method.
2) Below is details of my code which fails in execution
**-- Java Version**
java version "1.6.0"
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK Server VM (build 1.6.0-b09, mixed mode)
-- Program Code ----
Where <path> = Path i put myself
package test;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.*;
public class GetInode{
* @param args
public static void main(String[] args) {
GetInode test = new GetInode();
test.getInode();
public void getInode(){
String command = "/usr/bin/stat -Lt <path>;
System.out.println(command);
Process process;
Runtime rt;
try{
rt = Runtime.getRuntime();
process = rt.exec(command);
InputStreamReader isr = new InputStreamReader(process.getErrorStream());
BufferedReader bre = new BufferedReader(isr);
BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream());
System.out.println(bre.readLine());
System.out.println(br.readLine().split(" ")[7]);
process.destroy();
}catch (Exception ex){
System.out.println("Error :- " + ex.getMessage());
------Output -------------
/usr/bin/stat -Lt "<path>"
/usr/bin/stat: cannot stat `"<path>"': No such file or directory
Error :- null
Can any one help me what is wrong and why i am unable to run the Linux command from Java.For clarity purpose............i m submitting actual code here
--- Code ---
package test;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.*;
public class GetInode{
* @param args
public static void main(String[] args) {
GetInode test = new GetInode();
test.getInode();
public void getInode(){
String command = "/usr/bin/stat -Lt \"/afs/inf.ed.ac.uk/user/s08/s0898671/workspace/CASWESBLIN/TestFS/01_FIL_01.txt.txt\"";
System.out.println(command);
Process process;
Runtime rt;
try{
rt = Runtime.getRuntime();
process = rt.exec(command);
InputStreamReader isr = new InputStreamReader(process.getErrorStream());
BufferedReader bre = new BufferedReader(isr);
BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream()));
System.out.println(bre.readLine());
System.out.println(br.readLine().split(" ")[7]);
process.destroy();
}catch (Exception ex){
System.out.println("Error :- " + ex.getMessage());
--- Output ---
[ratz]s0898671: java GetInode
/usr/bin/stat -Lt "/afs/inf.ed.ac.uk/user/s08/s0898671/workspace/CASWESBLIN/TestFS/01_FIL_01.txt.txt"
/usr/bin/stat: cannot stat `"/afs/inf.ed.ac.uk/user/s08/s0898671/workspace/CASWESBLIN/TestFS/01_FIL_01.txt.txt"': No such file or directory
Error :- null
-- Linux Terminal --
If i copy the first line from the output and execute on Linux terminal her is the output that i get
[ratz]s0898671: /usr/bin/stat -Lt "/afs/inf.ed.ac.uk/user/s08/s0898671/workspace/CASWESBLIN/TestFS/01_FIL_01.txt.txt"
/afs/inf.ed.ac.uk/user/s08/s0898671/workspace/CASWESBLIN/TestFS/01_FIL_01.txt.txt 12003 24 81a4 453166 10000 1c 360466554 2 0 1 1246638450 1246638450 1246638450 4096
Can you just assist me where am i really making mistake.......i was wondering if the command that i pass from Java....can be executed on Linux terminal why is it faling to run from java.........and when i print the Error Stream for process output........it show cannot Stat....... -
Unable to execute a command line command using Java
I am trying to run a command to add a group name. It is executed in command prompt of Windows 2003/2000
Say this is the command I want to execute:
net localgroup LordSM /add
Here LordSM is the group name.
I wrote the following code but it does not seem to work. Please suggest.
String ABC=Value1TextField.getText();
Value2Label.setText("Value is now " + ABC);
// Above is to get value from a JText Field
// Below is the code to run command for adding a group name to a System.
String ExecutedCmd = "net localgroup " + ABC + "/add";
Process p = Runtime.getRuntime().exec(ExecutedCmd);
BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream()));
// read the output from the command
System.out.println("Here is the standard output of the command:\n");
while ((s = stdInput.readLine()) != null)
{ System.out.println(s); }
// read any errors from the attempted command
System.out.println("Here is the standard error of the command (if any):\n");
while ((s = stdError.readLine()) != null)
{ System.out.println(s); }
I am trying to run a command to add a group name. It is executed in command prompt of Windows 2003/2000
Say this is the command I want to execute:
net localgroup LordSM /add
Here LordSM is the group name.
I wrote the following code but it does not seem to work. Please suggest.
String ABC=Value1TextField.getText();
Value2Label.setText("Value is now " + ABC);
// Above is to get value from a JText Field
// Below is the code to run command for adding a group name to a System.
String ExecutedCmd = "net localgroup " + ABC + "/add";
Process p = Runtime.getRuntime().exec(ExecutedCmd);
BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream()));
// read the output from the command
System.out.println("Here is the standard output of the command:\n");
while ((s = stdInput.readLine()) != null)
{ System.out.println(s); }
// read any errors from the attempted command
System.out.println("Here is the standard error of the command (if any):\n");
while ((s = stdError.readLine()) != null)
{ System.out.println(s); }
It does not seem to work means, that no Standard Error is defined, when it executes and group name is not added as well. The following is JUnit Test Result: Hope it gives a better idea of the problem I am facing:
compile:
run:
Here is the standard output of the command:
Here is the standard error of the command (if any):
The syntax of this command is:
NET LOCALGROUP [groupname [/COMMENT:"text"]] [DOMAIN]
groupname {ADD [/COMMENT:"text"] | /DELETE} [DOMAIN]
groupname name [...] {ADD | /DELETE} [DOMAIN]
Got it
BUILD SUCCESSFUL (total time: 10 minutes 49 seconds)
I had even tried this:
Runtime rt =Runtime.getRuntime();
String[] cmd = new String[3];
cmd[0] = "cmd.exe";
cmd[1]="net localgroup";
cmd[2] =ABC + "/add";
rt.exec(cmd);
but again, it does not give any error as such, but it does not create the group name either. Please suggest. We can see the group names that are added on right clicking My Computer Icon and click Manage and then go to User & Group section. On executing either of the code nothing happens.
ThanksDuplicate post:
http://forum.java.sun.com/thread.jspa?threadID=5203526&messageID=9812067#9812067 -
Satellite C50-B cursor unable to execute simple commands
I bought a customized Sateliite C50-B laptop and have been using it since September. I partitioned the harddrive, half of it is dedicated to running Windows 9, the other half dedicated to running Ubuntu 14.04. The computer had been running great, but yesterday I ran Ubuntu to realize that the system did not respond to any command that I issued with my tracker pad, or mouse.
For example, I could not open a file to edit in a word processor. In my web broswer, I couldn't use the search icon to find anything. I couldn't navigate throught folders in my home drive. My cursor moved freely around, and I could open up any program, yet once in the program every command I gave via my tracker pad or mouse would not execute.
I turned off my computer, took off and battery pack, then put the battery pack back on, and turned my computer back on and the same issue occured. I decided to check out what happened when I used my windows OS. In windows, the same issue occures, but not has extreme. In Ubuntu, I could barley do anything. Conversely with Windows, I can open up a program, such as Chrome my internet browser, and can use the internet. But, I can't switched between tabs.
I believe the issue has to do with hardware, rather than with the OS. Any advice or suggestions how to furter troubleshoot my issue? Has someone experienced similar behaviors with their Toshiba Laptop??
Thanks,
KateKate,
Best way to tell if having hardware issue is to restore the computer to out-of-box state and then see if it operating normal. If so, it was likely a software issue. You could make an image of your computer before the restore just as a precaution in case you want to return the system to that state afterwards for additional troubleshooting.
L305-S5955, T9300 Intel Core 2 Duo, 4GB RAM, 60GB SSD, Win 7 Ultimate 64-bit -
Unable to execute HFMAudit Command line utility
Hi All,
We are going to use HEMAudit extract utility for extracting data &task audit tables.Hope All of you aware of that we can use this utility in two ways.One is through Wizard another one is thorugh commandline...We tried to execute the utility through Wizard,it was executing successfully and extract the both data&task audit tables.But when We tried to execute thro commandline got the following error..
C:\Hyperion\products\FinancialManagement\Consultant Utilities>HFMAuditExtractCmdLine.exe -d C:\Test
-u C:\Hyperion\products\FinancialManagement\hfm.udl -a TEST -l ; -s 2011/07/15 -e 2011/07/22 -t Enabled
-D Enabled -k Disabled -r Disabled
Processing objects initialized.
Completed parsing command line parameters.
Extract starting using these parameters:
UDL: C:\Hyperion\products\FinancialManagement\hfm.udl
Application: TEST
Destination folder: Enabled
Log File Name:
Field Delimiter: (;)
Start Datetime: 07/15/11 00:00:00
End Datetime: 07/22/11 00:00:00
Extract Task Audit: True
Truncate Task Audit: True
Extract Data Audit: True
Truncate Data Audit: True
T E S T Connecting to data source...
Getting schema version...
Starting processing...
Caching Metadata...
Processing extracts...
Extracting Task Audit...
Determining number of records...
Selecting records for extract...
Processing results...
Export failed. (-2147467259)
Processing failed.
It shows " Export Failed" .Anyone could you help me for this
Thanks in AdvanceDuplicate post:
http://forum.java.sun.com/thread.jspa?threadID=5203526&messageID=9812067#9812067 -
Unable to execute nqcmd command in RHLinux server
Hi All,
When we try to execute nqcmd on RH Linux server we are getting error below.
Bin$ pwd
/home/oracle/obiee/OracleBI/server/Bin
Bin$ ./nqcmd
./nqcmd: error while loading shared libraries: libodbcinst.so: cannot open shared object file: No such file or directory
Regards,
Somuhi
maxim
i have install obiee 10.1.3.4 in my server Aix 6.1 (unix server). i i have one problem when we try excute nqcmd in unix (Aix 6.1 server )ts show error
cd /u02/dwbi_apps/obiee/oraclebi/server/Bin
$ ./nqcmd
exec(): 0509-036 Cannot load program ./nqcmd because of the following errors:
0509-022 Cannot load module /u02/dwbi_apps/obiee/oraclebi/server/Bin/libnqsgenericodbcinterface.so.
0509-150 Dependent module libodbc.a(odbc.so) could not be loaded.
0509-022 Cannot load module libodbc.a(odbc.so).
0509-026 System error: A file or directory in the path name does not exist.
0509-022 Cannot load module nqcmd.
0509-150 Dependent module /u02/dwbi_apps/obiee/oraclebi/server/Bin/libnqsgenericodbcinterface.so could not be loaded.
0509-022 Cannot load module
2. Then i try to do this one
$ cd /u02/dwbi_apps/obiee/oraclebi/setup
$ ./common.sh
$ ./sysenvinit.sh
./sysenvinit.sh[68]: =::/u02/dwbi_apps/obiee/oraclebi/odbc/lib:/usr/lib:/lib:$: not found.
where i will struck i don't no could please tell me maxim
Advance thanks -
Unable to execute a command in MySQL in a jdbc prog..
I have a program that needs to execute an SQL insert sentence: stmt.executeUpdate(
"INSERT INTO myDates(date_val,time_val,string_val)"+
"VALUES(one,two,three)");
where myDates is a table i have created in my DB and one two three are string values that the user gives earlier in the program
but i take a msg that my syntax is incorrect
Do u know the right one??
Plz help i am confused!!Your syntax error is that string literals have to be properly quoted withing your SQL statement, for example:
SQL = INSERT INTO myDates(date_val,time_val,string_val) VALUES('one','two','three')";However, when your data contains a quote character, the you have to properly escape it, which makes for messy and unreadable code.
In general, you should use PreparedStatement instead of Statement, for cleaner, more secure, and sometimes substantially more efficient code. -
Getting Error Message "Access Denied" and "Unable to Execute!
Using jmf-2_1_1e-windows-i586.exe on Windows XP. When I open the executable it prompts me if I want to overwrite the existing files. If I do yes, then I get "Access Denied". If I do no, then I get "Unable to Execute!
"C:\DOCUME~1\HP_ADM~1\LOCALSS~1\Temp\pft1~tmp\SETUP.EXE" /SMS
Unable to execute the command line"
What am I doing wrong?Sounds like you don`t have write permissions for that directory. Not a java problem.
regards -
Unable to execute command adprmkey in upgrading 11i to 12.1.1
Hello Team Leaders:
I am in the process of upgrading EBS 11.5.10.2 to Release 12.1.1. I have imported the database, Layed down the apps and have started applying patches. While running adpatch I have encountered:
java.lang.Exception: ERROR: Unable to execute command: adprmkey /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndlist.jar.tmp
at oracle.apps.ad.jri.util.JarSignerOptions.getOptions(JarSignerOptions.java:50)
at oracle.apps.ad.jri.util.JarSignUtils.signJarWithJarsigner(JarSignUtils.java:132)
at oracle.apps.ad.jri.adjmx.mergeAndExtract(adjmx.java:1313)
at oracle.apps.ad.jri.adjmx.main(adjmx.java:970)
Done Analyzing fndlist.jar : Fri Oct 26 2012 16:06:42
ERROR: The following jars failed to get generated properly.
/u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndforms.jar
/u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndewt.jar
/u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndewtpv.jar
/u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndaol.jar
/u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/wfapi.jar
/u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndaroraclnt.jar
/u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndmail.jar
/u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndactiv.jar
/u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndformsi18n.jar
/u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/mapclient.jar
/u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndxmlparserv2.jar
/u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/cs/jar/cs.jar
/u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/az/jar/azwizard.jar
/u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/jtf/jar/jtfgrid.jar
/u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/cct/jar/cctbasic.jar
/u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/msd/jar/msejar.jar
/u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/wps/jar/wpsgantt.jar
/u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndlist.jar
I then tried relinking on jar manually:
cd /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar
ll fndaroraclnt.jar
-rw-r--r-- 1 applfint dba 1135766 Apr 1 2009 fndaroraclnt.jar
adrelink.sh force=y "fndaroraclnt.jar "
Errors:
adrelink: error: Product library for product "fndaroraclnt.jar" not found.
"fndaroraclnt.jar" might not be listed correctly in your OFT1_ofintest.env file,
you may be missing some files for product "fndaroraclnt.jar",
or "fndaroraclnt.jar" could be an invalid product.
adrelink will not try to link product "fndaroraclnt.jar".
Continuing work on other products...
adrelink is exiting with status 1
What is my problem?
MathiasHi Hussein,
Following command in (11864081 12.1.3 Java.lang.Exception: Unable To Find Or Read Parameter File /d01/oracle/R12DEV/apps/a [ID 1479911.1]), I have executed:
adrelink.sh force=y "ad adprmkey"
And the output errors are:
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/libgcc_s.so: undefined reference to `__stack_chk_fail@GLIBC_2.4'
collect2: ld returned 1 exit status
make: *** [u02/applfint/apps/apps_st/appl/ad/12.0.0/bin/adprmkey] Error 1
Done with link of ad executable 'adprmkey' on Sun Oct 28 01:59:50 EDT 2012
Relink of module "adprmkey" failed.
See error messages above (also recorded in log file) for possible
reasons for the failure. Also, please check that the Unix userid
running adrelink has read, write, and execute permissions
on the directory /u02/applfint/apps/apps_st/appl/ad/12.0.0/bin,
and that there is sufficient space remaining on the disk partition
containing your Oracle Applications installation.
I checked and do have permissions on /u02/applfint/apps/apps_st/appl/ad/12.0.0/bin:
drwxr-xr-x 2 applfint dba 4096 Oct 28 02:10 bin
Browsing around the system I noticed:
1) three broken links in /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32:
libgfortran.so -> ../../../../libgfortran.so.3.0.0
libmudflapth.a -> ../../../i686-redhat-linux/4.4.4/libmudflapth.a
libmudflap.a -> ../../../i686-redhat-linux/4.4.4/libmudflap.a
libgomp.so -> ../../../../libgomp.so.1.0.0
2) Following MOS note 11864081 12.1.3 Java.lang.Exception. Check this out:
adrelink.sh force=y "ad adprmkey"
Failed with:
usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/libgcc_s.so: undefined reference to `__stack_chk_fail@GLIBC_2.4'
collect2: ld returned 1 exit status
make: *** [u02/applfint/apps/apps_st/appl/ad/12.0.0/bin/adprmkey] Error 1
Done with link of ad executable 'adprmkey' on Fri Oct 26 18:14:16 EDT 2012
Relink of module "adprmkey" failed.
3) My OS :
uname -a
Linux ofintest.corp.phillips.com 2.6.32-100.28.5.el6.x86_64 #1 SMP Wed Feb 2 18:40:23 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
4) rpm -q glibc
glibc-2.12-1.80.el6_3.5.x86_64
glibc-2.12-1.80.el6_3.5.i686
5) gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure prefix=/usr mandir=/usr/share/man infodir=/usr/share/info with-bugurl=http://bugzilla.redhat.com/bugzilla enable-bootstrap enable-shared enable-threads=posix enable-checking=release with-system-zlib enable-__cxa_atexit disable-libunwind-exceptions enable-gnu-unique-object enable-languages=c,c++,objc,obj-c++,java,fortran,ada enable-java-awt=gtk disable-dssi with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre enable-libgcj-multifile enable-java-maintainer-mode with-ecj-jar=/usr/share/java/eclipse-ecj.jar disable-libjava-multilib with-ppl with-cloog with-tune=generic with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC)
6) g++ --version
g++ (GCC) 4.4.4 20100726 (Red Hat 4.4.4-13)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7) ls -al /usr/bin | grep gcc
lrwxrwxrwx. 1 root root 3 Oct 17 12:28 cc -> gcc
-rwxr-xr-x 2 root root 268088 Dec 1 2010 gcc
-rwxr-xr-x 2 root root 268088 Dec 1 2010 x86_64-redhat-linux-gcc
8) rpm -qf /usr/bin/x86_64-redhat-linux-gcc
gcc-4.4.4-13.el6.x86_64
I hope this information helps in troubleshooting this issue for us.
Thanks
Mathias
Thanks, -
Trying to find a way to execute from command prompt using java....
I want to find a way to execute a command from the command line using a java program this is my code:
import java.io.*;
public class SQLHopefully
public static void main(String[] args)
try{
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("cmd /k start cmd.exe");
OutputStream out = proc.getOutputStream();
System.out.println(out);
out.write("test.txt".getBytes()); //I THOUGHT THIS WOULD WORK
InputStream stdin = proc.getErrorStream();
InputStreamReader isr = new InputStreamReader(stdin);
BufferedReader br = new BufferedReader(isr);
String line = null;
while ( (line = br.readLine()) != null) {
System.out.println(line);
stdin = proc.getInputStream();
isr = new InputStreamReader(stdin);
br = new BufferedReader(isr);
line = null;
while ( (line = br.readLine()) != null) {
System.out.println(line);
int exitVal;
try {
exitVal = proc.waitFor();
} catch (InterruptedException e) {
throw new IOException(e.getMessage());
if (exitVal != 0) {
throw new IOException("Exit value was " + exitVal ");
}catch(IOException e)
{System.out.println("ummmmm");}
I hope my code is readable. I am trying to get the command prompt that comes up from the Runtime.exec() to run a file called "test.txt" I know it would be easier to just do it by executing it from java but I want to see if it is possible this way. I thought the out.write would do the trick but I was wrong. Somebody help please....
NateFirst read this article:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
Second, you should probably send the Enter key to the shell if you want anything to happen. (Not that I know whether it will work, but I do know it won't work if you don't press Enter.) -
Unable to execute command $ADPERLPRG $FND_TOP/patch/115/bin/TXK
Utility /Script To Check The Techstack Component Versions (Forms, Http Server, JDK, Framework, Database, etc) [ID 601736.1]
unable to execute command
$ADPERLPRG $FND_TOP/patch/115/bin/TXKScript.pl \ -script=$FND_TOP/pa
tch/115/bin/txkInventory.pl -txktop=$APPLTMP \ -contextfile=$CONTEXT_FILE \ -ap
pspass=apps/apps \ -outfile=$APPLTMP/Report_App_Inventory.html
APPLICATION environment already set .
Location on which command executed
<FND_TOP>/patch/115/bin
command executed in single line
error message
ERROR processing <arg> script : Argument value cannot be an empty string
*******FATAL ERROR*******
PROGRAM : (/applprod/oracle/prdappl/fnd/11.5.0/patch/115/bin/TXKScript.pl)
TIME : Tue Aug 24 01:05:04 2010
FUNCTION: TXK::Common::doError [ Level 1 ]
ERRORMSG: ERROR processing <arg> script : Argument value cannot be an empty stri
ng
FOR DATABASE TIER ALSO
bash-3.00$ $ADPERLPRG $ORACLE_HOME/appsutil/bin/TXKScript.pl -script=$ORACLE_HO
ME/appsutil/bin/txkInventory.pl -txktop=$ORACLE_HOME/appsutil/temp -contextfile
=$CONTEXT_FILE -appspass=apps -outfile=$ORACLE_HOME/apsutil/temp/Report_DB_Inve
ntory.html
gives error
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** STDOUT = /applprod/oracle/prddb/9.2.0/appsutil/temp/TXK/txkInventory_Tue_A
ug_24_01_21_57_2010_stdout.log
bash-3.00$
Thanks
RahulHi,
$ADPERLPRG $FND_TOP/patch/115/bin/TXKScript.pl \ -script=$FND_TOP/pa
tch/115/bin/txkInventory.pl -txktop=$APPLTMP \ -contextfile=$CONTEXT_FILE \ -ap
pspass=apps/apps \ -outfile=$APPLTMP/Report_App_Inventory.htmlDo not use the back slash when running the command (as shown below) and you should be OK then.
$ADPERLPRG $FND_TOP/patch/115/bin/TXKScript.pl -script=$FND_TOP/patch/115/bin/txkInventory.pl -txktop=$APPLTMP -contextfile=$CONTEXT_FILE-appspass=apps/apps outfile=$APPLTMP/Report_App_Inventory.html
FOR DATABASE TIER ALSO
bash-3.00$ $ADPERLPRG $ORACLE_HOME/appsutil/bin/TXKScript.pl -script=$ORACLE_HO
ME/appsutil/bin/txkInventory.pl -txktop=$ORACLE_HOME/appsutil/temp -contextfile
=$CONTEXT_FILE -appspass=apps -outfile=$ORACLE_HOME/apsutil/temp/Report_DB_Inve
ntory.htmlSame for this command.
Thanks,
Hussein -
Unable to execute Test-Mailflow cmdlet. Could not find any available Domain Controller
I started receiving this error in SCOM while testing Exchange 2007 Mail flow. Normally the tests work just fine, and when I execute"test-mailflow" on the offending server, it works just fine. The alert doesn't have enough details to find out what
is wrong. Can anyone help out?
Alert Description:
Unable to execute Test-Mailflow cmdlet. Could not find any available Domain Controller
Environment: SCOM 2012 R2 UR4
MP: Exchange 2007 MP, latest update
Monitor: Exchange 2007 Test Local Mail Flow Monitor
Brody KilpatrickHi,
After you execute"test-mailflow" on the offending server, please also look into event logs to check is there any errors or warnings. SCOM is a tool to collect information, from my point of view, this message is collected from Exchange server, so
you may need to check event viewer.
In addition, please also make sure your Exchange environment is under monitored. And have you followed the Exchange 2007 MP guide to configure the MP?
Make sure the Client Access Server is under monitored, you may check the Application Event log on the Client Access Server, and make sure there are no errors or warnings indicating a problem with the Client Access Server.
Regards,
Yan Li
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
Unable to execute command line command in java
I am trying to run a command to add a group name. It is executed in command prompt of Windows 2003/2000
Say this is the command I want to execute:
net localgroup LordSM /add
Here LordSM is the group name.
I wrote the following code but it does not seem to work. Please suggest.
String ABC=Value1TextField.getText();
Value2Label.setText("Value is now " + ABC);
// Above is to get value from a JText Field
// Below is the code to run command for adding a group name to a System.
String ExecutedCmd = "net localgroup " + ABC + "/add";
Process p = Runtime.getRuntime().exec(ExecutedCmd);
BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream()));
// read the output from the command
System.out.println("Here is the standard output of the command:\n");
while ((s = stdInput.readLine()) != null)
{ System.out.println(s); }
// read any errors from the attempted command
System.out.println("Here is the standard error of the command (if any):\n");
while ((s = stdError.readLine()) != null)
{ System.out.println(s); }It does not seem to work means, that no Standard Error is defined, when it executes and group name is not added as well. The following is JUnit Test Result: Hope it gives a better:
compile:
run:
Here is the standard output of the command:
Here is the standard error of the command (if any):
The syntax of this command is:
NET LOCALGROUP [groupname [/COMMENT:"text"]] [DOMAIN]
groupname {ADD [/COMMENT:"text"] | /DELETE} [DOMAIN]
groupname name [...] {ADD | /DELETE} [DOMAIN]
Got it
BUILD SUCCESSFUL (total time: 10 minutes 49 seconds)
I had even tried this:
Runtime rt =Runtime.getRuntime();
String[] cmd = new String[3];
cmd[0] = "cmd.exe";
cmd[1]="net localgroup";
cmd[2] =ABC + "/add";
rt.exec(cmd);
but again, it does not give any error as such, but it does not create the group name either. Please suggest. We can see the group names that are added on right clicking My Computer Icon and click Manage and then go to User & Group section. On executing either of the code nothing happens.
Thanks
Maybe you are looking for
-
HP LaserJet 2430 Prints vertical grey bands
While printing, some characters from each line are repeated at 3 inch intervals along the length of the paper. This happens at about 2 inches and 7 inches from the left margin and appear as two vertical grey bands on the printout (portrait mode). The
-
BOM and Material Configuration and Sales order..
hi, in my requirement, i am supposed to create a project automatically based on sales order.. additional requirement is that material components on the project are based on the the selections during the sales order creation (for example if customer c
-
FBRA not giving option to reset
Good afternoon experts, When clearing customer payments/invoices, a line is created in BSEG for 'foreign currency gain/loss', with transaction key 'KDF'. Despite the fact that the amount being posted here is 0, we are told that 'exchange rate differ
-
Hi all, I need to fetch last payroll record of a pernr,from transaction pc_payresult. I am using the LDB PNP. After calling GET PERNR, I am using functions CU_READ_RGDIR and then PYXX_READ_PAYROLL_RESULT to fetch the last active payroll record. But i
-
Target costs is showing as ZERO for one material in KKBC_ORD
Hi, When i execute KKBC_ORD,It is showing the Total Target Costs as ZERO for one material.Cost estimate was already executed for that material.I couldnot find out the problem for this issue. Kindly help me to find why it is giving the ZERO value for