[SOLVED] Gathering Schema Statistics from Form Builder

Hi
these are my database and Forms versions:
Forms [32 Bit] Version 6.0.8.8.0 (Production)
Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
PL/SQL Version 8.0.6.0.0 (Production)
I would like to build a form with a push button which when clicked will gather schema statistics using procedures from the DBMS_STATS package ie. using the command:
DBMS_STATS.gather_schema_stats (ownname => 'DLIC', cascade => true, estimate_percent => 99.99);
But when this line is added to the PLSQL code for the push button, i get the following error:
Error 0 at line 0, column 0
ORA-00600: internal error code, arguments:[17003], [59630960], [911], [1], [], [], [], []
Can any one please tell me what is the problem here?
Thank You.
Message was edited by:
One

Thanks Christian the W1zard and Francois D for your help! The solution IS, as you have suggested, to include the call to the DBMS_STATS procedure in a PLSQL block ie. using BEGIN ... END;
and the whole in a FORMS_DDL statement.
For any one facing the same problem, here is the entire solution:
--Code in push-button When-Button-Pressed trigger.
DECLARE
     STATEMENT_TO_EXECUTE VARCHAR2(200);
     OWN_NAME VARCHAR2(4);
     CASCADE_PARAM VARCHAR2(4);
     EST_PC VARCHAR2(5);
BEGIN
     OWN_NAME := 'DLIC';
     CASCADE_PARAM := 'TRUE';
     EST_PC := '10.99';
     STATEMENT_TO_EXECUTE := 'DBMS_STATS.gather_schema_stats(ownname=>'||''''||OWN_NAME||''''||',cascade =>'||CASCADE_PARAM||',estimate_percent=>'||EST_PC||')';
     FORMS_DDL('BEGIN '||STATEMENT_TO_EXECUTE||'; END;');
