Post-Installation of RAC: main directory and file to set ORACLE_HOME ?

Folks,
Hello. I am installing Oracle 11gR2 RAC using 2 VMs (rac1 and rac2) whose OS are Oracle Linux 5.6 in VMPlayer according to the website http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html
I have just finished installing Grid infrastructure and RAC database 11gR2 successfully.
After that, I add the entries into the file /home/ora11g/.bash_profile as below:
export ORACLE_SID=racdb2;
export ORACLE_HOME=/u02/11g_db/ora11g/racdb;
export GRID_HOME=/u01/app/grid;
PATH=$GRID_HOME/bin:$ORACLE_HOME/bin:$PATH; export PATH;
After that, I run the following command:
[ora11g@rac2 /]$ /u02/11g_db/ora11g/racdb/bin/srvctl config database -d racdb
Its output:
ORACLE_HOME environment variable is not set.
ORACLE_HOME should be set to main directory that contains Oracle products.
Set and export ORACLE_HOME and then re-run.
My questions are:
First, I have added entries into the file /home/ora11g/.bash_profile. Why it still says "ORACLE_HOME environment variable is not set" ? Is this way wrong ?
Second, what are the main directory and the file to set ORACLE_HOME ?
Thanks.

Folks,
Hello. Thanks a lot for replying. I reboot OS and run the commands as below:
[ora11g@rac2 bin]$ ./srvctl config database -d racdb
Its output:
PRCD-1027 : Failed to retrieve database racdb
PRCR-1070 : Failed to check if resource ora.racdb.db is registered
Cannot communicate with crsd
[ora11g@rac2 bin]$ ./sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Fri Mar 9 15:28:59 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter user-name: SYS
Enter password: SYS
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Process ID: 0
Session ID: 0 Serial number: 0
Enter user-name: SYSTEM
Enter password: SYSTEM
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Process ID: 0
Session ID: 0 Serial number: 0
Enter user-name: SYSMAN
Enter password: SYSMAN
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Process ID: 0
Session ID: 0 Serial number: 0
SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
[ora11g@rac2 bin]$
As we see the outputs above for the 2 commands "srvctl" and "sqlplus", my questions are:
First, why cannot retrieve database racdb ?
Second, sqlplus is poped up. Why users SYS, SYSTEM, SYSMAN cannot log in ?
Third, does my RAC database installation have problems ?
Thanks.

