You are not logged in.

#1 2005-07-13 17:44:27

aquila_deus
Member
From: Taipei
Registered: 2005-07-02
Posts: 348
Website

Oracle 10.2 Install!

just worked it out:

after you download the 600MB piggy setup,

unzip 10201_database_linux32.zip
cd database/stage/Components/oracle.network.rsf/10.2.0.1.0/1/DataFiles
unzip filegroup6.jar bin/gennfgt

now edit bin/gennfgt, find the following code:

if [ "$NNFGUSENISLIB" = "true" ]

and add the following before the above line

echo "void nnfyboot() {return;}"

don't worry about confliction, because libnnis10.a is not included in oracle 10.2 - the setup is broken by default!

now:

zip filegroup6.jar bin/gennfgt

Now RTFM and do the installation by

cd /lib
ln -s ../usr/lib/libgcc_s.so.1 libgcc_s.so.1
cd /usr/bin
ln -s ../../bin/awk awk
ln -s ../../bin/tr tr
cd ORACLE_UNZIPPED_SETUP_PATH
nice -n 19 ./runInstaller -ignoreSysPrereqs

If you omit -ignoreSysPrereqs, oracle setup will not run because it assumes everybody has RH or Suse. And if you forgot to do symbol links, the install will fail in the middle because oracle calls system programs by absolute path

the creation of new database will take forever and probably hang your computer, so it's better to give the lowest priority.

wait, wait, and wait....

DONE!

After 5 minutes you'll noticed that it cannot be shut down by enterprise console - Resource /em/database/instance/sitemap/changeState not found on this server

Cool isn't it?

Thanks god it's very easy to uninstall oracle on arch than on windows. Just kill all processes run by 'oracle' and

rm -fr /home/oracle


Cheers!

Offline

#2 2005-12-03 18:05:12

aquila_deus
Member
From: Taipei
Registered: 2005-07-02
Posts: 348
Website

Re: Oracle 10.2 Install!

nimitz wrote:

hi,i install oracle10g,but when i use "dbca" create database,i recive error msg"ORA-12547: TNS:lost contact",please help me! Thx!!!

Hi! Your shared memory may have been trashed or not enough. In my /etc/sysctl.conf:

kernel.shmmax = 536870912

Run "sysctl -p" to re-read the config file.

Also, try to run ipcclean to clean up them. If it still  fails to work, re-install oracle (it could be a linking error during installation).

Offline

#3 2005-12-03 19:14:03

aquila_deus
Member
From: Taipei
Registered: 2005-07-02
Posts: 348
Website

Re: Oracle 10.2 Install!

/etc/rc.d/lsnrctl

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

PID=`pidof -o %PPID tnslsnr`
case "$1" in
  start)
    stat_busy "Starting Oracle Listener "LISTENER""
    if [ -z "$PID" ]; then
      /usr/bin/nice -16 /bin/su oracle -c ". ${HOME}/.bashrc; lsnrctl start >${HOME}/ls-startup.log 2>&1 &"
    fi
    if [ ! -z "$PID" -o $? -gt 0 ]; then
      stat_fail
    else
      add_daemon lsnrctl
      stat_done
    fi
    ;;
  stop)
    stat_busy "Stopping Oracle Listener "LISTENER""
    [ ! -z "$PID" ]  && /usr/bin/nice -16 /bin/su oracle -c ". ${HOME}/.bashrc; lsnrctl stop >${HOME}/ls-stop.log 2>&1 &"
    if [ $? -gt 0 ]; then
      stat_fail
    else
      rm_daemon lsnrctl
      stat_done
    fi
    ;;
  restart)
    $0 stop
    sleep 1
    $0 start
    ;;
  *)
    echo "usage: $0 {start|stop|restart}"
esac

/etc/rc.d/oracle

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

PID=`pidof -o %PPID ora_pmon_orcl`
case "$1" in
  start)
    stat_busy "Starting Oracle Database "orcl""
    if [ -z "$PID" ]; then
      /usr/bin/nice -16 /bin/su oracle -c ". ${HOME}/.bashrc; echo -e 'CONNECT sys/imsys AS sysdba\nSTARTUP\n' | sqlplus /nolog >${HOME}/db-startup.log 2>&1 &"
    fi
    if [ ! -z "$PID" -o $? -gt 0 ]; then
      stat_fail
    else
      add_daemon oracle
      stat_done
    fi
    ;;
  stop)
    stat_busy "Stopping Oracle Database "orcl""
    [ ! -z "$PID" ]  && /usr/bin/nice -16 /bin/su oracle -c ". ${HOME}/.bashrc; echo -e 'CONNECT sys/imsys AS sysdba\nSHUTDOWN\n' | sqlplus /nolog >${HOME}/db-shutdown.log 2>&1 &"
    if [ $? -gt 0 ]; then
      stat_fail
    else
      rm_daemon oracle
      stat_done
    fi
    ;;
  restart)
    $0 stop
    sleep 1
    $0 start
    ;;
  *)
    echo "usage: $0 {start|stop|restart}"
esac

/home/oracle/.bashrc

export ORACLE_HOME=${HOME}/OraHome
export ORACLE_SID="orcl"
export PATH="${ORACLE_HOME}/bin:${PATH}"

PS: Replace "imsys" with your SYS password!

Offline

#4 2005-12-03 19:17:50

aquila_deus
Member
From: Taipei
Registered: 2005-07-02
Posts: 348
Website

Re: Oracle 10.2 Install!

Oracle 10.1.0.3 for Linux x86 works fine without any problem. During installation it may report errors when linking some useless ODBC stuff (twice), just click "Continue".

Offline

#5 2006-01-23 16:39:52

kth5
Member
Registered: 2004-04-29
Posts: 655
Website

Re: Oracle 10.2 Install!

trying to get 10.0.2.0.1.0 to work here, i followed your instructions but when i ran a tail on the installer's logfile i got a pretty interesting message

INFO: /bin/sed: -e expression #1, char 7: unterminated `s' command

it's repeating 3 times when the process indicator is at 62%. there it's sitting forever not doing anything.


I recognize that while theory and practice are, in theory, the same, they are, in practice, different. -Mark Mitchell

Offline

#6 2006-01-24 15:01:48

sh__
Member
Registered: 2005-07-19
Posts: 271

Re: Oracle 10.2 Install!

kth5 wrote:
INFO: /bin/sed: -e expression #1, char 7: unterminated `s' command

I have not tried to install Oracle, but I started to see similar errors after the last update of bash and readline. I think this is a related bug: http://bugs.archlinux.org/task/3755

Offline

Board footer

Powered by FluxBB