JAVA_HOME env var requirements

Does anyone know if Java2 must be installed on the system where Tomcat is installed (ie. deployment machine), i have seen JAVA_HOME that needs to be set, so i set it to /usr/java, but that is only JAVA1.1. It seems that all my example jsp and test jsp pages work, but that variable concerns me.
I only want to have the bare minimum installed really on the deployment machine and what i thought i needed was:
apache httpd package
jakarta tomcat package (port 8080 disabled, 8007 enabled)
jakarta servletapi package
mod_jserv OR mod_jk (did not make my own mod_jk yet)
If I need anything else as far as running efficiently JSP please let me know. I am still browsing through the pages, but JAVA_HOME i know i need it, but is it actually used to compile?
Thanks,
Lec

Yeah, you need the SDK; JSPs are translated into servlets and then compiled. Do you really only want to use SDK 1.1 functionality in your JSPs?

Similar Messages

  • Display linux env var $JAVA_HOME in OSP/OUI installer automatically

    Hi,
    How do i make use of the OSP (getEnv) to get the value of the $JAVA_HOME env variable and save it to an existing installer variable to display? thank you.
    j.
    Edited by: user13682581 on Jun 13, 2011 6:26 PM

    Hello Gurus,
    I've finnaly bypass all that mess with web logic setup ,
    It's easy
    Download the
    Fist Download and Setup Weblogic
    Then Give Executable Privoiliges,
    Chmod 777 net_oepe111130_wls1032_linux32.bin
    Then Export Display
    export DISPLAY=192.168.48.28:0.0
    then run that Crap "bin" file" and it shows in a Grapich Interface,
    [oracle@srvldbp04 tmp]$ export DISPLAY=192.168.48.28:0.0
    [oracle@srvldbp04 tmp]$ ./net_oepe111130_wls1032_linux32.bin
    Extracting 0%....................................................................................................100%
    That's Cool,
    Grid 11G - I like it
    Thxs
    Carlos

  • 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)

  • 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 ..?

  • 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 :-)

  • Native code don't find env var

    Hi,
    I have an application which calls functions from a .so library via JNI. The problem
    is: .so library needs access an environment variable. My EJB calls a single java
    class where are defined native methods from the .so library. If I implement a main
    method in the single class and run it using java, the class run property (the env
    var exists). But, when the .so library are invoked by EJB, it reports env var is
    needed.
    Weblogic is called from a build.xml from ant.
    I already tried:
    - use <sysproperty>
    - -D
    The .so is a product especific api, so re-write its code are out of solution...
    Thank you for the help.

    I have the same problem. I downloaded version 1.4.1 today. I compile the .java program clean. However, I must execute this command from the bin library, otherwise it says bad command or file. Once the .class file is created I execute the java File.class statement. The error I get is: "Exception in thread "main" java.lang.NoClassDefFoundError: File".
    My regional settings is USA/English. Any other suggestions?

  • 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 the EnV Touch require a data plan?

    I need a new phone, and it has to be similar to the LG Extravert. I just want a new phone for variety, although I could purchase the Extravert again. But, when I look up whether the EnV Touch requires a data plan, there is so much confusion. Even the Verizon Customer Support people give different answers. I am very uncomfortable with the idea of a data plan, because I just want to pay $20/month for unlimited texting-I text very heavily. But I do not want to pay $50-70 per month just to text. I also hope it isn't a smartphone, because I have been searching for a non-smartphone for weeks. So...does it require one or not? If you can recommend a similar phone that meets my needs, please do. I also prefer touch screens and good cameras.

        I know cost is important to you doctorcatfish and we want to make sure you have the best plan for your needs. If you purchase  a basic phone (Lg-Env) for full retail cost you can use the plan you currently have. If you upgrade to a basic phone with a discount, you will have to choose one of our shared data plans for basic devices. The Lg-Env-Touch will require a data plan and if this phone is purchased at full retail price, you can use your current plan and add on one of our old data plans because you have an older plan. If you upgrade with a discount for this  device, you will have to pick one of our shared data plans. Here is some information about out plans http://bit.ly/xdDajD . Let us know if you have any further questions.
    Kinquana_VZW
    Follow us on Twitter @vzwsupport

  • 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

  • Setting up JAVA_HOME env variable

    Hi,
    I am a linux user trying to kill my tomcat server. I try to run an .sh script and
    I get the following error
    tomcat/bin> ./shutdown.sh
    The JAVA_HOME environment variable is not defined correctly
    This environment variable is needed to run this program
    NB: JAVA_HOME should point to a JDK not a JRE
    How do I know where to point my environment variables to??

    tomcat/bin> ./shutdown.sh
    The JAVA_HOME environment variable is not defined
    correctly
    This environment variable is needed to run this
    program
    NB: JAVA_HOME should point to a JDK not a JREIf this means something to you...
    your environment should be set to a JDK directory [ [i]containing tools.jar in the lib sub-directory ] instead of a JRE.
    export JAVA_HOME=/usr/local/jdk50

  • Setting java_home env variable

    It looks like this java_home variable thing is gonna give me enaf trouble. Now I am sure i have done all as outlined in the release notes and cJDK_Users_Guide especially on "installation". There surely must be something wrong with my machine or jdk. Some body send me the full list of possible causes and suggested solutions.
    Problem is in this institution nobody seems understand what I am talking about

    First off, in your previous post, you provided your environment script:
    @echo off
    set jc_home = c:\java_card_kit-2_2_1
    set java_home = c:\j2sdk1.4.1_07
    Note that the spaces on either side of the equals sign are incorrect. The way you have it currently, the space is part of the key and value.
    "java_home<space>" does not equal "java_home", likewise "<space>c:\j2sdk1.4.1_07" does not equal "c:\j2sdk1.4.1_07".
    Remove the spaces and you will be OK.
    "Problem is in this institution nobody seems understand what I am talking about"
    Your problem seems to be related to your understanding of the windows command line - nothing to do with Java or Javacard.
    - Joscar

  • Question about env. var. LANGUAGE

    Hi,
    I noticed that when I do:
    echo $LANGUAGE
    I get:
    &LANG
    This seems to mess up libtool when building Subversion 1.5.2, so I'm just wondering what &LANG means. When I manually assign en_US to LANGUAGE, libtool is happy. How can I make the LANGUAGE variable assigned to the actual value of LANG on boot up? It seems that setting the locale in rc.conf actually causes the LANG variable to change, so I'm just wondering what LANGUAGE's purpose is and why it has such a funny value.
    Thanks.

    Big Q: "Why the compiler didnt complain about it?"
    it should be "duplicate var declaration" sort of
    thing......Bcos one is a local variable and the other is an instance variable. They arent duplicates.
    > private String s; // class var declaration, var name is "s"
    >
    private void f1(){
    // another var declaration name "s", why the compiler dont complain about >this!?!
         String s=new String("Hello World!"); As i said b4, this is a local variable. Within the scope of this method, this variable hides the instance var, 's' , to access which, u will have to use this.s
    >
    private void f2(){
    // does this var "s" refers to the class var?Yes.
    System.out.println ("s: "+s); // the output is null//that's bcos u havent initialized it anywhere. Local variable have to be compulsorily initialized. Instance variables are initialized to null (if they are Object references)
    ram.

  • Replicating ant script (env vars and copy of common files) in JDeveloper

    We have an existing application that was building in Eclipse using Ant scripts.
    We now have a requirement to build and deploy using JDeveloper. We have been successful in some aspects, but now are trying to replicate in JDeveloper the use of environment variables and copy of common folders as our Ant Scripts did for us in Eclipse. Is it possible to replicate this in JDeveloper?
    Thanks in advance.

    Our client requests a JDeveloper project file only that they can build and deploy. They do not approve of the use of Ant scripts, so we are trying to mirror our application that was built in Eclipse with Ant into JDeveloper (with no Ant).
    We are looking into workarounds to eliminate the need for a replacement of the Ant script to copy common files into the directories needed, and to determine those paths based on the environment varaibles, but none of hte work-arounds thus far are great options. Based on my reserach, I have not found a way to implement these functions in JDeveloper without the use of an Ant script. Is this an accurate statement?

  • [Solved] systemd-user-session: Best way to pass global ENV vars?

    Hey guys,
    So when using the [email protected] from the user-session-units what's the best / cleanest way to set global environment variables for that systemd --user instance (and thus, all programs spawned from it)?
    What I'm talking about is /etc/profile and $HOME/.profile.
    For example, I usally configure my XDG_CONFIG_HOME and XDG_CACHE_HOME in my ~/.profile. But since systemd --user is being started by systemd --session none of these environment variables are loaded.
    The solution I've come up is to change the ExecStart in the [email protected] file to something like this:
    ExecStart=/usr/bin/sh -c "source /etc/profile; source $HOME/.config/bash/environment; exec /usr/lib/systemd/systemd --user"
    I know I could use the `EnvironmentFile` option to load the environment variables from a file, but it's not as flexable as a bash script.
    Am I thinking about this problem wrong? Is there a more "systemd --user"-y way of solving the problem?
    Last edited by EvanPurkhiser (2013-08-12 03:02:48)

    I've more or less solved this using my own user-session units. I still don't know if my method would really be considered the proper way or not though.
    Last edited by EvanPurkhiser (2013-08-12 03:02:19)

  • ORA-12154: TNS:could not resolve... - sql plus works, env vars are set...

    Hi,
    I am getting this error message in my ASP.Net apps (namespace Oracle.DataAccess.Client) and any app that tries to use the Oracle Provider for OLE DB.
    Error:
    ORA-12154: TNS:could not resolve the connect identifier specified
    Here is what I do know:
    - My ORACLE_HOME is set to C:\oracle\product\11.1.0\client_1\
    - My path has C:\oracle\product\11.1.0\client_1\network\admin;C:\oracle\product\11.1.0\client_1\bin;
    - I installed Oracle Client 11g, previously 10g was working but one of the devs wanted to upgrade
    - I can connect using sqlplus user/pass@tnsname
    - I can test tns entries successfully in Net Manager
    Here is what I don't know:
    - When using OLE connections, why does Oracle Provider for OLE DB not pick up on the environment variables - sql plus seems to, that's why it works.
    - In ASP.Net, why does the connection object from Oracle.DataAccess.Client not pick up the correct environment variables?
    - How do the Oracle drivers pick up the location of the TNS names?
    Thanks,
    Michael
    Edited by: user2750352 on 04-May-2009 07:51

    Hi,
    What "environment variables" are you referring to that you have set? You shouldnt have to set any, unless you're talking about TNS_ADMIN just to avoid having to configure multiple TNSNames.ora's if you have multiple homes.
    Your PATH doesnt need to include OH\network\admin, but thats not hurting anything. PATH is for dll loading, not for finding config files.
    Do you still have 10g installed? When you connect using sqlplus user/pass@tnsname, are you using 11g sqlplus? Or is that coming from the 10g client? Multiple homes arent aware of each other, so if you have a 10g home and an 11g home, you'd have to configure tnsnames.ora for both (or use tns_admin).
    As far as I know, the client software picks up tnsnames.ora by checking:
    1) the local working directory
    2) the tns_admin directory
    3) the network\admin directory of the client home being used.
    Hope it helps,
    Greg

Maybe you are looking for

  • ACS 5.4 How to change CLI password?

    Anyone know how to change the ACS 5.4 CLI password? I found the command "acs reset-password".  But it seems to reset the GUI password instead of CLI password. Thank you very much!

  • I jailbroke my iphone 3gs but then removed all the data on it how come this takes soooo long?

    IT IS TAKING AGES TO REMOVE ALL DATA :(

  • SAP business systems

    Hi all, In SLD we can create the Business systems for the SAP systems. What are the different SAP Systems generally. If I want to create 2 SAP Business Systems I have to create One Product or 2 different products for each. Regards, Anjaneya

  • Keep track of recently used items in my app

    I have developed and app which have several services when user launch the app in the first screen that shows all available services as Tiles. So what i need to do is to track users usage of those apps and load those apps according to the usage in a s

  • Lightroom 5 Spot Removal

    My June purchased version of Lightroom 5 has what I think is a bug. I cannot export as DNG file either clone or heal "shaped" spot removals. It will export simple circular removals as DNG. Both types of removal can be exported as TIFF and JPG files.