Environment variables of 9i App server
I have to configure few Environment variables in 9i App server. How can i do that. Also I want to view all the exisitng Env varibles.
Thanks
N
Nitin,
What kind of environment variables? Could you provide some more details. All Application Server settings are done via the EM Website.
Also, if this is a J2EE question, please post it on the J2EE forum.
Thanks,
Ashesh Parekh
Oracle9iAS Product Management
Similar Messages
-
How to set environment variables in JavaCAPS6 app server?
In JavaCAPS6 you can have variables in wsdls of the form {$var}.
How are the values of these set in the app server configuration?
RupertHi,
You can set the environmet variable in Weblogic by using the below commands
setWLSEnv.cmd/sh ==>Set the CLASSPATH to include the WebLogic Server classes.
Overview of WebLogic Server Domains
or you can use to set the Environment variable along with domain specific varables using the SetDomainEnv.cmd
To run SetDomainEnv.sh in Linux please use
. ./setDomainEnv.sh it require two dots (Dont miss it )
http://docs.oracle.com/cd/E28280_01/web.1111/e13749/weblogicserver.htm#ADMRF205
Hope it helps -
Environment variable comes off App Server, oh well.
I just tried an environment variable from a different machine and it reads it off of the Application Server machine, so I won't be using that method. Maybe I can't avoid WebUtil after all. Do you know if the jacobBin_17.zip file is required for what I want to do? Or can I leave it out as I won't need OLE? They should change that name, jacobBin is too much like jacobian and brings back bad memories from calculus.
They should change that name, jacobBin is too much like jacobian and brings back bad memories from calculus. Well, Jacobin makes me think of eigtheenth century French politics. I really ought to renew my membership of the Must Get Out More Club.
Cheers, APC -
How to invoke environment variables from a remote server
Hi Guys;
I am new to java programming and have very basic knowledge. I am trying to get some environment variable information from a remote server. I have created a program that gives me the env variables from my machine but I need to connect to some other server and bring those variables.
Can someone help me with this?
Regards,
Adityathere is no way to get that information from a remote machine without that machine having some program installed on it that you can poll to ask for it (and no machine should have a program like that on it, it's a potentially massive security hole).
-
Shell environment variables and apple apps
Hi Does anyone know how to pass environmental variables to apple applications. For example I have an an app that will automatically execute a shell script on receipt of certain downloads but that script calls another script that has some embedded functions. The scripts all work from command line since I have all my paths and EVs defined in my .tchsrc but the app isn't run from the same shell.
Any clues as to a work around.
thanks
AnnaSee
http://developer.apple.com/qa/qa2001/qa1067.html
or
http://www.rubicode.com/Software/RCEnvironment/ -
How to set new Tomcat Environment variable?
I have an imported class used by my servlet that is supposed to look for an environment variable like "xxx.app.logdir". I'm having trouble setting it in Tomcat. I have tried the following (stopping and starting Tomcat with each change):
1) In \conf\server.xml file, adding under <GlobalNamingResources> <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<Environment name="xxx.app.logdir" type="java.lang.String" value="C:\\Tomcat-4-1\\logs"/>2) In my app's web.xml file <env-entry>
<env-entry-name>xxx.app.logdir</env-entry-name>
<env-entry-value>C:\\Tomcat-4-1\\logs</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry> 3) In my \bin\startup.bat file
set xxx.app.logdir=C:\\Tomcat-4-1\\
4) On my PC's Environment variables.
Nothing has worked. In my code I have the lines
logMsg("System.getProperty('mmm.app.logdir')=" +
System.getProperty("xxx.app.logdir"));
logMsg("System.getProperty('simpleValue')=" +
System.getProperty("simpleValue")); with the output :System.getProperty('xxx.app.logdir')=null
System.getProperty('simpleValue')=null I've searched forums and the Tomcat docs, but no luck. Any ideas?I tried that as well, but maybe I didn't define my DefaultContect correctly. Do I need any other parameters? Couldn't find it in the Tomcat docs. <DefaultContext>
<Environment name="matt" type="java.lang.String" value="value1" />
</DefaultContext>My new code (I simplified the variable name for testing):
System.out.println("System.getProperty('matt')=" + System.getProperty("matt"));
System.out.println("System.getProperty('MATT')=" + System.getProperty("MATT"));Results:
System.getProperty('matt')=null
System.getProperty('MATT')=null -
How to use windows environment variable "%appdata%" in TEXT_IO built-in
Hello Sir/Madam,
I'm currently using TEXT_IO built-in package to write data file user's "C" drive in Oracle Forms 6i on Windows XP OS. We are in the process of upgrading the OS to Windows7. This new version does not allow to write to "C" or "D" drive. I was wondering how I can use windows environment variable "%appdata%" in this built-in to write the data file to user's AppData folder?
I would appreciate your help.
Regards,
Vani SontiYou are obviously not familiar with the architecture of webforms. See here http://www.oracle.com/technetwork/developer-tools/forms/275632-133265.pdf
I guess you are running your forms locally, so the forms server and the client run on the very same machine. This won't be the case once you run in production, as you will have an application server and clients connecting to the server.
text_io, tool_env and all the forms built ins will be executed on the machine the forms runtime runs on, and in a 3 tier architecture this is the application server, not the client as the real client will run just a java applet which actually just does what the forms runtime on the server tells it to do (or passes client side events like mouse clicks to the forms runtime on the server).
A very simple explanation for the architecture would be that the whole GUI part has been ripped off the forms runtime and put into a java applet; the logic part (the old-fashioned forms runtime) where the whole Forms PL/SQL code is executed communicates with the GUI part (which is implemented as a java applet) via HTTP, so there is no need to have both running on the very same machine.
So if you are writing a file with text_io on c:\dummy.txt this file will be generated on the application server machine as it is executed where the forms runtime runs. If you read environment variables with tool_env.getvar you will get the environment variable from the application server machine.
If you need those variables from your application server then those built-in packages are what you need, but if you need the real client variables there is no way around java in webforms 6i. But the beans should be simple enough to have them written within no time ;)
cheers -
Using environment variable / double quotes in "Arguments" in "Server Start"
I have an admin server, NodeManager, and 1 managed server, all on the same machine (windows). I am trying to enter something similar to this to the arguments field in the Server Start tab:
-Dmy.property=%USERPROFILE%\someDir\someJar.jar
But when the managed server is started it throws this exception:
Error opening zip file or JAR manifest missing : %USERPROFILE%\someDir\someJar.jar
It appears that the environment variable is not being translated into it's value. It is just passed on to the managed server as plain-text. I tried surrounding the path with double quotes (") but the console validates the input and does not allow this: *"Arguments may not contain '"'"*
Even editing the config.xml file manually cannot work, as the admin server fails to startup after this:
<Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: [Management:141266]Parsing failure in config.xml: java.lang
.IllegalArgumentException: Arguments may not contain '"'.>
I also tried using %20 to no avail, it is just passed as %20.
I thought that perhaps this had something to do with the spaces in the value of %USERPROFILE% (which is "C:\documents and settings.."), but the same thing happens with other env. variables which point to other directories with no spaces.
_My question:_
Is there any supported way of :
using double quotes? what if i have to reference a folder with spaces in it's name?
reference an environment variable? What if i have to rely on it's value for distributed servers where i do not know in advance the variable's value?
Edited by: 937622 on Sep 28, 2012 1:02 AMThere is workaround : http://stackoverflow.com/questions/12629395/weblogic-using-environment-variable-double-quotes-in-arguments-in-server
Just posting here for reference. Let's see if we get a different answer from anyone else. -
App-V 5 package ignores environment variable included in virtual registry
Hey all,
I'm experiencing following problem with one of my virtual packages - it keeps ignoring system environment variable included in virtual registry.
During sequencing, i've added system variable on the machine, sequencer picked it up and included in virtual registry. Variable is stored in following key (key set to merge):
Machine\System\CurrentControlSet\Control\Session Manager\Enviroment\MyVariable
When i install the application (with msi, packaged fully cached on the client) and i run the application, it fails with error.
Going into virtual environment of the package with cmd.exe /appvpid:<pid of application> and checking
SET command, i see that variable is stored, recognized and returned correctly:
MyVariable=C:\ProgramData\App-V\5550C766-44C0-4E75-95F9-961EFDC04B8E\158980CE-20C3-4D2B-9763-B06616BF71D0\Root\BIN
Where C:\ProgramData\App-V\5550C766-44C0(..) is local cache copy of the application.
There is a kind of workaround - application works properly when i set the variable in client's environment variables.
It looks like App-V package completely ignores the variable from virtual registry as adding identical one to the client machine allows the application to run just fine.
Has anyone similar experienced with their applications and would be able to point me in some directions where to look for the issue?
Thanks,
MarekAll,
Sorry for the spam on this thread, here is the workaround (I use AD groups). I configured this in the UserConfig.xml (remember to re-import via management console if used).
The first shortcut called BMC Atrium Integrator Spoon.lnk is the default from sequencing, it does work via the sequencing machine and also launches from command prompt within the app-v environment, but does
not work via the Windows startmenu.
The second shortcut called BMC Atrium Integrator Spoon Test.lnk
uses cmd.exe to fire off the spoon.bat (argument), this link works great native from the Windows Start-menu.
<Shortcuts Enabled="true">
<Extensions>
<Extension Category="AppV.Shortcut">
<Shortcut>
<File>[{Common Programs}]\BMC Software\Atrium Integrator\BMC Atrium Integrator Spoon.lnk</File>
<Target>[{AppVPackageRoot}]\client\data-integration\Spoon.bat</Target>
<Icon>[{Windows}]\Installer\{D664641A-EC80-45F0-828E-22A1174C4537}\IconD664641A.ico.1.ico</Icon>
<Arguments />
<WorkingDirectory>[{AppVPackageRoot}]\client\data-integration\</WorkingDirectory>
<ShowCommand>1</ShowCommand>
<ApplicationId>[{AppVPackageRoot}]\client\data-integration\Spoon.bat</ApplicationId>
</Shortcut>
</Extension>
<Extension Category="AppV.Shortcut">
<Shortcut>
<File>[{Common Programs}]\BMC Software\Atrium Integrator\BMC Atrium Integrator Spoon Test.lnk</File>
<Target>[{System}]\cmd.exe</Target>
<Icon>[{Windows}]\Installer\{D664641A-EC80-45F0-828E-22A1174C4537}\IconD664641A.ico.1.ico</Icon>
<Arguments>/C [{AppVPackageRoot}]\client\data-integration\Spoon.bat</Arguments>
<WorkingDirectory>[{AppVPackageRoot}]\client\data-integration\</WorkingDirectory>
<ShowCommand>1</ShowCommand>
<ApplicationId>[{System}]\cmd.exe</ApplicationId>
</Shortcut>
</Extension>
</Extensions>
</Shortcuts> -
Environment Variables of Application Server
Hi,
I would like to know whether we have any option to get the environment variables of Application server. Just like how we can get the environment variables of Presentation server using the Method ENVIRONMENT_GET_VARIABLE of class CL_GUI_FRONTEND_SERVICES.
Thanks
Sarves S V KResolved by self.
Answer:
I found the function module SXPG_CALL_SYSTEM which will help me in my case.
Provide 'ENV' in the command and we will get all the Environment variables of Application Server.
Thanks. -
Server Properties environment Variables
hi all
i want to know what is job of append check box in server Properties environment Variables section
Thnkax
Asanka PriyanjithHi,
I'm also trying to install ETMv2.1.5, as part of that , I installed Oracle utilities Framework appliation and created environment. But when I tried to start up the environment with Tomcat 5.5.20 as a web server I'm getting below errors.
ERROR (host.sockets.WindowsPipeSocket) Cannot instantiate com.splwg.base.support.cobol.host.sockets.WindowsPipeSocket because of problem loading a library com_splwg_base_support_cobol_host_sockets_WindowsPipeSocket during static initialization.
java.lang.UnsatisfiedLinkError: no com_splwg_base_support_cobol_host_sockets_WindowsPipeSocket in java.library.path
FATAL (support.context.ApplicationContext) Error initializing ApplicationContext
- 11:11:04,968 [main] ERROR ([Catalina].[localhost].[]) Exception sending context initialized event to listener instance of class com.splwg.base.web.startup.SPLWebStartup
Error initializing ApplicationContext
The root LoggedException was: Cannot instantiate com.splwg.base.support.cobol.host.sockets.WindowsPipeSocket because of problem loading a library
java.lang.UnsatisfiedLinkError: no com_splwg_base_support_cobol_host_sockets_WindowsPipeSocket in java.library.path
your help is higly apprciated in this regard. kindly pls let me know the solution.
thanks,
Uday -
To set environment variables in OC4J stand alone server
Hello,
I deployed my application to OC4J standalone server. I need to set some environment variables, which will be accessed from my application.
Could you please let me know, how to set the environment variables for the application which runs from stand alone OC4J server ?
Thanks!Hello,
Thanks for providing me the information. Here is what I am trying to accomplish...
I have a Web service application which in turn calls a Java application and which invokes a third party application. The third party application expects some environment variables to be set.
I set these environment on my local machine, and when I executed the Java application as a standalone application within JDeveloper - it works. But when I deployed this application to the stand alone OC4J server and when I execute the application, the third party application is not getting the environment variables correctly. (that's what I am guessing here..)
I just put System.getenv() to get the environment variables and the value is displaying correctly.
As Jacco suggested, I passed these env. variables thru' the startup of OC4J server.
(i.e.) java -D<variable1>=value1 -D<variable2>=<value2> -jar oc4j.jar and still didn't work.
Do I have to pass these values thru' any XML file within OC4J server..
Any thoughts ? I appreciate if you can provide some input.
Thanks! -
How to accces environment Variables in app
Hi, thanks for reding my post
I have created in the OAS Portal a variable called PORTAL_HOME that points to the home of the Oracle Portal's OC4J. I want to access this variable for logging purposes.
I tried to access it with ${PORTAL_HOME}, but it doesn't works...
¿What I'm doing wrong?Hi,
You can set the environmet variable in Weblogic by using the below commands
setWLSEnv.cmd/sh ==>Set the CLASSPATH to include the WebLogic Server classes.
Overview of WebLogic Server Domains
or you can use to set the Environment variable along with domain specific varables using the SetDomainEnv.cmd
To run SetDomainEnv.sh in Linux please use
. ./setDomainEnv.sh it require two dots (Dont miss it )
http://docs.oracle.com/cd/E28280_01/web.1111/e13749/weblogicserver.htm#ADMRF205
Hope it helps -
How Web Server pass request IP Address as the environment variable?
How can I config the Web server in order to pass the URL request IP address as the environment variable?
Are you inspecting the environment from a CGI program? The definitive guide to the CGI standard is the CGI/1.1 specification at http://hoohoo.ncsa.uiuc.edu/cgi/env.html
iPlanet-specific enhancements to CGI are described in the iPlanet Web Server Programmer's Guide.
REMOTE_ADDR is probably the variable you're interested in. -
Set environment variable in oracle 10g application server control rel3
hi all,
i am trying to connect to emc centera through 10g rel3 , here i am getting error .
error name is:
com.filepool.fplibrary.FPLibraryException: Error loading FPLibrary or one of its dependencies
at com.filepool.fplibrary.FPPool.<init>(Unknown Source)
if any body knows please help me.
Thanks and regards
PravinHello,
Take a look to http://buttso.blogspot.com/2006/08/accessing-environment-variables-from.html
Regards
Tugdual Grall
Maybe you are looking for
-
Does anyone know what this error is? Order type B Order number 0084046447 Method Message no. /SAPAPO/RRP501 I also see this: A table entry already exists with this secondary key Message no. /SAPAPO/OM_ERROR215 Diagnosis An application program called
-
Will Raw converter 7.4 work with CS5 extended? I am trying to open a raw file from a Nikon D7100.
-
Regarding KPI's and KPI Watchlist
Hi, We are planing to implement KPI and KPI Watchlist with OBIEE 11g. Does anyone have any clue as to whether it is a seprately licensed product or it comes standard with 11g. If it is seprately licensed, how much is the license for? Thanks
-
A question about singleton pattern
Will a singleton instance be a bottleneck of an application when many client address this instacne? and How can I do to deal with this problem? help me!
-
Is there a mechanism to accelerate group discovery for smaller groups
It seems that 10.1 groups can take a long time to connect via stratus when there's only one previous person in the group. Is there a way to accelerate the first neighbor connection - perhaps by hinting the first neighbor identifier or similar? It's