[PLUTO-help] ORACLE LINUX

Alessandro Cristiani acrist a jumpy.it
Gio 10 Giu 2004 16:47:58 CEST


Spero di farvi cosa gradita, e di non incorrere in lavate di capo,
nell'allegare un documento che spiega passo passo l'installazione di
oracle 8.1.7; fa riferimento alla Mandrake 8.2 ma personalmente seguendo
le istruzioni sono riuscito ad installare il client su una infinitą di
distribuzioni

Ciao
Bambu

Il gio, 2004-06-10 alle 14:54, pulp79 a libero.it ha scritto:
> ragazzi ho un problemone, sto installando oracle 8 con red hat 8quando lancio il runInstaller mi d questo problema......
> ---------------------------------
> Initializing Java Virtual Machine from
> ../stage/Components/oracle.swd.jre/1.1.8/1/DataFiles/Expanded/linux/
> [yousaf a tom Disk1]$ 
> /home/yousaf/tmp/Disk1/stage/Components/oracle.swd.jre/1.1.8/1/DataFiles/Expanded/linux
> ,
> version GLIBC_2.0 not defined in file libc.so.6 with link time reference
> (libzip.so)
> Unable to initialize threads: cannot find class java/lang/Thread
> Could not create Java VM
> 
> 
> _______________________________________________
> pluto-help mailing list
> pluto-help a lists.pluto.it
> http://lists.pluto.it/cgi-bin/mailman/listinfo/pluto-help
-------------- parte successiva --------------
This manual describes how to install Oracle 8.1.7 on Mandrake Linux 8.1

------- 10/28/01, Chun-Nuan Chen ---------------
Default Database information:
global database name: chench1.bioweircom.org
database system identifier (SID):chench1
SYS account password: change_on_install
SYSTEM account password: manager
------------------------------------------------

1. groupadd dba  #----SYSDBA and SYSOPER
2. groupadd oinstall  #--own oracle universal installer's oraInventory directory
3. useradd -g oinstall -G dba -s /bin/bash -d /home/oracle oracle 
4. cd /opt
  4.1  mkdir u01 u02 u03 u04
        chown -R oracle:oinstall u0*
  4.2  ln -s /opt/u01 /
       ln -s /opt/u02 /
       ln -s /opt/u03 /
       ln -s /opt/u04 /
5. as root, download jdk 1.8 v3 from blackdown and put it under /usr/local/jdk118_v3       
-------------
6. su - oracle
7. edit .bashrc
#---------ORALCE settings---------
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/8.1.7
NLS_LANG=AMERICAN_AMERICA.UTF8
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
PATH=$ORACLE_HOME/bin:$PATH

export ORACLE_BASE ORACLE_HOME NLS_LANG ORA_NLS33 PATH
------------
8. source .bashrc
9. cd /tmp/public/download/Disk1  #--this is the directory where my oracle install files are located
    ./runInstaller

(Note: on some systems, especially desktops, if you have the num lock key enabled,
 the installer may hang at the first few steps. In this case, disable the 
 number lock key and rerun the installer.)
 
10. Destination: /u01/app/oracle/product/8.1.7
11. Unix group name: oinstall  #---have permission to update oracle software
12. run /u01/app/oracle/product/8.1.7/orainstRoot.sh as root
Creating Oracle Inventory pointer file (/etc/oraInst.loc)
Changing groupname of /u01/app/oracle/oraInventory to oinstall
13. select to install oracle EE 8.1.7 and typical installation (837M)
13. Enter the location of JDK 1.1.8: /usr/local/jdk118_v3 
(this is for the bundled Apache HTTP server)
14. Database identification: 
	Global Database Name: chen.bioweircom.org
	SID: chen
-------------
15. installation starts and the logs are stored in 
    /u01/app/oracle/oraInventory/logs/install/Actions.log
16. Linking to create client libs. 
    in the middle of the linking process (about 62% through in my case), 
    a pop-up small window will tell you the linking has problems
    with different make files. This is caused by (I guess) the 
    imcompatibilities between the glibc libs.

    just click the "Ignore button" for all these warnings
    
17. Towarding the end of the installation, 
    run  /u01/app/oracle/product/8.1.7/orainstRoot.sh as root
----------
Running Oracle8 root.sh script...
\nThe following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/oracle/product/8.1.6
    ORACLE_SID=   chench3

Enter the full pathname of the local bin directory: [/usr/local/bin]: 
\nCreating /etc/oratab file...
Entry will be added to the /etc/oratab file by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
IMPORTANT NOTE: Please delete any log and trace files previously
                created by the Oracle Enterprise Manager Intelligent
                Agent. These files may be found in the directories
                you use for storing other Net8 log and trace files.
                If such files exist, the OEM IA may not restart.
--------------

18. stop all the following optional configuartions
. Net assistant configuration
. Database assistant configuration
. Apache http server configuration

19. su - oracle
    cd /u01/app/oracle/product/8.1.7/ and run
    tar zxvf /tmp/glibc-2.1.3-stubs.tar.gz 
    ./setup_stubs.sh
    this will relink the "buggy" client libs