END;
Note that all parameters passed to the DBMS_STATS procedure is stored in a bind variable. Also, note that the parameter that is of type VARCHAR2, in this case DLIC or Ownname is preceded and succeded by '''' or 4 single-quotes.
PS:
Would be very helpful if someone explained why 4 single-quotes. I found this in another post in the OTN forum, but not quite sure of the theory behind it.
Thank You.

Similar Messages

  • Not able to connect to database from Form builder

    Hi ,
    I installed oracle 10 g in my machine and is accessable from SQLPLUS & TOAD.
    In the same drive i installed Form builder, i am getting the below error when i tried to connect DB from form builder.
    ORA- 12154 : TNS : could not resolve service name.
    Kindly do the needfull.

    i am getting the below error when i tried to connect DB from form builder.
    ORA- 12154 : TNS : could not resolve service name.Please post the exact syntax you use to connect.

  • Run form from form builder

    Hi,
    I am using Form 6i and copied Forms60Libraries in my local machine. I am developing form which will be registered with oracle apps. Now I want to run this form locally instead of uploading into server everytime while testing which I don't have access depending on other for this move.
    So, Please guide me to run this form from Form Builder locally if there is a way.
    Thanks in advance.

    As Alex suggested, you will need local copies of all the required Apps resource files (*.pll, *.plx, etc). Running an Apps form from the Forms Builder does not require any special setup on your workstation beyond this. However, even with all the required resource files you will run into errors each time your form calls one of the standard apps built-ins. It has been a while since I've worked with Apps, but I was able to get around the calls to these built-ins by checking if the Form was running on the web or client/server and only calling the Apps built-in if running on the web. It was a bit of a pain to setup, but it was worth being able to test my form localling from the Forms Builder rather than upload the form to the server in order to test the runtime. Here is how I accomplished this. In each trigger that calls an Apps built-in (eg: APP_STANDARD.Event) do the following. Typically, I only needed to add the following code the Form level triggers, but it depended on each form.
    /* Example When-New-Form-Instance */
    DECLARE
       UI_type   VARCHAR2(15) := Get_Application_Property(USER_INTERFACE);
    BEGIN
       IF ( UI_type = 'WEB' ) THEN
          -- Execute Apps built-ins...
          APP_STANDARD.EVENT('WHEN-NEW-FORM-INSTANCE');
       END IF;
       -- Perform the rest of your processing here
    END;Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.
    Edited by: CraigB on Dec 6, 2011 12:20 PM

  • FRM-10242:  Cannot call linked-in Forms from Form Builder. error

    FRM-10242: Cannot call linked-in Forms from Form Builder.
    Cause: The menu designer specified a call to linked-in Forms from within Form Builder.
    Action: Notify your DBA.
    does anyone know why this happens.
    I have this main-menu.. and when i click on one of the submenus which should call the form....i get this error.

    Same issue here... Been trying to get this working since a week now. I tried all the solutions like memory heap and all but no luck.
    One thing that I would like to know is that, in some threads the resolution was to recompile the INS_FORMS.MK file under /forms/lib32 but with my installation I don't have that "lib32" folder under /forms/ and I can not even find that file anywhere in my entire installation.
    I am using 12.1.1 on Windows Server 2008.
    Any help or guidelines is greatly appreciated.
    Santhosh.

  • Unable to run the form from Form Builder 10g

    HI,
    I am having a problem with running a form with form builder 10g.
    I have create a form with some text boxes to display values in a table.
    When i compile and run the form it does not run The error shown is
    HTTP 403(Forbidden) You are not authorised to view this page.
    The Link used for the above is:
    http://127.0.0.1:1740/sWuCqhMKUT1btA1N5cXLCRshkJzmgKRIlCEUFd9RL520LVq0
    The port number 1740 changes everytime. I dont know why.
    I have started the OC4J instance before starting the Form Builder.
    I have made the changes to the runtime preferences in the form builder.
    http://localhost:8889/forms/frmservlet
    But it doesn't work when i try to run the form from Form Builder.
    ie Program-->Run Form
    The form works properly when using the 'Run a form on the Web Utility' provided with Developer Suite.
    Can anyone please suggest a solution. I have searched the forum but didnot find a solution.
    Thanks
    V.S.

    One of our DBAs has installed the software.
    It was a default installation, I believe, as no configuration was done during the installation except for increasing the virtual memory size.
    Post installation we changed the tnsnames.ora file and the sqlnet.ora file.
    Do i need to configure something ?
    Thanks,
    V.S.

  • Run report 9i from form builder 9i

    Dear all,
    I build report from report builder 9i.
    How to run this report in form builder 9i.
    Best regards,
    Jansen Hutagalung.

    Jansen,
    I really like short questions, but yours missing the point. What do you mean by running Reports from Forms builder? Do you mean how to run it from a Forms application started from Forms builder? There is a Whitepaper in teh collateral section of otn.oracle.com/products/forms that immediately makes you an expert in Forms/Reports integration
    Frank

  • How to make a .exe from form builder?

    Hi,there:
    How can i make a .exe from form builder which can run without form builder?

    Hi,
    You can try to create a batch-file. For instance on WinNT create a CMD file. On Win95/98 create a batch file.
    In that you can use (depending on where you've installed forms/ reports)
    D:\orant\binf50run32.exe <user>/<password>@<database> <startform>.fmx
    Hope this helps

  • Connect to Data Base from Form Builder

    I have installed Oracle Developer V.6 in the same machine with data base 8i . From Form Builder I can not connect to Data base with scott/tiger with the db_name in Data base 8i.
    What should I do to connect it ?
    Thanks ,
    Nguyen

    you need to define a sqlnet connection using the sqlnet easy configuration tool that comes with forms.

  • Broken URL in executing forms from Form Builder (10g)

    From Form Builder I'm trying to execute a form "opened".
    I push "Run Form" button and i can see Explorer opening with a wrong URL :
    "http://%%20http://127.0.0.1:3696/4gjkr8swXxZKBJppfymDMZmBSac7cACualcFLIa3Vgsk6hmm"
    Obviously, "http://%%20" are wrong characters. If I erase them, I can see my form correctly executed. But I can't understand where are wrong characters .. in registry ?? ... in a configuration file ??
    From Form Builder, i can only change the "Application Url" from Preferences/Runtime tab, but this is the "second" URL, and not the First startup Url.
    Any helps ?

    See Metalink Note 238159.1 for several solutions and/or workarounds for this problem.

  • Browser size when launched from Forms Builder

    Hi, Does anyone know how to set the size of the IE browser when launched from Forms Builder? I have set the width and height setting to 100% so that the applet takes up all the browser space, however the browser is still not as large as I'd like.
    When I start IE on its own, it opens in the desired size, it's only when running it from Forms Builder that it's too small. I've searched on the net, but nothing seems to work, there must be a setting specific to Forms?
    Thanks
    Sam

    If you are using SeparateFrame = True, then you might try using these in your When-New-Form-Instance trigger:
    set_window_property(forms_mdi_window, window_state, maximize);
    set_window_property('Your_Main_Window', window_state, maximize);
    If you are not using SeparateFrame = True, then you may have to use JavaScript in the page where your applet is located. Javascript can also go in your formsweb.cfg file. See:
    HTMLbeforeForm=<script>....</script>
    or
    HTMLafterForm=<script>....</script>

  • OC4J service startup & running form from forms builder

    Hello everybody,
    I have installed Oracle 9i database and Oracle 9i DS on my personal Computer. (O.S. is Windows XP) . Now if I want to run any form from Forms builder I have to everytime start the OC4J service, from oracle-home\j2ee\oracle9i DS\startinst.bat
    How to eliminate this? Is there any way to automate this procedure? so that everytime when I open the forms builder, it will automatically start this service or run this bat file.
    Or any other way to overcome this prob?
    regards
    achchani

    Hi,
    unfortunately the answer is no. If you search the Internet you may find lik of how to make bat execution a Windows Service
    Frank

  • Running form from Forms Builder with IE

    Forms 11.1.1.4, IE 8, Windows 7 64-bit.
    1. Running form from Forms Builder with IE results in Page cannot be displayed. My Java console doesn't even appear so it's not getting to the servlet part.
    2. Running same form stand-alone in IE works fine. The URLs are identical (I've cut/pasted them)
    3. Running same form from Forms Builder with Firefox works fine. The only change I made was to the runtime preference for the browser location.
    Seems like this has to be something to do with the browser configuration that only occurs from Forms Builder. What could it be?

    I'm not sure about the specifics of your configuration but I suspect the answer is in formsweb.cfg (and the associated .env file).
    I think that generally the configuration that runs for formbuilder is the "default" whereas you could be specifying a different
    one on the url not going through formbuilder. (but if you're using em then it's really hard to know what's going on since it seems
    to not write changes back to the config and env files until it is stopped. This caused me many days of confusion until I figured it out and
    that's why I would highly advise never using it to modify .config or env settings.)
    check what jre is installed in ie (tools, manage addons, there is on my machine:
    java 2 plugin ssv helper and JQSIEStartDetectorImpl browser helper object.
    Not sure which one or both is necessary.
    Have your url be a trusted site, unblock it from popup blockage, and most of all stare at your formsweb.cfg default section. It would help
    if you specified what was in the url. do you have config=X in there?
    Edited by: lake on Jul 23, 2011 12:21 PM

  • Browser blank when running a form from forms builder ??

    Hi,
    I am trying to run a form from forms builder.
    I have a form , compiles, and when I run the form nothing comes up in my browser.
    my browser is completely blank.
    I am running everything on my local machine.
    the steps I took.
    - downloaded jinit.exe, installed it.
    - started the OC4j
    - restarted my browser
    - then connect to my DB from forms builder - connects fine
    - Run the form
    but nothing is coming up when i run my form.
    I even restarted my machine and still nothing.
    What am I missing ??
    Thanks,

    This is a fairly common question. If you have the Jnit installed and OC4J running, then I would suggest you add the directory where your FMX is located to the FORMS_PATH in the 'DEFAULT.ENV' file located in the %DEVSUITE_HOME%/forms/server directory. The FORMS_PATH variable defines the SEARCH Path for Forms Applications so Forms can find your .FMX and .PLX files.
    You could also modify the URL and specify the Form='your_form_name.fmx', but I prefer adding the directory to the FORMS_PATH so I don't have to add FORMS="" for each different form I'm working on.
    Hope this helps,
    Craig B-)
    If a response is helpful or correct, please mark it accordingly.

  • Can't run form from Form Builder 10g - Port configuration problem?

    Hi,
    I have installed the Database (10.2.0.1.0) and the Developer Suite (10.1.2.0.2) on two Linux machines (Red Hat Enterprise Linux ES 4 Basic).
    If I enter the frmservlet-URL manually everything seems to be fine.
    In one case I enter http://127.0.0.1:8890/forms/frmservlet, in the other http://127.0.0.1:8889/forms/frmservlet; in BOTH cases I get eventually a dark square and the status bar says "Applet oracle.forms.engine.Main started".
    HOWEVER, if I create a simple form with Form Builder and click on the Button with the green traffic light ("Run Form"), the form runs only on the machine where frmservlet listens on port 8890.
    On the other machine (frmservlet configured to listen on port 8889) Firefox pops up, the URL "http://127.0.0.1:32979/6dOrpwghCqnp8PhMT7KVT533m3IaArqFbPqPBOztZXWYSsNy" gets called, and nothing else happens. The screen displays the string "ORACLE FORMS." and the status bar says "Waiting for 127.0.0.1...", and it stays like this forever.
    I assume this is a port configuration problem, but I don't have a clue where to start.
    Any suggestions how I should proceed are greatly appreciated.
    Thank you very much in advance!

    Hi Frank,
    Thank you for your reply.
    I doublechecked my configuration.
    In the dialog Edit --> Preferences --> Runtime the Application Server URL is set to "127.0.0.1:8889/forms/frmservlet".
    However, when I attempt to run the form, the URL "http://127.0.0.1:33140/W2dwbV9eXS2fPkuKlxNhCxFWdEihwDviat2uV7ycrSotqwDN" gets called.
    The screen displays the string "ORACLE FORMS." and the status bar says "Waiting for 127.0.0.1...", and that's it.
    I wonder how the port number 33140 got selected. Interestingly, this time it is a different number; last time it was port 32979. In fact, the port number seems to change each time; I tried again and now it is 33189.
    I will now try to set the port number for the frmservlet to 8890.
    I choose Edit --> Preferences --> Runtime and set the application server URL to "127.0.0.1:8890/forms/frmservlet".
    I stop the container, open /home/oracle/OraHome_1/j2ee/DevSuite/config/default-web-site.xml and change the port number to 8890:
    <?xml version="1.0" standalone='yes'?>
    <!DOCTYPE web-site PUBLIC "Oracle Application Server 10g XML Web-site" "http://xmlns.oracle.com/ias/dtds/web-site.dtd">
    <!-- change the host name below to your own host name. Localhost will -->
    <!-- not work with clustering -->
    <!-- also add cluster-island attribute as below
    <web-site host="localhost" port="0" protocol="ajp13"
    display-name="Default Oracle Application Server 10g Java WebSite" cluster-island="1" >
    -->
    <web-site port="8890" protocol="http"
    display-name="Oracle Developer Suite 10g instance of Oracle Containers for J2EE Web Site">
    <!-- Uncomment the following line when using clustering -->
         <!-- <frontend host="your_host_name" port="80" /> -->
         <!-- The default web-app for this site, bound to the root -->
         <default-web-app application="default" name="defaultWebApp" root="/j2ee" />
    <!-- Do not delete this line. -->
    <web-app application="forms" name="formsweb" root="/forms" />
    <!-- -->
    <!-- <web-app application="forms" name="formsweb" root="/forms" /> -->
    <web-app application ="reports" name="web" root="/reports" />
    <web-app application = "reports" name="demo" root="/repdemo" />
         <!-- Access Log, where requests are logged to -->
         <access-log path="../log/default-web-access.log" />
    </web-site>
    I restart the container, start Form Builder, connect to the database, and open my test form.
    When attempting to run the form, the URL "http://127.0.0.1:33437/Pl0n3ky9vmU5z37A7ScBnQhsGwq3jwuzJpgTAKWPMOYIzT8K" gets called (again a new port number, apparently picked radomly within a certain range) and nothing happens: "Waiting for 127.0.0.1...".
    However, when I enter the URL http://127.0.0.1:8890/forms/frmservlet I do (eventually, after confirming that I trust the certificate etc.) get a darc rectangle and the status message "Applet oracle.forms.engine.Main started", which tells me that my setup can't be that far off target.
    Here is the output of netstat:
    [root@localhost ~]# netstat -anp --tcp
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 0.0.0.0:32769 0.0.0.0:* LISTEN 2779/rpc.statd
    tcp 0 0 0.0.0.0:23910 0.0.0.0:* LISTEN 5269/java
    tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2759/portmap
    tcp 0 0 0.0.0.0:1521 0.0.0.0:* LISTEN 4265/tnslsnr
    tcp 0 0 0.0.0.0:113 0.0.0.0:* LISTEN 2983/xinetd
    tcp 0 0 127.0.0.1:7830 0.0.0.0:* LISTEN 4429/spamd --port 7
    tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2928/cupsd
    tcp 0 0 0.0.0.0:9240 0.0.0.0:* LISTEN 5269/java
    tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 3002/sendmail: acce
    tcp 0 0 0.0.0.0:8890 0.0.0.0:* LISTEN 5269/java
    tcp 0 0 0.0.0.0:32795 0.0.0.0:* LISTEN 4231/ora_d000_orcl
    tcp 0 0 127.0.0.1:1521 127.0.0.1:32817 ESTABLISHED 4265/tnslsnr
    tcp 0 0 127.0.0.1:32817 127.0.0.1:1521 ESTABLISHED 4209/ora_pmon_orcl
    tcp 0 0 127.0.0.1:33425 127.0.0.1:1521 ESTABLISHED 5298/frmbld
    tcp 0 0 127.0.0.1:1521 127.0.0.1:33425 ESTABLISHED 5311/oracleorcl
    tcp 1 0 80.133.127.83:33485 209.132.177.100:443 CLOSE_WAIT 4060/python
    tcp 1 0 80.133.127.83:33484 209.132.177.100:443 CLOSE_WAIT 4060/python
    tcp 1 0 80.133.127.83:33494 209.132.177.100:443 CLOSE_WAIT 4060/python
    tcp 1 0 80.133.127.83:33520 209.132.177.100:443 CLOSE_WAIT 4060/python
    tcp 0 0 80.133.127.83:33529 209.132.177.100:443 ESTABLISHED 4060/python
    tcp 0 0 80.133.127.83:33528 209.132.177.100:443 ESTABLISHED 4060/python
    tcp 1 0 80.133.127.83:33460 209.132.177.100:443 CLOSE_WAIT 4060/python
    tcp 1 0 80.133.127.83:33470 209.132.177.100:443 CLOSE_WAIT 4060/python
    tcp 0 0 :::22 :::* LISTEN 2968/sshd
    tcp 0 0 ::ffff:127.0.0.1:33437 :::* LISTEN 5298/frmbld
    tcp 697 0 ::ffff:127.0.0.1:33437 ::ffff:127.0.0.1:33439 CLOSE_WAIT -
    tcp 348 0 ::ffff:127.0.0.1:33437 ::ffff:127.0.0.1:33440 CLOSE_WAIT -
    [root@localhost ~]#
    The question remains: Where do those port numbers come from?
    Regards,
    jme

  • Invalid or no XML schema in XML Forms Builder

    Hi all
    Could anyone help me with this?
    When I try to preview an Forms example in XML Forms builder I've got the following error:
    "Messages or errors reported while building the project Invalid or no XML schema information Error was: Invalid or no XML schema information "
    Running EP6 SP2, JRE 1.4.2_05, IE 6.0
    Thanks in advance
    Mikael Lofberg

    Hi Mikael,
    If you have not already try saving and rebuilding the project? When you rebuild do you get errors in the project check tab?
    If so this should point to the cause of the problem.
    Regards
    Daniel

Maybe you are looking for

  • Adobe air installer

    I am trying to download an app that needs the adobe air installer. I have adobe air installed, but when I download the app I want I get an error message that the installer file is damaged and to get a new one from the author. Is adobe the author and

  • Video Driver for wide screen

    I have a Dell 20" wide screen monitor that requires a resolution of 1680 X 1050. I have the standard ATI Rage 128 graphics card and have updated the software, but that resolution is not available. The color and clarity look great running at 1280 x 10

  • Combining Column and Line charts

    I'm trying to put together a composite graph, consisting of both LineSeries and Column Series, for a financial page. I'm rendering the entire graph inside of a ColumnChart. However, when multiple points for the lineseries are close together, the mous

  • How to scan with an office jet 6500a and a Mac OS 10.9.4?

    how to scan with an office jet 6500a and a Mac OS 10.9.4? This question was solved. View Solution.

  • Any way to view OPMN routing table?

    I'm reading 9iAS documentation about OPMN. I keep seeing it mention routing table for failover (for instance, find "routing table" at http://download-east.oracle.com/docs/cd/A97329_03/core.902/a92171/hiav.htm). Is there a way for us to see what the r