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.

Similar Messages

  • 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

  • /etc/init.d/oracle-xe status gives /bin/su: /bin/bash: Permission denied

    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

    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

  • /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:
    Perseus

    Yes dpkg has a purge flag.
    dpkg --purge packagename will remove the entire package + support/config files for it.
    Use carefully.
    MaShaun

  • 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

  • $ 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

  • Oracle installation on Linux RedHat "Multiple occurance of oracle directory

    I have successfully installed oracle 10.2.0.1 on my Linux server, but have repetition oracle directory on my Oracle_home path
    i.e /u01/app/oracle/oracle/product/10.2.0
    How can corrrect this shoul i uninstall oracle an install again ? or i should run ./oraInstaller and change the path, but when i run installer it looks like i am installing another oracle software without affecting the one with double oracle directory
    Please help....
    Thank you

    i run tar -cvf /u01/app/oracle/product/10.2.0/OH.tar .
    still i get the following error
    ======================================
    tar:Removing leading '/' from members names
    tar: /u01/app/oracle/product/10.2.0/OH.tar : cannot stat: No such file or directory
    tar: ./v: file is the archive; not dumped
    tar:Error exit delayed from previous errors
    ======================================
    But on my oracle home u01/app/oracle/oracle/product/10.2.0/db_3
    when i do ls -ltr there a new file created with the name v.
    please help

  • Starting Oracle-Xe on Linux fedora core 5

    Dear fourm members,
    I had Installed Oracle Xe on linux fedora core 5 and configure it.
    When i try to start the oracle Xe server I get the follwing error.
    # /etc/init.d/oracle-xe start
    Starting Oracle Net Listener.
    Starting Oracle Database 10g Express Edition Instance.
    Failed to start Oracle Net Listener using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr and Oracle Express Database using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus.
    what can i do to start the service.

    Failed To Start Oracle Net Listener

  • Problem installing Oracle XE in Linux (Suse 9.2)

    hello
    I just installed Oracle XE and did the configuration. the database starts and I can do a
    telnet localhost 1521
    and I get a connection.
    but I can not connect via sqlplus or the database homepage with firexfox. SqlDeveloper does not work either.
    with sqlplus as root I get this error:
    ./bin/sqlplus / AS SYSDBA
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Sep 10 23:03:32 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-01031: insufficient privileges
    as a non root user I get this:
    ERROR:
    ORA-12162: TNS:net service name is incorrectly specified
    when I run lsnrctl status I get this:
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 10-SEP-2006 23:05:17
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 10-SEP-2006 23:01:35
    Uptime 0 days 0 hr. 3 min. 42 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
    Listener Log File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=orca.wizards.de)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    I am not oracle expert. I think the installation itselft was ok, but maybe the database
    does not start correctly.
    my configuration is like this:
    cat /etc/sysconfig/oracle-xe
    #This is a configuration file for automatic starting of the Oracle
    #Database and listener at system startup.It is generated By running
    #'/etc/init.d/oracle-xe configure'.Please use that method to modify this
    #file
    # ORACLE_DBENABLED:'true' means to load the Database at system boot.
    ORACLE_DBENABLED=true
    # LISTENER_PORT: Database listener
    LISTENER_PORT=1521
    # HTTP_PORT : HTTP port for Oracle Application Express
    HTTP_PORT=8080
    # Configuration : Check whether configure has been done or not
    CONFIGURE_RUN=true
    any idea what's wrong here ?
    Markus

    thanks. I added my username to the dba group and also tried the oracle user.
    in both cases I still get this error:
    ERROR:
    ORA-12162: TNS:net service name is incorrectly specified
    here is the content of my listener files: maybe there is an error. I did not change anything
    after installation:
    /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin$ cat listener.ora
    # listener.ora Network Configuration File:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = orca)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin$ cat tnsnames.ora
    # tnsnames.ora Network Configuration File:
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = orca)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    any idea what the error could be ?
    Markus

  • Starting Oralce XE on Linux

    Hello,
    I just installed Oracle Xe on a Mandriva Linux Server.
    It did install without any problem as I installed the libaio, and the Glibc witout any problem.
    I did set up my Oracle_Home into my env.
    Now, when I try to start oracle with: /etc/init.d/oracle-xe start, it tells me:
    [root@multi centralis]# /etc/init.d/oracle-xe start
    Starting Oracle Net Listener.
    Starting Oracle Database 10g Express Edition Instance.
    Failed to start Oracle Net Listener using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr and Oracle Express Database using /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus.
    Could anyone please help me??
    Best Regards,
    Ben

    Hello,
    Unfortunately, I do not get any error message when I try to start the script.
    But,here is the script:
    #!/bin/bash
    # chkconfig: 2345 80 05
    # description: This is a program that is responsible for taking care of
    # configuring the Oracle Database 10g Express Edition and its associated
    # services.
    # processname: oracle-xe
    # config: /etc/sysconfig/oracle-xe-config
    # change log:
    # svaggu - creation 28-Sep-2005
    # Source fuction library
    . /etc/init.d/functions
    # Set path if path not set (if called from /etc/rc)
    case $PATH in
    "") PATH=/bin:/usr/bin:/sbin:/etc
    export PATH ;;
    esac
    # Save LD_LIBRARY_PATH
    SAVE_LLP=$LD_LIBRARY_PATH
    RETVAL=0
    ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
    ORACLE_OWNER=oraclexe
    ORACLE_SID=XE
    LSNR=$ORACLE_HOME/bin/lsnrctl
    SQLPLUS=$ORACLE_HOME/bin/sqlplus
    SU=/bin/su
    export ORACLE_HOME
    export ORACLE_SID
    export PATH=$ORACLE_HOME/bin:$PATH
    LOG="$ORACLE_HOME_LISTNER/listener.log"
    export LC_ALL=C
    if [ $(id -u) != "0" ]
    then
    echo "You must be root to run the configure script. Login as root and then run the
    configure script."
    exit 1
    fi
    if [ -f /etc/redhat-release ]
    then
    . /etc/init.d/functions
    init_status()
    return 0
    exit_status()
    exit $?
    success_status()
    success
    echo
    failure_status()
    failure $?
    echo
    elif [ -f /etc/SuSE-release ]
    then
    . /etc/rc.status
    init_status()
    rc_reset
    success_status()
    echo "OK"
    return 0
    failure_status()
    echo "Failed"
    return 1
    exit_status()
    exit $?
    fi
    # Source configuration
    [ -f /etc/sysconfig/oracle-xe-config ] && . /etc/sysconfig/oracle-xe-config
    init_status
    # if_fail()
    # Evaluates return codes. If 0, prints "OK", if 1, prints "Failed"
    # and exits. If 2, status is "already done" and nothing is printed.
    # The rest of the functions in here all honor this convention.
    if_fail()
    RC="$1"
    REASON="$2"
    if [ "$RC" = "0" ]
    then
    return
    elif [ "$RC" = "2" ]
    then
    return
    fi
    failure_status ${REASON}
    exit 1
    # write_sysconfig()
    # Writes the system configuration
    write_sysconfig()
    cat >/etc/sysconfig/oracle-xe-config <<EOF
    #This is a configuration file for automatic starting of the Oracle
    #Database and listener at system startup.It is generated By running
    #'/etc/init.d/oracle-xe configure'.Please use that method to modify this
    #file
    # ORACLE_DBENABLED:'true' means to load the Database at system boot.
    ORACLE_DBENABLED=${ORACLE_DBENABLED:-false}
    # LISTENER_PORT:
    LISTENER_PORT=${LISTENER_PORT}
    # HTTP_PORT
    HTTP_PORT=${HTTP_PORT}
    #Configuration
    CONFIGURE_RUN=${CONFIGURE_RUN}
    EOF
    if [ $? != 0 ]
    then
    return 1
    fi
    return 0
    # configure_perform()
    # Instantantiate listener.ora,tnsnames.ora,and create the database,
    # sets the password,start the listener,and adds database to inittab
    # if necessary
    configure_perform()
    sed -i "s/<hostname>/`hostname`/g" $ORACLE_HOME/network/admin/listener.ora
    sed -i "s/<hostname>/`hostname`/g" $ORACLE_HOME/network/admin/tnsnames.ora
    sed -i "s/<port>/$LISTENER_PORT/g" $ORACLE_HOME/network/admin/listener.ora
    sed -i "s/<port>/$LISTENER_PORT/g" $ORACLE_HOME/network/admin/tnsnames.ora
    sed -i "s/<httpport>/$HTTP_PORT/g" $ORACLE_HOME/config/scripts/postDBCreation.sql
    sed -i "s/%port%/$LISTENER_PORT/g" $ORACLE_HOME/config/scripts/init.ora
    sed -i "s/%hostname%/`hostname`/g" $ORACLE_HOME/config/scripts/init.ora
    sed -i "s/%FRA_DIR%/\/usr\/lib\/oracle\/xe\/app\/oracle\/flash_recovery_area/g" $ORACLE_HOME/config/scripts/postDBCreation.sql
    sed -i "s/%httpport%/$HTTP_PORT/g" /usr/share/applications/oraclexe-GotoDBHome.desktop
    sed -i "s/%httpport%/$HTTP_PORT/g" /usr/share/applications/oraclexe-ReadOnlineHelp.desktop
    homedir=`echo $HOME`
    if [ "$homedir" == "/root" ]
    then
    homedir=`sh -c "echo ~$USER"`
    fi
    if [ -f $homedir/.gnome-desktop/oraclexe-GettingStartedDesktop.desktop ]
    then
    chown oraclexe:dba $homedir/.gnome-desktop/oraclexe-GettingStartedDesktop.desktop
    chmod 664 $homedir/.gnome-desktop/oraclexe-GettingStartedDesktop.desktop
    fi
    if [ -f $homedir/Desktop/oraclexe-GettingStartedDesktop.desktop ]
    then
    chown oraclexe:dba $homedir/Desktop/oraclexe-GettingStartedDesktop.desktop
    chmod 664 $homedir/Desktop/oraclexe-GettingStartedDesktop.desktop
    fi
    echo Configuring Database...
    $SU $ORACLE_OWNER -c "$ORACLE_HOME/config/scripts/XE.sh" > /dev/null 2>&1
    echo "alter user flows_020100 identified by $ORACLE_PASSWORD;" | $SU $ORACLE_OWNER -c "$SQLPLUS -s / as sysdba" > /dev/null 2>&1
    echo "alter user sys identified by $ORACLE_PASSWORD;" | $SU $ORACLE_OWNER -c "$SQLPLUS -s / as sysdba" > /dev/null 2>&1
    echo "alter user system identified by $ORACLE_PASSWORD;" | $SU $ORACLE_OWNER -c "$SQLPLUS -s / as sysdba" > /dev/null 2>&1
    echo "alter user flows_files identified by $ORACLE_PASSWORD;" | $SU $ORACLE_OWNER -c "$SQLPLUS -s / as sysdba" > /dev/null 2>&1
    echo "alter user anonymous identified by $ORACLE_PASSWORD;" | $SU $ORACLE_OWNER -c "$SQLPLUS -s / as sysdba" > /dev/null 2>&1
    chmod -R 640 /usr/lib/oracle/xe/oradata/XE
    chmod 750 /usr/lib/oracle/xe/oradata/XE
    chown -R oraclexe:dba /usr/lib/oracle/xe
    rm -fr $ORACLE_HOME/config/seeddb
    if [ -f /etc/oratab ]
    then
    echo "XE:$ORACLE_HOME:N" >> /etc/oratab
    else
    echo "XE:$ORACLE_HOME:N" >> /etc/oratab
    chown oraclexe:dba /etc/oratab
    chmod 644 /etc/oratab
    fi
    #configure_ask()
    # Ask configuration questions,setting the variables.
    configure_ask()
    cat <<EOF
    Oracle Database 10g Express Edition Configuration
    This will configure on-boot properties of Oracle Database 10g Express
    Edition. The following questions will determine whether the database should
    be starting upon system boot, the ports it will use, and the passwords that
    will be used for database accounts. Press <Enter> to accept the defaults.
    Ctrl-C will abort.
    EOF
    #get the http port value
    while :
    do
    while [ 1 ]
    do
    echo -n Specify the HTTP port that will be used for HTML DB [8080]:
    read LINE
    if [ -z $LINE ]
    then
    LINE=8080
    fi
    port=`netstat -n tcp listen | grep :$LINE | awk '{print $4}' | cut -d':' -f2`
    if [ "$port" = "$LINE" ]
    then
    echo Port $port appears to be in use by another application.\
    Please specify a different port.
    else
    break;
    fi
    done
    case "$LINE" in
    break
    *[^0-9]*)
    echo "Invalid http port: $LINE" >&2
    HTTP_PORT=$LINE
    break
    esac
    done
    #get the listener port value
    while :
    do
    echo
    while [ 1 ]
    do
    echo -n Specify a port that will be used for the database listener [1521]:
    read LINE
    if [ -z $LINE ]
    then
    LINE=1521
    fi
    echo
    port=`netstat -n tcp listen | grep :$LINE | awk '{print $4}' | cut -d':' -f2`
    if [ "$port" = "$LINE" ]
    then
    echo Port $port appears to be in use by another application.\
    Please specify a different port.
    else
    break;
    fi
    done
    case "$LINE" in
    break
    *[^0-9]*)
    echo "Invalid port: $LINE" >&2
    LISTENER_PORT=$LINE
    break
    esac
    done
    #get the database password
    while :
    do
    echo -n "Specify a password to be used for database accounts. Note that the same
    password will be used for SYS, SYSTEM and FLOWS_020100. Oracle recommends
    the use of different passwords for each database account. This can be done
    after initial configuration:"
    while [ 1 ]
    do
    stty -echo
    read LINE
    while [ -z $LINE ]
    do
    echo
    echo -n "Password can't be null. Enter password:"
    read LINE
    done
    if [ -n $LINE ]
    then
    echo
    echo -n "Confirm the password:"
    read LINE1
    echo
    if [ "$LINE" != "$LINE1" ];
    then
    echo
    echo -n "Passwords do not match. Enter the password:"
    else
    break;
    fi
    fi
    done
    case "$LINE" in
    *[^a-zA-Z0-9]*)
    echo "Invalid password: $LINE" >&2
    stty echo
    ORACLE_PASSWORD=$LINE
    break
    esac
    done
    while :
    do
    if [ "$ORACLE_DBENABLED" = "true" ]
    then
    CUR=y
    else
    CUR=n
    fi
    echo
    echo -n "Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:"
    read LINE
    if [ -z $LINE ]
    then
    ORACLE_DBENABLED=true
    fi
    echo
    case "$LINE" in
    break
    y|Y)
    ORACLE_DBENABLED=true
    break
    n|N)
    ORACLE_DBENABLED=false
    break
    echo "Invalid response: $LINE " >&2
    break
    esac
    done
    configure()
    configure_ask
    configure_perform
    CONFIGURE_RUN=true
    write_sysconfig
    if [ -f $ORACLE_HOME/bin/tnslsnr ]
    then
    echo "Starting Oracle Net Listener."
    $SU $ORACLE_OWNER -c "$LSNR start" > /dev/null 2>&1
    fi
    start() {
    if test ! -f /etc/sysconfig/oracle-xe-config
    then
    echo You need to configure Oracle Database 10g Express Edition before\
    you can start it.
    exit 0
    elif [ "$CONFIGURE_RUN" != "true" ]
    then
    echo You need to configure Oracle Database 10g Express Edition before\
    you can start it.
    exit 0
    fi
    if [ "$ORACLE_DBENABLED" != "true" ]
    then
    exit 0
    fi
    status=`ps -ef | grep tns | grep oraclexe`
    if [ "$status" == "" ]
    then
    if [ -f $ORACLE_HOME/bin/tnslsnr ]
    then
    echo "Starting Oracle Net Listener."
    $SU $ORACLE_OWNER -c "$LSNR start" > /dev/null 2>&1
    fi
    fi
    echo "Starting Oracle Database 10g Express Edition Instance."
    $SU $ORACLE_OWNER -c "$SQLPLUS -s /nolog @$ORACLE_HOME/config/scripts/startdb.sql" > /dev/null 2>&1
    RETVAL=$?
    if [ $RETVAL -eq 0 ]
    then
    echo
    else
    echo Failed to start Oracle Net Listener using $ORACLE_HOME/bin/tnslsnr\
    and Oracle Express Database using $ORACLE_HOME/bin/sqlplus.
    RETVAL=1
    fi
    return $RETVAL
    stop() {
    if test ! -f /etc/sysconfig/oracle-xe-config
    then
    echo Oracle Database 10g Express Edition is not configured.
    exit 0
    elif [ "$CONFIGURE_RUN" != "true" ]
    then
    echo Oracle Database 10g Express Edition is not configured.
    exit 0
    fi
    # Stop Oracle 10g Express Edition Database and Listener
    echo Shutting down Oracle Database 10g Express Edition Instance.
    $SU $ORACLE_OWNER -c "$SQLPLUS -s /nolog @$ORACLE_HOME/config/scripts/shutdb.sql" > /dev/null 2>&1
    echo Stopping Oracle Net Listener.
    $SU $ORACLE_OWNER -c "$LSNR stop" > /dev/null 2>&1
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$LSNR
    then
    return $RETVAL
    fi
    dostatus() {
    if test ! -f /etc/sysconfig/oracle-xe-config
    then
    echo You need to configure Oracle Database 10g Express\
    listener to get the status.
    exit 0
    elif [ "$CONFIGURE_RUN" != "true" ]
    then
    echo You need to configure Oracle Database 10g Express\
    listenr to get the status
    exit 0
    fi
    $SU $ORACLE_OWNER -c "$LSNR status"
    RETVAL=$?
    # See how we were called
    case "$1" in
    start)
    start
    configure)
    configure
    if [ "$ORACLE_DBENABLED" = "true" ]
    then
    /sbin/chkconfig --add oracle-xe
    start
    fi
    stop)
    stop
    restart|reload)
    stop
    start
    RETVAL=$?
    status)
    dostatus
    echo $"Usage: $0 {start|stop|restart|configure|status}"
    exit 1
    esac
    Thanks for the help.

  • After installing oracle 10g on linux im getting this error

    Hi,
    Can any one give me any solution on i getting an error after installing oracle 10g on linux.
    ERROR:-
    /oraeng/app/oracle/product/10.2.0/bin/clscfg: error while loading shared libraries: libclntsh.so.10.1: cannot open shared object file: No such file or directory
    Failed to initialize Oracle Cluster Registry for cluster

    Hi, please ensure that both 'libclntsh.so.10.1' and 'libttsh10.so' has 755 permission and owned by Oracle.
    That is the critical step.
    After re-execute the root.sh file
    Has been known to reset the permissions from the previous step - bug in some patch releases.
    Suggest OP records permissions for those two files before running root.sh Or run root.sh before setting the permissions.

  • Whether the Oracle 8i for linux is free for business purpose?

    if we implement an application with Oracle 8i for linux.And the we will sell the application. whether we must pay the Oracle 8i for linux?

    I think the oracle so called their datebase can't use to profit include two perspect:
    First, you can't use oracle for linux in bussiness directly.Such as a compnay use oracle on linux as his database platform.
    second, you can't use oracle for linux as development platform or run platform and you product used for bussiness perpose.
    The above two item certainly uner unauthorized conditions. If you get authorized oracle on linux,you can use it as you want.
    null

  • Migrate data from PostgreSQL 7.2 to oracle 9i on Linux

    Kindly guide me on how to migrate data from PostgreSQL 7.2 to oracle 9i on Linux. Please provide me a performance comparision between Orcle 9i on Linux and on windows 2000
    thanks

    Hi Geo
    We do not currently have tools to support Postgres to SQL migration. However, there are tools currently under developement which may help you in the future. In the meantime, there are some useful articles on postgres.org web site. See http://archives.postgresql.org/pgsql-sql/2002-10/msg00352.php
    We do not have comparison docs bertween Oracle on UNIX and Oracle on Windows as the the main code base is identifical. There are some artchitectural changes on windows where Oracle background processes have been implemented as threads and are installed as Windows services. More information on the architectures on both platforms can be found on the following sites:
    Oracle on Windows
    http://otn.oracle.com/tech/windows/index.html
    Oracle on Linux
    http://otn.oracle.com/tech/linux/index.html
    http://oss.oracle.com
    cheers
    Jan

  • Migrate PostgreSQL 7.2 to oracle 9i on Linux

    Kindly guide me on how to migrate data from PostgreSQL 7.2 to oracle 9i on Linux. Please provide me a performance comparision between Orcle 9i on Linux and on windows 2000
    thanks

    Hi Geo
    We do not currently have tools to support Postgres to SQL migration. However, there are tools currently under developement which may help you in the future. In the meantime, there are some useful articles on postgres.org web site. See http://archives.postgresql.org/pgsql-sql/2002-10/msg00352.php
    We do not have comparison docs bertween Oracle on UNIX and Oracle on Windows as the the main code base is identifical. There are some artchitectural changes on windows where Oracle background processes have been implemented as threads and are installed as Windows services. More information on the architectures on both platforms can be found on the following sites:
    Oracle on Windows
    http://otn.oracle.com/tech/windows/index.html
    Oracle on Linux
    http://otn.oracle.com/tech/linux/index.html
    http://oss.oracle.com
    cheers
    Jan

