Invoking Forms 6i application from command line with parameters
Hi,
I have a java application that requires to start up and execute an existing Forms 6i application.
I am not a java person, and I could not find any help regarding this. If anyone knows how to execute an fmx(6i) from within a java application, then please let me know. The java application has to pass in parameters so that the the Forms application opens up with the correct data.
One alternative suggested was that the java application execute a command line invocation of the Forms application. I am looking for the correct and complete syntax to do this. The fmx can be invoked from the command line with the following entered at the dos prompt -
c:\>OraFrm6i\Bin\ifrun60.exe<module name> <userid/password@db>. This works fine and the Forms application is executed.
The requirement is to pass a couple of user defined parameters to the Forms application which can be used by it to query the database and display the correct information when it opens.
Any help on this would be greately appreciated.
Thanks
Shailesh
Shailesh,
Create a parameter in your form - eg. COUNTRY_CODE and add any startup code.
Then add the parameter to your command line (or put it in a *.bat file)
c:\>OraFrm6i\Bin\ifrun60.exe<module name> <userid/password@db> country_code=UK
JR
Similar Messages
-
Open application via. command line with parameters - Multiple times
I'm using ANT to compile a program, then launch in FireFox ... I've looked all over for a solution to this, but have yet to find one.
I need the command to open a specified URL in FireFox... easy enough, right?
Solution #1 was to use the "open -a" command, with the URL- so "open -a FireFox.app/ http://someURL.com" ... the problem with this is that it opens a new window or tab every time- its a minor annoyance, but when you do 100 or more compiles during the day, its quite annoying.
Solution #2 is to actually launch the program executable (FireFox.app/Content/MacOS/firefox) using the argument -url and that makes it so FireFox opens the URL in the current & front-most window. This worked great the first time, second time I get an error saying "A copy of Firefox is already open. Only one copy of Firefox can be open at a time."
Anybody know how to make it so I don't have to close a window every time I compile? Your help would be greatly appreciated.
Thanks!
-Eric
Message was edited by: eheatonIf you don't get an answer here, you might try reposting in the UNIX forum. That's where the command line experts tend to hang out. Good luck.
-
How to automatically generate a build file of the application from command-line
Hi All
How can we automatically generate a build file of the application from command-line (as opposed to using Jdev IDE to click to generate a build.xml) ?
ThanksUser, which jdev version do you use?
I don't think you can do this. You can only create an ant build.xml from the project inside jdev.
You can use ojdeploy to build the project. This is the only method which will also make the necessary changes to the descriptors.
Timo -
How to restore or backup Apex application from Command line ? URGENT
We have Oracle apex 4.1 installed in Oracle 11g R2 database (windows 64-bit) 2008 R2
For some reason our database dictionary objects are corrupted.
We wanted to backup our Apex applications in some workspaces ASAP.
We are not able to access apex from http://localhost:7777/pls/apex/htmldb_login
We have an underlying database schema export (expdp).
1) Is there a way to export or backup the apex application without logging into the apex URL ? if yes how ?
2) Does Oracle has any of its own native tool to backup and restore from command line ?
Thanks in advanceMy (MS Windows) experience, if I may; perhaps you'll find something useful.
You'll find the README.TXT file in /apex/utilities directory. Read it.
In order to use APEXExport, you need JDK version 1.5 or higher. Check your version by typing (and viewing the result):
C:\>java –version
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)Its directory should be part of the PATH environment variable: on my computer, directory name isC:\Program Files\Java\jre1.6.0_06\binFurthermore, Oracle JDBC class libraries must be part of the CLASSPATH environment variable. Check whether it exists (in Control Panel - System - Advanced - Environment Variables). For my 10gXE, it is here:C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jarI couldn't make it work; didn't know that ".\" directory must be entered into CLASSPATH as well (found that information in Arie Geller's book). Therefore, my final CLASSPATH version is:.\;C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jarOK, setup is done. Now, go to your /apex/utilities directory and, from the command prompt, run (mind the upper case!)java oracle.apex.APEXExportwhich will show a short help.
I chose to export the whole workspace. In order to do that, I need the workspace ID (got it from Apex's SQL Workshop; that might be a problem as you can't get there, can you? I can't tell how to find that information apart from SQL Workshop, but I'm pretty sure someone, who is much more experienced than me, will know it). OK, here's how you find it:select v('WORKSPACE_ID') from dual;Finally, here's the final step - export:C:\apex\utilities>java oracle.apex.APEXExport -db localhost:1521:xe -user scott -password tiger -workspaceid 1038408092496568The result are fxxx.sql files (where "xxx" represents application number).
I hope you'll manage to export your applications; basically, nothing special here (except that ".\" directory in the CLASSPATH variable).
Best of luck! -
Running report from command line with multiple value for same parameter
Hey,
I know how to run a report from the command line specifying parameters values each time but I was wondering if someone could tell me how I would go about running the same report multiple times in a batch program but specifying a list of values to pass to a parameter each time.
So for example if a parameter was 'School Number', how could I run a report in a batch program that would pass a school number to the report as a parameter using a list of school numbers generated for a sql statement or something. So if I had 300 school numbers in my list then I would get 300 different reports when the batch program finished.
This leads me to another question. How can I dynamically change the name of the report generated by the batch to use the school number value passed in, so for example if the value 3 was passed in the name would be something like School 3.pdf, if 4 was passed in the name would be School 4.pdf....etc
Any help on this?
ThanksHello,
Bursting and Distribution may help you ....
37 Bursting and Distributing a Report
http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b13895/orbr_dist.htm
Regards -
Invoke Labview applicatio​n from Command line
hi,
I have a labview program which does some analysis on my Test data.
My application is that,i have a Test sequencer program(Different application) which collects data and stores it in .dat file.
After this i invoke exe of Labview Analysis program from Test sequencer & i enter the Test data filename as a command line argument.
My first step in analysis program is read command line argument(thru App.Args property) & get filename(the command line gives array output , index 0 will be Labview,index 1 will show filename)
This works absolutely fine.
I made a copy of this analysis prog to include some more functionalities and renamed it as different Labview program(prog structure is same) & trying to do the same abovesaid process.
But somehow im not able to get Command line arg(basically here filename) passed to labview.
The error im getting is that it's showing the path of my application (say if my application is in C)."C:\xxxx.dat is not a LABVIEW data file".
My question is:
Is there any settings changes to be done for Command line args property node when we make a copy from one prog to other prog.? Im not having clue why this should occur?
-MuraliJust to confirm I understand what you are asking... you copied the App.Args property from one vi to another, compiled the new vi to an exe, new exe doesn't receive the command line parameters.
Did you make sure the "Pass all command line arguments to application" check box (in the 'Advanced' category of the application builder) was checked for the new application?
Troy
CLDEach snowflake in an avalanche pleads not guilty. - Stanislaw J. Lec
I haven't failed, I've found 10,000 ways that don't work - Thomas Edison
Beware of the man who won't be bothered with details. - William Feather
The greatest of faults is to be conscious of none. - Thomas Carlyle -
Run report in Oracle Application from command line
Hi All,
I have a requirement that i have to generate a report through command line and save the output as pdf in a folder on the server. How can i achieve this task. Is any body have some idea plz reply quickly. We have a UAT at 10th of this month.
Thanx in Advance.
Saquib MahmoodHi,
You can use CONCSUB (or SQL*Plus with anonymous PL/SQL block calling fnd_request.submit_request) to submit concurrent request which is a report with output set to PDF, then get the pdf file from $APPLCSF/$APPLOUT/o<request_id>.out and copy to the folder on the server as xxxx.pdf.
Regards,
Gareth
Blog: http://garethroberts.blogspot.com/ -
Startup and shutdown from command line with version 9i
Hi, i'm an Oracle newbie. I heard it's possible to startup and shutdown an oracle (instance? or database? which one is it) from the command line.
A little background on what it is that I want to do:
I'm looking to backup a database by copying the files that make up the database to a location from where they will be commited to tape media. To do this I must shutdown the database, copy the files, and startup the database again.
At the moment the backups are full exports which I find unnecessary since it is a development database which is never used at night. It is therefore not an issue if we want to shut it down and re-start it after a few minutes. (I think it would take longer to export as opposed to copy the files right?)
I need help and advice :
1. Is my way of going about this correct ?
2. How do I startup/shutdown from the command line (sqlplus user/password command) or should I use another utility ?
Thanks,
Gabrielset oracle_sid=ORCL ==> your database namethis is NOT always true. It's instance name. usually, we set instance name is same as database name.But we also can set instance name is different from database name.
for example.
C:\>oradim -new -sid abc123
C:\>set ORACLE_SID=abc123
C:\>sqlplus /nolog
SQL*Plus: Release 9.0.1.4.0 - Production on Tue Jun 20 22:40:59 2006
(c) Copyright 2001 Oracle Corporation. All rights reserved.
SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup pfile=E:\ora901DB\admin\init.ora
ORACLE instance started.
Total System Global Area 344748244 bytes
Fixed Size 282836 bytes
Variable Size 184549376 bytes
Database Buffers 159383552 bytes
Redo Buffers 532480 bytes
Database mounted.
Database opened.
SQL> select name from v$database;
NAME
DB901
SQL> select instance_name from v$instance;
INSTANCE_NAME
abc123 -
Hi :
I want to control on flash magic application using command line with Labview, I look into this application and I see that I can send through command line all I need
Please read what they said aboue using command lines
Before you can run FM.EXE on the command line you must set up your PATH environment
variable to point to the folder FM.EXE is stored in. This is done automatically during
installation, however you must restart your machine before the change to the PATH variable
is recognized when using Windows 95/98/ME. You must restart your machine or log out
then back in again before the change to the PATH variable is recognized when using
Windows NT/2000/XP.
Commands are passed to FM.EXE in the form or either directives or a Command File
containing directives.
The command line will have the following syntax:
FM [directives]
For example the following command line:
Description: Specifies the PC Serial (COM) communicating
Type: Configuration
Syntax: COM(port, baudrate)
Where:
port The COM Port t
baudrate :
2400
4800
9600
19200
38400
57600
Output: Connected
Or: Connection failed: reason
Where:
reason The reason the
Default: COM 1, baudrate of 19200 (COM(1, 19200))
Examples: COM(1H, 9600)
COM(1, 0x2580)
COM(0x01, 2580H)
I try to used this command line with Labview but I always get error attach see file please
What I am doing wrong ?????
Attachments:
error.JPG 66 KBHi CofeeBreak,
Thank you for your comment, but I was able to find the problem (didn't solve it yet): In the FM command line interface, calling a HEX file located in a folder with brackets in its name, such as "C:\hello_World(V1)\LabVIEW.hex" will not be recognized by the FM.exe, whereas "C:\hello_World_V1\LabVIEW.hex" will work just fine. In the Flash Magic GUI and Command Line Manual section on hex files there is no mention of that, my solution at the moment is to remove the brackets from folder names.
Thanks
Amir -
Hi All
We have 11.1.1.7 ojdeploy to compile our app.
We notice in the log that not all jars are used in classpath arguments when we explicitly set them up for compilation.
eg:
<path id="classpath">
<pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/commons-el.jar"/>
<pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/jsp-el-api.jar"/>
<pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/oracle-el.jar"/>
<pathelement location="interface/public_html/WEB-INF/lib/a.jar"/>
<pathelement location="interface/public_html/WEB-INF/lib/b.jar"/>
<pathelement location="interface/public_html/WEB-INF/lib/c.jar"/>
<pathelement location="interface/public_html/WEB-INF/lib/d.jar"/>
</path>
Log Output -
[ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/bin/javac
[ora:ojdeploy] -g
[ora:ojdeploy] -Xlint:all
[ora:ojdeploy] -Xlint:-cast
[ora:ojdeploy] -Xlint:-empty
[ora:ojdeploy] -Xlint:-fallthrough
[ora:ojdeploy] -Xlint:-path
[ora:ojdeploy] -Xlint:-serial
[ora:ojdeploy] -Xlint:-unchecked
[ora:ojdeploy] -source 1.6
[ora:ojdeploy] -target 1.6
[ora:ojdeploy] -verbose
[ora:ojdeploy] -encoding Cp1252
[ora:ojdeploy] -classpath
[ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/resources.jar:
[ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/rt.jar:
[ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/jsse.jar:
[ora:ojdeploy] /path/to/interface/public_html/WEB-INF/lib/a.jar"/>
[ora:ojdeploy] /path/to/interface/public_html/WEB-INF/lib/c.jar"/>
1- Is it because it depends on how jpr or jws are configured ?
2- How can we automatically generate a build file of the application from command-line (as opposed to using Jdev IDE to click to generate a build.xml) ?The first warning is happening because you're stating drivers for input devices without need. You haven't disabled hotplug so evdev gets used instead of kbd. This is normal, and you should change the driver line from kbd to evdev so that whatever options (if any) you've specified for the keyboard get parsed.
The second warning is about you not installing acpid.
The third I have no idea about, but look at the synaptics wiki. None of the (WW) are related to your video card.
And every card that has 2 or more output ports show up as "two cards". You also don't need to specify the pci port in xorg.conf. edit: this is the general case with laptops, might be different for desktops.
When I do lspci -v I get:
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
Subsystem: Micro-Star International Co., Ltd. Device 0110
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at dfe80000 (32-bit, non-prefetchable) [size=512K]
I/O ports at d0f0 [size=8]
Memory at c0000000 (32-bit, prefetchable) [size=256M]
Memory at dff00000 (32-bit, non-prefetchable) [size=256K]
Expansion ROM at <unassigned> [disabled]
Capabilities: <access denied>
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
Subsystem: Micro-Star International Co., Ltd. Device 0110
Flags: bus master, fast devsel, latency 0
Memory at dfe00000 (32-bit, non-prefetchable) [size=512K]
Capabilities: <access denied>
And it doesn't matter if it errs in trying to sli up with it self. That's just not a possibility.
Last edited by gog (2009-10-15 23:59:49) -
Generating UDT from command line or C# code
Hi,
I want to write an application which is capable of generating UDTs and hence use the newly generated UDTs in C#. Right at the moment I can only generate the classes via the wizard in Visual Studio ("Generate Custom Class.."), but i know that e.g. for C++ it is possible to generate these types from command line - with OTT.
I appreciate any help, finding a way to automatically generate the user defined types in C# (without manually mapping it).
BRHi Sathish,
did you find a solution for this? I am looking for the same thing. I want to write a program(perl, batch script, etc.) which could automatically convert pdf to excel without any manual intervention.
I have the acrobat javascript which could achieve this, but it can only be executed in arobat consolt. I need it to be able to get executed in a script to automate the processing.
thanks
Warren -
Invoking XSLT from the Command Line with JRE1.4 and JRE1.5
When I invoke XSLT from the Windows Command Line with "java.exe org.apache.xalan.xslt.Process -IN OldFile.xml -XSL StyleSheet.xsl -OUT NewFile.xml" it worked fine with JRE1.4.
Then I installed JRE1.5.0_09. The class "org.apache.xalan.xslt.Process" was moved to "com.sun.org.apache.xalan.internal.xslt.Process". But when I call it with "java.exe com.sun.org.apache.xalan.internal.xslt.Process -IN OldFile.xml -XSL StyleSheet.xsl -OUT NewFile.xml" I get the error "Exception in thread "main" java.lang.NoSuchMethodError: main". When I look into the Process class there is no "main", but a "public static void _main(String argv[])".
The "JAXP Compatibility Guide for the J2SE Platform, versions 1.4 and 1.5" on "http://java.sun.com/webservices/docs/1.6/jaxp/JAXP-Compatibility_150.html" chapter "Invoking XSLT from the Command Line" claims it should work.
Is there no more chance to invoke XSLT from the Windows Command Line? Why is "main" renamed to "_main"? Is the documentation wrong or is this a bug?When I invoke XSLT from the Windows Command Line with "java.exe org.apache.xalan.xslt.Process -IN OldFile.xml -XSL StyleSheet.xsl -OUT NewFile.xml" it worked fine with JRE1.4.
Then I installed JRE1.5.0_09. The class "org.apache.xalan.xslt.Process" was moved to "com.sun.org.apache.xalan.internal.xslt.Process". But when I call it with "java.exe com.sun.org.apache.xalan.internal.xslt.Process -IN OldFile.xml -XSL StyleSheet.xsl -OUT NewFile.xml" I get the error "Exception in thread "main" java.lang.NoSuchMethodError: main". When I look into the Process class there is no "main", but a "public static void _main(String argv[])".
The "JAXP Compatibility Guide for the J2SE Platform, versions 1.4 and 1.5" on "http://java.sun.com/webservices/docs/1.6/jaxp/JAXP-Compatibility_150.html" chapter "Invoking XSLT from the Command Line" claims it should work.
Is there no more chance to invoke XSLT from the Windows Command Line? Why is "main" renamed to "_main"? Is the documentation wrong or is this a bug? -
Error while running a Discoverer Workbook with parameter from command line
I am trying to run a discoverer report from command line and export the results in xls on to my local machine. I could do it fine for a simple workbook, but if I add a parameter(madatory) to the workbook and run it from command line specifying the parameter value I wanted to run the report for, I do not get any results. Here is the command line I am using.
dis51usr.exe /connect user/password@database /apps_user /apps_responsibility "System Administrator" /eul EUL_US /open C:\Disco\Test.DIS /sheet Testsheet /parameter Period Jan-07 /export xls C:\Disco\X.xls /batch
Parameter value is entered in correct format(Jan-07).
When I removed /batch from this to see if I get any error, Discoverer Desktop opened up, logged in and gets terminated saying 'Oracle Discoverer Desktop has encountered a problem and need to close. We are sorry for the inconvenience.'
Did anybody come across this issue before?Hello,
If you have a few minutes, Windows is also aborting for me:
the differences are, my situation is:
a) am running the command line from a .bat file
b) am NOT running with parms, want the discoverer query to come up for the user
c) am running a query from the database
i am signing in as myself BUT running a query that was created by a generic user called SREG
c) if i run the .bat file from Windows Explorer, the query opens fine
d) if i execute the .bat file from within Microsoft Access using the shell command,
the query opens and then aborts RIGHT BEFORE the parm screen would display
e) btw, if i modify the .bat file, to run a query from MY database signon, then (d) - running .bat file
from vb using SHELL command works
Do you have a ideas as to why (d) does not work? I would be very grateful for your time, tx, sandra
this is what i posted yesterday, tx: Re: Running Discoverer command line
tx, sandra -
How to run form in the background from command line
please can anybody tell me to
how to run form in the background from command line
vishalUmmm....Oracle Forms is a foreground runtime kind of thing. What you want is a database procedure (or an OS utility - it depends on what sort of processing you want to do in the background).
Cheers, APC -
How to programatically start j2ee application/service from command line
Hi all
We have developed a j2ee application and deployed the .ear file on SAP J2EE (Netweaver'04) engine.
We are able to successfully start/stop the application from Visual administrator -> Deploy -> Service -> Start application (or) Stop application.
We need to start and stop the same application programatically or via command line instead of doing it from VA. Any thoughts from anyone on how to do it ?
Thanks in advance.
Regards
NageshThe cammands are there in the respective folders, these are just the batch files / .sh scripts that can be run from command line.
/usr/sap/<instance>JC<client>/j2ee/admin
go.sh and go.bat can run either on command line
j2ee/configtool
configtool.sh / configtool.bat
similarly for other smaller utilities. For the main server, the related commands are in exe directory of sapmnt
/sapmnt/<instance>/exe
Regards,
Nitin
Edited by: Nitin Mahajan on Jun 16, 2009 11:16 PM
Maybe you are looking for
-
How can I import an existing csv. file into Outlook on a Mac with OS10.7
Tried to import a csv. file on my Mac (OS 10.7.2) into Microsoft Outlook 2011 (for Mac) on the same computer, ended up with a useless Excel page - it opened the csv file in Excel with only a few contacts and uselessly formatted, at that!. Also, tried
-
I want to open a new window for onlineHelp When I click on Help link i want to open a new window to show the appropriate help file. (instead of opening index page of help file) For this I store the URL in properties file and when the HELP LINK is cli
-
How to check BB inventory?looking for an 55XBR8
I'm looking to purchase a Sony KDL-55XBR8 but they are scarce anybody know how I can check inventory of all the Best Buys to possibly locate one?
-
I'm told to download an older version of firefox that supports the application for federal student loan. They want me to download: Windows 7 - Mozilla Firefox 3.5.x and 3.6.x
-
Getting Windows Username of the Client m/c
Hi, I want to be able to get the userid of a person when they call a servlet which is residing on a server. The person will log into his own computer using his user id and when he calls my servlet which is on my server over a network, I will be able