Search This Blog

Wednesday, 4 September 2013

DAC 10g Installation error in Linux 5 : oracle reinstall error: “Installation cannot continue...

oracle reinstall error: “Installation cannot continue. Make sure that you have read/write permissions to the inventory directory…”

 $ ./runInstaller

You do not have sufficient permissions to access the inventory '/u01/app/oraInventory'. Installation cannot continue. Make sure that you have read/write permissions to the inventory directory and restart the installer.: Permission denied

 Oracle thinks there is still a oraInventory, even though I got rid of it. There is a file somewhere (not in /u01) telling oracle that oraInventory exists. So I delete the install dir (home/oracle/database) and start over:

 $ rm -rf database/

$ unzip linux.x64_11gR2_database_1of2.zip
$ unzip linux.x64_11gR2_database_2of2.zip
$ cd database/
$ ./runInstaller
You do not have sufficient permissions to access the inventory '/u01/app/oraInventory'. Installation cannot continue. Make sure that you have read/write permissions to the inventory directory and restart the installer.: Permission denied

It wasn’t in the database dir, it was here: /etc/oraInst.loc. After doind a few oracle installs I guessed it was in /etc, but you could use find or locate to find this file.

as root:
rm /etc/oraInst.loc

 as oracle:

$ ./runInstaller
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB. Actual 9801 MB Passed
Checking swap space: must be greater than 150 MB. Actual 2015 MB Passed
..

It works!

 Or while running DAC installation on linux

 [dac10g@slc01mmi ~]$ cd dac/Disk1

[dac10g@slc01mmi Disk1]$ sh runInstaller

Platform is Linux X86_64

You do not have sufficient permissions to access the inventory '/scratch/rj/oraInventory'. Installation cannot continue. Make sure that you have read/write permissions to the inventory directory and restart the installer.: Permission denied

 $ rm –r scratch/rj/oraInventory

 $ ./runInstaller

You do not have sufficient permissions to access the inventory '/scratch/rj/oraInventory'. Installation cannot continue. Make sure that you have read/write permissions to the inventory directory and restart the installer.: Permission denied

It wasn’t in the database dir, it was here: /etc/oraInst.loc. After doing a few oracle installs I guessed it was in /etc, but you could use find or locate to find this file.

as root:
rm /etc/oraInst.loc

 as su – dac10g

oracle reinstall error: “Installation cannot continue.

oracle reinstall error: “Installation cannot continue. Make sure that you have read/write permissions to the inventory directory…”

 

$ ./runInstaller
You do not have sufficient permissions to access the inventory '/u01/app/oraInventory'. Installation cannot continue. Make sure that you have read/write permissions to the inventory directory and restart the installer.: Permission denied

 

 

Oracle thinks there is still a oraInventory, even though I got rid of it. There is a file somewhere (not in /u01) telling oracle that oraInventory exists. So I delete the install dir (home/oracle/database) and start over:

 

$ rm -rf database/
$ unzip linux.x64_11gR2_database_1of2.zip
$ unzip linux.x64_11gR2_database_2of2.zip
$ cd database/
$ ./runInstaller
You do not have sufficient permissions to access the inventory '/u01/app/oraInventory'. Installation cannot continue. Make sure that you have read/write permissions to the inventory directory and restart the installer.: Permission denied

It wasn’t in the database dir, it was here: /etc/oraInst.loc. After doind a few oracle installs I guessed it was in /etc, but you could use find or locate to find this file.

as root:
rm /etc/oraInst.loc

 

as oracle:
$ ./runInstaller
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB. Actual 9801 MB Passed
Checking swap space: must be greater than 150 MB. Actual 2015 MB Passed
..

It works!

 

 

 

Or while running DAC installation on linux

 

[dac10g@slc01mmi ~]$ cd dac/Disk1

[dac10g@slc01mmi Disk1]$ sh runInstaller

Platform is Linux X86_64

You do not have sufficient permissions to access the inventory '/scratch/rj/oraInventory'. Installation cannot continue. Make sure that you have read/write permissions to the inventory directory and restart the installer.: Permission denied

 

$ rm –r scratch/rj/oraInventory

 

$ ./runInstaller
You do not have sufficient permissions to access the inventory '/scratch/rj/oraInventory'. Installation cannot continue. Make sure that you have read/write permissions to the inventory directory and restart the installer.: Permission denied

It wasn’t in the database dir, it was here: /etc/oraInst.loc. After doing a few oracle installs I guessed it was in /etc, but you could use find or locate to find this file.

as root:
rm /etc/oraInst.loc

 

