Set env var(FORMS_PATH) in default.env

Thanks in advance to all:
My question is:
Can I set var FORMS_PATH in Linux environment as:
FORMS_PATH=/u01/oracle/ora_midtier/forms:
FORMS_PATH=$FORMS_PATH:/Forms10g/Source_Appl/Web/Menu
or in different way (%FORRRXXXX%)
Thanks again

Thanks Martin for your time and reply,
Of course I was not clear, I know where insert Forms_path and other var, (default.env under $ORACLE_HOME/forms/server
Instead my question is:
I am able writes FORMS_PATH= /dir1/subdir:/dir1/subdir2.... like FORMS_SOURCE=/dir1 and then FORMS_PATH=$FORMS_SOURCE/subdir ....
or
FORMS_PATH=/dir1
FORMS_PATH=$FORMS_PATH:/dir2
FORMS_PATH=$FORMS_PATH:/dir3
Anyway thanks again
and sorry for my error I wrote formsweb.cfg instead of default.env
Message was edited by:
RV

Similar Messages

  • FORMS_PATH  in default.env

    Thanks in advance to all,
    My question is:
    Can I set var FORMS_PATH (default.env under $ORACLE_HOME/forms/server), in Linux environment as:
    FORMS_PATH=/u01/oracle/ora_midtier/forms:
    FORMS_PATH=$FORMS_PATH:/Forms10g/Source_Appl/Web/Menuor similar
    export ??? or other
    I wouldn't like create more default.env's
    Thanks to all
    None of the 2 methods ($ and export) works
    Message was edited by:
    RV

    Why shouldn't it ? :-)Because, I have a dir/structure as
    CG/forms
    CG/reports
    CG/forms/tabelle
    CG/libgen
    CG/shared_forms
    and so on for other application, and I assure you that it is so much stuff.
    Ciao and thanks again for all yours help.
    I hope do, that one day can reciprocate you.
    Sono in debito :-)

  • FORMS_PATH in default.env on 10.1.2

    I have just installed Application server 10.1.2 with forms and reports. I want to put forms files to directory /home/forms/forms_files/
    I have configured in default.enf variable FORMS_PATH=/home/forms/forms_files, but it seems to not work. Forms servlet still load forms files from default location $ORACLE_HOME/forms. All other configurations is as they are default just after Application server installation.
    User oracle and group oinstall has correct privileges (read and write) to directory /home/forms/forms_files/.
    Can anybody tell what I have to do different or more to define location of form files?
    -jarkka

    check the script to start the iAS is having a variable called FORMS_PATH . If yes modify this. Also do an echo $FORMS_PATH after setting this.
    Otherwise you can edit the profile or script which sets the ias env variable with FORMS_PATH.
    Also check the value in the default.env which can be found in ORACLE_HOME/forms/server
    best regards
    Rajesh Alex

  • Difference from forms_path in registry and forms_path in default.env

    Hy,
    why i set path in Forms_path in the default.env file for my olb lybrary, when i open an *.fmb file
    i give error can't load etc....
    while after i set similar in registry i can load it.
    dev 10R2, rdbs 10r2 oas 10r2
    Thanks

    the default.env-forms path is used at runtime only. The registry-path is used, when forms-builder is started. So you can't change the formspath for your builder with the default.env.

  • Webutil default.env

    In our application , we have a env file by the application name i.e. sun2.env. In the webutil.config file we have the envfile=sun2.env.
    My question is
    All the configuration for deafult.env file recommend in the webutil.doc provided with the webutil download, should it be done in the sun2.env file instead of default.env, as the actual env file used by the app server is sun2.env.
    in the sun2.env file , if I'm silent about basehtm parameter will it take the default mentioned in the default.env. Broadly the question is if I'm silent in sun2.env file about a mandatory parameter, then will defaults mentioned in default.env take effect.
    Please share.

    Hi,
    if you use a custom .env file, then all settings belong into this file. The default.env file is named "default" because "by default" we use this with Forms.
    Frank

  • Default.env FORMS_PATH What about REPORTS_PATH?

    Hi,
    I want to run two report server engine on one box.
    but wanted to keep two different REPORTS_PATH for each one.
    in Forms i can achieve this by creating two different default.env and setting two different FORMS_PATH.
    how to do it for reports.

    Why shouldn't it ? :-)Because, I have a dir/structure as
    CG/forms
    CG/reports
    CG/forms/tabelle
    CG/libgen
    CG/shared_forms
    and so on for other application, and I assure you that it is so much stuff.
    Ciao and thanks again for all yours help.
    I hope do, that one day can reciprocate you.
    Sono in debito :-)

  • Apache+tomcat+env vars ..?

    I know this should proabably be posted in a tomcat-related forum, but it's worth a shot.
    I'm using apache 2.0.43, and tomcat 4.1.12, linked togeather with mod_jk on a linux-machine (redhat 8.0), and everything works just fine .. except for one thing. I can't get apache to send tomcat the enviroment variables, such as remote host (client's hostaddress).
    I did however see a note in the jk documentation about the 'JkEnvVar' directive, wich should be added to httpd.conf to forward apache server env vars to tomcat engine. But that's all the information I get, and I've tried most combinations of the JkEnvVar directive and the apache REMOTE_HOST - variable, but still the request.getRemoteHost() always return "null" if I go through apache (it gives me correct info if I connect directly to tomcat though).
    I assume that noone has enough knowledge to help me out with this, so make my day, and suprise me =]

    I've been doing som digging, and found out that the remote host should be sent to tomcat by default. But still when I use request.getRemoteHost() I get null when I use apache, but it works fine when I directly use tomcat.
    Any great ideas anyone ..?

  • Using 2 environment files (i.e., default.env and int.env)

    I am running Oracle forms 10g (v9_0_4) on a unix box.
    Database is 10.2.0.4
    We have one application server.
    I'm trying to get two different form paths defined.
    In default.env we have set the forms90_path to our production directory.
    I created int.env (basically copied default.env, but just changed the forms90_path) that sets the forms90_path to our test directory.
    In the formsweb.cfg file, I have added an [int]section:
    [int]
    envFile=int.env
    I have stopped/restarted opmn=stopall/opemn=startall.
    Unfortunately no matter what I do, I cannot get the forms in the test directory to be seen/used.
    The url I'm using is:
    http://host:port/forms90/f90servlet?config=int.env&form=formName.fmx
    Is there something that I'm missing?
    Thanks,
    Shirley

    The name of your webconfig is int and not int.env (this is the name of the environment file)
    so your url should look like this:
    http://host:port/forms90/f90servlet?config=int&form=formName.fmx
    cheers
    edit: and by the way you don't need to restart any opmn component when doing changes to the formsweb.cfg
    Edited by: christian erlinger on 13.07.2010 11:30

  • Env vars for C XML parser

    I have had a lot of problems with the Oracle C XML parser. I have put a question in this forum before about SEGV errors when xmlinit is called but I suspects that somthing else (very mystery thing) is the real cause to this problem.
    For now is status that I always gets error 201 when I calls xmlinit. My question is therefore: I have set the ORACLE_HOME to my Oracle installation directory. Do I have to set any more env var when I use the Oracle C parser?
    null

    Yes! When we get the error code 201 from the parser are an error message displayed. It is nearly always when the function xmlinit is called.
    But we do not always get this error. Sometimes do we get a SEGV signal and a core dump when xmlinit is called. Sometimes does it work perfectly. It can be different from one compilation to another and feels very mystery. I have searched for some error that can cause this in my own code but not found anything yet. My own code are relatively robust with a lot of error checks and I am not sure that it is my own code that fails but it is only my own code I have access to :)
    We used the XML Parser 1.01.0.0 until the last week then we found that there are a newer version available. We are now using the version 2.0.7.0.0 instead but without more success than before.
    What I have done for the parser so far is to copy the files lpxus.msb and lpxus.msg to my $ORACLE_HOME/oracore/mesg directory. I have also set the env vars ORA_NLS, ORA_NLS32 and ORA_NLS33 to my $ORACLE_HOME/ocommon/nls/admin/data directory. But I have got the parser to work without have set this env vars sometimes (and sometimes not) and I am really not sure if I have to set them as it says in the README.
    We are using the parser only to parse our XML configuration file through calls to several get-function in the DOM api. The encoding for our XML file is plain US-ASCII and we have experimented with this encoding in the file (<?xml version="1.0" encoding="US-ASCII"?>) and as a param to the functions xmlinit and xmlparse. We have also tried to call this function with no coding at all (a NULL-pointer), the encoding ASCII and UTF-8 with no more success than before. We continues to more or less randomly get SEGV-error, error 201 or a working program.
    The only params we gives to xmlinit is the errcode (the first param) and sometimes an error message handler function and the encoding. Never any other param.
    I think this was a lot of information but I can give more to anyone who need it to help us to get the parser to work. We have spend a lot of time for this now and we'll possibly make a descision about this parser tomorrow. If we not knows that we can get it to work we have to build an another solution without this parser. But it would be a pity because I like the this parser and its apis (if it works).

  • Does not read from the path in default.env

    Hi All,
    I have given the path of my forms directories in default.env for my 10gDS Suite. While running it does not read it from the path that I have provided in that file. I also specified the same path in registry still the same error. The error message reads like FRM-18108: Failed to load the following objects.
    Any help will be appreciated.
    Thanks.

    Ok, I'm stumped!
    I thought I would see what would cause the Forms Builder to fail opening an fmb, so I changed my FORMS_PATH value in the default.env file by removing the second directory listed there. Opening a form in the builder gave me two errors:
    FRM-18108: Failed to load the following objects. (Listed the objects in our Ref form.)
    FRM-10102: Cannot attach PL/SQL library...
    Then I changed the FORMS_PATH back, but now, I am unable to open a form without those errors in the Forms Builder.
    My forms_path line looks like this:
    FORMS_PATH=C:\oracle\DevSuiteHome_1\forms;C:\Users\Steve\01\fmb10The only thing I can do now to get a form to open without the errors is to copy the reference fmb and the PLL library from C:\Users\Steve\01\fmb10 to C:\oracle\DevSuiteHome_1\forms
    It feels like I am going crazy, because this all worked before, and now I cannot get it to work.
    By the way, I am using Windows Vista and Forms 10.1.2.3.0

  • Default.env ignored (OC4J / Windows)

    I am using OC4J on Windows to run forms, and I cannot override environment variables specified in a file.
    By default, the file default.env is specified in formsweb.cfg, and whilst the file is obviously being found (servlet refuses to start if it doesn't exist), it seems to ignore all of the values (I am particularly keen to set FORMS90_PATH).
    I can successfully set the environment variable in the session which invokes the OC4J server, or the value set in the registry is used, but neither of these seems to be over-ridden by the value in default.env, which it should be, according to the documentation.
    I get the same behaviour in 9.0.2 and 9.0.4

    I think in windows 32 bit the max length possible is 255 and in 64 bit it is 520
    There is no limit on number of entries and the limit is the total length.
    Basically whether in windows or unix what ever is the env variable size/length limit the same is applicable to classpath.
    You can test with length of 255 or more characters with classpath
    Rajesh

  • Including files in default.env

    I'm running Oracle 9iAS on Solaris 8/9 and would like to use file includes in the default.env.
    For example, Unix environment files like .profile allow one to include a file by using the ". <file>" syntax like so:
    # .profile
    FOO=/var/tmp
    . /etc/more_env_vars
    Any variables defined in /etc/more_env_vars would be included in the environment, along with FOO.
    Does Oracle provide a way to include files in default.env?
    That would allow me to setup a file to define env variables common to Forms and other processes running on the AS w/out me having to duplicate the variable definitions.
    thanks,
    -Peter

    Before I replied back, I wanted to make sure I wasn't missing something. Apparently, I was.
    Short scenario - I'm using a batch file to install FF and am copying a custom mozilla.cfg file. We are also using PolicyPak to control the behavior of Firefox. I removed PolicyPak, uninstalled FF (and removed all references to it), reinstalled v27.01 using the file downloaded from Mozilla, et voila!
    Now the chrome folder and userChrome file are being copied. Now I have to see where exactly the breakdown is occurring.
    Thanks cor-el.

  • JNDI and env. vars. in ejb-jar.xml

    I have been trying for several days now to have my EJB session bean access
    its env. vars. stored in the ejb-jar.xml document. I have been unsuccessful.
    The only place I have been able to store my env. vars. is in the web.xml
    document outside my .jar file. Although workable, it would be preferable to
    store them in the ejb-jar.xml document in my .jar file.
    I am hoping some one can help me. I am using the following code in my ejb:
    Context init = new InitialContext();
    Context env = (Context)init.lookup("java:comp/env");
    m_bTruncCorporate =
    ((Boolean)env.lookup(MICRworks.MICR_ENV_TRUNCORP)).booleanValue();
    m_strOptPath = (String)env.lookup(MICRworks.MICR_ENV_OPFLPATH);
    m_strOptAccount = (String)env.lookup(MICRworks.MICR_ENV_OPFLACCT);
    m_strOptRouting = (String)env.lookup(MICRworks.MICR_ENV_OPFLROUT);
    My ejb-jar.xml follows:
    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise
    JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
    <ejb-jar>
    <enterprise-beans>
    <session>
    <ejb-name>MICRworksBean</ejb-name>
    <home>USDataworks.MICRworks.MICRworksHome</home>
    <remote>USDataworks.MICRworks.MICRworks</remote>
    <ejb-class>USDataworks.MICRworks.MICRworksBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    <env-entry>
    <description>Flag indicating whether to convert corporate
    checks</description>
    <env-entry-name>TruncateCorporate</env-entry-name>
    <env-entry-type>java.lang.Boolean</env-entry-type>
    <env-entry-value>true</env-entry-value>
    </env-entry>
    <env-entry>
    <description>Location of the 1For1 exclusion files</description>
    <env-entry-name>OptionFilePath</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>http://localhost:7001/MICRworksLite/files/</env-entry-value
    >
    </env-entry>
    <env-entry>
    <description>Name of the 1For1 account exclusions file</description>
    <env-entry-name>OptionFileAccount</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>account_file.txt</env-entry-value>
    </env-entry>
    <env-entry>
    <description>Name of the 1For1 routing exclusion file</description>
    <env-entry-name>OptionFileRouting</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>routing_file.txt</env-entry-value>
    </env-entry>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>MICRworksBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Supports</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    and my weblogic-ejb-jar.xml:
    <!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 7.0.0
    EJB//EN' 'http://www.bea.com/servers/wls700/dtd/weblogic-ejb-jar.dtd'>
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>MICRworksBean</ejb-name>
    <stateless-session-descriptor>
    <pool>
    </pool>
    <stateless-clustering>
    </stateless-clustering>
    </stateless-session-descriptor>
    <transaction-descriptor>
    </transaction-descriptor>
    <jndi-name>MICRworksBean</jndi-name>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    My feeling is that I am missing some sort of reference in the
    weblogic-ejb-jar.xml that points to the ejb-jar.xml but I have tried several
    things without success.
    I would appreciate any help I can get...especially if it contains specific
    code I can use as I am rather new to writing and deploying ejbs!
    Thanx in advance. Marek :-)

    Thanks for the reference. I was using another book as a reference (Using
    Java 2 Enterprise Edition by Mark Wutka) which had the same sort of example
    and as you can see below, I coded my bean as they suggest...I'm still unable
    to access the env. vars.!
    I deployed by bean using WebLogic's Builder and but didn't create any sort
    of application. I let WebLogic do what it would on its own. The WebLogic
    documentation seemed to indicate for simple testing this would work
    fine...is it wrong?
    btw. MICRworks.MICR_ENV_TRUNCORP equates to "TruncateCorporate" as you
    probably guessed.
    The WebLogic Admin Console shows the environment variables in the EJB
    Descriptors for my EJB but they do not show up when I view the JNDI tree for
    my server. I have taken this to mean that the deployment tool is not
    binding my env. vars. for some reason which would explain why my bean can't
    find them.
    I know it must be something stupid I am doing (or not doing) but I just
    can't see it. Please help!
    "Ryan LeCompte" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hello Marek,
    I would suggest that you download the free book "Mastering EJB 2ndEdition" by
    Ed Roman, Scott Ambler, and Tyler Jewell. The source code for the book isalso
    freely available and is meant to be deployed specifically on WebLogic.Look for
    a sample application called "Jasmine", which shows how to use environmententries.
    You will see a concrete example of how they are defined and later accessedfrom
    within EJBs. The book and source code are available at the followingaddress:
    >
    http://www.theserverside.com/books/masteringEJB/index.jsp
    Best regards,
    Ryan LeCompte
    [email protected]
    http://www.louisiana.edu/~rml7669
    "Marek Kossak" <[email protected]> wrote:
    I have been trying for several days now to have my EJB session bean
    access
    its env. vars. stored in the ejb-jar.xml document. I have beenunsuccessful.
    The only place I have been able to store my env. vars. is in the web.xml
    document outside my .jar file. Although workable, it would be preferable
    to
    store them in the ejb-jar.xml document in my .jar file.
    I am hoping some one can help me. I am using the following code in my
    ejb:
    Context init = new InitialContext();
    Context env = (Context)init.lookup("java:comp/env");
    m_bTruncCorporate =
    ((Boolean)env.lookup(MICRworks.MICR_ENV_TRUNCORP)).booleanValue();
    m_strOptPath = (String)env.lookup(MICRworks.MICR_ENV_OPFLPATH);
    m_strOptAccount = (String)env.lookup(MICRworks.MICR_ENV_OPFLACCT);
    m_strOptRouting = (String)env.lookup(MICRworks.MICR_ENV_OPFLROUT);
    My ejb-jar.xml follows:
    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise
    JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
    <ejb-jar>
    <enterprise-beans>
    <session>
    <ejb-name>MICRworksBean</ejb-name>
    <home>USDataworks.MICRworks.MICRworksHome</home>
    <remote>USDataworks.MICRworks.MICRworks</remote>
    <ejb-class>USDataworks.MICRworks.MICRworksBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    <env-entry>
    <description>Flag indicating whether to convert corporate
    checks</description>
    <env-entry-name>TruncateCorporate</env-entry-name>
    <env-entry-type>java.lang.Boolean</env-entry-type>
    <env-entry-value>true</env-entry-value>
    </env-entry>
    <env-entry>
    <description>Location of the 1For1 exclusion files</description>
    <env-entry-name>OptionFilePath</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>http://localhost:7001/MICRworksLite/files/</env-entry-valu
    e
    >>>
    </env-entry>
    <env-entry>
    <description>Name of the 1For1 account exclusions file</description>
    <env-entry-name>OptionFileAccount</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>account_file.txt</env-entry-value>
    </env-entry>
    <env-entry>
    <description>Name of the 1For1 routing exclusion file</description>
    <env-entry-name>OptionFileRouting</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>routing_file.txt</env-entry-value>
    </env-entry>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>MICRworksBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Supports</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    and my weblogic-ejb-jar.xml:
    <!DOCTYPE weblogic-ejb-jar PUBLIC '-//BEA Systems, Inc.//DTD WebLogic
    7.0.0
    EJB//EN' 'http://www.bea.com/servers/wls700/dtd/weblogic-ejb-jar.dtd'>
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>MICRworksBean</ejb-name>
    <stateless-session-descriptor>
    <pool>
    </pool>
    <stateless-clustering>
    </stateless-clustering>
    </stateless-session-descriptor>
    <transaction-descriptor>
    </transaction-descriptor>
    <jndi-name>MICRworksBean</jndi-name>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    My feeling is that I am missing some sort of reference in the
    weblogic-ejb-jar.xml that points to the ejb-jar.xml but I have tried
    several
    things without success.
    I would appreciate any help I can get...especially if it containsspecific
    code I can use as I am rather new to writing and deploying ejbs!
    Thanx in advance. Marek :-)

  • Changing env vars "upstream"? (how do you change MPD_HOST?)

    on desktops, you usually have a process tree that goes something like (well, this is only one branch):
    init───login───bash───startx───xinit─┬─.xinitrc───sessionmanager─┬─WM
    we all know that env vars are passed on "down the tree". but this sometimes bothers me, for example when using mpd. it uses a variable MPD_HOST
    so when i have a running desktop, and i want to use an other mpd instance I must change MPD_HOST.  I can only do this in the "local" environment.  the widgets in my WM, the interfaces that I use etc cannot be aware of the changed variable.
    how do you guys handle this?
    I have some ideas for solutions:
    1) make MPD_HOST=mpdhost and use /etc/hosts to make it point to other things. but that won't help for MPD_PORT or non-mpd related variables.  not mentioning some apps might cache dns internally. and this requires root
    2) hack my session manager so that i can somehow notify it (signals, let it listen to a socket, etc) and have it change an environment variable.  but i don't know if the changed variable will automatically "propagate downstream" (probably not).
    any more ideas?
    thanks.

    hm yeah, it obviously won't work for running instances of programs - it just makes sure that changes in env (in the respective env-file) take effect for all new instances of $program.
    You can eg use gdb to change the env of a running process (have a look at this script for reference http://www.nanonanonano.net/linux/chenv) , but most of the time that won't help you. Typically env vars are only evaluated at startup and then used to populate the appropriate structures. You'll probably have to implement the required functionality yourself in every single program.
    For MPD a more or less simple workaround might be writing a small proxy that allows you to switch its destination on the fly - but i don't know whether MPD's protocol is stateful and whether clients will handle the transition gracefully.
    Last edited by raf_kig (2010-02-12 14:55:02)

  • How can read/write FORMSWEB.CFG & DEFAULT.ENV file entries programatically?

    Environment: Forms 9i (Web)
    As : Oracle 9i As
    How can read/write FORMSWEB.CFG & DEFAULT.ENV file entries programatically?

    I guess you cannot. There is an enhancement request to get the name of the config-section as a GET_APPLICATION_PROPERTY.
    What you could do is add extra parameter(s) to your form and pass the necessary formsweb.cfg parameters in this form parameter. See Get formsweb.cfg section name in Forms for more info and an example.

Maybe you are looking for