Forms 10g hangs while running a procedure which has got lot of loops
Hi,
When executing a procedure in Forms 10g which fetches millions of records, application getting stuck.
What parameter is required to be changed in forms configuration?
Can any1 help me out???
Thanks in advance,
Natz.
Particularly this passage:
MaxBlockTime
MaxBlockTime is the time in mili seconds to wait when reading data from the
Runform process.
e.g. a long query, lots of complex processing
(default = 1000 milli sec)
/j2EE/OC4J_BI_Forms/application/forms90app/forms90web/WEB-INF/web.xml
or
/j2EE/OC4J_BI_Forms/application/formsapp/formsweb/WEB-INF/web.xml
Example
=======
<servlet>
<servlet-name>l90servlet</servlet-name>
<servlet-class>oracle.forms.servlet.ListenerServlet</servlet-class>
<init-param>
<param-name>maxBlockTime</param-name>
<param-value>1800000</param-value>
</init-param>
</servlet>
or
<servlet>
<servlet-name>lservlet</servlet-name>
<servlet-class>oracle.forms.servlet.ListenerServlet</servlet-class>
<init-param>
<param-name>maxBlockTime</param-name>
<param-value>1800000</param-value>
</init-param>
</servlet>
What happens?
=============
For long requests (like querying a big table), the Listener
Servlet waits for a default time of 1 second for the Forms
runtime process to complete the request
If the request is not completed then the Listener Servlet sends a busy
response to the client asking the client to retry.
The client sends a retry zero content length request to check if the query is
complete.
This default time of 1 second can be configured using Listener Servlet
parameter called maxBlockTime
Reference
=========
Note 218846.1 How to increase Heap size in OC4J in V2
Francois
Similar Messages
-
Short dump while executing few queries , which has got created on Infoset.
Hi,
We went to BI7.0 upgrade from BW3.x now.
We are getting short dump short dump while executing few queries and work book, which has got created on Infoset.
When i was executing work book where i was geting popup message saying that "Erro ZSD_XST_F00121 is invalid".When i click that message it went to dump.
I was getting this error while executing query on infoset.
We are currently SP Stack 13(Patch level 15).
I found some note 1067918 as per the shortdum,where it is saying that you need to apply SP Stack14(patch level16).
Please some one who had earlier this kind of issue.
I appreciate your answer.Dear Krish,
Yes, It is the patch problem.
We too faced the same issue on Infosets.
Apply SP 15.
Regards,
Ram. -
Running a procedure which has parameters using dbms_job.submit
I have a procedure which accepts some parameter and i need to schedule this using dbms_job in another procedure. My intention is to execute test_proc without waiting for test_asynch_proc
CREATE or REPLACE PROCEDURE test_asynch_proc(p_1 in number) as
i number;
BEGIN
for i in 1.. 100000
loop
insert into item_p values (dbms_random.random, p_1,sysdate);
end loop;
commit;
END;
I have another procedure which does an asynchronous call to this procedure by scheduling this procedure.
create or replace procedure test_proc is
jobno binary_integer;
--x number :=100;
begin
insert into test_table values(1,sysdate);
dbms_job.submit(job => jobNo,
what=>'test_asynch_proc(''100'');',
next_date=>sysdate );
commit;
dbms_output.put_line ('insert complete at '|| to_char(sysdate, 'DD-MON-YYYY HH24:MI:SS'));
end;
but here instead of
what=>'test_asynch_proc(''100'');'
i need to give a variable. How can i do that?
Thanks,
mvThere is another possibility where job parameters are stored in a parameter table with the job number that can be retrieved by the job code:
bas002>
bas002> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod
PL/SQL Release 10.2.0.2.0 - Production
CORE 10.2.0.2.0 Production
TNS for 32-bit Windows: Version 10.2.0.2.0 - Production
NLSRTL Version 10.2.0.2.0 - Production
bas002>
bas002> drop table t;
Table dropped.
bas002> drop table p;
Table dropped.
bas002>
bas002> create table t(x int,d date);
Table created.
bas002> create table p(jn int, jp int);
Table created.
bas002>
bas002>
bas002> create or replace procedure test_asynch_proc as
2 begin
3 insert into t select jp, (select sysdate from dual)
4 from p where jn = sys_context('USERENV','BG_JOB_ID');
5 commit;
6 end;
7 /
Procedure created.
bas002> show errors
No errors.
bas002>
bas002> create or replace procedure test_proc (tp number) is
2 jobno binary_integer;
3 begin
4 dbms_job.submit(
5 job => jobno,
6 what=>'test_asynch_proc;',
7 next_date=>sysdate );
8 insert into p values(jobno, tp);
9 commit;
10 end;
11 /
Procedure created.
bas002> show errors
No errors.
bas002>
bas002> alter session set nls_date_format='DD-MON-YYYY HH24:MI:SS';
Session altered.
bas002> select sysdate from dual;
SYSDATE
28-FEB-2008 10:40:13
bas002>
bas002> exec test_proc(1);dbms_lock.sleep(5);
PL/SQL procedure successfully completed.
bas002> select * from t;
X D
1 28-FEB-2008 10:40:17
bas002> exec test_proc(2);dbms_lock.sleep(5);
PL/SQL procedure successfully completed.
bas002> select * from t;
X D
1 28-FEB-2008 10:40:17
2 28-FEB-2008 10:40:22Message was edited by:
Pierre Forstmann
Message was edited by:
Pierre Forstmann -
Oracle Forms Service hangs while run time
I have Oracle 10g, I have a from (10g) I compile and generate when I try to run from Forms Builder, I hang in a screen while is said "Oracle Application Server - Forms Service" any iideas what might be wrong of what should I check
This sounds like a configuration issue to me. Have you modified the "default.env" file (found in %ORACLE_HOME%\forms\server) to include the path to your form in the FORMS_PATH variable? Have you installed the Oracle Jinitiator or modified the formsweb.cfg file to use the Sun JRE? If you have installed the Jinitiator or are using the Sun JRE, what version did you install? The formsweb.cfg file defaults to Jinitiator version: 1.3.1.26 and Sun JRE version: 1.4.2_06. If you have a newer version installed you will need to update the version in the formsweb.cfg to match the installed version.
Hope this helps,
Craig... -
Error while running a Query which has measures from both facts
Hi Guys,
I have three tables. 1 Dimension table D1 and two fact tables F1 and F2.
D1 has columns ------> Accountid, Account Number
F1 has Columns ------> Accountid,Current Balance1, Balance Type
F2 has Columns ------> Accountid,Current Balance2
Now i want to run a report like
D1.Account Number,F1.Current Balance1,F2.Current Balance2, F1.Balance Type.
When i run this Report then i am getting values only for F1.Current Balance1 and F2.Current Balance2 is Null.
But when i remove F1.Balance Type from Query i am getting both F1.Current Balance1 and F2.Current Balance2.
Can any one help me with this.
Thanks
Rondo.RONDO wrote:
Hi Guys,
I have three tables. 1 Dimension table D1 and two fact tables F1 and F2.
D1 has columns ------> Accountid, Account Number
F1 has Columns ------> Accountid,Current Balance1, Balance Type
F2 has Columns ------> Accountid,Current Balance2
Now i want to run a report like
D1.Account Number,F1.Current Balance1,F2.Current Balance2, F1.Balance Type.
When i run this Report then i am getting values only for F1.Current Balance1 and F2.Current Balance2 is Null.
But when i remove F1.Balance Type from Query i am getting both F1.Current Balance1 and F2.Current Balance2.
Can any one help me with this.
Thanks
Rondo.Run the report again and get the SQL from the log and run it in TOAD/(Any SQL Developer). Then check for the joins and filters in the SQL.
Correct the joins and filters appropriately in the SQL to make sure you got it right before implementing the same changes in the RPD.
Hope this helps. -
In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String , for executing the Stored Procedure with Current date as the input .
Hi Srinath,
The below blog might be useful
http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/03/06/executing-stored-procedure-from-sender-adapter-in-sap-pi-71
PI/XI: Sender JDBC adapter for Oracle stored procedures in 5 days
regards,
Harish -
How to call a stored procedure which has out parameter value
my code is
public Connection createConnection() {
Connection conn = null;
try {
Class.forName(DRIVER);
conn = DriverManager.getConnection(URL,USER,PASS);
} catch (ClassNotFoundException cnfe) {
System.err.print("Class not found");
} catch (SQLException sqle) {
System.err.print("SQLException");
return conn;
public static void main(String args[]){
StroedProcedure stp = new StroedProcedure();
Connection con = stp.createConnection();
try {
CallableStatement stproc_stmt = con.prepareCall("{call Account_Summary(?,?,?,?,?,?,?,?)}");
stproc_stmt.setString(1, "123456");
stproc_stmt.setDate(2, null);
stproc_stmt.setString(3, null);
stproc_stmt.setString(4, null);
stproc_stmt.setString(5, null);
stproc_stmt.setString(6, null);
stproc_stmt.setDate(7, null);
stproc_stmt.setDate(8, null);
stproc_stmt.registerOutParameter(1,Types.CHAR);
stproc_stmt.registerOutParameter(2,Types.DATE);
stproc_stmt.registerOutParameter(3,Types.CHAR);
stproc_stmt.registerOutParameter(4,Types.CHAR);
stproc_stmt.registerOutParameter(5,Types.CHAR);
stproc_stmt.registerOutParameter(6,Types.CHAR);
stproc_stmt.registerOutParameter(7,Types.DATE);
stproc_stmt.registerOutParameter(8,Types.DATE);
stproc_stmt.execute();
System.out.println("test "+stproc_stmt.getString(1));
ResultSet rs = stproc_stmt.executeQuery();
while (rs.next()){
System.out.println("result "+rs.getString("ACCPK"));
} catch (SQLException e) {
e.printStackTrace();
}And the stored procedure is
CREATE OR REPLACE
procedure Account_Summary (accpk in out char, incdt out date, bcur out char, bmark out char, tarTE out char, numHold out char, stDt out date, AsDt out date)
is
begin
select account_pk, inception_date, base_currency, benchmark into accpk, incdt, bcur, bmark
from account a
where a.Account_pk=accpk;
select target_te, number_holdings, start_date, as_date into tarTE, numHold, StDt, AsDt
from acc_summary asum
where asum.account_pk=accpk;
end Account_Summary;but it gives a exception ORA-01460: unimplemented or unreasonable conversion requested
ORA-06512: at "REPRO.ACCOUNT_SUMMARY", line 4
ORA-06512: at line 1
i want to execute a stored procedure which has in , inout or out parameter
but it can not work========================
In some contects varchar2 variable limit is 32512 characters... October 16, 2003
Reviewer: Piotr Jarmuz from Poznan, Poland
Interesting to note is the fact that varchar2 variables as parameters to stored
procedures (in in/out out) may be "only" 32512 bytes long.
I've checked this in Java and Perl. 32512 is the last value that works, for any
bigger it throws:
Exception in thread "main" java.sql.SQLException: ORA-01460: unimplemented or
unreasonable conversion requested
But in PL/SQL as you said 32767
Regards,
Piotr
=================================
This i got it from ask tom, well it make sense.... try checking your input with small numbers and strings
Have fun -
i have downloaded firefox. while running the software i have got an error as "software corrupt".what is the problem i am facing?
-> Uninstall your current Firefox
* https://support.mozilla.com/en-US/kb/Uninstalling%20Firefox
* DO NOT SELECT TO REMOVE USER DATA AND SETTINGS
* Restart your system
-> Download latest Firefox version from one of these links using some other Web Browser:
* http://www.mozilla.com/en-US/firefox/new/
* http://www.mozilla.com/en-US/firefox/central/
* http://www.mozilla.com/en-US/firefox/fx/
* http://www.mozilla.com/en-US/firefox/all.html
-> Install Firefox using the downloaded & saved Firefox installer file
* https://support.mozilla.com/en-US/kb/Installing%20Firefox%20on%20Windows
Check and tell if its working. -
How to Create a datatype for a storeprocedure which has got array ?
Hi All,
Please tell me how to create a datatype for a storeprocedure which has got an array structure ?
Thanks,
Sindhu.Hi Sindhu.
You would have to use a JDBC Cursor for this but it's possible only Output parameters, not Input parameters.
It's describle in a help link:
Defining an EXECUTE Statement http://help.sap.com/saphelp_nwpi711/helpdata/en/44/7b72b2fde93673e10000000a114a6b/frameset.htm
The following SQL data types are supported:
INTEGER, BIT, TINYINT, SMALLINT, BIGINT, FLOAT, REAL, DOUBLE, NUMERIC, DECIMAL, CHAR, VARCHAR, STRING, LONGVARCHAR, DATE, TIME, TIMESTAMP, BINARY, VARBINARY, LONGVARBINARY, BLOB (input and output), CLOB (input and output), CURSOR (output; only in connection with the Oracle JDBC driver)
I think you can execute your StoreProcedure many times depends of array occurs.
Regards.
Bruno. -
Retrieval of Mail Id's present in Distribution lists which has got deleted!
Hi All,
We are facing a problem regarding the deletion of distribution lists (reason not known) and they were retrieved from the trash folder in SBWP (SAP Business Work Place - the SAP inbox). But there was no trace to go back and look who deleted it and what all distribution lists were deleted. We can retrieve only when something is there in the trash folder. If not in trash folder, then itu2019s gone forever and we cannot retrieve.
So we have implemented two OSS notes. Now we are able to get the details i.e. the name of the distribution list as well as who has deleted it.
Now we need to find the mail Idu2019s present in distribution lists which has got deleted.
We have done some analysis but not able to do this.
So can anybody provide needful information.
Regards,
Sagar.I also face the same problem: distribution list got deleted(reason unknown), you mentioned that you implemented 2 OSS note, can you kindly let me know what are the 2 OSS notes implemented?
-
Forms 10g installed and running on Windows Vista
<font color=0000FF>Update 12-Dec-2008: </font>Oracle has published NOTE 559067.1 -- How to Install Developer Suite 10.1.2.0.2 - hence 10.1.2.3 - on Windows Vista, 24-OCT-2008 with some installation help.
<font color=0000FF>Update 07-July-2008: </font> Added text at the bottom showing how to find patchsets for Forms 10g.
<font color=0000FF>Update 29-May-2008: </font> This thread was started in November, 2007. In January, 2008, Oracle released Patch 3 for Forms 10g, which makes Forms 10g compatible with Windows Vista. As time permits I'll try to keep the information in this post up to date. Updated information will be inserted <font color=0000FF>as blue text.
</font>
<font color=0000FF>Original message begins here:</font>
This is a second thread I am posting to outline the steps I have used to install Forms on a Windows Vista Home Basic laptop. The other thread describes installing Forms 6i:
Forms 6i installed and running on Windows Vista
Please read through the initial part of that post for the background. I realize Oracle has not certified Forms 10g to run on Vista, but the time has come for my associates and I to upgrade our old computers to new desktop/laptop platforms, and I would hate to acquire XP machines and be stuck with them for the next 5 years. <font color=0000FF>(Note: Since first posting this message, Oracle has certified Forms 10g Patch 3 (version 10.1.2.3.0) to run on Vista)</font> So after another person informed me that he had Forms installed and running on Vista, I went ahead and bought one. I found that as long as I set the compatibility mode to run Forms programs as Windows XP (and a few other changes), Forms 6i and 10g run quite satisfactorily.
<font color=0000FF>Update 29-Jan-2008: </font> Unfortunately, it turns out that the Forms 10g Builder running on Vista <font color=0000FF>had</font> a major flaw: If you try to develop a form, the Builder will crash if you try to compile a procedure that calls another procedure in the form that has errors. The problem is reported and described in this thread: Error compiling a form under Vista
<font color=0000FF>Update 12-Mar-2008: </font> Installing Patch 3 on Vista does not help with this problem -- the Builder still crashes in the same situation.
<font color=0000FF>Update 25-July-2008: </font> Applying Patch 7047034 has corrected the problem. See this link within this thread: Forms 10g: Installing Patch 7047034 on Windows Vista
Webutil note: I am stuck in a Forms 6i client/server world, so all my forms must run in that environment. Therefore I have not used any Webutil software, and I do not know whether that part will run under Vista.
Internet Explorer note: On Windows Vista, IE CANNOT be used to run the Web Forms runtime. It crashes immediately when you try to run a form. Instead, I can use either Firefox (Firefox 2, Firefox 3.0 Crashes with Forms 10g) or Netscape, as long as they are set to disable java. <font color=0000FF>[ Correction: IE7 on Vista now runs the Forms 10g forms. You just need to add "?config=jpi" to the browser URL when starting the Web Forms session. More IE/Vista info: [url=http://forums.oracle.com/forums/thread.jspa?threadID=642973]Vista JInitiator Problem ]</font>
The Oracle Developer Suite download page:
http://www.oracle.com/technology/software/products/ids/index.html
Oracle Developer Suite Installation Guide:
http://download.oracle.com/docs/cd/B25016_07//doc/dl/core/B16012_04/toc.htm
The steps below are those I followed to install Forms 10g (version 10.1.2.0.2)
I. Preliminary system changes in Windows
When I started installing, I got the following error message: Install has encountered an error while
attempting to verify your virtual memory settings.
Please verify that the sum of the initial sizes of
the paging files is at least 256 MB.To fix this: Go to Control Panel, System and Maintenance, View amount of RAM and processor speed (under "System"),
Advanced system settings (in left "Tasks" column), Advanced tab, Settings (under "performance"), Advanced tab:
Virtual Memory shows a "Total paging file size for all drives: 2337MB.
Click "change", Uncheck "Automatically manage paging file size for all drives"
Click "custom size:", set Initial size to: 2048, Max to 4096
Click set button, then OK, get message:The changes you have made require you to restart your computer before
they can take effect.Restart the computer.
II. Installing Forms 10g
1. Download two files from Oracle:
ds_windows_x86_101202_disk1.zip (626,122,752 bytes)
ds_windows_x86_101202_disk2.zip (236,880,881 bytes)
2a. Before extracting, it is a good idea to shut down any virus protection software. It can sometimes prevent some files from being created.
2b. Extract both into the C:\oracle directory, as disk1 and disk2.
3. Using Windows Explorer, change the properties of setup.exe in the C:\oracle\disk1 folder. (In windows explorer, right click, properties, Compatibility tab.) Change the compatibility to run as Windows XP (Service Pack 2).
4. Right click setup.exe and click "Run as administrator"
5. Select "Installation type" = Complete (1.11 GB)
6. Received this message:Windows Firewall has blocked this program from
accepting incoming network connections. If you
unblock this program, it will be unblocked on all
public networks that you connect to.
C:\users\steve\appdata\local\temp\orainstall...
2007-10-29_11-59-08am\jre\1.4.2\bin\javaw.exeI clicked "Unblock"
7. Received this message: "Provide outgoing mail server information" I entered the smtp mail server that I use.
8. A summary screen displayed showing 274 products under New Installations.
I clicked the Install button.
9. Received this message: You can find a log of this install session at:
C:\Program Files\Oracle\Inventory\logs\installActions2007.....log
10. The installation completed. Installed products shows Forms 10.1.2.0.2
III. After the install completed
1. Create a shortcut to the Forms 10 Builder on the Desktop.
On the shortcut line, after the .exe, add *userid=userxxx/pwxxx@orcl* so Builder automatically logs into 10g database. If you do step 4 below (creating an easily-accessible folder to use for your forms) change the "Start in" path on the shortcut so it points to that folder. Otherwise, Forms Builder will not find referenced objects and PLL libraries when it opens a form. Also do the same on the Start, All Programs shortcut for the Forms Builder.
Edit: After applying Patch 3, the following steps are not necessary.
Set its compatibility to Windows XP.
Set checkbox: "Run this program as as an administrator." (Without this, FormBuilder will NOT open a PLL library.)
Click the "Show settings for all users" and change values there.
2. Copy "Start OC4J Instance" icon to desktop.
Set its compatibility to Windows XP.
The first time it runs, I got a Windows popup to unblock program named Java. I clicked "Unblock".
3. tnsnames.ora:
Rename C:\oracle\DevSuiteHome_1\network\admin\tnsnames.ora
to: tnsnames_orig.ora
If you created a tnsnames.ora file for Forms 6i, just copy it to the path above. If not, do this:
Create a new tnsnames.ora file, copying entries old file on my old laptop, which contains all the connections I use.
Delete the old laptop entry, replace with new entry for the new local ORCL connection on new laptop from tnsnames file renamed from the c:\oracle\... ...\10.2.0\db_1\ path.
4. Optional: Create an easily accessible folder to store fmb files:
C:\users\steve\.1\fmb10
You don't really want to keep drilling into C:\oracle\DevSuiteHome_1\forms, and then find your .fmb file among the several dozen oracle-supplied files.
To create a folder named .1, you have to open a CMD.exe (Windows DOS) window, and type the Make Directory command:
MD .1
That will create the folder within the current directory -- mine defaults to C:\users\steve
Note: If you also need to use Forms 6i like me, DO NOT EVER open a .fmb file in the Forms 10 Builder from the Forms 6i folder. If you compile it, or even worse, save the .fmb, Forms 6i *cannot ever* access the file. Instead, always use the File Manager (Windows Explorer) to copy the fmb from the fmb6 folder into the fmb10 location.
5. Change the Forms 10g Default.env file using a text editor.
This file replaces all the settings originally written to the Windows Registry (GREAT idea, Oracle! I hate the registry.) No more Regedit. The default.env file is located at: (DevSuiteHome_1 path)\forms\server\default.env
Locate line with: FORMS_PATH= and add:
;C:\users\steve\.1\fmb10
Add a new line:
FORMS_MMAP=FALSE
The above allows compiling an fmx while the form is running.
Add a new line:
FORMS_ROWLOCK_OPTIMIZATION=FALSE
(This fixes Oracle bug number 3949854, which prevents automatic skipping if the same value is typed over another value. TAR 4806199.993 Automatic Skip failure...) See bug 4068896
Add a new Line:
FORMS_RESTRICT_ENTER_QUERY=False
This allows use of Query-Where window in enter query, after entering a colon in any input field. Without this, Forms returns FRM-40367: Invalid criteria in field nnn in example record. Oracle shut it down to prevent "sql injection" attacks.
6. Jiniator setup:
Run file jinit.exe in C:\oracle\DevSuiteHime_1\jinit\jinit.exe
It installs Jinitiator 1.3.1.22.
I installed it in C:\oracle\JInitiator 1.3.1.22\
For Firefox, make sure a copy of file \bin\NPJinit13122.dll resides in C:\Program Files\Mozilla Firefox\plugins.
For Netscape, the path is: C:\Program Files\Netscape\Navigator 9\plugins
7. Browser settings
See the note above about using Firefox 2 and not Firefox 3!
In Firefox 2 go to: Tools-> Options-> Content
Uncheck the "Enable Java" checkbox
--Firefox terminates if this is not done!
Note: After my system automatically installed updates to either java or Firefox, re-check the "Enable Java" setting. I am suspicious that one of these installs re-enables java in the browser.
Also note: some web sites cannot display properly if java is disabled. Example: U.S. time website: http://www.time.gov Use Internet Explorer to view these.
In Netscape make the same changes as Firefox. Without disabling java, it also terminates when you try to run a form.
Creating a url to use in the browser:
Try this:
http://127.0.0.1:8889/forms/frmservlet
If it does not work, change the 8889 port number as follows:
Open file: C:\oracle\DevSuiteHome_1\install\portlist.ini
Note the number in line:
Oracle Developer Suite HTTP port = 8889
Use the number as the port number.
You can also change the 127.0.0.1 to the computer name:
Control Panel, System and Maintenance, See the name of this computer (under "System"). Mine is "steve-PC"
So the alternate URL is: http://steve-PC:8889/forms/frmservlet
To try out the URL, start the OC4J instance set up above. Then start either Netscape or Firefox, and enter the URL. You should get a welcome screen.
If the above URL works, start up the Forms Builder, and open Edit, Preferences. On the General tab, uncheck the "Build before running" check box (optional). On the Runtime tab, set the "Application Server URL to the url above.
To run a real form, add this to the URL after frmservlet, (with no spaces):
?form={formname}&userid={userxxx}/{passwordyyy}@{connect-string}
but replace the parts in curly braces with the appropriate values. Example:
http://127.0.0.1:8889/forms/frmservlet?form=ABC&userid=abc123/zyx@orcl
Setting up Forms Builder to directly run a form in the browser:
Run the Forms Builder. Go to Edit, Preferences, Runtime tab.
Set the Application Server URL to:
http://127.0.0.1:8889/forms/frmservlet
(or use whatever URL string you developed above)
Set the Web Browser Location to:
"C:\Program Files\Netscape\Navigator 9\navigator.exe"
(or an equivalent to run the Firefox browser).
8. FORMSWEB.CFG file changes
The file is located at:
C:\ORA_DS_101202\DevSuiteHome_1\forms\server\formsweb.cfg
I changed the following two lines in the file, but these are my personal preferences:
separateFrame=true
lookandfeel=Generic
9. FMRWEB.RES file changes
For Oracle help: Enabling Key Mappings
The file fmrweb.res defines actions (triggers that run) when a function key is pressed while running Forms. The one released has unix-style key mapping, but I prefer keys originally mapped for Windows PC Forms users. There is a fmrpcweb.res in the same folder that can be renamed to fmrweb.res.
In the C:\oracle\DevSuiteHome_1\forms path, I renamed fmrweb.res to fmrweb_orig.res.
I have a file that I prefer to use, so I put it into the folder as fmrweb.res. The contents are listed below. It is organized so the most important keys are listed alphabetically at the top (URFD column is the sort column), followed by a group of less-important keys. These are keys that are available to users, but they either would not use, or are disabled within most forms. The URFD column in the second set starts with a hex A0 character, which is a high-order space, so collates after normal alphabetic characters. (Note: If you want to copy the text below and use it, the hex A0 character has been changed by the forum software to a space. So you would need to use a text editor with hexadecimal character capabilities to replace the space with the original character. )
My file has special keys defined for F2 (I use it for a debugging Key-F2 trigger in my forms), and a "Cursor to Home" F12 function. All the rest are pretty much the same as in the released fmrpcweb.res file, only mine are organized alphabetically on the URFD column.
The Web Forms fmrweb.res file is editable using any programming editor (NOT MS Word!!!). The old Client/Server key mapping file, fmrusw.res, could only be changed using the Oracle Terminal program (and it is a pain to use).
Here is the main part of my fmrweb.res file:#
#Jfn :Jmn: URKS :Ffn : URFD
# : : (User-readable : : (User-readable
# : : Key-sequence ) : : function description)
118 : 1 : "Shift F7" : 74 : "Clear Form"
121 : 0 : "F10" : 36 : "Commit"
117 : 0 : "F6" : 65 : "Create Record"
10 : 1 : "Shift Enter" : 82 : "Cursor to Home" # sdsu uses this
123 : 0 : "F12" : 82 : "Cursor to Home" # sdsu uses this
#: --Alt+Home works, but leaves the Action (first
#: --pull-down menu item) highlighted. Press Esc or
36 : 8 : "Alt Home, then Alt" : 82 : "Cursor to Home" #-- Alt again to clear highlight.
117 : 1 : "Shift F6" : 63 : "Delete Record"
119 : 0 : "F8" : 77 : "Execute Query"
120 : 0 : "F9" : 29 : "List of Values"
9 : 0 : "Tab" : 1 : "Next Field"
40 : 0 : "Down-Arrow" : 7 : "Next Record"
9 : 1 : "Shift Tab" : 2 : "Previous Field"
38 : 0 : "Up-Arrow" : 6 : "Previous Record"
112 : 0 : "F1" : 35 : "Show Keys"
116 : 1 : "Shift F5" : 69 : " Clear Block"
116 : 2 : "Ctrl F5" : 3 : " Clear Field"
113 : 1 : "Shift F2" : 80 : " Count Query Hits"
112 : 1 : "Shift F1" : 78 : " Display Error"
114 : 0 : "F3" : 73 : " Duplicate Item"
115 : 0 : "F4" : 64 : " Duplicate Record"
69 : 2 : "Ctrl E" : 22 : " Edit Field"
122 : 0 : "F11" : 75 : " Enter " # Causes validation, w/o cursor move
118 : 0 : "F7" : 76 : " Enter Query"
81 : 2 : "Ctrl Q" : 32 : " Exit"
112 : 2 : "Ctrl F1" : 30 : " Help"
34 : 0 : "Page Down" : 66 : " Next Set of Records"
119 : 1 : "Shift F8" : 79 : " Print"
10 : 0 : "Enter/Return key": 27: " Enter/Next Field"
33 : 0 : "Page Up" : 12 : " Scroll Up"
116 : 0 : "F5" : 87 : " F5 Key for special uses"
#121 : 3 : "Shift Ctrl F10" : 82 : " Function 0" #--disabled. Cursor to home defined above
112 : 3 : "Shift Ctrl F1" : 83 : " Function 1"
113 : 0 : "F2" : 84 : " Function 2"
113 : 11: "Ctrl Alt Shift F2":95: " List Tab Pages" #<-REQUIRED, or F2 cant be assigned
114 : 3 : "Shift Ctrl F3" : 85 : " Function 3"
115 : 3 : "Shift Ctrl F4" : 86 : " Function 4"
117 : 3 : "Shift Ctrl F6" : 88 : " Function 6"
118 : 3 : "Shift Ctrl F7" : 89 : " Function 7"
119 : 3 : "Shift Ctrl F8" : 90 : " Function 8"
120 : 3 : "Shift Ctrl F9" : 91 : " Function 9"<B>Finding Forms 10g Patchsets</B>
Here is how to do the search: Log into metalink ( https://metalink.oracle.com ), then click on the Patches & Updates tab, then Simple Search.
In "Search by", select Product or Family. Enter "Developer Forms" in the box.
Then click the Release choices, and select "iAS 10.1.2.3"
Patch Type should be "Patchset/Minipack"
Platform or Language should be "Microsoft Windows (32-bit)"
Click Go, and the Forms 10g patch should show up. As of July, 2008 the only one available is: [url=
https://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=5983622&release=1710123&plat_lang=912P&patch_num_id=943599
]5983622
Edited 2008-12-12 to add a link to Oracle Note 559067.1 and added the fmrweb.res file listing.
Edited 2008-10-28 to change text format to work better within new forum format
Edited 2008-7-7 to add patchset search information.
Edited 2008-4-21 to modify information.
Edited 2008-3-6 to add information.
Edited 2008-5-29 to update information.I followed your instructions and installed Developer Suite 10G on Windows Vista Home Premium edition. I have Oracle 11G DB running on the same machine.
Two points, Steve:
1. When I tried to set the maximum virtual memory to 6110 an error message displayed from Windows and told me that I can't set the maximum virtual memory to more than 4096. I set it to 4090 and it worked and I got nothing wrong during the installation process.
2. After installing JInitiator and disabling Java on Firefox I called the http://127.0.0.1:8889/forms/frmservlet page and everything seemed to be OK because the Oracle Forms Services logo appeared and then a successful installation message appeared , but as I clicked (ok) to continue a gray screen appeared inside the browser (like the one displayed when you try to run a Java applet inside a browser) and then I wait to death till something appears but sadly nothing. I just get a blank gray screen inside my Firefox browser.
Do you have any idea what to do to solve the problem?
Regards -
Prevent form/timer hanging while holding the minimize button
I got troubles when the customers holding the minimize button (without release) on my form, it make all forms and all timers/controls entirely hanging. And thus make some exception bugs for my application.
Steps to Reproduce Behavior:
In Form1, create a Timer1 & Label1 and paste this code :
Public Class Form1
Public a As Long
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Enabled = True
Timer1.Interval = 1
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
a = a + 1
Label1.Text = a
End Sub
End Class
Press F5 to run the application. You will see the number display on Label1 increase rapidly. Now try to hold the Minimize button and the timer will hang up, label1 stop increasing. Release the minimize button will make the timer resume increasing.
I want my timer and all controls in form still working while holding the minimize button. Is there any good resolution for my issue ?various possible resolution. remove controlbox. remove text. draw text if wanted. draw controls. use system.timers.timer. system menu removed so no menu for move size minimize maximize close available.
https://msdn.microsoft.com/en-us/library/system.timers.timer(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1
form transparent background in image. movement or buttons not affect timer may affect display speed.
Option Strict On
Imports System.Timers
Public Class Form1
' Code from this link - http://www.dreamincode.net/forums/topic/275178-drawing-icon-on-form-border/
WithEvents Timer1 As New System.Timers.Timer
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.FormBorderStyle = Windows.Forms.FormBorderStyle.Sizable
Me.ControlBox = False
Me.Text = ""
Me.Location = New Point(CInt((Screen.PrimaryScreen.WorkingArea.Width / 2) - (Me.Width / 2)), CInt((Screen.PrimaryScreen.WorkingArea.Height / 2) - (Me.Height / 2)))
Timer1.Interval = 10
AddHandler Timer1.Elapsed, AddressOf Timer1_Elapsed
End Sub
Private Sub Form1_FormClosing(sender As Object, e As FormClosingEventArgs) Handles Me.FormClosing
Timer1.Enabled = False
End Sub
'A form with custom border and title bar.
'Some functions, such as resize the window via mouse, are not implemented yet.
'The color and the width of the border.
Private borderColor As Color = Color.GreenYellow
Private borderWidth As Integer = 3
'The color and region of the header.
Private headerColor As Color = Color.GreenYellow
Private headerRect As Rectangle
'The region of the client.
Private clientRect As Rectangle
'The region of the title text.
Private titleRect As Rectangle
'The region of the minimum button.
Private miniBoxRect As Rectangle
'The region of the maximum button.
Private maxBoxRect As Rectangle
'The region of the close button.
Private closeBoxRect As Rectangle
'The states of the three header buttons.
Private miniState As ButtonState
Private maxState As ButtonState
Private closeState As ButtonState
'Store the mouse down point to handle moving the form.
Private x As Integer = 0
Private y As Integer = 0
'The height of the header.
Const HEADER_HEIGHT As Integer = 25
'The size of the header buttons.
ReadOnly BUTTON_BOX_SIZE As Size = New Size(15, 15)
Dim Test As Boolean = False
Private Sub CustomBorderColorForm_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
'Draw the header.
Using b As Brush = New SolidBrush(Color.FromArgb(10, Color.White))
e.Graphics.FillRectangle(b, headerRect)
End Using
'Draw the title text
If Test = False Then
Using b As Brush = New SolidBrush(Me.ForeColor)
e.Graphics.DrawString("Anything you want Baby", Me.Font, b, titleRect)
End Using
ElseIf Test = True Then
Using b As Brush = New SolidBrush(Me.ForeColor)
e.Graphics.DrawString("Hello Dolly", Me.Font, b, titleRect)
End Using
End If
'Draw the header buttons.
If Me.MinimizeBox Then
ControlPaint.DrawCaptionButton(e.Graphics, miniBoxRect, CaptionButton.Minimize, miniState)
End If
If Me.MinimizeBox Then
ControlPaint.DrawCaptionButton(e.Graphics, maxBoxRect, CaptionButton.Maximize, maxState)
End If
If Me.MinimizeBox Then
ControlPaint.DrawCaptionButton(e.Graphics, closeBoxRect, CaptionButton.Close, closeState)
End If
'Draw the border.
ControlPaint.DrawBorder(e.Graphics, clientRect, borderColor, _
borderWidth, ButtonBorderStyle.Solid, borderColor, borderWidth, ButtonBorderStyle.Solid, borderColor, borderWidth, ButtonBorderStyle.Solid, borderColor, borderWidth, ButtonBorderStyle.Solid)
End Sub
'Handle resize to adjust the region ot border, header and so on.
Private Sub CustomBorderColorForm_Resize(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Resize
headerRect = New Rectangle(Me.ClientRectangle.Location, New Size(Me.ClientRectangle.Width, HEADER_HEIGHT))
clientRect = New Rectangle(New Point(Me.ClientRectangle.Location.X, Me.ClientRectangle.Y + HEADER_HEIGHT), _
CType(New Point(Me.ClientRectangle.Width, Me.ClientRectangle.Height - HEADER_HEIGHT), Drawing.Size))
Dim yOffset = (headerRect.Height + borderWidth - BUTTON_BOX_SIZE.Height) / 2
titleRect = New Rectangle(CInt(yOffset), CInt(yOffset), _
CInt(Me.ClientRectangle.Width - 3 * (BUTTON_BOX_SIZE.Width + 1) - yOffset), _
BUTTON_BOX_SIZE.Height)
miniBoxRect = New Rectangle(Me.ClientRectangle.Width - 3 * (BUTTON_BOX_SIZE.Width + 1), _
CInt(yOffset), BUTTON_BOX_SIZE.Width, BUTTON_BOX_SIZE.Height)
maxBoxRect = New Rectangle(Me.ClientRectangle.Width - 2 * (BUTTON_BOX_SIZE.Width + 1), _
CInt(yOffset), BUTTON_BOX_SIZE.Width, BUTTON_BOX_SIZE.Height)
closeBoxRect = New Rectangle(Me.ClientRectangle.Width - 1 * (BUTTON_BOX_SIZE.Width + 1), _
CInt(yOffset), BUTTON_BOX_SIZE.Width, BUTTON_BOX_SIZE.Height)
Me.Invalidate()
End Sub
Private Sub CustomBorderColorForm_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDown
'Start to move the form.
If (titleRect.Contains(e.Location)) Then
x = e.X
y = e.Y
End If
'Check and press the header buttons.
Dim mousePos As Point = Me.PointToClient(Control.MousePosition)
If (miniBoxRect.Contains(mousePos)) Then
miniState = ButtonState.Pushed
ElseIf (maxBoxRect.Contains(mousePos)) Then
maxState = ButtonState.Pushed
ElseIf (closeBoxRect.Contains(mousePos)) Then
closeState = ButtonState.Pushed
End If
End Sub
Private Sub CustomBorderColorForm_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseMove
'Move and refresh.
If (x <> 0 And y <> 0) Then
Me.Location = New Point(Me.Left + e.X - x, Me.Top + e.Y - y)
Me.Refresh()
End If
End Sub
Private Sub CustomBorderColorForm_MouseUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseUp
'Reset the mouse point.
x = 0
y = 0
'Check the button states and modify the window state.
If miniState = ButtonState.Pushed Then
Me.WindowState = FormWindowState.Minimized
miniState = ButtonState.Normal
ElseIf maxState = ButtonState.Pushed Then
If Me.WindowState = FormWindowState.Normal Then
Me.WindowState = FormWindowState.Maximized
maxState = ButtonState.Checked
Else
Me.WindowState = FormWindowState.Normal
maxState = ButtonState.Normal
End If
ElseIf closeState = ButtonState.Pushed Then
Me.Close()
End If
End Sub
'Handle this event to maxmize/normalize the form via double clicking the title bar.
Private Sub CustomBorderColorForm_MouseDoubleClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDoubleClick
If (titleRect.Contains(e.Location)) Then
If Me.WindowState = FormWindowState.Normal Then
Me.WindowState = FormWindowState.Maximized
maxState = ButtonState.Checked
Else
Me.WindowState = FormWindowState.Normal
maxState = ButtonState.Normal
End If
End If
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
If Test = False Then
Test = True
Me.Invalidate()
Else
Test = False
Me.Invalidate()
End If
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
If Timer1.Enabled = False Then
Timer1.Enabled = True
Else
Timer1.Enabled = False
End If
End Sub
Private Sub Timer1_Elapsed(sender As Object, e As ElapsedEventArgs)
Invoke(New Timer1sDelegate(AddressOf Timer1sSub))
End Sub
Private Delegate Sub Timer1sDelegate()
Private Sub Timer1sSub()
Label1.Text = Now.Ticks.ToString
End Sub
End Class
La vida loca -
Help on ORA-06550 & PLS-00363 Error while running a procedure from a packag
Greeting All,
I ran the following procedure from a package on a command line in sqlplus:
SQL> exec QUALITY_ASSURANCE.COPY_SW_RESOURCES(2009,2010,9508);Where '2009' is the old fiscal year, '2010' is the new fiscal year and '9508' is the error code passed from the calling program. But, I received the following error messages:
ERROR at line 1:
ORA-06550: line 1, column 53:
PLS-00363: expression '9508' cannot be used as an assignment target
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Any thoughts, suggestions and/or advice to resolve these errors.
Thanks in advance.Orchid wrote:
Justin,
Thanks for your response and information. Yes, Theoa was correct the 3rd parameter is an OUT variable, and it is a numeric field. The procedure was called by a form as follows:
QUALITY_ASSURANCE.COPY_SW_RESOURCES(:BLK_CONTROL.FROMFY,:BLK_CONTROL.TOFY,V_ERR);But the form does not work so I am trying to isolate the problem by running the procedure by itself in sqlplus to make sure there is no problem with the procedure.
Yesterday, I was able to run the procedure in Toad for Oracle to a successful completion by providing the 3 parameters: (2009, 2010, null). Just wonder why I cannot run the same procedure with the same parameters on a command line in sqlplus as follows:
exec QUALITY_ASSURANCE.COPY_SW_RESOURCES(2009,2010,null);So, if I understand your suggestion correctly, in order to run the procedure with the 3 parameter successfully in sqlplus,
I have to declare the 3rd parameter in PL/SQL. That is to create a PL/SQL file as suggested and run the file, correct? CORRECT! -
Forms 10g crashes while opening an oversize Oracle seeded form
Hi,
I am trying to open Oracle R12 seeded form 'PAXPREPR' using forms 10g. I connect to the database before opening the file. The size of the file is 11.8MB.
But when i open this file, oracle forms crashes without any error message.
I checked the 11i version of same form, that is of size 6.07 MB, and that opens fine with forms 10g.
Is it a way i can reduce the size of file, or open it with some way. I just want to have look into some code in the form, and find out any changes done from 11i to R12.
My form builder version is Forms [32 Bit] Version 10.1.2.0.2
and running on Windows 7.
Thanks!!
HarleenApply the patches mentioned in MOS note 1292919.1 Certification of Oracle Developer Suite 10g (10.1.2) on Windows 7 (32-bit) plus Note 727410.1 Form/Report Builder 10.1.2.3 Crashes When Trying to Open a Form/Report
cheers -
Reports Builder 10g hanging while printing
Hi all,
We have a printing issue with our Reports Builder 10g. When I run a report, select FILE and PRINT and click o.k, Reports Builder hangs where it trys to format page one. Any suggestions?
Thanks,
MikeStrange, my ReportBuilder works with File/Print but hangs when printing from the print icon.
ReportBuilder is not a robust product. It hangs and crashes frequently. Little has been done to correct. Except for the auto-save/crash-recovery feature - that is a job saving addition to the product.
That said, lots-o-features get added from one release to the next, but precious little attention seems to be given to improving stability.
Maybe you are looking for
-
How can I connect with an Adobe representative to assist me with this Creative Cloud and the software that I paid for since July 2014 and can't use it on my computer?
-
CO02 - Change Production Order
Hello, I have setup a workflow event to trigger if a production order is released using tcode BSVZ - System/user status events (which I read about in the SDN forum). This seems to work just fine for an order release. However, I have not found a way
-
Portal server with WLS 6.1 SP2
Hi, Has anybody installed Portal server 4.0 with WLS 6.1 with service pack 2. I got the following problem: I changed my WLS6.0 to 6.1 sp2 on WinNT. Starting install Portal 4.0, it went through well. However, I couldnot start Portal server. Hereis the
-
Hi All, We have SOA cluster and standalone both 10g environments, we want to upgrade to 11g (including all the Infrastructure, BPEL, ESB etc) Is there any document for this migration activity ? Regards Kumar
-
Hi everyone, I'm using Site Studio Designer 10gR4 to create a new Fragment for our IGBU Consulting UCM portal. When I "Copy and Edit..." the Dynamic List Generic Fragment, and create a new Fragment Library after trying to save my Fragment, I get the