Ubuntu 6.10上安装Oracle 10g
如果以前有安装过oracle,可以通过以下命令清除:
sudorm - rf $ORACLE_HOME
sudorm / etc / oratab
sudorm / etc / oraInst . loc
/etc中的两个文件是在上次安装过程中运行root.sh时自动生成的,主要和inventory目录有关。必须要先删除,否则接下来安装过程中会出现错误。
用apt-get 安装必须的软件包:
gccmakebinutilslibmotif3lesstif2rpmlibaiolibdb3libc - dev
ln - s / usr / bin / awk / bin / awk
ln - s / usr / bin / rpm / bin / rpm
ln - s / usr / bin / basename / bin / basename
ln - s / etc / etc / rc . d
创建/etc/redhat-release文件
RedHatLinuxrelease 4.1
sudogroupaddoinstall
sudogroupadddba
sudogroupaddnobody
sudouseradd - goinstall - Gdba - ppasswd - d / home / oracleoracle
sudouseradd - gnobodynobody
mkdir - pv / opt / oracle
mkdir - pv / opt / oradata
chown - Roracle:oinstall / opt / ora *
chmod - R 775 / opt / ora *
为避免安装界面出现乱码:
$exportLC_ALL = en_US
开始安装:
我只选择安装软件,以后再自行创建数据库。
安装完成后,把{ORACLE_HOME}/bin目录加到环境变量$PATH中。
然后运行dbca创建数据库。
数据库创建完成后,运行netca配置网络
运行lsnrctl start启动网络监听器。
运行emctl start dbconsole启动企业管理器,然后通过
http://localhost:1158/em
访问企业管理器。
运行sqlplus:
bitan @ubuntu : ~ $
bitan @ubuntu : ~ $sqlplus / nolog

SQL * Plus:Release 10.2 . 0.1 . 0 - Production on SatFeb 17 01 : 45 : 55 2007

Copyright(c) 1982 , 2005 ,Oracle. All rightsreserved.

SQL > conn / as sysdba
Connected to anidleinstance.
SQL > startup
ORACLEinstancestarted.

TotalSystemGlobalArea 167772160 bytes
FixedSize 1218316 bytes
VariableSize 75499764 bytes
Database Buffers 88080384 bytes
RedoBuffers 2973696 bytes
Database mounted.
Database opened.
SQL > connsystem / qqqqqq @oradb
Connected.
SQL >