20. cd /tmp/public/download/Disk1/patch/bug1538440
    export export TOP_PATCH_DIR=/tmp/public/download/Disk1/patch/bug1538440
    ./README.1538440
    this will replace snmitex.o in libnmi.a, 
    which is used by /u01/app/oracle/product/8.1.7/bin/dbsnm
    run /u01/app/oracle/product/8.1.7/root.sh as root to complete installation of the patch
21. as oracle user, cp /tmp/public/download/Disk1/patch/bug1542738 /tmp
    cd /tmp/bug1542738/
    edit README.1542738 to use #!/bin/bash
    ./README.1542738
    
    this will: 
    cp oidadmin $ORACLE_HOME/bin/oidadmin
    chmod 755 $ORACLE_HOME/bin/oidadmin
    cp libnldapj8.so $ORACLE_HOME/network/lib

22. edit .bashrc as follows:
------------------------------

# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/8.1.7
NLS_LANG=AMERICAN_AMERICA.UTF8
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
PATH=$ORACLE_HOME/bin:$PATH
#export ORACLE_BASE ORACLE_HOME NLS_LANG ORA_NLS33 PATH


LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
ORACLE_SID=chench1
JRE_Location=$ORACLE_HOME/JRE
CLASSPATH1=$JRE_Location:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbm/jlib:
CLASSPATH2=$ORACLE_HOME/network/jlib:$ORACLE_HOME/plsql/jlib:
CLASSPATH3=$ORACLE_HOME/owm/jlib:$ORACLE_HOME/assistants/jlib:
CLASSPATH4=$ORACLE_HOME/assistants/dbma/jlib:$ORACLE_HOME/assistants/dbca/jlib:
CLASSPATH=$CLASSPATH1$CLASSPATH2$CLASSPATH3$CLASSPATH4$CLASSPATH
TNS_ADMIN=$ORACLE_HOME/network/admin
TWO_TASK=chench3.red.iplanet.com #net service name of the database
export ORACLE_BASE ORACLE_HOME NLS_LANG ORA_NLS33 PATH
export CLASSPATH JRE_Location ORACLE_SID LD_LIBRARY_PATH
--------------------------------------------------------------

23. run dbassist
    create a new database using gid: chench1.bioweircom.org
    				sie: chench1
    or whatever you specified earlier during the installation

24. restart the listener
    lsnrctl stop
    lsnrctl start

25. run netasst
edit /u01/app/oracle/product/8.1.7/bin/netasst:

change from: 

#$JRE -classpath $CLASSPATH oracle.net.asst.container.NetApplication oracle.net.asst.container.NetApplication

to: 

$JRE -nojit  -classpath $CLASSPATH oracle.net.asst.container.NetApplication oracle.net.asst.container.NetApplication
exit $status

the Net8 configuration assistant create a
net service name to use in connecting to a database
Net8 configuration assistant automatically created Net8 server by
configuring the following files:
    listener.ora
    sqlnet.ora
    tnsnames.ora

26. run svrmgrl
    connect interanl
    shutdown
    startup

    alter user SYS identified by newpassword
    alter user System identified by newpassord

26. use orapwd file= password= entries= to
change the internal password
make sure initchench1.ora has the following line:
  remote_login_passwordfile = exclusive

27. edit /etc/oratab as follows:
chench1:/u01/app/oracle/product/8.1.7:Y  <--

28. create /etc/rc.d/init.d/dbora as follows:
--------------------------------------------
#!/bin/bash
# Set ORA_HOME to be equivalent to the ORACLE_HOME 
# from which you wish to execute dbstart and
# dbshut
# set ORA_OWNER to the user id of the owner of the 
# Oracle database in ORA_HOME
ORA_HOME=/u01/app/oracle/product/8.1.7
ORA_OWNER=oracle
if [! -f $ORA_HOME/bin/dbstart]
then
     echo "Oracle startup: cannot start"
     exit
fi
case "$1" in
    'start')
     # Start the Oracle databases:
     # The following command assumes that the oracle login will not prompt the
     # user for any values
     su - $ORA_OWNER -c $ORA_HOME/bin/lsnrctl start &
     su - $ORA_OWNER -c $ORA_HOME/bin/dbstart &
     ;;
     'stop')
     # Stop the Oracle databases:
     # The following command assumes that the oracle login will not prompt the
     # user for any values
     su - $ORA_OWNER -c $ORA_HOME/bin/lsnrctl stop &
     su - $ORA_OWNER -c $ORA_HOME/bin/dbshut &
     ;;
esac
--------------------------------
29. ln -s  /etc/rc.d/init.d/dbora /etc/rc5.d/K10dbora

30. cd /u01/app/oracle/product/8.1.7/Apache/Apache/conf
    edit httpd.conf to use 
    User: myuser
    Group: mygroup
    
    cd /u01/app/oracle/product/8.1.7
    as root 
        chown -R myuser:mygroup Apache 
    
    start the Apache http server as root: 
    cd /u01/app/oracle/product/8.1.7/Apache/Apache/bin
    ./apachectl start
    default it listens to port 7777
    now you can goto http://localhost:7777 and test out
    the jsp and the oracle database
    in order for the Jserv to work without throwing the apjv12 error message
    you may need to have something like the following in your /etc/hosts file
    
    192.168.1.100 chench1.bioweircom.org chench1
   


Back to Bioweircom.org

http://www.bioweircom.org/HotTopics/oracle-8.1.7.html


More information about the pluto-help mailing list