Bash: /etc/init.d/oracle-xe: Permission denied
arjun@ubuntu:~$ sudo su
root@ubuntu:/home/arjun# /etc/init.d/oracle-xe configure
bash: /etc/init.d/oracle-xe: Permission denied
root@ubuntu:/home/arjun#
Hi,
arjun@ubuntu:~$ sudo /etc/init.d/oracle-xe configureRegards,
Jari
Similar Messages
-
Hi all,
This is my first attempt at Oracle so I tried XE on a linux machine (RedHat Enterprise).
Install and configuration went fine, however trying http://localhost:8080/apex gives me a connection refused message. So i tried '/etc/init.d/oracle-xe status' to check the status. However i got the following message : '/bin/su: /bin/bash: Permission denied'.
I installed as root. What gives? What did i do wrong?Fixed that issue. I had to set the permission to enter the directory also and to execute these two files. I have the following problem now though. See below:
[root@localhost root]# /etc/init.d/oracle-xe status
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 09-AUG-2006 19:57:42
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused -
i am trying to install oracle 11g xe on ubuntu aws instance when i execute sudo /etc/init.d/oracle-xe configure command iam getting this error: sudo: /etc/init.d/oracle-xe : command not found.
"command not found" means ... there is no such thing.
Has the .rpm been installed?
http://docs.oracle.com/cd/E17781_01/install.112/e18802/toc.htm#XEINL122 -
Installing Oracle - /etc/init.d/oracle-xe configure command missing?
I've AMD64 system with Ubuntu 11.04 installed. It's been rough ride for me to install oracle-xe-universal. I've already spent more than 2 days on this. Still unsuccessful.
1) First I downloaded the packages libaio_0.3.104-1_i386.deb and oracle-xe-universal_10.2.0.1-1.1_i386.deb
2) Then I ran
sudo apt-get install bc (ran fine)
sudo dpkg -i --force-architecture libaio_0.3.104-1_i386.deb (ran fine)
sudo dpkg -i --force-architecture oracle-xe-universal_10.2.0.1-1.1_i386.deb (gave me dependency error for libc6 (>= 2.3.2), I modified the control file to remove dependency and rebuilt the package) (now worked fine)
Oracle xe is now installed. Then I tried to start the DB it started but it's HTTP client never started. So I decided to uninstall the oracle-xe=universal. None of the sudo apt-get remove oracle-xe-universal command's didn't worked for me. So i went for manual uninstallation directions as per oracle link.
I ran the following command-
Manually uninstalling Oracle 10g
sudo rm -rf /usr/lib/oracle /etc/oratab /etc/init.d/oracle-xe /etc/sysconfig/oracle-xe /usr/share/doc/oracle_xe /usr/share/doc/oracle_xe_client
Then I again ran the following command to install oracle-xe
sudo dpkg -i --force-architecture oracle-xe-universal_10.2.0.1-1.0_i386.deb
See below what I got as the output-
rocky@ubuntu:~/git/mygit/edas2/libaio$ sudo dpkg -i --force-architecture oracle-xe-universal_10.2.0.1-1.1_i386.deb
dpkg: warning: overriding problem because --force enabled:
package architecture (i386) does not match system (amd64)
(Reading database ... 184865 files and directories currently installed.)
Preparing to replace oracle-xe-universal:i386 10.2.0.1-1.1 (using oracle-xe-universal_10.2.0.1-1.1_i386.deb) ...
Unpacking replacement oracle-xe-universal:i386 ...
Setting up oracle-xe-universal:i386 (10.2.0.1-1.1) ...
Executing Post-install steps...
Processing triggers for ureadahead ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Processing triggers for man-db ...
Processing triggers for python-support ...
rocky@ubuntu:~/git/mygit/edas2/libaio$
Now if I try to run the following command, it says command not found-
rocky@ubuntu:~/git/mygit/edas2/libaio$ sudo /etc/init.d/oracle-xe configure
sudo: /etc/init.d/oracle-xe: command not found
rocky@ubuntu:~/git/mygit/edas2/libaio$
Even in applications menu I don't see the if oracle has been installed.
So i conclude first time installation was ok but somehow http client didn't worked.
After manual uninstallation, second installation didn't even loaded/installed the oracle-xe in init.d directory.
Please help here.user1680826 wrote:
I've AMD64 system with Ubuntu 11.04 installed. It's been rough ride for me to install oracle-xe-universal. I've already spent more than 2 days on this. Still unsuccessful.Not surprising, given that Ubuntu is not a supported OS for Oracle products.
Any reason you are not using a supported OS?
And any reason you are running two threads on the same problem? /etc/init.d/oracle-xe is missing?
>
1) First I downloaded the packages libaio_0.3.104-1_i386.deb and oracle-xe-universal_10.2.0.1-1.1_i386.deb
2) Then I ran
sudo apt-get install bc (ran fine)
sudo dpkg -i --force-architecture libaio_0.3.104-1_i386.deb (ran fine)
sudo dpkg -i --force-architecture oracle-xe-universal_10.2.0.1-1.1_i386.deb (gave me dependency error for libc6 (>= 2.3.2), I modified the control file to remove dependency and rebuilt the package) (now worked fine)
Oracle xe is now installed. Then I tried to start the DB it started but it's HTTP client never started. So I decided to uninstall the oracle-xe=universal. None of the sudo apt-get remove oracle-xe-universal command's didn't worked for me. So i went for manual uninstallation directions as per oracle link.
I ran the following command-
Manually uninstalling Oracle 10g
sudo rm -rf /usr/lib/oracle /etc/oratab /etc/init.d/oracle-xe /etc/sysconfig/oracle-xe /usr/share/doc/oracle_xe /usr/share/doc/oracle_xe_client
Then I again ran the following command to install oracle-xe
sudo dpkg -i --force-architecture oracle-xe-universal_10.2.0.1-1.0_i386.deb
See below what I got as the output-
rocky@ubuntu:~/git/mygit/edas2/libaio$ sudo dpkg -i --force-architecture oracle-xe-universal_10.2.0.1-1.1_i386.deb
dpkg: warning: overriding problem because --force enabled:
package architecture (i386) does not match system (amd64)
(Reading database ... 184865 files and directories currently installed.)
Preparing to replace oracle-xe-universal:i386 10.2.0.1-1.1 (using oracle-xe-universal_10.2.0.1-1.1_i386.deb) ...
Unpacking replacement oracle-xe-universal:i386 ...
Setting up oracle-xe-universal:i386 (10.2.0.1-1.1) ...
Executing Post-install steps...
Processing triggers for ureadahead ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Processing triggers for man-db ...
Processing triggers for python-support ...
rocky@ubuntu:~/git/mygit/edas2/libaio$
Now if I try to run the following command, it says command not found-
rocky@ubuntu:~/git/mygit/edas2/libaio$ sudo /etc/init.d/oracle-xe configure
sudo: /etc/init.d/oracle-xe: command not found
rocky@ubuntu:~/git/mygit/edas2/libaio$
Even in applications menu I don't see the if oracle has been installed.
So i conclude first time installation was ok but somehow http client didn't worked.
After manual uninstallation, second installation didn't even loaded/installed the oracle-xe in init.d directory.
Please help here.Edited by: EdStevens on Jul 24, 2011 4:56 PM -
Starting Oracle XE on linux by /etc/init.d/oracle-xe start
Hello,
I installed Oracle Database 10g Express Edition on a Linux Ubuntu 7.04 (feisty)
following official installation instructions found here
http://www.oracle.com/technology/software/products/database/xe/files/install.102/b25144/toc.htm#BABCEAHD
but I noticed a weird behavior.
The installation process was ok.
The configuration process (/etc/init.d/oracle-xe configure) was also ok.
I set everything on default except for the “starting on boot” option I choose NO, because the instructions let me understand that I can start the service manually by the command:
$ /etc/init.d/oracle-xe start
The configuration process at the end also started the service well, so I could test my new oracle installation on my web browser following the url http://127.0.0.1:8080/apex
Everything went fine... but...
On the next boot I wanted to start my oracle so I typed
sudo /etc/init.d/oracle-xe start
but nothing happened and the server didn't go up.
Looking into to script /etc/init.d/oracle-xe
we can find this switch
case "$1" in
start)
if test -f "$CONFIGURATION"
then
if test "$ORACLE_DBENABLED" != "true"
then
exit 0
fi
else
echo "Oracle Database 10g Express Edition is not configured. You must run
'/etc/init.d/oracle-xe configure' as the root user to configure the database."
exit 0
fi
start
this means that if you chose NO (N) for the “starting on boot” option on the configuration process (NB this choice put false in the env variable ORACLE_DBENABLED) you can't start the dbms by this script.
I try comment the few lines
then
#if test "$ORACLE_DBENABLED" != "true"
#then
# exit 0
#fi
else
and this time the server starts well.
So I deduced that something was wrong with the script and the official installation instructions.Yes... Thank you.
But I saw the problem could to be simple avoided using the options
enable/disable for the script /etc/init.d/oracle-xe,
If you choose not to start oracle at boot time, you can start it
manually by the sequence
/etc/init.d/oracle-xe enable
/etc/init.d/oracle-xe start
then when you want to stop it
/etc/init.d/oracle-xe stop
/etc/init.d/oracle-xe disable
by this last command we don't make oracle restart
at the next system boot.
I think it would be a good thing to update the reference
documentation at
http://www.oracle.com/technology/software/products/database/xe/files/install.102/b25144/toc.htm#BABCEAHD
to explain this situation better. -
/etc/init.d/oracle-xe not found
Hi,
I installed oracle-xe-universal 10g on debian 4 after that manually deistalled
see:
http://www.oracle.com/technology/software/products/database/xe/files/install.102/b25144/toc.htm#CIHDDHJD
then I installed xe again.
My second installation was ok. But I didn't find /etc/init.d/oracle-xe for configuration (First installation worked fine, init.d/oracle-xe existed). 2nd installation didn't display oracle-xe icons in applications menu at Gnome too.
If I try reinstall this in Gnome /etc/init.d/oracle-xe will be contained in package installer/includes files - but not relly.
Could you help me please.
Message was edited by:
PerseusYes dpkg has a purge flag.
dpkg --purge packagename will remove the entire package + support/config files for it.
Use carefully.
MaShaun -
$ sudo /etc/init.d/oracle-xe configure
Hello,
I installed XE 64bit on Ubuntu 10.10 after I used alien. When I do
$ sudo /etc/init.d/oracle-xe configure
I get,
Configuring database...grep: /u01/app/oracle/product/11.2.0/xe/config/log/*.log: No such file or directory
grep: /u01/app/oracle/product/11.2.0/xe/config/log/*.log: No such file or directory
Database Configuration failed. Look into /u01/app/oracle/product/11.2.0/xe/config/log for details
Thanks,
Eric J.I get this error on fedora 14. Turns out the problem was that SELinux was blocking lsnrctl. Following the instructions from /var/log/messages fixed the specific problem (though it showed up again for sqlplus and was fixed in the same way). Presumably, disabling SELinux would fix the problem too.
Rodney -
Bash: /home/oracle/.bashrc: Permission denied
[root@localhost u01]# ls -lad /home/oracle/{.*,*}
ls: cannot access /home/oracle/*: No such file or directory
drwx------. 4 501 507 4096 Aug 21 18:24 /home/oracle/.
drwxr-xr-x. 6 root root 4096 Aug 21 22:36 /home/oracle/..
-rwxrwxr-x. 1 501 507 829 Aug 21 18:31 /home/oracle/.bash_history
-rwxrwxr-x. 1 501 507 18 May 10 2012 /home/oracle/.bash_logout
-rwxrwxr-x. 1 501 507 176 Aug 21 17:16 /home/oracle/.bash_profile
-rwxrwxr-x. 1 501 507 124 May 10 2012 /home/oracle/.bashrc
drwxr-xr-x. 2 501 507 4096 Nov 20 2010 /home/oracle/.gnome2
drwxr-xr-x. 4 501 507 4096 Aug 17 21:42 /home/oracle/.mozilla
-rwxrwxr-x. 1 501 507 3786 Aug 21 18:24 /home/oracle/.viminfo
[root@localhost u01]# su oracle
[root@localhost u01]# su oracle
bash: /home/oracle/.bashrc: Permission deniedHi,
Why the Home Oracle files are rwx rwx r-x. the oracle home should have the permissions rwx r-x r-x.
# chmod -R 755 /home/oracle/*
To switch to an other user, it is recommended to use
# su - oracle
the dash (-) : this is used to load ALL the envirenment of the user oracle.
Don't forget to verify if the .bashrc is executable, if not run:
$ chmod +x ~/.bashrc
I hope this can help you
Best Regards -
TNS-12555: TNS:permission denied
I recently re-installed ORACLE-XE using the increased swap size method below:
dd if=/dev/zero of=/swapfile1 bs=1M count=600
mkswap /swapfile
swapon /swapfile
it works perfectly until I log out and log back in.
Then http://127.0.01:8080/apex gives a connection refused error. It turns out oracle's startdb.sh is dev/null'ing the error message which was:
TNS-12555: TNS:permission denied
TNS-12560: TNS:protocol adapter error
TNS-00525: Insufficient privilege for operation
Linux Error: 1: Operation not permitted
All my files in /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin are:
-r-xr-xr-x 1 oracle dba 68948 2006-02-20 06:31 lsnrctl
protected so I've tried using chmod and chgrp and chown but no success!! I did one time get it to work by logging in as oracle. Then apex worked but my (java) application complained that there wasn't enough swap space.
As I said earlier, when I installed oracle xe everything worked fine. tnsnames.ora & listener.ora are fine so that's not the cause. My problem is I know a lot about oracle but I'm fairly new to linux. I'm using SUSE 10.
Can anyone help.
By the way, how can I see if my swap size change survived a reboot?Thanks Werner
It was a problem with access rights to var/tmp/.oracle.
I had first installed XE in January (I could see s#... files from back there in var/tmp/.oracle). Things came unstuck when I increased my pc's memory. So out of frustration I re-installed XE.
Now I finally have it working again.
I had .oracle as
drwxrwxrwt 2 root dba 128 2006-10-21 21:47 .oracle
probably because I ran /etc/init.d/oracle-xe configure as root. Or maybe because I had an old installation.
Thanks a lot for your help.
Allister -
hi,
i m new to oracle on linux
Oracle 10gR2 on RedHat Enterprise Linux 5
while running ./runInstaller
this error displays
bash: /media/database/runInstaller: /bin/sh: bad interpreter: Permission denied
can any one help me, please answer here or [email protected]It's got nothing to do with who he's running the installer as (though he should indeed run it as the oracle user, of course).
It's got everything to do with the fact that a lot of distros these days automount their CDs with the noexec switch set. Meaning that no-one apart from root is allowed to execute programs from the mounted media. Centos 5 does it, so RHEL5 would do it too. OpenSuse10.3 doesn't do it; Fedora 8 does; Debian 4 does.
If your distro uses an old-fashioned fstab (Debian 4 does, for example), you could edit that and stick an explicit 'exec' switch in as one of the mount options (plain old "user", commonly specified, implies "noexec").
But RHEL5 and Fedora 8, for example, use a new udev-magic way of dynamically mounting removable media, so there's nothing listed in /etc/fstab until after a cd or dvd has been automounted... and by that stage, it's too late to edit what the mount options should be!
The fix for these sorts of distros is to become root and manually unmount any Oracle CDs or DVDs that have been automounted. You can then simply re-mount them by issuing a command such as
mount -o loop /dev/cdrom /media...and, because this manual mount doesn't include explicit noexec switches, you'll find that if you now become the oracle user, you'll be allowed to execute the runInstaller program normally. -
Bad interpreter: Permission denied whn installin ORACLE 11g on linux 32 bit
Hello All,
I have a VMWare that i installed into it Oracle enterprise Linux 5 32 bit, i am trying to install Oracle 11g R2 on it, i have the .iso oracle file, l linked the CD/DVD drive of the VMware to the location of this ISO file, and i applied all the steps mentioned in this link : http://www.oracle-base.com/articles/11g/OracleDB11gR2InstallationOnEnterpriseLinux5.php
i did: cd media and i found the runInstaller file but wen trying to run it: ./runInstaller i am facing the below :
[root@oel5 media]# cd V17489-01/
[root@oel5 V17489-01]# ls
doc install response rpm runInstaller sshsetup stage welcome.html
[root@oel5 V17489-01]# ./runInstaller
-bash: ./runInstaller: /bin/sh: bad interpreter: Permission denied
your help is appreciated please.
Regards,The problem is that gnome-mount will not give you execute rights on CD/DVD content. The solution is at the below link in the Tips section:
Installing Oracle 11g R2 on Ubuntu 10 Howto
Logout your current X-session and login as user Oracle
Insert the Oracle Installation DVD
Or from a remote terminal session:
Insert the Oracle Installation DVD
sudo umount /dev/sr0
Create a new session as user Oracle
ssh -Y oracle@server_address
sudo mount /dev/sr0 /media
/media/database/runInstaller
If you see "runinstaller" instead of "runInstaller" you can try the following:
sudo mount -o loop,norock /dev/cdrom /media
more also here:
runInstaller ".oui: No such file" / "bad interpreter: Permission denied"
Edited by: Joe Shmoe on Nov 5, 2010 11:45 AM -
I have done all pre requisite configurations in Enterprise Linux R5 for the installation of Oracle Database 10g R2. When I run this ./runInstaller command from terminal window of Oracle user account. I got following error.
-bash: ./runInstaller: /bin/sh: bad interpreter: permission denied
Kindly send me the solution of this problem on urgent basis.
Thanks.
Shahzadls -la runInstaller
Check permission, that user can run.(execute)
By the way, if you use "oracle" user rune it...
Please Extract Oracle Source by oracle user.
Or user root user and change permission source ...
root$ cd SOURCE
root $ ls -la runInstaller
root$ chown -R oracle:oinstall .
example:
$ cd Disk1/
$ ls -la runInstaller
-rwxr-xr-x 1 oracle oinstall 1756 Mar 12 2008 runInstaller -
Permission denied :Oracle 10g on RHEL4
I am using ubuntu 10.10 and Virtualbox installed on it.I have installed red hat (RHEL4) on virtualbox.When i try to run the oracle installer from the cdrom i get the following error "permission denied".I am have tried to edit fstab entry in /etc but it didnt worked.I am only getting a read permission and unable to chmod it.
Automount does not mount cd/dvd rom media with execute privileges.
If you prefer a permanent solution, you can try the following:
Find the following line in /etc/auto.misc:
cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
and add exec so it look like:
cd -fstype=iso9660,ro,nosuid,nodev,exec :/dev/cdromI usually add the Oracle to root sudoers (visudo command), at least for the duration of the install. Then simply do:
- Insert DVD or mount iso in Virtualbox
- Oracle User: sudo umount /dev/cdrom
- Oracle User: sudo mount /dev/cdrom /media
If you see "runinstaller" instead of "runInstaller" you may have some hybrid dvd and you can try the following:
sudo mount -o loop,norock /dev/cdrom /media
Btw: Installing Oracle 11g R2 on Ubuntu 10 Howto:
Installing Oracle 11g R2 on Ubuntu 10 Howto -
Bash: ./jdev: /bin/sh: bad interpreter: Permission denied
Unzipped the jdevj2eebase1013.zip
Set permissions as per install guide.
Try to run jdev get this error
bash: ./jdev: /bin/sh: bad interpreter: Permission denied
Note the install guide says to run $ jdev
from command line, surely this means
$ ./jdev
instead. Tried it verbatim but get
hj54@devhost:~/downloads/oracle/10g/jdeveloper10.1.3pre/jdev/bin> jdev
bash: jdev: command not found
Distro is Novell Linux Desktop ( Suse 9.0 )ls -la runInstaller
Check permission, that user can run.(execute)
By the way, if you use "oracle" user rune it...
Please Extract Oracle Source by oracle user.
Or user root user and change permission source ...
root$ cd SOURCE
root $ ls -la runInstaller
root$ chown -R oracle:oinstall .
example:
$ cd Disk1/
$ ls -la runInstaller
-rwxr-xr-x 1 oracle oinstall 1756 Mar 12 2008 runInstaller -
Bash: /opt/arch32/mirrorlist: Permission denied - arch32 help
Hi all.
I'm new to Arch Lin and i'm just trying out things to get to know Arch.
At the moment I'm trying to install a 32 bit subsystem as described here http://wiki.archlinux.org/index.php/Ins … _in_Arch64 but in the second step I get the following error:
"bash: /opt/arch32/mirrorlist: Permission denied"
The wiki says I should do
"sed -e 's/x86\_64/i686/g' /etc/pacman.d/mirrorlist > /opt/arch32/mirrorlist",
but that gives me the error above, so I also tried
"sudo sed -e 's/x86\_64/i686/g' /etc/pacman.d/mirrorlist > /opt/arch32/mirrorlist"
which also doesn't work. What's wrong?
PS: i created /opt/arch32 with "sudo mkdir".Thanks I will try that out!
I'm sorry if I am being stupid but again im very newt o this, but is there a difference between these two things:
> su
> touch hello.txt
and
> sudo touch hello.txt
I dont fully understand the concept of 'sudo' yet, from what I know sudo gives temporary su permission, but under the real user so the owner in the first case becomes root while the owner in the second case becomes whoever is executing the command - is this not how it is?
Maybe you are looking for
-
Synching 2 3Gs iPhones to one iTunes account on one computer
I have a few questions regarding synching two 3Gs iPhones with one iTunes account on one computer. I had synched both phones (mine and my wifes) to our desktop computer but saw that apps were being placed on both of our phones and contacts were being
-
Render Error: -50 I know this has been posted about a lot
Hey folks! I understand that this question has been posted many times to the community, and while it is not my intent to waste anyones time (Tom Wolsky), I have not found a solution that works. Can anyone help me? I will monitor this feed to respond
-
I had an application running fine with the earlier Servlet version(9.6). It had Javascript embeded into the XSL stylesheet. When I moved to the new Servlet version(9.8.6), it is giving me problem . For example: this is a sample Javascriptlet inside X
-
i'm using flash cs5.5 . i have a problem with bind tool. how to use it.i'm trying lot of times, but i can't find how to use bind tool.please any can help me with a helpful answer.
-
NOT Bound error for Zfield added through AET
Hi. We added a Zfield through AET in the Account overview screen of IC Web UI. The same field we added in the Account Identification screen of IC Web UI. Account Overview screen its showing as enabled mode and its working fine. but in Identify accoun