Error: While starting the Oracle installation, facing the following issue after change the location as owner getting the same error:
[INS-35951] The installer has detected that there are files in the Oracle Database home (/u01/app/oracle/product/19c/dbhome_1) which are not owned by the user (oracle).
Solution:
- Switch to root or a sudo-enabled user.
sudo su -
2. Fix ownership recursively
chown -R oracle:oinstall /u01/app/oracle/product/19c/dbhome_1
3. Verify the owner ship
find /u01/app/oracle/product/19c/dbhome_1 \! -user oracle -o \! -group oinstall
4. Re-run the installer as oracle
su - oracle
./runInstaller
Note: I am getting the same error by following this step.
5. Avoid extracting or modifying Oracle files as root
-- Always use the oracle user to unpack the installation files.
-- If you must use root, immediately fix ownership afterward.