Changing directory name of ORACLE_HOME in UNIX

Whats the process to be followed if we change the directory name (any directory of ORACLE_HOME) in UNIX on the same machine. My understanding is after renaming unix directory we need to do relinking (relink all) and then run root.sh file.
Does it really require to run root.sh or relinking will do?
Thanks!!

The "safest" thing to do would be to install (create) a new ORACLE_HOME.
OR
"clone" your ORACLE_HOME to the new location.
I believe that Chapter 7 of the OUI documentation :
http://download.oracle.com/docs/cd/B19306_01/em.102/b16227/oui7_cloning.htm#BCGEJGAJ
may not be complete. There are a few MetaLink Notes on cloning the ORACLE_HOME.
See Notes 565009.1 and 300062.1

Similar Messages

  • Precompiling JSPs changes directory name

    I am using the weblogic.appc compiler to precompile JSPs and I noticed that if my source folder name contains a hyphen, eg. my-test, after precompilation the class files are stored under \WEB-INF\classes\jsp_servlet\_my_45_test\ directory.
              The "-" in the name is substituted by its ASCII value. Is there a way to stop this from happening other than choosing a different name for the source folder?
              Thanks

    cranestar wrote:
    Oracle db versesion : 11g
    Apex version: 4.1.0.00.32
    I have created a file browse object on a page. After filling several text boxes and selecting a file the page writes a row into a table
    in the database.
    When a file is selected with the file browse the name looks like:
    C:\OracleApex\PDM-BOM comparison app\datafiles\B-15680-49_D_SAP.CSV
    However in the database the name appears as:
    F1531709975/B-15680-49_D_SAP.CSV
    What happened to the directory name? This causes problems because I need to use the directory and file name in a utl_file
    utility.<tt>F1531709975</tt> is produced to provide a unique file identifier in the <tt>apex_application_files</tt> view, and is the session state value of the file browse control that uploaded the file. The actual filename is available in the <tt>filename</tt> column.
    As has been noted in many previous threads on this topic: For security/privacy reasons recent versions of browsers by default do not send local file path information from File Browse items to the server, nor expose the file path in the control's JavaScript methods. Firefox, Safari and Chrome only provide the filename. IE6 & IE7 still yield the path in Windows format. IE8+ and Opera have adopted an irritating approach of replacing the path with a wholly imaginary "C:\fakepath\"&mdash;and this monstrosity has sadly had to be enshrined in the HTML5 spec...
    Changing IE's security config setting "Include local directory path when uploading files" enables the path to be exposed in IE, but unless you're working in an intranet environment where: IE is the only browser used; it's possible to make remote changes to this setting on every desktop; and this won't break/expose anything else, then trying to achieve this is pointless.
    For more information see:
    http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-March/018980.html
    http://blogs.msdn.com/ie/archive/2009/03/20/rtm-platform-changes.aspx
    http://developers.whatwg.org/number-state.html#file-upload-state

  • Change Directory Name

    Can i use java to change the names of directories, or use it to make new directories, move files to directories, etc?
    Thanks.
    Lawrence Lu

    On most operating systems out there (probably excluding windows) a directory is just another file. Java treats directories as if they were files so the answer to your question is yes it will rename directories as well as files.
    Yes it can have dire consequences but it is your responsibility as the programmer to protect against that.
    yes there is security depending on your operating system you generally have to have permission to change the name of a directory thus the IOException that can be thrown.

  • Change Directory Name in solaris

    //This program is for converting all uppercase folder names into lower case. The code is running successfully in windows platform. But in Sun solaris its not working
    import java.io.*;
    class RenameMigFiles {
    private RenameMigFiles(String args) {
    try {
    readFiles(args);
    } catch (IOException ex) {
    System.out.println(ex);
    private void readFiles(String args) throws IOException {
    String fpath = null;
    if (args.length() == 0) {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    fpath = reader.readLine();
    } else
    fpath = args;
    File file;
    file = new File(fpath);
    if (file.isDirectory()) {
    visitSubDir(file);
    public void visitSubDir(File dir) {
    if (dir.isDirectory()) {
    //System.out.println(dir.getAbsolutePath());
    processDir(dir.getParent(), dir.getName());
    String child[] = dir.list();
    for (int i = 0; i < child.length; i++)
    visitSubDir(new File(dir, child));
    public void processDir(String parent, String child) {
    String fseperator = File.separator;
    if (!parent.endsWith(fseperator))
    parent = parent + fseperator;
    child = child.toLowerCase();
    File tf = new File(parent, child);
    tf.renameTo(new File(parent, child)); //In sun solaris this portion is not working
    // here i want to change the all uppercase folder names into lower case
    public static void main(String args[]) {
    String sFoldeName = args[0];
    RenameMigFiles tdir = new RenameMigFiles(sFoldeName);

    Hey,
    You said this code is running successfully in windows platform, and not in Sun solaris.
    I don't use Solaris, but I think this is because windows platform doesn't make a distinction between file or folder names into lower case and into upper case to point on a file or a folder. The case may be an property on windows ...
    So with Sun solaris, in your visitSubDir(File dir) method, the dir variable points on an folder which doesn't exist after processDir(dir.getParent(), dir.getName());. We are for instance with dir = new File(/a/B/); :
         public void visitSubDir(File dir) {
              if (dir.isDirectory()) {
                   //dir points on /a/B/
                   processDir(dir.getParent(), dir.getName());
                   //dir points on /a/B/ and should point on /a/b/
                   String child[] = dir.list();
                   for (int i = 0; i < child.length; i++)
                        visitSubDir(new File(dir, child));
         }There is a problem because you create a new File object in processDir(String parent, String child). You should define processDir(File dir) rather. And call renameTo() on dir. For dir = new File(/a/B/); :
         public void visitSubDir(File dir) {
              if (dir.isDirectory()) {
                   //dir points on /a/B/
                   processDir(dir);
                   //dir points on /a/b/
                   String child[] = dir.list();
                   for (int i = 0; i < child.length; i++)
                        visitSubDir(new File(dir, child));
         public void processDir(File dir) {
              dir.renameTo(new File(dir.getParent(),dir.getName().toLowerCase()));
         }

  • Changing Directory/Folder Names to Lowercase in RH 8?

    Using RH 8 on Windows XP Professional
    I need to publish my RoboHelp project to an Apache server.  Some of my directory/folder names have capital letters in them, which wasn't a problem with RH 5.  My project always worked on the server despite that.  However, when I publish with RH 8, pages and images inside directories with any capital letters in their names won't show up. However, if on the server I manually change the directory names to all lowercase, these pages and images show up. Now, I just need to be able to publish this way from RoboHelp, which is my problem.
    Here is everything I've tried.  If you have suggestions on what else I could try, please help.
    Every time I published the project, I checked the "Use Lowercase File Names (Recommended for UNIX)" option, but this only changes the html file names not the directory names.
    In RoboHelp's Project Manager area, when I renamed the directories to lowercase letters, they immediately went back to the capitalization that had previously.
    Then I tried closing RH and renaming the directories to lowercase in a Windows Explorer window.  However, when I open the project back up in RoboHelp, these directories show up with capitalization again...even though the source directories have been renamed with lowercase letters.
    After that, I tried deleting the .cpd file (with RoboHelp closed of course) because I had seen from other forum posts that this fixes a variety of problems. When I re-launched RH, I still have the same problem with the directories showing up with caps.
    If I try to republish with all of the directories on the server in lowercase, RoboHelp either creates a new directory for the capitalized folders (can reside side by side with the lowercase folder of same name on an Apache server) and puts the contents inside it or it dumps it's contents at the top-level directory of the project.  For example, if my folder says "Papers" in RoboHelp and I already have a folder named "papers" on the server, I'd have two folders, "Papers" and "papers", on the server when RoboHelp finished publishing.
    I tried deleting all the files on my server and re-publishling in the off chance RoboHelp would magically publish the directories in lowercase.  Of course, this didn't work, but I was getting to the point that I'd try anything.
    Again, any suggestions you have on what would work would be hugely appreciated.

    Hi again
    I can't help but to notice you said you deleted the files from the server. You didn't say folders too.
    About the only other thing I can think of is to try renaming yet again to something like folder1 so the names are actually different. Then push that to the server and see if it mysteriously shifts to mixed case.
    Frankly, I'm surprised it failed to work straight off. But you never know sometimes when dealing with servers.
    CPD is a Cache Project Database. Most of your project files are now in an XML format. Those files used to only reside in the CPD and instead of CPD the extension was MPJ. This is a Microsoft Access Database file using a custom file extension. Just making an educated guess here, but I suspect it's primary purpose these days is to provide an easy means of reporting on the project.
    Cheers... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • How can I change the name of my home directory?

    When I first set up my Macbook Pro a year ago, I put my first and last name. I didn't like this and later changed the login name to just my first name, but the "home" directory is still listed as my full name on the side panel in Finder windows. How can I change this, it won't let me rename that.

    Barney-15E wrote:
    You should have experienced that same effect when you managed to change you login name. How did you change your login name?
    I imagine that has something to do with why everything 'disappeared' when you changed the directory name.
    It's actually pretty simple to change the login name, and it doesn't affect files at all.
    All I did was change the field labeled "user name".
    Niel wrote:
    Move all of your files to the other home folder in the Users folder and then change the name.
    (38519)
    I'll try that, thanks.

  • How to change the "short name (account name?)" and home directory name?

    Hi,
    I recently purchased a new iMac and migrated account info from my MacBook Pro.  I happened to use random account name during migration without knowing it will not be easy to change the short name (account name?) and home directory name.  As a result, I am now having extremely confusing short name and home directory name on my new iMac.
    I did online search to find out how to change the two names, but I could only found somethig like "enabiling root user and....."  I have no idea what it was talking about and I don't want to take risk altering such advance set up manually.
    Please advice how I can change the short name and home directory name safely without much PC knowledge.
    Thank you very much in advance.

    There are a few ways of doing this. The easiest method is logging into the first account and copying everything to an external drive (or flash drive or whatever), which changes the permissions so that others can see the files.
    Then, login with the new account and copy the files over. Once they are copied, the correct permissions will be applied again (so other people on your computer can't access them).
    If you can't do this method for one reason or other, you can do some terminal commands to change the ownership of the files. Login to the new account. If it is an admin account, open terminal and type the following command:
    sudo chown -R -v yourusername:admin /Users/originalaccountnamehere
    That should change the ownership of the files from your old account to the new one. At that point, you can simply drag the files into place.

  • Changing home directory name in Mavericks

    I'm logged in as root and have navigated to the /Users directory. I'm instructed to change the name as I would any other Mac folder although it appears to be read-only. Any thoughts as to why?
    TIA,
    David

    There must be some corporate directive that Apple support is not allowed to use the command line. That makes this process 3 times harder than it should be. Follow these instructions instead: https://discussions.apple.com/docs/DOC-3872

  • Changing Short name & home directory?

    So...somebody on the forum gave the suggestion to someone in another thread, of changing their short name in the system preferences...they neglected to mention that this is a big no-no & that everything would be wiped out. I, not understanding/knowing what this would do, changed it...& of course, was baffled when I restarted & everything had reverted back to the setting the previous owner has. I went back into the preferences & changed the short name BACK to the other person's name...but kept the home directory as my name.
    Questions are: Is there a way to change the short name without losing my settings, or shoudl I just leave as is?
    &...has simply changing the home directory name to mine from his in the system preferences, going to effect anything or do any damage? If so, is there some other way I should go about changing it? I just hate going to the folder & seeing the old owner's name.

    Use this:
    http://homepage.mac.com/frakes/ChangeShortName.html

  • How do I change home directory name?

    In FINDER, the home directory name is from an old employee. How can I change it?

    Log out and then into a different user account, or create one from System Preferences. If so desired, control-click the account in the Accounts or Users & Groups pane of System Preferences, choose Advanced Options, and change the name and home properties; if the computer happens to be running Mac OS X 10.4, the instructions are significantly different.
    (71132)

  • How do I change the name of my home directory?

    Is it possible to change the name of my home directory once it has been set up?

    Your user name and your home directory name are one and the same. I'm not sure whether it is technically impossible for them to be different, but I definitely would not advise that if it isn't. Note that any solution to the problem of changing your username is going to be either hairy and dangerous or incomplete. I would never advise anyone to try it.
    Instead, just create a new user with the desired name, migrate your data over to the new user's home folder and delete the old user.
    The following link will help with the process of moving your data:
    Transferring files from one User Account to another

  • Changing home directory name

    Hello,
    I have a macbook OS X version 10.7.5
    I bought this computer years ago used and am yet to figure out how to change the directory name.
    Help would be greatly appreciated.
    Thanks!

    Open the Users & Groups pane of System Preferences, unlock it, control-click your account, choose Advanced Options, and change it.
    (102663)

  • What is the simplest way to change the name of your home directory?

    I am not ashamed to say that I am not the least bit intelligent when it comes to macs. I came from PC, I'm learning, here. But I need to change the name of my Home directory and everything I've found online so far has either not worked (double clicking, or clicking twice but not quite double-clicking... um...okay), or described using the root user, which sounds sort of terrifying. Is there an easier way, or should I try to go by some detailed intructions and go for it?

    kurrykurry wrote:
    ... Is there an easier way,
    Yes.
    Apple Support Communities contributor Pondini found an astonishingly simple way to accomplish what you seek. etresoft distilled that information into the following User Tip:
    Changing user account short name
    It is a far better method than Apple's support article on the subject, which I will not bother linking here because it's outdated and cumbersome.

  • Changed shortname and home directory name and don't know how to set it back

    so i changed my short name and home directory name because i bought the macbook used and i was trying to rename it to my name.
    Like all the others now the desktops back to default without any of my files/music, i know its still here its in the old account folder how do i just reverse this so i can have my desktop and everything back.
    heres what it is like:
    my users folder there is a home icon called "Josh" which is my name, then there is a folder icon called "nick" which is the old name and it contains all my files etc. then a shared folder icon.
    what do i do?
    p.s. i tried the method of adding "_new" onto the home icon called Josh and it said i couldn't change it because its part of Mac OS X or something...

    if you bought a used computer the first thing you should do is reformat the hard drive and reinstall the OS. anything else is less than prudent. it will also let you name your computer and your user as you like.

  • Change My Home Directory Name to Match My Short Name

    Somewhere in the process of Migration and Setup Assistant accross 3 computers, I need to change my home folder name to match my shortname. It is getting a little confusing to have two short "names."
    My home folder is - admin
    My short name is - bobbyv
    I would like tho change my home folder to bobbyv
    The admin account as you can guess is root, i have two other accounts, one that is admin and one that is not. I know about the advanced options in the accounts preference pane, but I do not want to change in without knowing what I'm doing because I do not want to have an empty and clean new home folder, my data is important.
    Thanks everyone.

    Changing the short name is possible, but it is rather involved. Search for "change short name" on this site. It's easiest to create a new account and then transfer your data to that account.

Maybe you are looking for