HOST command not working in forms 10g
Hi,
I have migrated forms 6i to forms 10g, and having a requirement to open sqlplus prompt using a form menu. I have used the below command: -
"host('sqlplus '||user_name||'/'||pass||'@'||sid, no_screen);"
But I am not able to get the sqlplus window, and the main form is still in process for long time, till i bounce the server.
The forms are deployed on Oracle Applications Server 10g and i want to run it on server side.
Please help me with the problem.
Thanks,
Ankit
The deployment architecture is different between forms 10g and forms 6i.
In Forms 6i HOST built-in command will run on the client machine since you are running as client/server, but in WebForms (Forms10g) the HOST built-in command will run on the middle tier which is your application server machine.
In order to run hosts commands in WebForms you need to use webutil and use CLIENT_HOST in the webutil.
check the [Forms 10g R2 Demo|http://download.oracle.com/otndocs/demos/Forms_Demos_10gr2.zip] for sample codes of webutil.
You are using NO_SCREEN in your example, this will hide the window.
Tony
Edited by: Tony Garabedian on Nov 26, 2009 2:43 PM
Similar Messages
-
Ole2 commands not working in forms 10g
OLE2.set_property(Application, 'Visible', true);
above statement not working in forms 10g;Try to use the OLE2 fuction from WEBUTIL library. There is function in webutil CLIENT_OLE2.
-Ammad -
Oracle AS Version 10.1.2.0.2, Oracle Forms Version 10.1.2.0.2, Windows XP.
I am using HOST command to read a files from the directory (on the server). But HOST does not working. When i click the button to read the file, it just hangs on and no error on the console.
Does host work on forms 10g?
actually i was using client_host of webutil and its working fine. But it pick the directory from the client. Whereas i need to pick it from the server where AS is. That why i went for HOST command.
Any suggestion.Hi,
Try this.
1. Create a batch file (which would first set the required variables as when you do the "set".)
2. Add the following to the batch file.
C:\javasoft10g\jre\bin\javaw -classpath C:\javasoft10g\jre\lib\rt.jar;C:\javasoft10g\paths;;C:\javasoft10g\paths\dusjava.jar; %1 %2 %3 %4 %5 %6 %7Save the batch file in some location (say c:\mybatchscript.bat).
From forms, call it like
host('cmd /c c:\mybatchscript.bat > c:\temp\testlog.log' );Now, does it work?
-Arun
P.S : Looks to me like, you are setting some variables (or calling another batch file - set , which sets up the variables). So, make sure you set all the required variables in the batch script itself.
-Arun -
Host command not working properly
Hi,
I am using oracle forms 10.1.2.0.2.
In my form, I need to call a unix shell script.
{ Oracle forms will run on application server.
Unix will run in a development server.
(Both the servers are different)
From forms, if I click a button, it should call the unix shell script in a specified path.
Internally, the unix script will call oracle to generate a file.
In the file, some manipulations are done using unix.
After doing some manipulations, the file is stored in a specified path in the unix box. }
To achieve the above, I did the below things.
To execute a unix shell script from my oracle forms (10g),
1) the below configuration i added in the webutil.cfg file
install.syslib.0.user.1=ffisamp.dll|40960|1.0|true
transfer.database.enabled=TRUE
transfer.appsrv.enabled=TRUE
transfer.appsrv.workAreaRoot=c:\temp
transfer.appsrv.accessControl=TRUE
#List transfer.appsrv.read.<n> directories
transfer.appsrv.read.1=c:\temp
#List transfer.appsrv.write.<n> directories
transfer.appsrv.write.1=c:\temp
2) I have attached webutil.pll library to my form
3) I have subclassed object group from webutil.olb to my form.
4) The host command i used is (these code are present in when-button-pressed trigger of a button)
host('rsh selvas -l administrator sh <foldername>/if_csv.ksh',NO_SCREEN);
if form_failure then
emessage('hi selva');
emessage(SQLERRM);
else
emessage('failure selva');
end if;
when I click the button, I am getting the below messages,
hi selva
normal, successful completion
Also, the script is not executing and it is not giving me the desired result.
Can any one help me, where I am missing.
Thanks,
Selvarajhi steve,
Thanks for your response
after the host command i added like this
host.....;
pause;
if form_failure then
emessage('hi selva');
else
emessage('failure selva');
end if;
when I executed,
I got the below messages
PLEASE ACKNOWLEDGE
-- when i clicked ok,
it showed me failure selva
but still the shell script has not executed.
Note:
In /tmp directory, no log files are available.
Can you plz help
thanks,
selvaraj -
Host command on linux with forms 10g
Dear Experts
i have one major problem as i have made a form in forms 10g to upload .dmp files copied in application server my problem is that when i excute host command like bellow
cmdln := './imp.sh'
host(cmdln)
to excute and run shell script saved on application server which runs an imp command to upload all files copied in specified location but nothing is happening when i click on button as these command are fired on when button click trigger plzzz help its urgent
were i can make mistakeWhoa...please don't use txt speak when posting here; it is very hard to read and right now it took me about 5 minutes to understand what you have written. Please write proper sentences; help us to help you ; )
It is a good idea to have exact the same verison of exp / imp then your database version; Forms 10.1.2.0.2 would be compatible with a 10.1 database. If your database is e.g. 10.2 you'd need to install the 10.2 client software on your application server anyway. You wouldn't need to care about this when using datapump.
And another thing regarding datapump: conventional export is deprecated in 11.2 so one day or another your customers will need to move to datapump; the sooner the better.
As said: try to run your script on the shell without forms and see if this works. You would see error messages generated by your shell script too.
cheers
Edited by: christian erlinger on 19.05.2011 01:14
that damn smileys don't work anymore -
Hi all,
How to use TABLE_FROM_BLOCK in forms 10g. its working in forms 6i .
the same form is not working in 10g . i got this error.
frm-40933 Cannot populate table because datatype is incorrect.
pls help me
Regards
Gopinath MAccording to Metalink's Developer 2.1 Release Notes (Doc ID #90090.1), section 4.2.1, "TABLE_FROM_BLOCK Built-In":
DO NOT use the TABLE_FROM_BLOCK built-in described in the
documentation. It is reserved for internal use only. No support
for this built-in will be provided under any circumstances.
If you used this built-in, you will need to recode your from(s) for 10g.
Message was edited by:
Mark Roberts -
F7 & F8 key is not working in forms 10g
Dear all,
I am working with oracle application version 10.1.2.3.0, installed on windows server 2003 and database 10gR2 on windows server 2008. When i open any form and tries F8 / F7 to executed & enter
query, its not working. But its owrking with with F11 and shitp + F11. I want to use F7 & F8 for enter/execute the query. I have same another same environment with same configuration, there F7
& F8 is working fine. To enable these keys i rename fmrpcweb.res to fmrweb.res. But guide me with your sincere suggessions & experience.
Regards,
Ahmed.According to Metalink's Developer 2.1 Release Notes (Doc ID #90090.1), section 4.2.1, "TABLE_FROM_BLOCK Built-In":
DO NOT use the TABLE_FROM_BLOCK built-in described in the
documentation. It is reserved for internal use only. No support
for this built-in will be provided under any circumstances.
If you used this built-in, you will need to recode your from(s) for 10g.
Message was edited by:
Mark Roberts -
Enter key not working in forms 10g
Hi guys,
Enter key to select a form is not working
on my application.
I have to double click the form to open it using the mouse.
Then if we try to exit we have to press exit that many number of times as we have pressed enter key.
So it seems to be storing the key processes.
We are using forms 10g.
Please help.
Thanks and Regards,
RohanFixed.
Changed KB.
However, this is still strange as the old KB was working fine in other applications. -
RP2RRO.RP2RRO_RUN_PRODUCT not working in forms 10G
Hi,
Recently I convert my small application from forms 6i to forms 10g, All forms are working fine but all reports which I call through menu are not running, Whe I checked the code I found run_product is replaced by RP2RRO_RUN_PRODUCT, the code is like this
declare
complist paramlist;
begin
complist:=get_parameter_list('tmp');
if not id_null(complist) then
destroy_parameter_list('tmp');
end if;
complist:=create_parameter_list('tmp');
add_parameter(complist,'P_COMPANY_NAME',
text_parameter,:global.p_company_name);
RP2RRO.RP2RRO_RUN_PRODUCT(reports,'LDN_MCWISEVehicleDetail',asynchronous,runtime,
filesystem,complist,null);
end;
When I click the menu , nothing happened , my question is How i can my reports work
Regards,
Ahmadhttp://10.33.67.202:8889/reports/rwservlet?server=detasad&report=Veh_Summary.rdf&desformat=pdf&destype=file&userid=gsav/pgsav@macc¶m=nodestype=file generates the report to a file and therefore only says "Run Successfully" after it finished. It you want to see the output directly in the browser, use destype=cache
-
DB link is not working in forms 10g
Hi,
I have to different machines with DB Oracle 10g and Oracle 9i. I have created dblink to access data from Oracle 9i from Oracle 10g. This DB link is working perfectly from sql. but when i am using this dblink in form 10g. it is giving following errors.
Here it is compiling post-query trigger.
my query is select count(*) into var1 from CL_PASS_MASTER@ICLC2CISF .
Compiling POST-QUERY trigger on form...
Compilation error on POST-QUERY trigger on form:
PL/SQL ERROR 0 at line 0, column 0
ORA-04052: error occurred when looking up remote object [email protected]
ORA-00604: error occurred at recursive SQL level 1
ORA-06544: PL/SQL: internal error, arguments: [55916], [], [], [], [], [], [], []
ORA-06553: PLS-801: internal error [55916]
ORA-02063: preceding 2 lines from ICLC2CISF
the same query is working from sql prompt.
Please help me..+"How about if you create a synonym in the back-end using db link?+
+create synonym syn_CL_PASS_MASTER for CL_PASS_MASTER@ICLC2CISF;+
+and use the synonym in post-query. "+
+ 1
Francois -
"connect_by_isleaf" is not working in Forms 10g
Hi gurus,
I have a tree control in my application,I use a query to rollup some amounts
according to certain criteria,I used the pseudo-column 'connect_by_isleaf' which is a wonderful new feature in 10g and it worked fine in SQLPlus,when I used it in Forms 10g ,it didn't recognise it and gave an error while compiling : identifier "CONNECT_BY_ISLEAF" must be declared.
Why? what is wrong?
ThanksThanks Rajesh,
I have made a work around,I created a function on the database (with 'connect_by_isleaf' in it) and called it from Forms 10g,
Bingo....worked fine.
Hope this helps others.
Mohammad -
SQLPLUS HOST Command Not Supported
Hi,
I am facing strange problem. I have lots of scripts where I have used the HOST command from within SQLPLUS.
Now, on Windows Server 3000 Standard Edition, Version 5.2, I find that both HOST and its equivalent $, both are not supported when used with SQLPLUS on Oracle 10g Enterprise Edition.
Please HELP, and suggest some alternative.
PrashantThere is no such thing as Windows Server 3000. The latest product appears to be Windows Server 2008.
I'm not sure what the version of the Oracle database has to do with it. This is about SQL*Plus and you still haven't told us what version of that you are using. For example:
SQL*Plus: Release 11.1.0.6.0 - Production on Sat Dec 6 15:56:12 2008
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> host cd
y:\sql
SQL>This is sqlplus.exe (never sqlplusw.exe) version 11.1.0.6.0 on Windows XP Pro 2002 SP3. It's not the best example because SQL*Plus and the database are at the same version - they are often different. For example:
/Users/williamr: sqlplus william/x@//vm.starbase.local:1521/eleven
SQL*Plus: Release 10.1.0.3.0 - Production on Sat Dec 6 16:01:21 2008
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> ho uname -a
Darwin starbase-2.local 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386
SQL> I've never known the host command not work, but perhaps someone with the same setup as you can confirm they don't have the same problem. I'm also a bit puzzled by the error message "Command not success." That doesn't sound like an Oracle command - apart from being vague and ungrammatical it doesn't start with the standard "SP2-nnnn" prefix, for example:
SQL> x
SP2-0042: unknown command "x" - rest of line ignored.Can you copy and paste the exact commands and results you get?
Edited by: William Robertson on Dec 6, 2008 4:04 PM -
Table_From_Block Build-in Package is not working in Oracle 10G
Hi
Table_From_Block Build-in Package is not working in Oracle 10G
Kindly advice..user648759 wrote:
Hi
Table_From_Block Build-in Package is not working in Oracle 10G
Kindly advice..Provide a little more information. Forms version OS version, more information about your problem and question.
--and explain what on earth Table_From_Block* mean's--
Tony
PS: TABLE_FORM_BLOCK is a built-in for internal use, usually auto generated by forms. For a moment I didn't get what that meant, need more coffee.
Edited by: Tony Garabedian on Aug 29, 2008 12:39 PM -
SQL Code not working in Forms Developer?
Hi all,
I'm using Oracle 10g and I have th following code running on iSQL+ but not working on Forms and I got the following erro
The SQL code:
select returningreason
from (
select returningreason,
dense_rank() over (partition by 1 order by count(*) desc) as drnk
from returned_goods
group by returningreason)
where drnk = 1;And the error happens near the word over to the right and the error statement is:
Error 103 at line 18, column 19
Encountered the symbol "(" when expecting one of the following:
, formThanks in advance :)Triggers are compiled in forms so need to use only the features available to forms, which doesn't include all the new stuff in the database.
select over partition
NVL2They don't work in forms and reports too.
Also if you use them in record Group
Forms/SQL Compiler was not lined up to the database(10G).
Meanwhile,for example. Pipelined TABLE and relative Select work in Reports AND Forms. -
What will you do if any SQL is not working. in oracle 10g....apps 11.5.10.2
928714 wrote:
yes sir.If you help me in answering my questions i wll be very thankful to you sir.
tnx,I haven't a clue.
As you have been advised in many of your posts, go study the documentation for whichever specific topic you are interested in.
For me to answer your questions, I would need to go get that documentation.
Then I would need to read that documentation.
Then I would need to write a forum post that interprets what I think I learned from that documentation.
It is so very much faster if YOU go do that instead of posting to a forum and expecting others to do it. You will remember what you study for a lot longer time if you teach yourself.
Maybe you are looking for
-
Clicking noise from left side of body?
There's an incessant clicking noise coming from the left side of my macbook, about once a second, not from the speaker. I can't tell if it's the top or bottom, but bottom is my guess. What is causing this/should I be worried about it?
-
Dd unix util producing corrupt ISO images
This is the first time I've ever had reason to post to Apple Support. I'm going insane with this issue. I am writing an ISO-ripping util that is really just GUI slapped on top of dd, and I can't coax the thing to produce non-corrupt ISOs on Snow Leop
-
We tries to distribute the Zen agent via ConsoleOne and Install-Agent. When we tries to deploy the agent, we get the error: "Unable to map $Admin share drive". I'm sure we use the correct administrator password.. Regards Johann Folkestad
-
[SOLVED] Can't boot after install
I installed Archlinux using the FTP LiveCD. Everything finished good, and there were no errors. I then reboot and Grub comes up like it's supposed to. But when I try to boot into Arch it says: Booting 'Arch Linux' root (hd1,0) Filesystem type is ext2
-
Error 2 - No such file or directory issue with unzipping file
Hi all, I know ther's been a couple of threads about this already and I can promise you that I have tried it all. Keep getting Error 2 - No such file or directory I've downloaded various different software and tried unzipping, tried through Terminal,