# mkdir /<AnotherFilesystem>/tmp # chown root.root /<AnotherFilesystem>/tmp # chmod 1777 /<AnotherFilesystem>/tmp # export TEMP=/<AnotherFilesystem>/tmp # used by Oracle # export TMPDIR=/<AnotherFilesystem>/tmp # used by Linux programs like the linker "ld"When it is done with your Oracle installation,
# rmdir /<AnotherFilesystem>/tmp # unset TEMP # unset TMPDIR
# groupadd -g 9010 oinstall # groupadd -g 9011 dba # useradd oracle ---- NOPE (see why below)I will use "adduser" (from slackware) instead:
# adduser login: oracle uid: 9010 initial group: oinstall additional groups: dba home directory: /home/oracle shell: /bin/bash expiry date: Full Name: Oracle 9.0.1 Room Number: Work Phone: Home Phone: Other: password: ********Oracle account created
# mkdir /oracle ---- NOPE (see why below)Actually /oracle is mounted on /dev/hda5 with 3GB
# mkdir /oracle/product # mkdir /oracle/product/9.0.1 # chown -R oracle.oinstall /oracle # mkdir /var/oracle # chown oracle.dba /var/oracle # chmod 755 /var/oracleRemember we need 3 GB or so !
installpkg j2sdk-1_3_1-linux-i386.tgzSun JDK 1.3.1 is installed in /usr/lib/jdk1.3.1
export BASH_ENV=$HOME/.bashrc # see http://www.puschitz.com/InstallingOracle9i.html export ORACLE_BASE=/oracle export ORACLE_HOME=$ORACLE_BASE/product/9.0.1 export ORACLE_SID=test export ORACLE_TERM=xterm export NLS_LANG=AMERICAN; export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data # export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib export PATH=$PATH:$ORACLE_HOME/bin CLASSPATH=$ORACLE_HOME/JRE CLASSPATH=$CLASSPATH:$ORACLE_HOME/jlib CLASSPATH=$CLASSPATH:$ORACLE_HOME/rdbms/jlib CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib export CLASSPATH
# tar -xzvf binutils-2.10.1.tar.gz # cd binutils-2.10.1 # ./configure # make # make install # as rootThis will install 'binutils' in '/usr/local/bin' (this is deliberate).
# cd /usr/bin # mv ld ld.new # cp /usr/local/bin/ld ./This temporarily replaces ld 2.11 with ld 2.10.
# mount /dev/cdrom /cdromLog as oracle into X-window (Windomaker for the Window manager)
$ xtermOK !
$ /cdrom/runInstaller
DO NOT DO THIS:
$ cd /cdrom $ ./runInstallerThe reason why: if you do so, the installation will fail because you won't be able to change the CDs. There are 3 CDs, so when putting a new CD: the previous one need to be unmounted and the new one to be mounted. (see far below) |
# /tmp/orainstRoot.shThe script is verbosing:
Creating Oracle Inventory pointer file (/etc/oraInst.loc) Changing groupname of /oracle/oraInventory to oinstall.Then ( OK ) on the popup window
# umount /cdrom # mount /dev/cdrom /cdrom....
# umount /cdrom # mount /dev/cdrom /cdrom.....
# /oracle/product/9.0.1/root.sh
Running Oracle9 root.sh script...
/oracle/product/9.0.1/root.sh: /bin/awk: No such file or directory
/oracle/product/9.0.1/root.sh: /bin/awk: No such file or directory
/oracle/product/9.0.1/root.sh: [: !=: unary operator expected
\nThe following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /oracle/product/9.0.1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
/oracle/product/9.0.1/root.sh: /bin/sed: No such file or directory
/oracle/product/9.0.1/root.sh: /bin/awk: No such file or directory
Copying to /usr/local/bin ...
/oracle/product/9.0.1/root.sh: /bin/sed: No such file or directory
/oracle/product/9.0.1/root.sh: /bin/awk: No such file or directory
Copying to /usr/local/bin ...
/oracle/product/9.0.1/root.sh: /bin/sed: No such file or directory
/oracle/product/9.0.1/root.sh: /bin/awk: No such file or directory
Copying to /usr/local/bin ...
\nCreating /etc/oratab file...
Adding entry to /etc/oratab file...
Entries will be added to the /etc/oratab file as needed 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.
# umount /cdrom
$ dbca &
----------------------------------------------------------------------------- Database creation complete. Check the logfiles at /oracle/admin/test/create for details Database Information: Global Database Name: test System Identifier(SID): test SYS Password: change_on_install SYSTEM Password: manager Note: All database accounts except SYS and SYSTEM have been locked. Click on the "Password Management" button to unlock the acocunts and change the default passwords. Oracle Corporation strongly recommends that you change the default passwords. -----------------------------------------------------------------------------with a button (Password Management...)
$ dbca &
$ netca &
$ sqlplus
$ sqlplus SQL*Plus: Release 9.0.1.0.0 - Production on Thu Jun 27 16:16:15 2002 (c) Copyright 2001 Oracle Corporation. All rights reserved. Enter user-name: system Enter password: Connected to: Oracle9i Enterprise Edition Release 9.0.1.0.0 - Production With the Partitioning option JServer Release 9.0.1.0.0 - Production SQL> create user <user> identified by <password>; User created. SQL> grant dba to <user>; Grant succeeded. SQL> quit Disconnected from Oracle9i Enterprise Edition Release 9.0.1.0.0 - Production With the Partitioning option JServer Release 9.0.1.0.0 - Production $
$ sqlplus /nolog SQL*Plus: Release 9.0.1.0.0 - Production on Mon Sep 16 08:14:22 2002 (c) Copyright 2001 Oracle Corporation. All rights reserved. SQL> connect / as sysdba Connected to an idle instance. SQL> startup ORACLE instance started. Total System Global Area 336356520 bytes Fixed Size 279720 bytes Variable Size 268435456 bytes Database Buffers 67108864 bytes Redo Buffers 532480 bytes Database mounted. Database opened. SQL> quit Disconnected from Oracle9i Enterprise Edition Release 9.0.1.0.0 - Production With the Partitioning option JServer Release 9.0.1.0.0 - Production $
$ lsnrctl start LSNRCTL for Linux: Version 9.0.1.0.0 - Production on 16-SEP-2002 08:32:37 Copyright (c) 1991, 2001, Oracle Corporation. All rights reserved. Starting /oracle/product/9.0.1/bin/tnslsnr: please wait... TNSLSNR for Linux: Version 9.0.1.0.0 - Production System parameter file is /oracle/product/9.0.1/network/admin/listener.ora Log messages written to /oracle/product/9.0.1/network/log/listener.log Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=jack5.zejack.com)(PORT=1521))) Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 9.0.1.0.0 - Production Start Date 16-SEP-2002 08:32:38 Uptime 0 days 0 hr. 0 min. 0 sec Trace Level off Security OFF SNMP OFF Listener Parameter File /oracle/product/9.0.1/network/admin/listener.ora Listener Log File /oracle/product/9.0.1/network/log/listener.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=jack5.zejack.com)(PORT=1521))) Services Summary... Service "PLSExtProc" has 1 instance(s). Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... Service "jack5" has 1 instance(s). Instance "jack5", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully $
$ lsnrctl stop LSNRCTL for Linux: Version 9.0.1.0.0 - Production on 01-OCT-2002 15:17:46 Copyright (c) 1991, 2001, Oracle Corporation. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))) The command completed successfully $
$ sqlplus /nolog SQL*Plus: Release 9.0.1.0.0 - Production on Tue Oct 1 15:18:56 2002 (c) Copyright 2001 Oracle Corporation. All rights reserved. SQL> connect / as sysdba Connected. SQL> shutdown immediate Database dismounted. ORACLE instance shut down. SQL> quit Disconnected from Oracle9i Enterprise Edition Release 9.0.1.0.0 - Production With the Partitioning option JServer Release 9.0.1.0.0 - Production $
$ sqlplus SQL*Plus: Release 9.0.1.0.0 - Production on Tue Sep 17 15:57:44 2002 (c) Copyright 2001 Oracle Corporation. All rights reserved. Enter user-name: system Enter password: Connected to: Oracle9i Enterprise Edition Release 9.0.1.0.0 - Production With the Partitioning option JServer Release 9.0.1.0.0 - Production SQL> drop user JOHNDOE cascade; User dropped. SQL> quit Disconnected from Oracle9i Enterprise Edition Release 9.0.1.0.0 - Production With the Partitioning option JServer Release 9.0.1.0.0 - Production $
# cd /usr/bin # mv ld.new ld