Changing Environment Variables

I have tried to edit my environmnt variable particularly ORACLE_HOME as I am upgrading to 8.1.6. I have changed the values in my .profile file and I have checked the values in files like the .login, bashrc and others, but I don't seem to be able to change the values. When I do a printenv it always reurns the old value for ORACLE_HOME. I also get this Character set error message with dbassist. I am running 8.1.6 on Linux 6.
Regards

Did you put (I assume you use bash as your shell) an export ORACLE_HOME or export ORACLE_HOME=/oracle/home/dir in the scripts somewhere, preferrably at the end. Otherwise the changes will last while the script is actually executing and will be lost as soon you get to the prompt.
Regards.

Similar Messages

  • Changing Environment Variables (not jre path)

    I am writing a setup program which will modify an Environment Variables. I need to add the string ";%PROGRAM_HOME%bin"to the Path variable. The problem lies in appending the new string onto the old one. For instance, say that
    Path=%SystemRoot%\system32;andSystemRoot=C:\WINDOWSIf I get the current Path variable (so I can append to it) I get Path=C:\WINDOWS\system32After appending my new variable I getPath=C:\WINDOWS\system32;%PROGRAM_HOME%\binWhile this will work, problems will arise in the future if changes are made to the SystemRoot variable, since the Path value no longer contains a link to the SystemRoot variable.
    Basically, is there a way to append to Environmental Variables?

    I am writing a setup program which will modify an
    Environment Variables. I need to add the string
    ";%PROGRAM_HOME%bin"to the Path
    variable. The problem lies in appending the new
    string onto the old one. For instance, say that
    Path=%SystemRoot%\system32;andSystemRoot=C:\WINDOWSIf I get the current Path variable (so I can append
    to it) I get Path=C:\WINDOWS\system32After appending my new variable I
    getPath=C:\WINDOWS\system32;%PROGRAM_HOME%\bin[/
    code]
    While this will *work,* problems will arise in the
    future if changes are made to the SystemRoot
    variable, since the Path value no longer contains a
    link to the SystemRoot variable. 
    Basically, is there a way to append to Environmental
    Variables?set PATH=%PROGRAM_HOME%\bin;%PATH%
    (T)

  • How to change Environment variables Windows Vista SP1 Home premuim 32 bit

    Hei. I run Windows Vista Home Premium 32bit SP1. Now i have a huge problem. By a mistake i changed the name in the environment variables settings. Now i cant access it to change it back. the message is "cannot find systemproperteis, control the
    settings and try again" But i cant controll the settings when i dont get access!! I remember it was %SystemRoot% before. If i right click My Computer-->Properties i cannot access the advanced tab. I cannot run anything from System32. If i run
    services.msc i get the note "the path do not exist, controll the setttings and try again". I am adminstrator. I can run cmd but not in adminstrator. Is it som way i can change or restore it to the right variables??

    Have you tried System Restore? See:
    http://www.howtogeek.com/howto/windows-vista/using-windows-vista-system-restore/
    If the initial instructions don't work, scroll down to the heading "If Your System Won't Boot"

  • [SOLVED] Change environment variables with Shell scripts

    How can I change the "BROWSER" environment variable with a shell script; so I can change it on the fly?
    Last edited by oldtimeyjunk (2012-10-31 12:57:42)

    If you just want to do it for BROWSER so that you can change your default web browser on the fly, you could set BROWSER to e.g. ~/bin/mybrowser and create a symlink to the browser you want at ~/bin/mybrowser. Then you could change the symlink at will.
    EDIT: man xdg-settings
    Last edited by cfr (2012-10-31 02:20:16)

  • Changing environment variables not reflected in axis2.

    Hi,
    I am using axis2(1.2).And my problem is that I am trying to call two or more webservice from the same host .Let me explain.I have a web page .Its take some info to serach and also the parameter to which service to call.Suppose there are two service running (A and B).For A, need the following environment to set before calling :
    System.setProperty("javax.net.ssl.keyStore",keyStore);
    System.setProperty("javax.net.ssl.keyStorePassword", keyPwd);
    System.setProperty("javax.net.ssl.keyStoreType",keyType);
    System.setProperty("javax.net.ssl.trustStoreType",trustType);
    System.setProperty("javax.net.ssl.trustStore",trustStore);
    System.setProperty("javax.net.ssl.trustStorePassword",trustPwd);And for B do not required any environment variable.
    When I try to connect the B(clear all the environment) after accessing the A its throw the following exception :
    org.apache.axis2.AxisFault: sun.security.validator.ValidatorException:
    PKIX path building failed:
    sun.security.provider.certpath.SunCertPathBuilderException: unable to find
    valid certification path to requested targetBut if I restart the webserver and try to call B its working but if I try to access A its failed.
    So its seem to me that once the environment is set its not possible to reset it.
    So is there any solution.
    Thanks & Regrads

    i haven't used axis2 specifically, but i would imagine that it provides a way to configure that connection information for a specific webservice connection (as opposed to globally for the jvm). a quick google for "axis 2 custom keystore" found this link: http://shivendra-tripathi.blogspot.com/2010/11/enabling-ssl-for-axis2-service-and.html which shows how to configured an axis2 client with a custom keystore ("Approach 2", at the very end of the article). actually, looking again at that article, it may be configuring a system-wide setting (the Protocol.registerProtocol() call looks to be static). this looks better: http://wso2.org/library/1646 .
    Edited by: jtahlborn on Jul 11, 2011 2:06 PM

  • Change the environment variables for sid adm failed

    Hi Experts,
    I have installed ECC HA on AIX/ORACLE
    now i want to change the environment variables for the qr1adm user at the standby node
    i tried to change the /home/qr1adm/.profile with command
    vi  /home/qr1adm/.profile  it is changed  and i saved this changes.
    now I login with qr1adm user and i executed this command
    env |more
    it comes with the old values
    i don't know why?
    and if i oppened the .profile file i'm finding the new values
    So could you please tell me how can i change the environment variable for qr1adm user
    Thanks
    Sherif
    Edited by: Sherif Eid on Jan 23, 2008 9:08 AM

    Thanks Sridhar ,
    which hostname?
    for example i have
    .dbenv_R3QASsvc.csh
    .sapenv_KFGKWERPR303.csh
    i want to tell you that R3QASsvc is the virtual hostname
    and KFGKWERPR303 is the name of the primary node A
    and the phiscal host name of node B is KFGKWERPR307
    so which one should i change it?
    thanks
    Sherif
    Edited by: Sherif Eid on Jan 23, 2008 11:59 AM

  • Changing UNIX environment variables?

    Is there an easy way to change the environment from inside Java-code?
    I have tried using the compile version and this works fine.
    Compile version:
    java -DmyVar="$PATH" myClass
    and then used System.setProperty("myVar", "/home/lala");
    The above works fine and changes the PATH variable in UNIX, but i don�t want to set these things at compiletime, is there another way?
    Thank you for any hints
    // adde

    I want to change the systems environment variable when I run my Java application, what happens when I close the program does not concern me. And I don�t just want to fetch what�s currently there, I want to change them and then use them in my program.
    But can you somehow do this without telling the program what variables you are interested in at compile time?
    Thank you for your answers

  • Action to SET environment variable (permanently) e.g. change path

    I would like to be able to set an environment variable as an action in bundles
    -- not to set one associated with an executable action, but rather to define an
    action that will accomplish permanently setting an environment variable.
    For example (not quite real but close) if I installed Java, I might want to set
    the value for JAVA_HOME as a persistent environment variable if the install
    doesn't create it.
    I know of several methods that work for setting an environment variable on the
    system, but none of them work particularly well for my purposes:
    1) Create a batch/cmd file containing the SETX command, place it somewhere
    accessible to the system, and use Run Script. The drawback is that this
    requires placing an extra little command file somewhere accessible to every
    system that runs the bundle.
    2) Add or modify the variable via the registry. This has the drawback of
    requiring a "refresh" action to somehow make the system see the variable value
    right away.
    err.... I think those are the only methods I know. Of course one can set an
    environment variable just associated with an action (except with11.2.3 agent)
    but I want to essentially modify the system permanently, but only for people
    getting the specific bundle.
    What's the best way to go about this? Am I missing something (personality?)?
    Thanks.
    -- DE

    Originally Posted by DE
    I would like to be able to set an environment variable as an action in bundles
    -- not to set one associated with an executable action, but rather to define an
    action that will accomplish permanently setting an environment variable.
    For example (not quite real but close) if I installed Java, I might want to set
    the value for JAVA_HOME as a persistent environment variable if the install
    doesn't create it.
    I know of several methods that work for setting an environment variable on the
    system, but none of them work particularly well for my purposes:
    1) Create a batch/cmd file containing the SETX command, place it somewhere
    accessible to the system, and use Run Script. The drawback is that this
    requires placing an extra little command file somewhere accessible to every
    system that runs the bundle.
    2) Add or modify the variable via the registry. This has the drawback of
    requiring a "refresh" action to somehow make the system see the variable value
    right away.
    err.... I think those are the only methods I know. Of course one can set an
    environment variable just associated with an action (except with11.2.3 agent)
    but I want to essentially modify the system permanently, but only for people
    getting the specific bundle.
    What's the best way to go about this? Am I missing something (personality?)?
    Thanks.
    -- DE
    Hi DE, have you tried with a VBS script? Here's a script that I use to add a path to the "PATH" variable and add 2 other system variables.
    Code:
    Dim CurrPath
    Dim NewPath
    strVarMAYA = "MAYA_LOCATION"
    strVarMUDBOX = "MUDBOX_LOCATION"
    strVarMAYAValue = "C:\Program Files\Autodesk\Maya2014"
    strVarMUDBOXValue = "C:\Program Files\Autodesk\Mudbox 2014"
    Set WshShell = CreateObject("WScript.Shell")
    Set WshSystemEnv = WshShell.Environment("SYSTEM")
    CurrPath = WshSystemEnv("PATH")
    NewPath = CurrPath & ";C:\Program Files\Autodesk\Maya2014\bin" & ";C:\Program Files\Autodesk\Mudbox 2014"
    WshSystemEnv("PATH") = NewPath
    WshSystemEnv(strVarMAYA) = strVarMAYAValue
    WshSystemEnv(strVarMUDBOX) = strVarMUDBOXValue
    For the PATH system variable you could use EditPath if you need to manipulate the content of the variable.
    Hope it helps!
    GuillaumeBDEB

  • X11 environment variables on MacBook Pro

    Hi
    I have just got my new MacBook Pro and have installed Gimp to run using x11 that came on the apple installation disks however I can't seem to get the xterm to configure correctly.
    GIMP is installed under /sw/bin but the default PATH for x11 does not include this location so I added PATH=$PATH:/sw/bin:/sw/sbin to a newly created .bash_profile. But x11 did not seem to use this file although terminal worked OK.
    After doing a bit of research, I then created a .bashrc file with the PATH defined and changed the .bash_profile to source .bashrc with no other entries.
    Again this worked OK for Terminal but now when I type 'echo $Path' in an x11 xterm the PATH displays two entries for /sw/bin & /sw/sbin. i.e.
    $ echo $PATH
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/sw/bin:/sw/sbin:/sw/bin:/sw/sbin
    Any ideas why? and how can I correct it?
    Macbook Pro 17   Mac OS X (10.4.9)  

    Sorry this was a bit brief; I think I was still asleep when I typed it.
    The reasons are these:
    1. Many fink programs require environment variables and other settings. When you source that init.sh file, it ensures everything is set up to work out of the box. (Among the things it does is to in turn source every relevant file in /sw/etc/profile.d -- take a look in it to see what, if anything, is in there). There is also some code to keep your path trimmed properly, so you don't get repeats pasted on.
    2. Bash is unique in that either .bashrc or .bash_profile, but not both, get sourced. In a rooted X11 environment, everything works properly, but on OS X, where X11 is "rootless," it leads to unexpected behavior like what you saw. As long as you put everything into one file and then tell the other one to source its contents, you should be ok.
    You can also run X11 stuff from Apple's terminal, provided you somewhere in a startup file have something to set the DISPLAY variable, usually to .0.
    I've put more discussion of these things here

  • How do I clear environment variables in 10.6

    I am having some difficulty in configuring custom paths with my environment variable, environment.plist.  In setting up some of my software, I am trying to configure custom paths so that I can eventually store preferences on the server for all users to access the same tools.  I had this working up until last week, when I installed a second piece of software, that modified my environment.plist file, which now doesn't work at all.
    My original environment.plist file, which is located in ~/MacOSX, was as follows:
    <plist version="1.0">
      <dict>
        <key>NUKE_PATH</key>
        <string>/Users/jamesdavidson/Documents/Nuke_Gizmos/Nuke</string>
        <key>OFX_PLUGIN_PATH</key>
        <string>/Users/jamesdavidson/Documents/Nuke_Gizmos/OFX</string>
      </dict>
    </plist>
    Which worked just fine.  It was then changed to:
    <plist version="1.0">
      <dict>
        <key>NUKE_PATH</key>
        <string>/Users/jamesdavidson/Documents/Nuke_Gizmos/Nuke</string>
        <key>OFX_PLUGIN_PATH</key>
        <string>/Users/jamesdavidson/Documents/Nuke_Gizmos/OFX</string>
        <key>PATH</key>
        <string>/bin:/sbin:/usr/bin:/usr/sbin:/usr/libexec:/Applications/Deadline/Resou rces/bin</string>
      </dict>
    </plist>
    and now, the only variable that shows up is PATH.  I edited the file back to the original, without the PATH variable, restarted my machine, and yet my Variables did not change...  Is there somewhere else that I should be looking?  Some other file?   this is what I get from terminal:
    $ echo $NUKE_PATH
    $ echo $OFX_PLUGIN_PATH
    $ echo $PATH
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Applications/Deadline /Resources/bin
    And this even after deleting my environment.plist file.  Any help would be appreciated.
    Thanks,
    James

    I hope you made a typo in your post and meant ~/.MacOSX.  You typed ~/MacOSX, i.e., without the leading dot.
    At any rate $PATH is a predefined shell variable so I suspect you cannot define that one with this environment.plist mechanism.  The "proper" way to set up such things is with a  ~/.bash_profile, ~/.bash_login, ~/.profile, or IMO, best of all. ~/.bashrc.  These are scripts the shell looks for during launch (somewhat depending on whether it's a login shell or not -- see the bash reference manual).
    If bash is executed interactively it will also first look for /etc/profile.  And it will cause a $PATH variable to be created.  So that is probably the definition you are seeing all the time until you create an appropriate startup script of your own (e.g., ~/.bashrc) to override or modifiy the existing $PATH variable.
    Note, I may have paraphrased a lttile too much so see section 6.2 Bash Startup Files in the bash reference documentation for the complete proper description of the order these files are used.  If you have the developer tools installed look for bashref.html.  Otherwise it's online here.
    Finally, if you look at /etc/profile you will see it attempting to execute /usr/libexec/path_helper -s.  Try that in terminal and see if that isn't the $PATH definition you are currently seeing.

  • Library paths and environment variables

    Hello,
    I am using 10g AS 9.0.4 on a Unix system.
    I am trying to convert an old JSP web application to work with 10g. It is not an EAR/WAR file so I am manually trying to set it up under the "default-web-app" folder. It uses a number of java class files which currently reside in $J2EE_HOME/default-web-app/WEB-INF/classes/mystuff.
    These class files require access to a number of libraries. I foolishly believed that they would be accessible if I were to place them in the $J2EE_HOME/default-web-app/WEB-INF/lib folder, but that did not work.
    I read that OC4J uses a "catch all" lib directory at $J2EE_HOME/applib. I copied the library files there and they still did not work.
    Frustrated, I tried to print out the environment variables for the server - only to find that this function is not supported.
    I managed to print out the library path by creating a Java class files which returns the following as a string:
    System.getProperty("java.library.path");
    This (when called from a JSP) prints a number of different library paths, none of which match those found listed in the $J2EE_HOME/config/application.xml file. I placed the library files in one of the paths listed by the "java.library.path" and it worked!
    3 questions:
    1. How do you print the server's environment variables using a JSP? This strikes me as a very useful function for sorting out library and path issues. Do a search on Google for "print environment variables OC4J" or something similar and there are no useful pages suggesting how this can be done.
    2. Why are the default library paths different on the server than to those specified in application.xml?
    3. How do I change the LD_LIBRARY_PATH (or any environment variable for that matter)? I have tried adding the following line to $ORACLE_HOME/Apache/Jserv/etc/jserv.properties without success:
    wrapper.env=LD_LIBRARY_PATH=/my/custom/library/path
    Any help you can offer would be most appreciated.

    >
    Thanks very much for a such a comprehensive response
    - it has helped answer a lot of questions, especially
    being able to print out the system properties. That
    will be really useful!
    No worries at all Rob.
    The main hurdle is that the libraries are indeed
    native (*.so) libraries. I hadn't considered that
    until you pointed it out in your message. Can I
    assume, then, that $J2EE_HOME/applib and
    $J2EE_HOME/default-web-app/WEB-INF/lib are only
    designed to handle Java's .JAR librares? That would
    explain why placing the native libraries in there
    didn't work, but is there a way of getting such
    native libraries recognised and bundled up in a
    WAR/EAR file?
    Yep, that's it.
    Our proprietary applib and the servlet specs web-inf/lib are only dealing with Java archives.
    The J2EE specs don't cover how to deal with native libs like this.
    Now I've NEVER EVER tried it, but it's worth a shot of at least trying -- for simplified packaging purposes, what you may be able to do is to distribute the .so's within the web-inf/lib -- and then just set that directory (where's its realized on the server after the app is deployed) to be referenced witihn the LD_LIBRARY_PATH. I'd expect our deployment manager will just ignore files it doesn't know about, so arguably you should be able to at least distribute them with the standard archive.
    You'll need to specifically set the LD_LIBRARY_PATH as a separate task outside of the deployment operation though.
    >
    This is where things get a bit weird, and is partly
    my fault during the installation of 10g AS.
    We already had an existing installation of Oracle 10g
    Database (10.1.0) at $ORACLE_HOME under the user
    "oracle". I logged in as the user "oracle" to install
    the Application Server into a different location (In
    this case, "$ORACLE_HOME/../ias10g_9.0.4" - let's
    call this $IAS_HOME). So there is no separate user
    account for Oracle Database and Application Server
    (and hence no separate $LD_LIBRARY_PATH).
    If I log into UNIX as the user "oracle" and echo the
    LD_LIBRARY_PATH, I get the following directories:
    $ORACLE_HOME/lib
    /usr/openv/netbackup/bin
    /usr/dt/lib
    /usr/lib
    I use this user to do "opmnctl stopall" and "opmnctl
    startall". If I then print out the library path from
    a JSP using
    "System.getProperty("java.library.path");", I get the
    following paths:
    $IAS_HOME/jdk/jre/lib/sparc/server
    $IAS_HOME/jdk/jre/lib/sparc
    $IAS_HOME/jdk/jre/../lib/sparc
    $IAS_HOME/opmn/lib
    $IAS_HOME/lib
    $IAS_HOME/usr/lib
    Which is totally different to those listed by
    $LD_LIBRARY_PATH at the command line, which means
    they must be coming from somewhere else.
    It gets worse - my application is trying to call a
    native library that is only present in the
    $ORACLE_HOME/lib32 directory (libclntsh.so.10.1), so
    unless I can include this path in the
    "java.library.path" on the Applicaiton Server, then
    my program will not work.
    So, how do I change the "java.library.path" when the
    values aren't coming from $LD_LIBRARY_PATH in the
    first place?
    The utility $IAS_HOME/opmn/bin/opmnctl is actually a shell script.
    It has this section which sets the LD_LIBRARY_PATH:
    if [ -z "$LD_LIBRARY_PATH" ]
    then
    LD_LIBRARY_PATH=$ORACLE_HOME/opmn/lib:$ORACLE_HOME/lib ; export LD_LIBRARY_PATH
    else LD_LIBRARY_PATH=$ORACLE_HOME/opmn/lib:$ORACLE_HOME/lib:${LD_LIBRARY_PATH} ; export LD_LIBRARY_PATH
    fi
    So if you have an existing LD_LIBRARY_PATH env var set, it should just be putting its paths onto the front of it.
    What you could try as a quick test is to edit the opmnctl script (after taking a backup of course) and either appending the path you need to it, or just add some debug statements to output the LD_LIBRARY_PATH value it ends up setting so you can try and work out what's causing it.
    I expect these other entries:
    $IAS_HOME/jdk/jre/lib/sparc/server
    $IAS_HOME/jdk/jre/lib/sparc
    $IAS_HOME/jdk/jre/../lib/sparc
    are coming from the JRE when it is launched, in probably a similar manner to our opmn entries.
    I really appreciate your help, and I bet if anyone
    can answer these questions, you can! ;-)
    You're very welcome.
    cheers
    -steve-

  • How do I use a OS (Windows) Environment Variable in the source path of me ActionScript 3.0 settings

    I'm sure this can be done as I know we used something similiar at my old work place, below is an image showing what I am attempting to do.
    We used this to create more portable / shareable assets files which when symbols are linking to code, the code was very often in different directories on different machines.
    So we had set up environment variables in the OS to point to source directories and then used these variables in the source paths.
    As long as everyone had these variables set up then it would all work.
    Anyone know the correct way to do this in Flash CC
    Thanks in advance!
    Best Wishes
    Rhys Thomas

    sinious the problem with doing that is that the changed path gets into the code repository as well, so you wind up with everyone going back and forth changing it to their own value, which is a hassle. If you use relative paths and a standard project setup, then it all "just works" without a problem.
    For example, this is the setup I use:
    .dev
         .thisProject
              .Flash1
                   Flash1.as
                   .Flash1
                        Flash1.xfl
                   .view
                        .audioAssets
                        .customViews
              .SoundLib
                   SoundLib.xfl
              SoundLib.swc
         .bin <swfs are output here
              .xml
         .core
              .control
              .model
              .service
              .view
    We have a "base project" that you check out to start a new project (we do heaps of similar work), and the paths are already set up to be relative. Having each project point to its own copy of the core code allows for fine-grained control of which revision you're using--we've even pointed deliberately to old versions or branches on rare occasions.
    The bin folder is actually shared with the website repository, which is in a different directory from the Flash source code (in the website, it has a different name). This allows the generated swfs to be easily updated and ensures that the latest XML is being used both for development and on the site.
    The "thisProject" folder actually includes a Flash Builder workspace with all the standard shortcuts, etc., already set up. This is primarily because of how the "default path" works when you create a new Flash Pro project in FB. Because we output a level up from the workspace, we hack the .metadata folder every time, but that's a small change.

  • Best practice for setting an environment variable used during NW AS startup

    We have installed some code which is running in both the ABAP and JAVA environment, and some functionality of this code is determined by the setting of operating system environment variables. We have therefore changed the .sapenv_<host>.csh and .sapenv_<host>.sh scripts found in the <sid>adm user home directory. This works, but we are wondering what happens when SAP is upgraded, and if these custom shell script changes to the .sh and .csh scripts will be overwritten during such an upgrade. Is there a better way to set environment variables so they can be used by the SAP server software when it has been started from <sid>adm user ?

    Hi,
    Thankyou. I was concerned that if I did that there might be a case where the .profile is not used, e.g. when a non-interactive process is started I was not sure if .profile is used.
    What do you mean with non-interactive?
    If you login to your machine as sidadm the profile is invoked using one of the files you meant. So when you start your Engine the Environment is property set. If another process is spawned or forked from a running process it inherits / uses the same Environment.
    Also, on one of my servers I have a .profile a .login and also a .cshrc file. Do I need to update all of these ?
    the .profile is used by bash and ksh
    The .cshrc is used by csh and it is included via source on every Shell Startup if not invoked with the -f Flag
    the .login is also used by csh and it is included via source from the .cshrc
    So if you want to support all shells you should update the .profile (bash and ksh) and one of .cshrc or .login for csh or tcsh
    In my /etc/passwd the <sid>adm user is configured with /bin/csh shell, so I think this means my .cshrc will be used and not the .profile ? Is this correct ?
    Yes correct, as described above!
    Hope this helps
    Cheers

  • Unix shell: Environment variable works for file system but not for ASM path

    We would like to switch from file system to ASM for data files of Oracle tablespaces. For the path of the data files, we have so far used environment variables, e.g.,
    CREATE TABLESPACE BMA DATAFILE '${ORACLE_DB_DATA}/bma.dbf' SIZE 2M AUTOEXTEND ON;
    This works just fine (from shell scripts, PL/SQL packages, etc.) if ORACLE_DB_DATA denotes a file system path, such as "/home/oracle", but doesn’t work if the environment variable denotes an ASM path like "\+DATA/rac/datafile". I assume that it has something to do with "+" being a special character in the shell. However, escaping "\+" didn’t work. I tried with both bash and ksh.
    Oracle managed files (e.g., set DB_CREATE_FILE_DEST to +DATA/rac/datafile) would be an option. However, this would require changing quite a few scripts and programs. Therefore, I am looking for a solution with the environment variable. Any suggestions?
    The example below is on a RAC Attack system (http://en.wikibooks.org/wiki/RAC_Attack_-OracleCluster_Database_at_Home). I get the same issues on Solaris/AIX/HP-UX on 11.2.0.3 also.
    Thanks,
    Martin
    ==== WORKS JUST FINE WITH ORACLE_DB_DATA DENOTING FILE SYSTEM PATH ====
    collabn1:/home/oracle[RAC1]$ export ORACLE_DB_DATA=/home/oracle
    collabn1:/home/oracle[RAC1]$ sqlplus "/ as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Aug 24 20:57:09 2012
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    SQL> CREATE TABLESPACE BMA DATAFILE '${ORACLE_DB_DATA}/bma.dbf' SIZE 2M AUTOEXTEND ON;
    Tablespace created.
    SQL> !ls -l ${ORACLE_DB_DATA}/bma.dbf
    -rw-r----- 1 oracle asmadmin 2105344 Aug 24 20:57 /home/oracle/bma.dbf
    SQL> drop tablespace bma including contents and datafiles;
    ==== DOESN’T WORK WITH ORACLE_DB_DATA DENOTING ASM PATH ====
    collabn1:/home/oracle[RAC1]$ export ORACLE_DB_DATA="+DATA/rac/datafile"
    collabn1:/home/oracle[RAC1]$ sqlplus "/ as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Aug 24 21:08:47 2012
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    SQL> CREATE TABLESPACE BMA DATAFILE '${ORACLE_DB_DATA}/bma.dbf' SIZE 2M AUTOEXTEND ON;
    CREATE TABLESPACE BMA DATAFILE '${ORACLE_DB_DATA}/bma.dbf' SIZE 2M AUTOEXTEND ON
    ERROR at line 1:
    ORA-01119: error in creating database file '${ORACLE_DB_DATA}/bma.dbf'
    ORA-27040: file create error, unable to create file
    Linux Error: 2: No such file or directory
    SQL> -- works if I substitute manually
    SQL> CREATE TABLESPACE BMA DATAFILE '+DATA/rac/datafile/bma.dbf' SIZE 2M AUTOEXTEND ON;
    Tablespace created.
    SQL> drop tablespace bma including contents and datafiles;

    My revised understanding is that it is not a shell issue with replacing +, but an Oracle problem. It appears that Oracle first checks whether the path starts with a "+" or not. If it does not (file system), it performs the normal environment variable resolution. If it does start with a "+" (ASM case), Oracle does not perform environment variable resolution. Escaping, such as "\+" instead of "+" doesn't work either.
    To be more specific regarding my use case: I need the substitution to work from SQL*Plus scripts started with @script, PL/SQL packages with execute immediate, and optionally entered interactively in SQL*Plus.
    Thanks,
    Martin

  • APPLLCSP Environment Variable set to : BITMAP

    Hi,
    While running my report in application i am geting error with the message below..
    APPLLCSP Environment Variable set to :
    BITMAP
    XML_REPORTS_XENVIRONMENT is :
    /apps/applap/11.5.9.appch/8.0.6.appch/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    XENVIRONMENT is set to: /apps/applap/11.5.9.appch/8.0.6.appch/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    AMERICAN_AMERICA.UTF8
    Can any one help on this?
    Thanks In Advance,
    RR

    check this link:
    Change NLS_NUMERIC_CHARACTERS from ., to ,.
    --Jayant                                                                                                                                                                                   

Maybe you are looking for

  • Populating item number in table control

    I have created a custom table control. It is very similar to the VA01 or Vl01N table controls to add items. When the user enters the material name, the item number column needs to be populated. Currently I have something like this LOOP at i_items. MO

  • Setting Movieclip Position

    I have a movieclip controlled by a button.... So far everything has gone to plan... My problem is this... Currently all the Movieclip instances are on the same layer and when the movie is run I find the inactive instances are above the movieclip I wi

  • Re-seting "first call?" in sub VI

     I am trying to use the 'first call?" thinger in a sub-VI.  I thought it would re-set when the sub-VI was closed, but when it is called again, the "first call?" thing does not give me a true.  Is there any way of correcting this?

  • SetCurrentRow does not set the right class on the new row selected

    This has to do with using setCurrentRow and having spry:select used on the active row to enable selection highlighting. When setting the current row programmatically by invoking setCurrentRow, the row get seccessfully set, but the class is not set to

  • Problems downloading Adobe Acrobat Pro, Mac, lost Photoshop CS5

    I was loading Adobe Acrobat Pro, and as it seemed not to be downloading (taking much too long) I forced quit. It disappeared from the desktop and I can not reload. Error code 131:4 Also my Photoshop CS5 disappeared! I have it  in my system but as it