1 2 3 4 5 Previous Next 95 Replies Latest reply on Jan 8, 2016 10:02 AM by Ujjwal Rana Go to original post
      • 30. Re: COMMAND NOT FOUND - ORACLE GRID
        Ujjwal Rana

        [root@storage ContentsXML]# ls

         

        comps.xml  config.xml  ConfigXML  libs.xml  oraclehomeproperties.xml

         

        [root@storage ContentsXML]#

         

        This one has already been executed

        [root@storage ~]# chmod 775 /u01/app/11.2.0/grid/inventory/ContentsXML/


        [root@storage ContentsXML]# chmod 666 /u01/app/11.2.0/grid/inventory/ContentsXML/oraclehomeproperties.xml

        [root@storage ContentsXML]#

         

        [root@storage ContentsXML]# ls -l /u01/app/11.2.0/grid/inventory/ContentsXML/oraclehomeproperties.xml

        -rw-rw-rw- 1 grid oinstall 535 Jul 16 23:59 /u01/app/11.2.0/grid/inventory/ContentsXML/oraclehomeproperties.xml

        [root@storage ContentsXML]#

         

        [root@storage ContentsXML]# ps -ef| grep pmon

        root      7706  7218  0 16:38 pts/1    00:00:00 grep pmon

         

        [root@storage ContentsXML]# su - grid

        [grid@storage ~]$ ps -ef| grep pmon

        grid      7748  7716  0 16:38 pts/1    00:00:00 grep pmon

        [grid@storage ~]$

        • 31. Re: COMMAND NOT FOUND - ORACLE GRID
          Aman....

          Ujjwal Rana wrote:

           

          [root@storage ContentsXML]# chmod 666 /u01/app/11.2.0/grid/inventory/ContentsXML/oraclehomeproperties.xml

          [root@storage ContentsXML]#

           

          [root@storage ContentsXML]# ls -l /u01/app/11.2.0/grid/inventory/ContentsXML/oraclehomeproperties.xml

          -rw-rw-rw- 1 grid oinstall 535 Jul 16 23:59 /u01/app/11.2.0/grid/inventory/ContentsXML/oraclehomeproperties.xml

          [root@storage ContentsXML]#

          Connect as GRID user and attempt to do the LS over the file.

           

          Aman....

          • 32. Re: COMMAND NOT FOUND - ORACLE GRID
            Ujjwal Rana

            [grid@storage ~]$ ls -l /u01/app/11.2.0/grid/inventory/ContentsXML/oraclehomeproperties.xml

            ls: cannot access /u01/app/11.2.0/grid/inventory/ContentsXML/oraclehomeproperties.xml: Permission denied

            [grid@storage ~]$

            • 33. Re: COMMAND NOT FOUND - ORACLE GRID
              Aman....

              Ujjwal Rana wrote:

               

              [grid@storage ~]$ ls -l /u01/app/11.2.0/grid/inventory/ContentsXML/oraclehomeproperties.xml

              ls: cannot access /u01/app/11.2.0/grid/inventory/ContentsXML/oraclehomeproperties.xml: Permission denied

              [grid@storage ~]$

              As ROOT user, run the ORAINST.sh and ROOT.sh (from Grid Infrastructure's home)  and paste here the output of both the executions . Do ensure that the ROOT.sh must run from the GRID Infra's home.

               

              Aman....

              • 34. Re: COMMAND NOT FOUND - ORACLE GRID
                Ujjwal Rana

                FROM ROOT

                 

                [root@storage oraInventory]# pwd

                /u01/app/oraInventory

                 

                [root@storage oraInventory]# ls

                backup  ContentsXML  install.platform  logs  oraInstaller.properties  oraInst.loc  orainstRoot.sh  oui

                 

                [root@storage oraInventory]# ./orainstRoot.sh

                Changing permissions of /u01/app/oraInventory.

                 

                Adding read,write permissions for group.

                 

                Removing read,write,execute permissions for world.

                 

                Changing groupname of /u01/app/oraInventory to oinstall.

                 

                The execution of the script is complete.

                 

                [root@storage oraInventory]#

                 

                 

                FROM GRID (orainstroot.sh is not running from grid. Below is what it shows while running from grid)

                 

                [grid@storage oraInventory]$ locate / orainst | grep "orainst"

                /u01/app/oraInventory/orainstRoot.sh

                 

                [grid@storage oraInventory]$ pwd

                /u01/app/oraInventory

                [grid@storage oraInventory]$ ls

                backup  ContentsXML  install.platform  logs  oraInstaller.properties  oraInst.loc  orainstRoot.sh  oui

                [grid@storage oraInventory]$ ./orainstRoot.sh

                This script must be executed as root

                [grid@storage oraInventory]$

                • 35. Re: COMMAND NOT FOUND - ORACLE GRID
                  Aman....

                  Are you able to list the file as GRID user and what's the output of . oraenv now?

                   

                  Aman....

                  • 36. Re: COMMAND NOT FOUND - ORACLE GRID
                    Ujjwal Rana

                    [grid@storage oraInventory]$ . oraenv

                    ORACLE_SID = [+ASM] ? +ASM

                    ORACLE_BASE environment variable is not being set since this

                    information is not available for the current user ID grid.

                    You can set ORACLE_BASE manually if it is required.

                    [grid@storage oraInventory]$

                    • 37. Re: COMMAND NOT FOUND - ORACLE GRID
                      Aman....

                      Run ROOT.sh from the ROOT user and paste here the output. If you get the error that it's already been run, execute the following command  and show the output.

                      #/u01/app/11.2.0/grid/crs/install/rootcrs.pl -delete -force

                       

                      Aman....

                      • 38. Re: COMMAND NOT FOUND - ORACLE GRID
                        Ujjwal Rana

                        SHOULD BE DE-CONFIG OR DE-INSTALL ???

                        [root@storage ~]# /u01/app/11.2.0/grid/crs/install/rootcrs.pl -delete -force

                        Unknown option: delete

                        Usage:

                              rootcrs.pl [-verbose] [-upgrade [-force] | -patch]

                                         [-paramfile <parameter-file>]

                                         [-deconfig [-deinstall] [-keepdg] | -downgrade] [-force] [-lastnode]

                                         [-downgrade] [-oldcrshome <old crshome path>] [-version <old crs version>] 

                                         [-unlock [-crshome <path to crs home>] [-nocrsstop]]

                        • 39. Re: COMMAND NOT FOUND - ORACLE GRID
                          Aman....

                          Deconfig, apologies .

                           

                          Aman....

                          • 40. Re: COMMAND NOT FOUND - ORACLE GRID
                            Ujjwal Rana

                            [root@storage ~]#  /u01/app/11.2.0/grid/crs/install/rootcrs.pl -deconfig -force

                            Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params

                            Usage: srvctl <command> <object> [<options>]

                                commands: enable|disable|start|stop|status|add|remove|modify|getenv|setenv|unsetenv|config|upgrade

                                objects: database|service|asm|diskgroup|listener|home|ons

                            For detailed help on each command and object and its options use:

                              srvctl <command> -h or

                              srvctl <command> <object> -h

                            PRKO-2012 : nodeapps object is not supported in Oracle Restart

                            CRS-4013: This command is not supported in a single-node configuration.

                            CRS-4000: Command Stop failed, or completed with errors.

                            ################################################################

                            # You must kill processes or reboot the system to properly #

                            # cleanup the processes started by Oracle clusterware          #

                            ################################################################

                            error: package cvuqdisk is not installed

                            Successfully deconfigured Oracle clusterware stack on this node

                            [root@storage ~]#

                            • 41. Re: COMMAND NOT FOUND - ORACLE GRID
                              Aman....

                              Okay, so now run the ROOT.sh, ORAINST.sh and post here the outputs of both.

                               

                              Aman....

                              • 42. Re: COMMAND NOT FOUND - ORACLE GRID
                                Ujjwal Rana

                                [root@storage oraInventory]# pwd

                                /u01/app/oraInventory

                                [root@storage oraInventory]# ./orainstRoot.sh

                                Changing permissions of /u01/app/oraInventory.

                                Adding read,write permissions for group.

                                Removing read,write,execute permissions for world.

                                 

                                Changing groupname of /u01/app/oraInventory to oinstall.

                                The execution of the script is complete.

                                [root@storage oraInventory]#

                                 

                                 

                                FROM GRID

                                [grid@storage oraInventory]$ pwd

                                /u01/app/oraInventory

                                 

                                [grid@storage oraInventory]$ ls

                                backup       install.platform  oraInstaller.properties  orainstRoot.sh

                                ContentsXML  logs              oraInst.loc              oui

                                [grid@storage oraInventory]$

                                 

                                [grid@storage oraInventory]$ ./orainstRoot.sh

                                This script must be executed as root

                                [grid@storage oraInventory]$

                                 


                                • 43. Re: COMMAND NOT FOUND - ORACLE GRID
                                  Aman....

                                  I have repeatedly asked you to execute ROOT.sh and you have just not bothered about it. Where is the output of executing ROOT.sh ?

                                   

                                  Aman....

                                  • 44. Re: COMMAND NOT FOUND - ORACLE GRID
                                    Ujjwal Rana

                                    My applogies

                                     

                                    [root@storage grid]# pwd

                                    /u01/app/11.2.0/grid

                                    [root@storage grid]# ./root.sh

                                    Performing root user operation for Oracle 11g

                                     

                                    The following environment variables are set as:

                                        ORACLE_OWNER= grid

                                        ORACLE_HOME=  /u01/app/11.2.0/grid

                                     

                                    Enter the full pathname of the local bin directory: [/usr/local/bin]:

                                    The contents of "dbhome" have not changed. No need to overwrite.

                                    The contents of "oraenv" have not changed. No need to overwrite.

                                    The contents of "coraenv" have not changed. No need to overwrite.

                                     

                                    Entries will be added to the /etc/oratab file as needed by

                                    Database Configuration Assistant when a database is created

                                    Finished running generic part of root script.

                                    Now product-specific root actions will be performed.

                                    Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params

                                    bash: /u01/app/11.2.0/grid/bin/ocrconfig: Permission denied

                                    Failed to create or upgrade OLR

                                    Failed to write the checkpoint:'ROOTCRS_OLR' with status:FAIL.Error code is 32256

                                    Failed to write the checkpoint:'' with status:FAIL.Error code is 32256

                                    Failed to create or upgrade OLR at /u01/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 7436.

                                    /u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.pl execution failed

                                    [root@storage grid]#

                                     

                                    [root@storage oraInventory]# ./orainstRoot.sh

                                    Changing permissions of /u01/app/oraInventory.

                                    Adding read,write permissions for group.

                                    Removing read,write,execute permissions for world.

                                     

                                    Changing groupname of /u01/app/oraInventory to oinstall.

                                    The execution of the script is complete.

                                    [root@storage oraInventory]#

                                    1 2 3 4 5 Previous Next