In Forms 10g Where does SQLs execute?
In Oracle Forms 10g there is Java Applet on top of which our Application runs. Now suppose we have a button and in that we execute a SQL to get a column value.
Now where does the SQL fire?
Does it fire in the Applet (i.e in client) or does it go to the App Server and then execute?
RTM first!
If it's PL/SQL written in the form, that executes on the application server, that has a PL/SQL engine.
If it's a call to a procedure stored in the database, that executes in the database.
If it's SQL, then that can execute nowhere else except in the database.
Do not imagine that the applet does any other thing except rendering what you see on screen and handling the clicks and keystroke to the application server (which does the further processing, handling to the database the SQL that has to be executed).
Briefly, that's the basics.
HTH
Edited by: BEDE on Nov 16, 2010 11:15 AM
Similar Messages
-
Why does SQL execute inner selected functions again in the outer select?
Hi,
Why does SQL execute inner selected functions again in the outer select?
Given:
CREATE OR REPLACE FUNCTION K_TEST
RETURN NUMBER IS
BEGIN
RETURN 1;
END;
SELECT K_TEST, K_TEST FROM DUAL;Will (logically) execute the function twice.
SELECT intest, intest
FROM (SELECT K_TEST intest FROM DUAL);Will execute the function twice too!
Why can't SQL buffer the inner result?
Does anyone have an idea on how to achieve executing the function only once? My original called function is quite heavy and returning a user defined type. Adding predicates, the function is executed 3 or 4 times!
Thanks for any tips,
K.Hello
Depending on your version of Oracle, Sub query caching could help....
XXXX> create sequence seq_1
2 /
Sequence created.
Elapsed: 00:00:00.07
XXXX> CREATE OR REPLACE FUNCTION K_TEST
2 RETURN NUMBER IS
3
4 ln_Ret NUMBER;
5
6 BEGIN
7 SELECT
8 seq_1.NEXTVAL
9 INTO
10 ln_Ret
11 FROM
12 dual;
13
14 RETURN ln_Ret;
15 END;
16 /
Function created.
Elapsed: 00:00:00.60
XXXX>
XXXX> SELECT K_TEST, K_TEST FROM DUAL;
K_TEST K_TEST
1 2
1 row selected.
Elapsed: 00:00:00.06
XXXX> SELECT K_TEST, K_TEST FROM DUAL;
K_TEST K_TEST
3 4
1 row selected.
Elapsed: 00:00:00.01
XXXX> SELECT intest, intest
2 FROM (SELECT K_TEST intest FROM DUAL);
INTEST INTEST
5 6
1 row selected.
Elapsed: 00:00:00.10
XXXX> SELECT
2 intest,intest
3 FROM
4 (
5 SELECT (SELECT K_TEST FROM dual) intest
6 FROM
7 dual
8
9 )
10 /
INTEST INTEST
7 7
1 row selected.
Elapsed: 00:00:00.03
XXXX> /
INTEST INTEST
8 8
1 row selected.
Elapsed: 00:00:00.01THis last example takes advantage of a specific optimisation for calling functions in a subquery. Not sure if it would suit your circumstance though...
Alternatively - again depending on your version - you might be able to look at function result caching...
HTH
David
Edited by: Bravid on Feb 1, 2012 12:32 PM -
How to FTP a file from client machine to database server using forms 10g
Hi
I want to ftp a file from a client machine to the database server machine using forms 10G (or PL/SQL).
could you please tell me how can I do this
Regardshi
How to get up and running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform
Solution
Assuming a fresh "Complete" install of Oracle Developer Suite 10.1.2.0.2,
here are steps to get a small test form running, using WebUtil 1.06.
Note: Oracle_Home is used as an alias for your real oDS ORACLE_HOME.
Feel free to copy this note to a text editor, and do a global find/replace on
Oracle_Home with your actual value (no trailing slash). Then it is easy to
copy/paste actual commands to be executed from the note copy.
1) Download http://prdownloads.sourceforge.net/jacob-project/jacob_18.zip
and extract to a temporary staging area. Do not attempt to use 1.7 or 1.9.
2) Copy or move jacob.jar and jacob.dll
C:\webutile is the folder where you extracted Jacob, and will end in ...\jacob_18
cd C:\webutile
copy jacob.jar Oracle_Home\forms\java\.
copy jacob.dll Oracle_Home\forms\webutil\.
The Jacob staging area is no longer needed, and may be deleted.
3) Sign frmwebutil.jar and jacob.jar
Open a DOS command prompt.
Add Oracle_Home\jdk\bin to the PATH:
set PATH=Oracle_Home\jdk\bin;%PATH%
Sign the files, and check the output for success:
Oracle_Home\forms\webutil\sign_webutil Oracle_Home\forms\java\frmwebutil.jar
Oracle_Home\forms\webutil\sign_webutil Oracle_Home\forms\java\jacob.jar
4) If you already have a schema in your RDBMS which contains the WebUtil stored code,
you may skip this step. Otherwise,
Create a schema to hold the WebUtil stored code, and privileges needed to
connect and create a stored package. Schema name "WEBUTIL" is recommended
for no reason other than consistency over the user base.
Open Oracle_Home\forms\create_webutil_db.sql in a text editor, and delete or comment
out the EXIT statement, to be able to see whether the objects were created witout
errors.
Start SQL*Plus as SYSTEM, and issue:
CREATE USER webutil IDENTIFIED BY [password]
DEFAULT TABLESPACE users
TEMPORARY TABLESPACE temp;
GRANT CONNECT, CREATE PROCEDURE, CREATE PUBLIC SYNONYM TO webutil;
CONNECT webutil/webutil@rcci
@Oracle_Home\forms\create_webutil_db.sql
-- Inspect SQL*Plus output for errors, and then
CREATE PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
Reconnect as SYSTEM, and issue:
grant execute on webutil_db to public;
5) Modify Oracle_Home\forms\server\default.env, and append Oracle_Home\jdk\jre\lib\rt.jar
to the CLASSPATH entry.
6) Modify Oracle_Home\forms\server\formsweb.cfg insde [default] add :
archive_jini=frmall_jinit.jar,frmwebutil.jar,jacob.jar
archive=frmall.jar
also add :
[webutil]
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTMLjinitiator=webutiljini.htm
baseHTMLjpi=webutiljpi.htm
baseHTML=webutilbase.htm
archive_jini=frmall_jinit.jar
WebUtilArchive=frmwebutil.jar,jacob.jar,f90all.jar
archive=frmwebutil.jar,f90all.jar
lookAndFeel=oracle
7) Modify Oracle_Home\forms\server\webutil.cfg and add :
transfer.database.enabled=TRUE
transfer.appsrv.enabled=TRUE
8) Start the OC4J instance
9) Start Forms Builder and connect to a schema in the RDBMS used in step (4).
Open webutil.pll, do a "Compile ALL" (shift-Control-K), and generate to PLX (Control-T).
It is important to generate the PLX, to avoid the FRM-40039 discussed in Note 303682.1
If the PLX is not generated, the Webutil.pll library would have to be attached with
full path information to all forms wishing to use WebUtil. This is NOT recommended.
10) Create a new FMB.
Open webutil.olb, and Subclass (not Copy) the Webutil object to the form.
There is no need to Subclass the WebutilConfig object.
Attach the Webutil.pll Library, and remove the path.
Add an ON-LOGON trigger with the code
NULL;
to avoid having to connect to an RDBMS (optional).
Create a new button on a new canvas, with the code
show_webutil_information (TRUE);
in a WHEN-BUTTON-PRESSED trigger.
Compile the FMB to FMX, after doing a Compile-All (Shift-Control-K).
11) Under Edit->Preferences->Runtime in Forms Builder, click on "Reset to Default" if
the "Application Server URL" is empty.
Then append "?config=webutil" at the end, so you end up with a URL of the form
http://server:port/forms/frmservlet?config=webutil
12) Run your form. -
Oracle Forms 10G(tabbed canvasses not working the same as in Forms 6i)
Hi everyone,
I have a form which gets called from another form through a list of value. The called form(second form) has a group of tabbed canvases which get displayed depending on the parameters passed from the first form.
The Form is working prefectly fine in Forms 6i but when I converted the same form in to forms 10G it does not seem to work the same way. The tabbed canvasses are not getting displayed. I am manually having to press the execute query to get data displayed in the tabbed canvasses. I checked the parameters that are being passed and they are the same as that in Forms 6i.
Please let me know where my 10G Form is going wrong. Appreciate your help, please send me an email on [email protected]
Thanksduplicate
Re: Oracle Forms 10G not working as Oracle Forms 6i -
Oracle Forms 10G not working as Oracle Forms 6i
Hi everyone,
I have a form which gets called from another form through a list of value. The called form(second form) has a group of tabbed canvases which get displayed depending on the parameters passed from the first form.
The Form is working prefectly fine in Forms 6i but when I converted the same form in to forms 10G it does not seem to work the same way. The tabbed canvasses are not getting displayed. I am manually having to press the execute query to get data displayed in the tabbed canvasses. I checked the parameters that are being passed and they are the same as that in Forms 6i.
Please let me know where my 10G Form is going wrong. Appreciate your help, please send me an email on [email protected]
Thanks:System.message_level has nothing to do with how you check the flow of execution, or whether you use the Message statement. :System.Message_Level is a Forms variable that can be set to a numeric value. If you set it > 0, it hides error messages, which you should NOT do. Is there anywhere in your form where it is set? If there is, make sure it is set to zero while you are testing.
<P>Since you are using regular message statements to debug (Re: Zdebug -- Download a Forms debugging message tool), you should determine if the process that sets up the tabbed canvases is being executed. -
Converting Unicode to UTF-8 character set through Oracle forms(10g)
Hi,
I am working on oracle forms (10g) where i need to load files containing unicode character set (multilingual characters) to database.
but while loading the file , junk characters are getting inserted into the database tables.
while reading the file through forms , i am using utl_file.fopen_nchar,utl_file.get_line_nchar functions to read the unicode characters ...
the application server , and database server characterset are set to american utf8 characteset.
In fact , when i change the text file characterset to utf8 through an editor(notepad ++,etc) , in that case , data is getting inserted into database properly,(at least working for english characters) , but not with unicode ...
Any guidance in this regard are highly appreciated
Thank you in advance
Sanuhi
please check out the following link.
http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm
sarah -
Connect by prior working in sql but not in forms 10g hierarchical tree
Hello Friends,
I have the following connect by prior example which is working in sql command prompt but not in Forms 10g hierarchical tree item type. Can you please let me know why ?
configuration: Forms 10g patchset 10.1.2.0.2 and oracle 11g database on windows 7
SQL> SELECT 1 InitialState,
2 level Depth,
3 labeller NodeLabel,
4 NULL NodeIcon,
5 to_char(reportno) NodeValue
6 FROM reports where formname = 'billinin.fmx' or reportno > 9999
7 start with reportno > 9999
8 CONNECT BY PRIOR reportno = labelno
9 /
INITIALSTATE DEPTH NODELABEL N NODEVALUE
1 1 FIRST 10000
1 2 report1 UD Label 1
1 2 report2 UD Label 2
1 2 report3 UD Label 3
1 1 SECOND 10001
1 1 THIRD 10002
If I write this command in forms hierarchical tree, then it is working, why not the above code ?
SQL> SELECT 1 InitialState,
2 level Depth,
3 labeller NodeLabel,
4 NULL NodeIcon,
5 to_char(reportno) NodeValue
6 FROM reports
7 start with reportno > 9999
8 CONNECT BY PRIOR reportno = labelnoThanks Room,
This command worked ! I will put the sample working code here. It will help you to filter the records in a tree in sql command prompt as well as in forms hierarchical tree 10g.
SELECT 1 InitialState,
level Depth,
labeller NodeLabel,
NULL NodeIcon,
to_char(reportno) NodeValue
FROM reports
start with reportno > 9999
CONNECT BY PRIOR reportno = labelno
AND FORMNAME = :reports.testitem -
PL/SQL engine in Forms 10g Release 2
Hello,
Can anyone tell me if in Forms 10g Release 2 I can use these?
- Native dinamic SQL
- Indexed arrays by VARCHAR2 instead of BINARY_INTEGER
ThanksHello,
1. EXECUTE IMMEDIATE is as server side instruction, so it cannot be used within a Forms pl/sql block.
2. Yes, Indexed arrays by VARCHAR2 work fine in 10gR2 ;o)
Francois -
Where does a PL/SQL block run? PGA or SGA?
Hi all,
11g
I'm not familiar with the oracle memory structure, if I have a simple pl/sql block as below
DECLARE
v1 number;
BEGIN
v1:=100;
DBMS_OUTPUT.PUT_LINE(v1);
END;in my mind, even though it's a small block, when i execute it, it would also consume some memory, where does this memory come from, pga or sga?
in other words, when 'pl/sql engine' needs some memory, for example, for the local variables, where does this memory come from?
many thanks.in my mind, even though it's a small block, when i execute it, it would also consume some memory, where does this memory come from, pga or sga?
in other words, when 'pl/sql engine' needs some memory, for example, for the local variables, where does this memory come from?SGA
The SGA comprises a number of memory components, which are pools of memory used to satisfy a particular class of memory allocation requests. Examples of memory components include the shared pool (used to allocate memory for SQL and PL/SQL execution), the java pool (used for java objects and other java execution memory), and the buffer cache (used for caching disk blocks). All SGA components allocate and deallocate space in units of granules. Oracle Database tracks SGA memory use in internal numbers of granules for each SGA component.
for any sort operations, hash joings, it uses PGA.
Read http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/memory.htm -
How to save SQL result to file in forms 10g
Hi All,
I am using Oracle/forms 10g and need to create a file from a predefined sql statement .
Just wondering if there is a build-in provided by oracle to export sql result to a file from Forms?.
Your quick response will be of great help.
Thanks
AalishanAalishan,
I guess it all depends on where you need to create the output file. You can use the database package UTL_FILE to write a file to the database server file system or you can use the Forms TEXT_IO built-in to write to the client file system. Is your intent to export the data in a multi-line block to a file? If so, TEXT_IO is what you want to use. The Forms help system has all the information and a few examples you will need to get started.
Hope this helps.
Craig... -
Suppose there is form in a web page and it submits data in HTTP POST method. After submitting the form, if I reload the page [either by the refresh button or back button; whichever applicable], firefox asks permission to resend the form data by saying "To display this page, Firefox must send information that will repeat any action...". Now if the user clicks on the resend, firefox resubmits the form data.
So where does firefox store this from data for such future resending/resubmission?
Is it possible to retrieve/manipulate those stored form data?I thought I'd tried that, as tried lots of other things like encoding URL, but obviously not as this works.
Thanks for the quick reply.
We also have an issue with the people results not being able to be refined by Department or Job Title now we have connected the SP2010 farm to use the service applications from a SP2013 farm.
Any ideas on this? I've started a new thread as its unrelated though:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/c89d5463-4531-4a28-9586-1f690c7b580d/can-you-refine-people-search-results-using-a-sharepoint-2013-search-service-application-connected-in?forum=sharepointsearch -
Does Form 10g support database 8.1.7..? what version it support? Thanks.
I've never heard, that forms 10g not runs on 8.1.7.
The list of certified combinations can be found on metalink.oracle.com -
Hi Buddies;
I'm trying to execute FORM 10G, but when I choose Run Form, I get this error message;
Internet Explorer has closed this webpage to help protect your computer
A malfunctioning or malicious add-on has caused Internet Explorer to close this webpage.
Previously I could execute the form, but after some problems in my laptop and had to reinstall the OS.
Now I got this problem.
Have any idea how to solve this?
Also, I was trying using Firefox, but getting similar error message.
Suggestions are welcome.
Regards
AlHi,
You have to replace the JVM.DLL in the directory *<Program Files>\Oracle\JInitiator 1.3.1.22\bin\hotspot* with the latest jvm.dll(2.2Mb) from here.
And if you are using Explorer 8, then do the following.
1. Open Internet Explorer 8
2. Go to Tools, Internet Options
3. Click on the Advanced tab.
4. Scroll down into the Security section and find “Enable memory protection to help mitigate online attacks”.
5. Uncheck “Enable memory protection to help mitigate online attacks”.
6. Click Ok and Ok again.
7. Reboot your computer.Regards,
Manu.
If my response or the response of another was helpful or Correct, please mark it accordingly -
How to connect to SQL Server from Forms 10g?
Hello all,
How do we connect to SQL Server database from Forms 10g?
In Oracle Metalink site they have suggested using Transparent Gateway for SQL Server as a solution.
But is there a way we can connect directly to SQL Server from Forms using an ODBC connection
without installing anything on the database server?
Pls help!
Regards,
SamHello all,
I was able to connect to SQL Server from Oracle using Generic Connectivity (HSODBC).
Transparent gateway was not required.
Followed metalink note 109730.1
So, after I created a dblink to SQL Server, I created a synonym for the dblinked SQL Server table.
When I used the synonym as the table source in Oracle Forms, I got the following error while querying.
"ORA-02070 - ROWID is not supported in this context."
This is because Forms has an invisible ROWID field and when data is fetched from SQL Server table
no Rowid is fetched since SQL Server table doesn't have one.
Is there a way to overcome this issue or do we have populate the block manually using a SQL query ?
Pls suggest.
Regards,
Sam -
Where is default icons location in oracle form 10g
hi,
Can anybody please tell me, where is the default(given below) icons location in oracle form 10g. I want to user that icons in my form.
Image: !c:\icons.gif!
thanks
mohanHi,
Is your problem solved?
This issue occurs because gif images by default are not still images. These are graphical interchange images, i.e. images depicting some kind of action/motion.
If I am not wrong then just to test this out if you open the gif image you are looking at, in pbrush then image will appear in a corner. Now if you modify that image such that you copy only the icon in the corner and then save the copied icon in a new file in gif format then you will be able to see that image in the centre of button, rather over complete button.
Hope this helps!
Av.
Maybe you are looking for
-
How to specify a JRE range in jnlp file?
We have a java app which uses Java Web Start. The jnlp file is configured with [j2se version="1.5+"]. So if JRE 1.5 and 1.6 are installed, the app is run on 1.6. Now, we have requirement where the app should be restricted to run only within the range
-
Yet again, bt bad service (youview gripe already)
(previously tried to cancel vision within 7 days but lets not go there) Great, so i got the emai about youview, was excited to upgrade and get it so i dont have to flick between tv freeview for hd channels anymore. So i ring them up, on the number wh
-
How to create an object of a binary file?
Does anyone know how I may create a serializable object of a binary file? Thanks.
-
Transfer custom labels to a new phone
I am trying to move my contacts from a Nokia E50 to a E71. I have made extensive use of edited (custom) labels in the contacts. Is there a way to transfer labels in contacts from one phone to the other?
-
Hi all, I have created a search help and linked it to a data element. On the field, on clicking on F4 ,I am getting the required values. But the F4 help symbol which comes beside a screen field ,is not coming on my screen. How can I have that icon be