Maybe you are looking for

  • How to activate my iphone 4 that is locked at (att) in UAE

    Hi. I have purchased an iphone 4 from att and it's locked,then i decided to go back to the UAE but the phone is locked so i cant use it how can i make it work on UAE Carriers (Etisalat-Du) please help me

  • SAXTransformerFactory

    Hello Specialists, I've following problem (the same as described in: [; ...) A java mapping for rendering PDF based on apache's FOP throws an exception: javax.xml.transform.TransformerException: java.lang.ClassCastException: class com.sap.aii.ib.serv

  • Another consildating question!!!

    Hi, I have a downloaded music folder, which contains all music that I have downloaded through file sharing. These songs are not in my iTunes library. My iTunes library only contains my CD collection and music purchased on iTunes. I don't want to comb

  • Probelm in use of  - - - - AT End of  statement

    Dear Experts, types : begin of t_ZVAIQ1 ,           vbeln type vbeln,           prctr type prctr,           pfach type pfach,           fkimg1 type i,           fkimg2 type i,        end of t_ZVAIQ1. DATA : itab type standard table of t_ZVAIQ1 initia

  • Iphoto won´t recognise photos I am trying to download from my Canon 50D

    Hi, I have been using iphoto and downloading photos with no problem, with both a card reader and direct from my Canon 30D. I recently purchased a 50D and I installed the Canon software to take a look and see what it was like. I downloaded a few photo