|
Oralcle 10g Fedora Core X上快速安装指南(4) ORACLE_BASE=/home/oracle ORACLE_HOME=/home/oracle/product/10g ORACLE_SID=orcl ORACLE_TERM=xterm [oracle@fedora oracle]$ gcc --version 2.96 Start the installer: [oracle@fedora oracle]$ /mnt/cdrom/runInstaller Note: if you get thew following error when running the installer from CD-ROM bash: /mnt/cdrom/runInstaller: /bin/sh: bad interpreter: Permission denied you should check how your CD-ROM was mounted. It should be mounted by user root, and the information about the filesystem in /etc/fstab sohuld look similar to this: /dev/cdrom /mnt/cdrom auto exec,noauto,owner,kudzu,ro 0 0 Now the installer should be up and running. 4. Post-installation steps First we want to change back the /etc/redhat-release file: [root@fedora]# cp /etc/redhat-release.orig /etc/redhat-release Next, modify the /etc/oratab file in order to use database startup and shutdown scripts provided by oracle. Find the line in /etc/oratab that looks similar to this: *:/home/oracle/product/10g:N Entries are of the form: $ORACLE_SID:$ORACLE_HOME:<NY> Change the last field (N) to Y, and you will be able to start the database using dbstart utility. 4.1. Starting database services Note: If you just installed Oracle, the database, TNS listener and enterprise manager are already running. Start TNS Listener:
[oracle@fedora oracle]$ lsnrctl start You can start the database via dbstart utility: [oracle@fedora oracle]$ dbstart or via SQL*Plus: [oracle@fedora oracle]$ sqlplus / as sysdba
SQL*Plus: Release 10.1.0.2.0 - Production on Sat Feb 21 18:05:43 2004
Copyright (c) 1982, 2004, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup ORACLE instance started.
Total System Global Area 188743680 bytes Fixed Size 778036 bytes Variable Size 162537676 bytes Database Buffers 25165824 bytes Redo Buffers 262144 bytes Database mounted.
|