nobleit
asked on
install oracle
I was trying to install oracle 11g in my linux machine..
And I am following this particular link..
http://sabdarsyed.blogspot.com/2007/08/installation-of-oracle-11g-on-linux-red.html
for installation..
but
What is wrong here
[root@ind ~]# su - root
[root@ind ~]# mkdir –p /u01/11gStage
mkdir: cannot create directory `–p': File exists
mkdir: cannot create directory `/u01/11gStage': File exists
[root@ind ~]# chown –R oracle:dba /u01/11gStage
chown: `–R': invalid user
[root@ind ~]#
invalid user..
And I am following this particular link..
http://sabdarsyed.blogspot.com/2007/08/installation-of-oracle-11g-on-linux-red.html
for installation..
but
What is wrong here
[root@ind ~]# su - root
[root@ind ~]# mkdir –p /u01/11gStage
mkdir: cannot create directory `–p': File exists
mkdir: cannot create directory `/u01/11gStage': File exists
[root@ind ~]# chown –R oracle:dba /u01/11gStage
chown: `–R': invalid user
[root@ind ~]#
invalid user..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
have you created the oracle user? look in /etc/passwd to see if the oracle account exists
I'll bet you cut an pasted those commands from somewhere. My guess is that those are not real dash characters. Try typing those 2 commands by hand.
ASKER
This is the output of /etc/passwd
root:x:0:0:root:/root:/bin /bash
bin:x:1:1:bin:/bin:/sbin/n ologin
daemon:x:2:2:daemon:/sbin: /sbin/nolo gin
adm:x:3:4:adm:/var/adm:/sb in/nologin
lp:x:4:7:lp:/var/spool/lpd :/sbin/nol ogin
sync:x:5:0:sync:/sbin:/bin /sync
shutdown:x:6:0:shutdown:/s bin:/sbin/ shutdown
halt:x:7:0:halt:/sbin:/sbi n/halt
mail:x:8:12:mail:/var/spoo l/mail:/sb in/nologin
news:x:9:13:news:/etc/news :
uucp:x:10:14:uucp:/var/spo ol/uucp:/s bin/nologi n
operator:x:11:0:operator:/ root:/sbin /nologin
games:x:12:100:games:/usr/ games:/sbi n/nologin
gopher:x:13:30:gopher:/var /gopher:/s bin/nologi n
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/s bin/nologi n
nscd:x:28:28:NSCD Daemon:/:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
rpc:x:32:32:Portmapper RPC user:/:/sbin/nologin
mailnull:x:47:47::/var/spo ol/mqueue: /sbin/nolo gin
smmsp:x:51:51::/var/spool/ mqueue:/sb in/nologin
pcap:x:77:77::/var/arpwatc h:/sbin/no login
ntp:x:38:38::/etc/ntp:/sbi n/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
avahi:x:70:70:Avahi daemon:/:/sbin/nologin
sshd:x:74:74:Privilege-sep arated SSH:/var/empty/sshd:/sbin/ nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/no login
nfsnobody:x:65534:65534:An onymous NFS User:/var/lib/nfs:/sbin/no login
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
avahi-autoipd:x:100:101:av ahi-autoip d:/var/lib /avahi-aut oipd:/sbin /nologin
xfs:x:43:43:X Font Server:/etc/X11/fs:/sbin/n ologin
apache:x:48:48:Apache:/var /www:/sbin /nologin
oprofile:x:16:16:Special user account to be used by OProfile:/home/oprofile:/s bin/nologi n
gdm:x:42:42::/var/gdm:/sbi n/nologin
sabayon:x:86:86:Sabayon user:/home/sabayon:/sbin/n ologin
root:x:0:0:root:/root:/bin
bin:x:1:1:bin:/bin:/sbin/n
daemon:x:2:2:daemon:/sbin:
adm:x:3:4:adm:/var/adm:/sb
lp:x:4:7:lp:/var/spool/lpd
sync:x:5:0:sync:/sbin:/bin
shutdown:x:6:0:shutdown:/s
halt:x:7:0:halt:/sbin:/sbi
mail:x:8:12:mail:/var/spoo
news:x:9:13:news:/etc/news
uucp:x:10:14:uucp:/var/spo
operator:x:11:0:operator:/
games:x:12:100:games:/usr/
gopher:x:13:30:gopher:/var
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/s
nscd:x:28:28:NSCD Daemon:/:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
rpc:x:32:32:Portmapper RPC user:/:/sbin/nologin
mailnull:x:47:47::/var/spo
smmsp:x:51:51::/var/spool/
pcap:x:77:77::/var/arpwatc
ntp:x:38:38::/etc/ntp:/sbi
dbus:x:81:81:System message bus:/:/sbin/nologin
avahi:x:70:70:Avahi daemon:/:/sbin/nologin
sshd:x:74:74:Privilege-sep
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/no
nfsnobody:x:65534:65534:An
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
avahi-autoipd:x:100:101:av
xfs:x:43:43:X Font Server:/etc/X11/fs:/sbin/n
apache:x:48:48:Apache:/var
oprofile:x:16:16:Special user account to be used by OProfile:/home/oprofile:/s
gdm:x:42:42::/var/gdm:/sbi
sabayon:x:86:86:Sabayon user:/home/sabayon:/sbin/n
looks like you haven't created the oracle user yet
you can't give oracle ownership of anything if oracle doesn't exist
you can't give oracle ownership of anything if oracle doesn't exist
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
if you don't have the oracle user account, you might not have the dba group either
as root....
groupadd dba
then add the oracle user you created earlier to the dba group
useradd -G dba oracle
as root....
groupadd dba
then add the oracle user you created earlier to the dba group
useradd -G dba oracle
Also, look at the errors you are getting, it is not recognizing the - options as options. The - is not recognized at all. You should manually type the commands in rather than cut and pasting them.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
please give me a nice link to install oracle 11g in linux please
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
As always: The online docs:
http://docs.oracle.com/cd/E11882_01/install.112/e24321/toc.htm
The link you have is OK. It just assumed you already had the oracle user and dba group.
As mentioned by the others: Do not copy/paste commands in from the webpage.
You should also take the time to understand the commands you are using. Then a lot of the errors would make sense. For example: chown changes ownership the provided user. This sort of implies that user must exist first.
http://docs.oracle.com/cd/E11882_01/install.112/e24321/toc.htm
The link you have is OK. It just assumed you already had the oracle user and dba group.
As mentioned by the others: Do not copy/paste commands in from the webpage.
You should also take the time to understand the commands you are using. Then a lot of the errors would make sense. For example: chown changes ownership the provided user. This sort of implies that user must exist first.
>>> please give me a nice link to install oracle 11g in linux please
the link you have seems fine, just a little out of order, it asks you to execute some steps before ensuring the system is ready.
johnsone is correct, the -R isn't being recognized, however, based on your /etc/passwd, I'm also correct, you don't have an oracle user.
so, create the oracle user and dba groups as I've shown above.
and, type in the commands as johnsone suggested.
if that doesn't work. Follow the installation instructions that are in the zip file you downloaded.
I've never used any instructions for Oracle installation other than those Oracle has provided.
the link you have seems fine, just a little out of order, it asks you to execute some steps before ensuring the system is ready.
johnsone is correct, the -R isn't being recognized, however, based on your /etc/passwd, I'm also correct, you don't have an oracle user.
so, create the oracle user and dba groups as I've shown above.
and, type in the commands as johnsone suggested.
if that doesn't work. Follow the installation instructions that are in the zip file you downloaded.
I've never used any instructions for Oracle installation other than those Oracle has provided.
ASKER
I am following the existing link..
here is the issue now.
[root@ind etc]# gedit passwd
[root@ind etc]# user add oracle
-bash: user: command not found
[root@ind etc]# useradd oracle
[root@ind etc]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@ind etc]# chown –R oracle:dba /u01/11gStage
chown: `–R': invalid user
[root@ind etc]#
here is the issue now.
[root@ind etc]# gedit passwd
[root@ind etc]# user add oracle
-bash: user: command not found
[root@ind etc]# useradd oracle
[root@ind etc]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@ind etc]# chown –R oracle:dba /u01/11gStage
chown: `–R': invalid user
[root@ind etc]#
nobleit,
the reason johnsone said to type in the instructions rather than copy/paste is you're picking up illegal characters that "look" like they are correct, but if you typed them in yourself, you'd get the correct ones.
for example....
–R - wrong
-R - right
the wrong dash is bigger and hence, not the correct character.
the reason johnsone said to type in the instructions rather than copy/paste is you're picking up illegal characters that "look" like they are correct, but if you typed them in yourself, you'd get the correct ones.
for example....
–R - wrong
-R - right
the wrong dash is bigger and hence, not the correct character.
chown –R oracle:dba /u01/11gStage <<<< this is wrong
chown -R oracle:dba /u01/11gStage <<<< this is right (provided the user,group and path are correct)
don't copy/paste from the article, TYPE in the commands yourself.
chown -R oracle:dba /u01/11gStage <<<< this is right (provided the user,group and path are correct)
don't copy/paste from the article, TYPE in the commands yourself.
ASKER
chown: `–R': invalid user
[root@ind etc]# groupadd oracle
groupadd: group oracle exists
[root@ind etc]# groupadd dba
groupadd: group dba exists
[root@ind etc]#
[root@ind etc]# groupadd oracle
groupadd: group oracle exists
[root@ind etc]# groupadd dba
groupadd: group dba exists
[root@ind etc]#
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
[oracle@ind tmp]$ ls
AT&T Communication Manager.lnk mapping-oracle
database mapping-root
gconfd-oracle orbit-oracle
gconfd-root ssh-UZzUqS4064
keyring-KoRqFO virtual-oracle.33gnja
linux_11gR2_database_1of2. zip VMwareDnD
linux_11gR2_database_2of2. zip vmware-oracle
lost+found vmware-root
[oracle@ind tmp]$ cd database/
[oracle@ind database]$ ls
doc install response rpm runInstaller sshsetup stage welcome.html
[oracle@ind database]$ ./runInstaller
Error in writing to directory /tmp/OraInstall2011-12-07_ 02-01-37AM . Please ensure that this directory is writable and has atleast 60 MB of disk space. Installation cannot continue.
: No space left on device
Starting Oracle Universal Installer...
[oracle@ind database]$
At this point where should I fix regarding the space..
AT&T Communication Manager.lnk mapping-oracle
database mapping-root
gconfd-oracle orbit-oracle
gconfd-root ssh-UZzUqS4064
keyring-KoRqFO virtual-oracle.33gnja
linux_11gR2_database_1of2.
linux_11gR2_database_2of2.
lost+found vmware-root
[oracle@ind tmp]$ cd database/
[oracle@ind database]$ ls
doc install response rpm runInstaller sshsetup stage welcome.html
[oracle@ind database]$ ./runInstaller
Error in writing to directory /tmp/OraInstall2011-12-07_
: No space left on device
Starting Oracle Universal Installer...
[oracle@ind database]$
At this point where should I fix regarding the space..
this looks like a new question
You can redirect the usage of temporary space during the install by setting the TEMP and TMPDIR environment variable to a location that has suitable space.
nobleit,
it looks like you simply accepted the last post so you close the question, without really thinking about what had been asked and the other contributions.
redirecting TEMP has nothing to do with your original question.
johnsone and I did identify all of the syntax errors and missing accounts/groups needed.
A split seems in order
it looks like you simply accepted the last post so you close the question, without really thinking about what had been asked and the other contributions.
redirecting TEMP has nothing to do with your original question.
johnsone and I did identify all of the syntax errors and missing accounts/groups needed.
A split seems in order
ASKER
There was a space issue met ..For some reason I cannot go further with the same issue..
So far all the expert helped and suggested in that scenario..
Please unblock my account..
I am going to accept one of the suggestio which helped me lot while resolving..
please advice further...
So far all the expert helped and suggested in that scenario..
Please unblock my account..
I am going to accept one of the suggestio which helped me lot while resolving..
please advice further...
ASKER
This is what happened..When I created the machine.. I gave very few spaces to /tmp and /u01
After creating the machine, I could not install the oracle software and I tried to clean up /tmp and /u01 manually still I could not log in as oracle user even after did all the pre-requisites...
So now that machine no more existing..
So please try to understand me All the experts forgive me all the mistakes..
Now onwards it woud be a new start follow the directions..
I humbly request to unblock all the blocks I have...
After creating the machine, I could not install the oracle software and I tried to clean up /tmp and /u01 manually still I could not log in as oracle user even after did all the pre-requisites...
So now that machine no more existing..
So please try to understand me All the experts forgive me all the mistakes..
Now onwards it woud be a new start follow the directions..
I humbly request to unblock all the blocks I have...
ASKER
The wild character issue..
user add
change owner ship using chown in linux helped.
These are the two point that helped me to go forward..
user add
change owner ship using chown in linux helped.
These are the two point that helped me to go forward..