Windows - PERL5LIB Environment variables

Hi All,
I was trying out xampp and I removed the perl5lib environment variables for Oracle. Unfortunately, I did not save the settings in notepad or something and yes, I know how stupid that was. Consequently, now all the clients are failing on that server. For example, if I click on SQL*Plus, I get the "Need to set ORACLE_HOME" error (same thing for PHP, etc.).
I would really appreciate it if someone can send me their PATH and PERL5LIB environment variables from a Windows (preferrably XP) installation of Oracle. Also, is there some other way to restore these values? Like a bat file or something that gets installed. Thanks a lot.

Hi. Thank you for your response. I tried rebooting, but I still get the error.
Like I said, the only change I made was to the environment variables. It is possible that xampp made some changes behind the scenes, but the only known change was me replacing the Oracle PERL paths with the xampp PERL paths in the Windows environment variables (through "My Computer" --> "Properties").
Is it possible to do a re-configuration using the installer instead of a complete re-install? If you have any other ideas, I would appreciate it. Thanks.

Similar Messages

  • Windows System Environment Variables in "Sql * plus"

    Can i use/reference Windows System Environment variables in "Sql * plus"?
    For example, i want to create sql-script to run in database server computer that asks variable "ORA_HOME" and uses this value to execute some sql/plsql sentences.
    Oracle 10g Personal, Windows 7.
    Edited by: CharlesRoos on 12.11.2010 17:28

    CharlesRoos wrote:
    Business problem:
    I have created 2 databases in my computer. Both databases needs tablespaces created by a script. Tablespaces' datafiles (.dbf files) names are same for both database. Both database has it's own directory where it holds datafiles at the moment. At the moment the datafiles for Database1 are in folder something like "%ORACLE_HOME%"\oradata\%databasename1%\*.dbf, and second database has its datafiles in other folder, somewhere ""%ORACLE_HOME%"\oradata\%databasename1%\*.dbf". I want now the script to create tablespace called "INDX" with same datafile name "indx1.dbf" into both database. So into both mentioned folder the file "indx1.dbf" must be created by script. I think the script should do following:
    1. get ORACLE_HOME.
    2. connect to database "databasename1"
    3. EXECUTE IMMEDIATE "Create TableSpace INDX....file=%ORACLE_HOME% || databasename1 || indx1.dbf"
    4. connect to database "databasename2"
    5. EXECUTE IMMEDIATE "Create TableSpace INDX....file=%ORACLE_HOME% || databasename2 || indx1.dbf"I don't have Oracle database near by anymore, so the code was pseudocode.
    I don't understand how to use ?-shortcut.OK, my first impression is "why does this even NEED to be scripted? Creation of new tablespaces is usually a one-off operation.
    But that aside how about this sqlplus command-line substitution variables. This example is in linux, but will work as well in Windows with the change of the way environment variables are referenced:
    *nix - echo $myvariable
    Windows - echo %myvariable%
    First, the sqlscript to create the TS. Note the use of the substitution variable "&1"
    {code}
    [oracle@vmlnx01 ~]$ cat cat makets.sql
    set echo on feedback on verify on trimsp on
    prompt &1
    CREATE SMALLFILE TABLESPACE EDSTEST
    DATAFILE '/ora01/oradata/&1/edstest.dbf'
    SIZE 5M
    REUSE
    AUTOEXTEND ON
    NEXT 1280K
    MAXSIZE 32767M
    LOGGING
    EXTENT MANAGEMENT LOCAL
    SEGMENT SPACE MANAGEMENT AUTO
    drop tablespace edstest
    including contents and datafiles
    exit
    {code}
    So, at the OS prompt: Notice that the @ is separated by a space, makeing it a command line parm instead of part of the connect string
    {code}
    [oracle@vmlnx01 ~]$ export myparm=vlnxora1
    [oracle@vmlnx01 ~]$ sqlplus system/pswd @makets $myparm
    SQL*Plus: Release 10.2.0.4.0 - Production on Fri Nov 12 13:18:05 2010
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> prompt &1
    vlnxora1
    SQL> --
    SQL> CREATE SMALLFILE TABLESPACE EDSTEST
    2 DATAFILE '/ora01/oradata/&1/edstest.dbf'
    3 SIZE 5M
    4 REUSE
    5 AUTOEXTEND ON
    6 NEXT 1280K
    7 MAXSIZE 32767M
    8 LOGGING
    9 EXTENT MANAGEMENT LOCAL
    10 SEGMENT SPACE MANAGEMENT AUTO
    11 ;
    old 2: DATAFILE '/ora01/oradata/&1/edstest.dbf'
    new 2: DATAFILE '/ora01/oradata/vlnxora1/edstest.dbf'
    Tablespace created.
    SQL> --
    SQL> drop tablespace edstest
    2 including contents and datafiles
    3 ;
    Tablespace dropped.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@vmlnx01 ~]$
    {code}

  • PERL5LIB environment variable problem

    Greetings.
    Oracle 10.1.0.3 apparently creates an environment variable named PERL5LIB. The pathing is causing a CGI application we're running to fail. Is there a way to get Oracle to work successfully without creating the variable or specifying the path another way ?
    Thanks.
    alan

    Have you tried adding your previous PERL5LIB path to the new on created by the install? I recently had to modify my PERL5LIB to run OPatch and updated it with the current and previous entries and all worked fine for me.
    -shawn

  • Unable to access value in System Environment Variable using Java

    I am using Java code to get the value of a System Environment Variable using the Runtime, Process java classes.
    The code works fine in tomcat, but when deployed in 9ias the code is unable to retrieve the value stored in the System environment variable in Windows 2000.

    Thanks for the comment steve, here is the code which i am using.
         public String getEnvironmentVariable()
                   // This will get the FEDREP_HOME environment variable
                   String FEDREP_HOME = null;
                   Process p = null;
                   Runtime rt = Runtime.getRuntime();
                        try {
                             // invokes a shell-command to retrieve FEDREP_HOME variable
                             String OS = System.getProperty("os.name").toLowerCase();
                                  // Get the Windows 95 environment variable
                                  if (OS.indexOf("windows 9") > -1)
                                            p = rt.exec( "command.com /c echo %FEDREP_HOME%" );
                                  // Get the Windows NT environment variable
                                  else if (OS.indexOf("nt") > -1)
                                            p = rt.exec( "cmd.exe /c echo %FEDREP_HOME%" );
                                  // Get the Windows 2000 environment variable
                                  else if (OS.indexOf("2000") > -1)
                                            p = rt.exec( "cmd.exe /c echo %FEDREP_HOME%" );
                                  // Get the Windows XP environment variable
                                  else if (OS.indexOf("xp") > -1)
                                            p = rt.exec( "cmd.exe /c echo %FEDREP_HOME%" );
                                  // Get the unix environment variable
                                  else if (OS.indexOf("linux") > -1)
                                            p = rt.exec( "sh -c echo $FEDREP_HOME" );
                                  // Get the unix environment variable
                                  else if (OS.indexOf("unix") > -1)
                                            p = rt.exec( "sh -c echo $FEDREP_HOME" );
                                  // Get the unix environment variable
                                  else if (OS.indexOf("sunos") > -1)
                                            p = rt.exec( "sh -c echo $FEDREP_HOME" );
                                  } else
                                            System.out.println("OS not known: " + OS);
                             // set up to read subprogram output
                             InputStream is = p.getInputStream();
                             InputStreamReader isr = new InputStreamReader(is);
                             BufferedReader br = new BufferedReader(isr);
                             // read output from subprogram
                             FEDREP_HOME = br.readLine();
                             br.close();
                        } catch(Exception ex)
                                  System.out.println("Error when getting FEDREP_HOME environment variable");
                                  ex.printStackTrace();
              return(FEDREP_HOME);

  • Setting Environment variable in windows xp

    Hi all,
    I am trying to run a java program in textpad, which is installed in windows XP, but i am getting the following error.
    java.lang.NoSuchMethodError: main
    Exception in thread "main"
    Can anybody tell me, how to set the environment variable in the control panel.
    Thanx,
    Guddu

    java.lang.NoSuchMethodError: main
    Exception in thread "main"This error is NOT caused by an environmental variable mis-configuration. It means you did not define a main method correctly, or you are trying to run a class as an application and it is not an application.public static void main(String[] args)

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

    You 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

  • Setting environment variables remotely doesn't work for Windows 7

    Hi,
    $RemoteMachineList = 'machA', 'machB'
    $session = New-PSSession $RemoteMachineList
    Invoke-Command -Session $session {[Environment]::SetEnvironmentVariable("Role",0,"Machine")}
    The above is the code snippet which I've tried for setting a machine level environment variable. After executing this code in a collection of XP and Windows 7 machines, when I go and check the advanced settings->system environment variables, I can see
    the new entry "Role" in all the machines. But unfortunately, this env variables actually gets set only in XP machines(I did a set command from a cmd prompt/or an echo command) whereas in Windows 7 machines, this doesn't exists even though it
    shows up in the advanced settings->system environment variables.
    Tried in several machines, only Windows XP is yielding the required result.
    Please help. 
    Thanks in advance ! 
    -Aravind

    Thanks Chen, but still the same result. 
    I'll narrow down the scenario(actually two scenarios) as per the way it's behaving on Windows 7 machines.
    Case - 1
    1. I do a SetEnvironmentVariable remotely.
    2. I go to that remote machine and search in advanced settings -> system env variables window. Dont click on the OK Button.  Close these windows.
    Result: Yes it is there as an entry.
    3. I open up a command prompt and type 'set'
    Result: No it is not set.
    4. Again open up advanced settings -> system env variables window. Click on the OK Button.  Close these windows.
    5. Now open up a command prompt window and type 'set'
    Result: It is set now
    Case 2:
    1. I do a SetEnvironmentVariable remotely.
    2. I go to that remote machine and search in advanced settings -> system env variables window. Dont click on the OK Button.  Close these windows.
    Result: Yes it is there as an entry.
    3. I open up a command prompt and type 'set'
    Result: No it is not set.
    4. I do a system restart.
    5. Open up a command prompt and type 'set'
    Result: It is set now
    Any idea why this is behaving like this(more or less like setting a user level env variable), please  ? I've to some way get through this obstacle to advance further. Thanks a lot for the support

  • Setting Oracle environment variable using batch (.bat) file in windows

    Hi,
    Oracle 9i db
    Windows OS
    I am in process to create the database (Considered that Oracle9i software is already installed) by running one batch file which consist of all the scripts for the database creation.
    But i also want to set the environment variables at MyComputer(right click)>properties>advance>environment, permenently by running the batch (.bat) file
    ORACLE_HOME
    ORACLE_BASE
    ORACLE_SID
    So, how can it be done ?
    With Regards

    Hi,
    *@echo off*
    set ORACLE_SID=iprsdb
    set ORACLE_BASE=C:\oracle
    set ORACLE_HOME=C:\oracle\ora92     
    call C:\install_bkp\test_env_var.bat
    echo Test Successfull.
    Above mentioned is the code written in the batch (.bat) file
    In that i have also called another .bat file which test the env. variable values which is as below:
    c:\>test_env.bat
    ===================
    Testing oracle sid
    ===================
    iprsdb
    =====================
    Testing oracle base
    ===================
    C:\oracle
    =====================
    Testing oracle home
    =====================
    C:\oracle\ora92
    Test Successfull.
    But when i checked at MyComputer(right click)>properties>advance>environment variables
    there, I saw none of the entries from the above, why so ?
    how to set env. variables permanently using the DOS commands. ?
    With Regards

  • How to include Windows environment variables in e-mail action scheduled task

    Hello Support,
    Is it possible to include Windows environment variables such as %username% or %computername% in the subject line or body of the "Send e-mail" action item of the Task Scheduler?  For example, I would like when I setup a scheduled
    task to perform a certain task and send an e-mail message,  the email should include either the user name or computer name in the subject line and body of the e-mail.  Is that possible?
    Thanks

    Hi,
    You can create a new Scheduled Task preference item to solve your requirement.
    Checkout the below link for more information,
    http://technet.microsoft.com/en-us/library/dd851678.aspx
    Regards,
    Gopi
    JiJi
    Technologies
    I created a scheduled task and that does not provide what I need.  The scheduled task will simple send an mail, but I want to know from which machine or user triggered the email.  I also tried adding the batch file to the scheduled
    task and that did not work even though the scheduled task has the following settings. 
    User Configuration >> Prefence >> Control Panel Settings >> Scheduled Tasks
    When running the task, use the following user account
    NT AUTHORITY\System
    Run whether user is logged on or not 
    Run with highest privileges  HighestAvailable
    Configure for: Windows 7
    I also tried with Computer Configurations

  • Can environment variable be used in Windows

    Can an environment variable be set and used in Windows for compiling.
    For example, instead of typing in something like
    javac -classpath c:/java/j2sdk/xml/lib/jaxb.jar MyProg.java
    can I set an environment variable (call it "ev")
    to c:/java/j2sdk/xml/lib
    (or would it be c:\java\j2sdk\xml\lib)
    so that something like one of the following (which one?) will work:
    javac -classpath ev/jaxb.jar MyProg.java
    or
    javac -classpath %ev%/jaxb.jar MyProg.java
    or
    javac -class path %ev%\jaxb.jar MyProg.java

    Don't know - best way to find out is to test.

  • Jar file doesn't read classpath environment variable from windows xp

    I created a small program that uses javamail and jdbc driver. I program on Win XP and use java 1.6.04.
    When I compiled my classes the program works fine but when I created a jar package the jar file cannot 'see' the classpath that windows has already set.
    I have to set the classpath in the manifest file and then it works ok.
    Is this normal? I was expecting that the jar file would work just fine without any complication since the classpath is already set in the system?
    If you could point to any documentation that covers this it would be great.
    Thank you very much.
    Genti

    genti_tech wrote:
    I specified the class-path in manifest in jar file and I looked at the tutorial you are suggesting:
    http://java.sun.com/docs/books/tutorial/deployment/jar/
    which is not clear at all about the fact that jar ignores the class-path environment variable.It is specified for java. http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html#-jar

  • Is there any way to get windows environment variables like %USERNAME% with javascript?

    is there any way to get windows environment variables like %USERNAME% with javascript using Adobe 10 pro?

    There is a fair amount of Acrobat JavaScript and Acrobat knowledge need to sort all of this out.
    The identity object holds a lot of sedative information. First, upon installation of Acrobat, only the login name is available in the identity object and the end user of the application needs to complete the "Name", "email" and "Organization Name" in the application's preferences. These are the only fields that are available to Acrobat JavaScript identity object as corporation, email, loginName, and name.
    Using the instructions in The Acrobat JavaScript Console (Your best friend for developing Acrobat JavaScript) you can run the following script in the JS console to see the items of the identity object:
    for(i in identity) {
    console.println(i +": " + identity[i]);
    and the following will appear in the console:
    loginName: georgeK
    name: George Kaiser
    corporation: Example
    email: [email protected]
    true
    The documentation states you need to use a trusted function to access this data, but you can access it at startup of Acrobat/Reader and add the properties of the identity object to an array:
    // application variable to hold the properties of the identity object
    var MyIdentity = new Array();
    // loop through the properties of the identity object
    for (i in identity) {
    // place each property of the identity object into an element of the same name in the Identity array
    MyIdentity[i] = identity[i];
    console.println(i +": " + MyIdentity[i])
    You access the items with:
    var loginUser = MyIdentity[loginName];  // get the loginName property
    In the user application level JavaScript file. See Acrobat Help / User JavaScript Changes for 10.1.1 (Acrobat | Reader) for the location of the application level folder you need to use.
    I would change the name of the array used in this post so an untrusted user cannot get to your data. Some of this data can be used in hacking into a user's system.

  • Multiple oracle homes on Windows and the "Path" environment variable

    Hi There,
    We have a windows 2003 database server that has few databases running oracle 10.2.0.3. We are installing oracle 11.2.0.1 on the box as well, and we were wondering, which binaries should come 1st in the path environment variable? and how does this effect the working oracle environment?
    Going to the oracle home selector and swapping the 2 oracle homes around will have the same effect on the windows path variable - which will treat the 1st oracle home to be the default home - are there any general rules reg. multiple oracle homes on a server and the default home?
    Should the earlier version of oracle always proceed the newer one (i.e. c:\oracle\product\10.2.0.3\bin;c:\oracle\product\11.2.0.1\bin) or should the newer oracle version comes 1st as newer oracle versions are usually backward compatible?
    Your thoughts are highly appreciated.
    Thanks

    That isn't going to happen.
    If you install 11.2 last it will appear in the PATH variable first
    If you don't want that you need to Oracle Home Selector utility in the Installer to change it.
    Obviously, as usual, all of this is documented.
    Sybrand Bakker
    Senior Oracle DBA

  • Environment variables for j2ee1.4sdk on windows xp home

    Hello,
    I have just installed J2EE 1.4 SDK on Microsoft Windows XP Home, and everything went fine. I can start the Apache Server and run the demos. But I installed it to be able to compile own code!
    So now abaout my problem: The installation guide says I should set some environment variables. But I dont know what paths to set the variables to!
    The installation program has created a directory "C:\Sun". That directory contains only one subdirectory: "C:\Sund\AppServer". In that directory are, among others, a subdirectoy "bin" which includes some ".bat" files like "asant.bat", and a subdirectory "jdk", which also includes an own subdirectory "bin" with the well-known executables "java.exe", "javac.exe" and some more executables.
    What environment variables do I have to set, and to which values??? "http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html" says:
    In order to run the asant scripts, you must configure your environment and properties files as follows:
    * Add <JAVA_HOME>/bin to the front of your path.
    * Add <J2EE_HOME>/bin and <J2EE_HOME>/share/bin to the front of your path so that J2EE 1.4 Application Server scripts (asadmin, asant, deploytool, and wscompile) override other installations.
    * Set the j2ee.home property in the file <INSTALL>/j2eetutorial14/examples/common/build.properties to the location of your J2EE Application Server installation. The build process uses the j2ee.home property to include the J2EE library archive, <J2EE_HOME>/lib/j2ee.jar, in the classpath. If you wish to use an IDE or the javac compiler to build J2EE applications, you must add this JAR to your classpath.
    - so do I only have to set the %PATH% variable or also %CLASSPATH% manually?
    - what directories do I have to set the variables to according to my directory structure as described above?
    Thanks in advance! :)
    yours sincerely,
    Stefan

    Instructions you are reading are relevant for J2EE 1.4 tutorial samples - if you want to compile and deploy your own code you don't have to go through all the steps described in tutorial documentation.
    Based on the information you provided about your installation you should do the following in order to compile your own code:
    * add C:\Sun\AppServer\jdk\bin;C:\Sun\AppServer\bin; at the beginning of your existing PATH
    (you don't have to add C:\Sun\AppServer\share\bin for the simple reason that it does not exist anymore in this release and its content got moved into C:\Sun\AppServer\bin)
    * in order to compile your code, you must make sure that C:\Sun\AppServer\lib\j2ee.jar is in your classpath - how are you going to achieve that depends on the development environment you are using
    Hope this helps...

  • Windows Environment Variable

    Hey,
    I am trying to use
    cl_gui_frontend_services=>gui_download
    and include the windows environment variable %USERPROFILE%
    in the path for example:
    filename = '%USERPROFILE%/filename.txt'
    that only creates a directory called %USERPROFILE% but not the Variable.
    Has anybody experienced this ?
    Thank your for your help,
    kind Regards
    Christof

    you have to use the following code to get the environment variable value and then use that with gui_download
    call method cl_gui_frontend_services=>environment_get_variable
          exporting
            variable     = p_envir_name
          changing
            value        = ls_envir_path
          exceptions
            cntl_error   = 1
            error_no_gui = 2
            others       = 3.
    call method cl_gui_cfw=>flush
          exceptions
            cntl_system_error = 1
            cntl_error        = 2
            others            = 3.

Maybe you are looking for

  • Layout Issue for Operation

    HI All, I am facing an issue of Operation  Layout differ in both Client. Suppose  i i have two client 200 and 201 in that  I am getting an activity type and unloading Point in one client and another client earliest start date and  end date soboth lay

  • Check point not completed in oracle 8i

    Hi, in alert log file i found the error like: Thread 1 cannot allocate new log, sequence 216998 Checkpoint not complete Current log# 5 seq# 216997 mem# 0: /oracle5/oradata/metasolv/redo05.log Current log# 5 seq# 216997 mem# 1: /oracle2/oradata/metaso

  • JSP compilation errors in weblogic 6.1

              I'm getting these JSP compilation errors in weblogic 6.1 on Solaris. Please help.           Full compiler error(s):           error: Invalid class file format:           ^           /opt/projects/redherring/beahome/wlserver6.1/config/mydoma

  • Website payment and shopping cart buttons not working on Windows Phone browser

    A customer shopping on our site notified me that the "add to cart" and "view cart" buttons were taking him to the PayPal main site and not the shopping cart. I tried a Windows Phone at the Verizon store and found the same issue. I have tested the sit

  • My CD burner won't work

    I have a new music CD I want to put on my iPod, but my CD stopped working. Is there a way to open iTunes on a different computer then put the songs in my iTunes library? I am at the library now and brought the music CD and also a flash drive thinking