4 Replies Latest reply on Feb 21, 2018 3:05 AM by Beauty_and_dBest

    Can not CD to /oracle/oraInventory


      EBS R12.1.3





      Hi ALL,


      As a root user, I created a folder /oracle/oraInventory  and change its owner as  chown -R ascpdb.dba /oracle/oraInventory

      But when I login as ascpdb user, I can not cd to it:


      [ascpdb@ascpdb oracle]$ cd /oracle/oraInventory/

      -bash: cd: /oracle/oraInventory/: Permission denied

      [ascpdb@ascpdb oracle]$



      Please help....


      Kind regards,


        • 1. Re: Can not CD to /oracle/oraInventory


          Who owns OraInventory? login to that user and give full permission and try.



          • 2. Re: Can not CD to /oracle/oraInventory

            "ascpdb.dba" should be "ascpdb:dba"

            • 3. Re: Can not CD to /oracle/oraInventory

              Hi jc,


              As root make sure the execute bit is on for the owner, otherwise you cannot change directories:


              :/etc # ls -ld oraInventory*

              drwxrwx--- 11 oracle dba  4096 May  7  2017 oraInventory

              drwxrwx---  6 oracle dba  4096 Jul  9  2013 oraInventory_hyperion

              drwxrwxrwx  3 root   root 4096 Mar  3  2012 oraInventory_vis11i10

              drwxrwxrwx  7 oracle dba  4096 May  8  2017 oraInventory_vis1213




              • 4. Re: Can not CD to /oracle/oraInventory

                Thanks ALL,


                I often do this for creating oracle inventory folder, shared by ALL oracle databases, with different owners  e.g. 9i,10g,11gR1, 11gR2,12c.

                This is done when you have losts of databases in one server, under different owners e.g.  oracle, ora9i, ora10g, ora11g, ora12c.


                So I created as root user the folder /oracle/oraInventory  and usually chmod -R 777 /oracle/oraInventory.  But since I have only one owner this time,

                which is ascpdb, I just make it its own as chown -R ascpdb.dba  /oracle/oraInventory . But to my surprise when I logged in as ascpdb, I can not cd to it.


                Some said to use chown -R ascpdb:dba /oracle/oraInventory. But I been using ascpdb.dba and the effect is the same with ascpdb:dba.


                Anyways, the workaround is > as root user:

                # rm -r /oracle/oraInventory  (Since this is just  first time install )

                Login as ascpdb user:

                $ mkdir -p /oracle/oraInventory


                And the issue was resolved.


                Kind regards,