[oracle@Enterprise ~]# cd ../database/
[oracle@Enterprise database]# ls
doc install response runInstaller stage welcome.html
安装
[oracle@Enterprise database]$ ./runInstaller
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
Passed
在出现图形界面的第一页,选择默认的Basic Installation,不改路径,
把Create Starter Database前面的勾取消,不要,一会自己手动创建。
第2页是Product-Specific Prequesite Checks
如果有错误,就的仔细看看是什么问题。想办法解决。如果是警告,就可以下一步
再后来的安装过程中,会有窗口弹出,直接点忽略就可以继续装。不过有弹很多窗口,全部点忽略,基本上安装还是可以成功的。
最后一步会提示你,使用root登录,运行两个Shell脚本。按照要求运行完脚本后。安装基本上就成功了。
创建数据库
[oracle@Enterprise database]$ dbca
(果找不到命令,就在/home/oracle目录下执行source .bash_profile)
在弹出的窗口,选择创建create a database->Custom database
->Gobal Database Name输入名字testdb,因为前面.bash_profile里面ORACLE_SID=testdb,要保持一致。接着点next,然后输入密码。接着可以直接next ,finish.
然后就等机器自己装。
启动listener
[oracle@Enterprise database]$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 31-JUL-2007 02:19:16
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /home/oracle/product/10.2.0/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /home/oracle/product/10.2.0/network/admin/listener.ora
Log messages written to /home/oracle/product/10.2.0/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 31-JUL-2007 02:19:16
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /home/oracle/product/10.2.0/network/admin/listener.ora
Listener Log File /home/oracle/product/10.2.0/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
启动数据库
[oracle@linux3 database]$ sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jul 31 02:20:18 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL>
再输入startup
SQL> startup
ORACLE instance started.
Total System Global Area 176160768 bytes
Fixed Size 1218364 bytes
Variable Size 75499716 bytes
Database Buffers 96468992 bytes
Redo Buffers 2973696 bytes
Database mounted.
Database opened.
SQL>
这样数据库就安装成功了。