Similar Messages

  • Can't rename folder in main directory and changes need to be authenticated

    This just started today: I can't rename folders in my main directory, and I can't move anything in or out without authenticating. Yesterday I had remote tech support working to fix Parallels, and I suspect that the tech support guy changed a setting, but I can't find it to change it back. Ideas, anyone? Please advise.
    Thanks,
    Karen

    Select the main directory in the Finder, choose Get Info from the File menu, and give yourself Read & Write access under Sharing & Permissions.
    (43510)

  • How can I get Directory and Files from a Maped Networkdrive of the AppS

    Hello,
    we have the following Situation.
    We have a Windows-Server (Server-A) in an Network with ActivDirectory and an Windows-Server (Server-B with an WebApplicationServer outside of these ActivDirectory as standalone.
    On Server-B we mapped a Directory from Server-A (FileExplorer and then MapNetworkDrives) as Drive Q.
    Now i tried to get the Directory of Q:\abcd but it doesn't work.
    I tried the FM EPS_GET_DIRECTORY_LISTING and also RZL_READ_DIR, but both doesn't worked.
    RZL_READ_DIR is doing a "CALL 'ALERTS' ..." and is comming back with sy-subrc = 1
    EPS_GET_DIRECTORY_LISTING is doing a "CALL 'C_DIR_READ_FINISH'..." and comes back with "Wrong order of calls" in the Field file-errmsg. Next Call is "CALL 'C_DIR_READ_START'..." and this comes back with "opendir" in Field file-errmsg.
    I tried the same with two Servers in the same ActivDirectory-Network. The Result was the same, i don't get the directory of the mapped drive. But now i get from the Call "CALL 'C_DIR_READ_START'..." the file-errmsg "opendir: Not a directory" and file-errno 20.
    Is there any idea for solving my Problem?
    I have to get this directory, read the files from the List and have to rename them after wriing the data to our databasefile.
    I want to read them with OPEN DATASET, rename them by writing a new File (also OPEN DATASET) and after that i do an DELETE DATASET.
    Thanks and Greetings Matthias
    Edited by: Matthias Horstmann on Mar 25, 2009 4:12 PM
    Filled in Scenario with 2 Servers in same AD-Network

    Halo Mattias,
    i using this function get file file name and directory:
    at selection-screen on value-request for p_file.
      call function 'F4_FILENAME'
        exporting
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
          field_name    = 'P_FILE'
        importing
          file_name     = p_file.
    Rgds,
    Wilibrodus

  • Read application server directory and file

    Hi,
      I'm using the FM "RZL_READ_DIR_LOCAL" to retrieve the application server directory and filename.  The returned result contain all the directory name and filename.  Is there any other FM can separate the result into directory and file??
    Regards,
    Kit

    hi
    Ya One more FM is there - Call Function Gui Upload.
    It will read the file from the app server.
    See this Example:-
    Refer this:
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ca6358411d1829f0000e829fbfe/frameset.htm
    ABAP code for uploading a TAB delimited file into an internal table. See code below for structures.
    *& Report  ZUPLOADTAB                                                  *                     &----
    *& Example of Uploading tab delimited file                             *
    REPORT  zuploadtab                    .
    PARAMETERS: p_infile  LIKE rlgrap-filename
                            OBLIGATORY DEFAULT  '/usr/sap/'..
    DATA: ld_file LIKE rlgrap-filename.
    *Internal tabe to store upload data
    TYPES: BEGIN OF t_record,
        name1 like pa0002-VORNA,
        name2 like pa0002-name2,
        age   type i,
        END OF t_record.
    DATA: it_record TYPE STANDARD TABLE OF t_record INITIAL SIZE 0,
          wa_record TYPE t_record.
    *Text version of data table
    TYPES: begin of t_uploadtxt,
      name1(10) type c,
      name2(15) type c,
      age(5)  type c,
    end of t_uploadtxt.
    DATA: wa_uploadtxt TYPE t_uploadtxt.
    *String value to data in initially.
    DATA: wa_string(255) type c.
    constants: con_tab TYPE x VALUE '09'.
    *If you have Unicode check active in program attributes then you will
    *need to declare constants as follows:
    *class cl_abap_char_utilities definition load.
    *constants:
       con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
    *START-OF-SELECTION
    START-OF-SELECTION.
    ld_file = p_infile.
    OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    ELSE.
      DO.
        CLEAR: wa_string, wa_uploadtxt.
        READ DATASET ld_file INTO wa_string.
        IF sy-subrc NE 0.
          EXIT.
        ELSE.
          SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1
                                          wa_uploadtxt-name2
                                          wa_uploadtxt-age.
          MOVE-CORRESPONDING wa_uploadtxt TO wa_upload.
          APPEND wa_upload TO it_record.
        ENDIF.
      ENDDO.
      CLOSE DATASET ld_file.
    ENDIF.
    *END-OF-SELECTION
    END-OF-SELECTION.
    *!! Text data is now contained within the internal table IT_RECORD
    Display report data for illustration purposes
      loop at it_record into wa_record.
        write:/     sy-vline,
               (10) wa_record-name1, sy-vline,
               (10) wa_record-name2, sy-vline,
               (10) wa_record-age, sy-vline.
      endloop.
    reward if help.

  • Set default directory and file permissions

    I'm trying to use setfacl to set the default permissions for directories and files but I get an error saying "sudo: setfacl: command not found." What I am trying to do is share a specific directory on a local external drive connected by Thunderbolt. Everyone in the group has access to the drive and can view all the files but once a new file is created, the group permissions are not updated. Here is an example of two PDF file. The one created by userA only has permissions for that user where the file created by userB allows all users to open and modity the file.
    -rw-------   1 userA    staff   1988176 Feb 13 15:09 TestFile01.pdf
    -rwxr-----+  1 userB  staff   1827102 Feb 13 15:05 TestFile02.pdf
    0: group:MarketingGroup allow read,write,append,readattr,writeattr,readextattr,writeextattr,readsecurity
    I can manually update the permissions through the Get Info window but this requires me to reset permissions every time a person saves a new file to the drive. There needs to be a way to do this automatically.
    Here is what I tried but the setfacl command is not supported.
    sudo setfacl -Rdm g:GroupName:rwx /DirectoryPath

    Thanks Frank. I have an externat drive connected to my Mac via Thunderbolt. On this drive I have a specific directory that I'm shairing with Mac and PC users. I've created a group on the network to limit access to this directory to specific users. That works perfectly. The issue I'm having is when one of these users creates a new file in this directory or any of it's subdirectories, no one has permission to open or edit the file. Right now I'm using Get Info to modify the permissions of the folder and all enclosed items. When I check the permissions of the files I've "corrected" I notice this extra imformation "0: group:MarketingGroup allow read,write,append,readattr,writeattr,readextattr,writeextattr,readsecurity." This is not included when I check the permissions of items saved by other uses in the group.
    So my question is how do I set the default permissions for this directory so every new file and directory will have the correct permissions to allow anyone in this group full access to open and modify every file?
    Thanks for your help!!!!

  • Dynamic directory and file name

    Hi
    I have requirement of dynamic file name and dynamic directory with condition based on doctype from source
    I have used the following code and for file and directory with two different udfs. If I am using only file it is working but not with the directory
    try
    String directory = new String("");
    DynamicConfiguration conf1 = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","Directory");
      if (var1.equals( "DOR" ))
       directory =   "/Inbound/DOR";
       else {
       directory =   "/Inbound/KOR";
         conf1.put(key1,directory);
         return directory ;
         catch(Exception e)
           String Exception=e.toString();
          return Exception;
    in message mapping i used var1 to one of the not used field in target
    similary i did for file  with different udf and mapped sourcefield- to targetrootnode with same condition with different filename
    But it is not working getting the following exception Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.exception.standard.SAPIllegalArgumentException: The parameter "argument" has the value "remote://*/PACK _TEST20140226-152149-483.dat", so it contains the character "remote://*/PACK _TEST20140226-152149-483.dat" which is not allowed
    Thanks for your help

    Hi Mahesh -
    The parameter "argument" has the value "remote://*/PACK _TEST20140226-152149-483.dat", so it contains the character "remote://*/PACK _TEST20140226-152149-483.dat" which is not allowed
    >>> I see that paramter name as "argument" in the above error. So you mean to say when you simply use the UDF just for file name it works for the above input.
    But the same udf fails if you enable another UDF for the directory? having the same payload?
    Is my understanding correct.
    However i would suggest you to have a one UDF for both "directory" and "Filename" and map the field to Target message type but not to any of the fields..

  • How to recreate ~/.ssh directory and files

    Hi Folks,
    I have a 10.4 user without the hidden .ssh directory and all the usual files within that directory (id_rsa, id_rsa.pub, known_hosts) due to a munged account, and am now wanting to know to recreate those files so I can SSH back to this machine.
    Any tips/ideas much appreciated.
    Thanks!
    Doug

    I have a 10.4 user without the hidden .ssh directory and all the usual files within that directory (id_rsa, id_rsa.pub, known_hosts) due to a munged account, and am now wanting to know to recreate those files so I can SSH back to this machine.
    ssh-keygen -t rsa
    will create the .ssh directory and the rsa files. known_hosts will be created as the account is used to ssh/scp/sftp into other accounts.
    If other systems are to be allowed to login to this account, then copy their id_rsa.pub files and append them to .ssh/authorized_keys. That will allow them access to this account.
    And if this account is suppose to be able to login to other systems, append the newly created id_rsa.pub file to the other system account's .ssh/authorized_keys file.
    Check *man ssh* to make sure all permissions are set correctly. If some of the files and/or directories are too permissive, ssh will not work correctly, as it will assume your account can be compromised.

  • NFS Mounted Directory And Files Quit Responding

    I mounted a remote directory using NFS and I can access the mount point and all of its sub-directories and files. After a while, all of the sub-directories and files no longer respond when clicked; in column view there is no longer an icon nor any statistics for those files. If I go back and click on Network->Servers->myserver->its_subdirectories, it will eventually respond again.
    I have found no messages in the system log. And nfsstat shows no errors.
    I am using these these mount parameters with the Directory Utility->Mounts tab:
    ro net -P -T -3
    Any idea why the NFS mounted directories and files quit responding?
    Thanks.

    I may have found an answer to my own question.
    It looks like automount will automatically unmount a file system if it has not been accessed in 10 minutes. This time-out can be changed using the automount command. I am going to try increasing this time-out value.
    Here is part of the man page:
    SYNOPSIS
    automount [-v] [-c] [-t timeout]
    -t timeout
    Set to timeout seconds the time after which an automounted file
    system will be unmounted if it hasn't been referred to within
    that period of time. The default is 10 minutes (600 seconds).

  • Where to get the image file of directory and file icon??

    I've wrote a "file chooser" by my self and
    I need different icons to denote directories and
    files. Does anyone know where to get this icons??
    thanks

    use print screen and paste it in paint shop
    cut what you need

  • Application server directory and file browser

    Is there existing in SAP a program that can display directories and files that enable me to delete, move, upload, overwrite etc files on a unix server? So it will have similar functionality as e.g. MS Windows Explorer, but an ABAP program. If you have for instance a custom created version, I'd appreciate if you'd share. Thank you and best regards, Adrian

    Hi you can make use of fm's
    F4_DXFILENAME_TOPRECURSION - display directories and files
    ARCHIVFILE_SERVER_TO_SERVER - move files, copy files etc.
    EPS_DELETE_FILE - delete file
    EPS_OPEN_INPUT_FILE - open file for input
    EPS_OPEN_OUTPUT_FILE - open file for output
    If you give the same name of a file which is already residing in the server then it gets overwritten.
    Hope you can build a program using this fm's.

  • Oracle 10g - installs in my user directory and not oracle

    Hi
    I have been trying to install 9i for the last week but was getting the same problem as seen it a few threads below. I therefore tried to install 10g - now when I
    run the ./runInstaller script from oracle I get this message 'can't access /Users/"mylocaluser"/oraInventory'
    Anyone know why its trying to install here as uppose to /Users/oracle?????
    I know its probabaly something stupid I am doing at my end ---
    I followed the installation instructions and everything seems to be setup fine - I couldn't see anything in the runInstaller script either

    'can't access /Users/"mylocaluser"/oraInventory'Does it literally have 'mylocaluser' ?
    Normally you have a file called /var/opt/oracle/oraInst.loc that specifies where the global inventory is located. If the installer can not put a lock on that directory it won't install. So I think you should check that file and make sure it is according to oracle's (and hopefully) your expectations and writable by the installer.
    (not 100% sure about /var/opt/oracle on the mac)
    regards,
    Ronald
    http://homepage.mac.com/ik_zelf/oracle

  • Directory and file permissions in Oracle EBS R12.2.4

    Hi there
    I beleive that a typical R12.2.4 Linux x86-64 based environment has following directory structure under the installation directory (/u01/oracle/<SID>)
    11.2.0  data  fs1  fs2  fs_ne
    So my question here is what should be the permission level of these directories (and their subdirectories) and the files underneath them. I am looking for permissions for both Database Tier and Application Tier directories and associated files. Is there a published Oracle Support document for this?
    Regards
    Kabeer

    But by memory I recall that the files underneath the DB and Apps Tier's directories were having lesser permissions. And that's where I was asking to make sure.
    The list of files/directories with the permissions are not documented and the only way to revert back to the original values which are set by Rapid Install is re-running the installation again.
    If this instance is used for practice only you may keep permissions the way they are now as long as the application/database work with no issues.
    Thanks,
    Hussein

  • How to read directory and file

    I am being passed a vector which has information about a file with its directory path.
    I need to read the file and work on it .. how do I get to that..
    Also the vector may have multiple entries and I need to go through all of them..
    How do I go about this..

    <code>
    File file = null;
    String filePath = null;
    BufferedReader br = null;
    String lineRead = null;
    for (int i=0; i<fileV.size(); i++)
    filePath = (String)fileV.get(i);
    file = new File(filePath);
    br = new BufferedReader(new FileReader(file));
    while ((lineRead=br.readLine())!=null)
    //read a line from the file
    boolean b = checkPattern(lineRead);
    if (b)
    someOtherMethod(lineRead);
    br.close();
    </code>

  • [Solved] Ensure all users have access to directory and files

    I'm writing a PKGBUILD thats installing to /usr/share/.../... and building the package is giving me permissions for files and parent folder as root:root and directory/file permissions as 755 and 644 respectively.  Because it looks like the files need to be alterable (at least temporarily), I'd like all users to be able to have the correct permissions for them.  This may cause problems for multiple users on the system because settings may get saved here but I'd still like to be able to do this because people with single-user systems can benefit from this (i.e. I'd be todd:users while someone named joe would be joe:users) to be able to have access.  I've heard of the nobody group before, can I do something like this?:
    chown -R nobody:users ${pkgdir}/usr/share/.../...
    Any recommendations?
    Last edited by Gen2ly (2012-06-19 05:36:33)

    You can give the files that need to be altered the permission 0666. If you want also to give users permissions to create new files and directories give the directories permissions 0777. Leave the owner as root:root ("nobody" is just another normal user, it is used to run system daemon that for some reason we do not want to run as root). That's said what you are trying is considered bad practise (be also aware that two different users could modify the same file at the same time with unpredicatble results). If it is not fixable in a proper way, you could install the whole package your home directory (without making an arch package), just alter the PATH and possible LD_LIBRARY_PATH). In any case if you decide to make an arch package like this, such a package will not be suitable for distribution.
    Last edited by olive (2012-06-17 21:25:38)

  • Dynamic Directory and File Naming in Receiver Adapter

    Hi ..My Receiver file should Look like this.
    COLCCYYMMDDHHMMSSLPMASTER___.tmp
    1st 3 bytes: COL  ( Sender File name is COLMASTER.txt)
    Next 14 bytes is timestamp: CCYYMMHHMMSS
    Next 1 byte: L ( constant Value )
    Next 1 byte: P/Q/D (Production/QA/Dvlp.. Can we do this based on Sender Logical System ?)
    Next 20 bytes ( Part of it comes from Sender file name and remaining fields should be filler with underscores )
    Next 4 bytes ( .tmp)
    After Iam done with writing this file in .tmp format I should change the file name to .txt format for further processing. Since File gets created dynamically how should I change Name from .tmp to .txt file?
    Appreciate help and guidance with steps I neeed to follow to make this happen. Thanx again.

    Hi Ram,
    One option~~
    Use ADAPTER SPECIFIC INDENTIFIERS in both sender and recievr file adapter with the filename selected.
    In this case, the filename of sender will be made the file name of the reciver.
    Now, change the file name in the mapping in an UDF with the following code, and this will be used as the filename,
    String newfilename="";
    // Write the logic to get the new file name into this string.
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    conf.put(key, <b>newfilename</b>);
    return  "";
    Now, this filename in newfilename string will be used in the target filename.!!
    Regards,
    Bhavesh

Maybe you are looking for