as su – dac10g

 

 

Linux New User Account

Create New User Accounts in Linux

Execute the following commands as root (using the sudo command).

Login with ROOT user

1. To find the path of useradd:

whereis useradd

2. To add the user:

sudo useradd -d directory_path username

For example:

sudo useradd -d /scratch/oracle oracle1

Or:

sudo useradd -d /scratch/fmwumbtest/ testUser

(You should create the directory on the local disk. On Linux, that means on /scratch.)

3. Then, change the password:

sudo passwd username

(You get prompted for the password.)

4. Add the user to a group (such as dba and g579):

usermod -G group_name username

5. Test the account by changing user:

su - username

(The dash means run their setup commands in the new account's root dir)

 

Removing User Accounts

On occasion, you may wish to remove a user's access from your server altogether.

If you are a Red Hat user, the easiest way to remove an unneeded user account is with the ``userdel'' command, which must be typed as ``root''. An example follows:

/usr/sbin/userdel baduser

The above command will remove the entry matching the username ``baduser from the ``/etc/passwd'', file, and, if you're using the Shadow password format (which you should be; see Section 6.6 for details), the ``/etc/shadow''.

Note: Note: The ``/etc/group'' is not modified, to avoid removing a group that other user(s) may also belong to. This isn't much of a big deal, but if this bothers use, you can edit the group file and remove the entry manually.

Should you wish to remove the user's home directory as well, add the ``-r'' option to the ``userdel'' command. For example:

/usr/sbin/userdel -r baduser

I recommend not removing an account right away, but first simply disable it, especially if you are working with a corporate server with lots of users. After all, the former user may one day require the use of his or her account again, or may request a file or two which was stored in their home directory. Or perhaps a new user (such as an employee replacement) may require access to the former user's files.

 

Examples

find -name 'mypage.htm'

In the above command the system would search for any file named mypage.htm in the current directory and any subdirectory.

find / -name 'mypage.htm'

In the above example the system would search for any file named mypage.htm on the root and all subdirectories from the root.

find -name 'file*'

In the above example the system would search for any file beginning with file in the current directory and any subdirectory.

Error while connecting to Database

[rjkm@slc01mmi dbhome_1]$ sqlplus / as sysdba

 SQL*Plus: Release 11.2.0.3.0 Production on Sun Sep 1 12:34:23 2013

 Copyright (c) 1982, 2011, Oracle.  All rights reserved.

 Connected to an idle instance.

 SQL> CREATE TABLESPACE INFA_901_TS

       DATAFILE '/scratch/rjkm/app/oradata/OBIAPPS/INFA_901_TS.dbf'

       SIZE 1024M

       EXTENT MANAGEMENT LOCAL AUTOALLOCATE;  2    3    4

     CREATE TABLESPACE INFA_901_TS

*

ERROR at line 1:

ORA-01034: ORACLE not available

Process ID: 0

Session ID: 0 Serial number: 0

 [rjkm@slc01mmi dbhome_1]$ lsnrctl start

 LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 01-SEP-2013 12:38:00

 Copyright (c) 1991, 2011, Oracle.  All rights reserved.

 Starting /scratch/rjkm/app/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...

 TNSLSNR for Linux: Version 11.2.0.3.0 - Production

System parameter file is /scratch/rjkm/app/product/11.2.0/dbhome_1/network/admin/listener.ora

Log messages written to /scratch/rjkm/app/diag/tnslsnr/slc01mmi/listener/alert/log.xml

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))

 Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))

STATUS of the LISTENER

------------------------

Alias                     LISTENER

Version                   TNSLSNR for Linux: Version 11.2.0.3.0 - Production

Start Date                01-SEP-2013 12:38:02

Uptime                    0 days 0 hr. 0 min. 0 sec

Trace Level               off

Security                  ON: Local OS Authentication

SNMP                      OFF

Listener Parameter File   /scratch/rjkm/app/product/11.2.0/dbhome_1/network/admin/listener.ora

Listener Log File         /scratch/rjkm/app/diag/tnslsnr/slc01mmi/listener/alert/log.xml

Listening Endpoints Summary...

  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))

The listener supports no services

The command completed successfully

[rjkm@slc01mmi dbhome_1]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Sun Sep 1 12:41:00 2013

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup

ORACLE instance started.

Total System Global Area 1820540928 bytes

Fixed Size                  2229304 bytes

Variable Size             469765064 bytes

Database Buffers         1342177280 bytes

Redo Buffers                6369280 bytes

Database mounted.

Database opened.

SQL> conn infa901/infa901

Connected.

SQL>