安装ORACLE的问题 http://www.csdn.net/develop/author/columnAuthor/hochihyi/Article/Oracle9iAdmin/Oracle9iAdmin01/Oracle9iAdmin01.htm 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看下RedHat Linux7.2的方法: 1、操作系统: RedHat Linux7.2 2、数据库: Oracle 8i R2 (8.1.6) for Linux 企业版 3、Java运行时刻环境(JRE): jdk118_v3-glibc-2.1.3.tar.bz2• 软件下载地址: 1、Linux: 2、Oracle: 到Oracle的老家下载Oracle 8i R2 (8.1.6) for Linux 企业版[275MB] ftp://ftp.oracle.com/pub/www/otn/li...acle8161_tar.gz 3、JDK:jdk118_v3-glibc-2.1.3.tar.bz2 下载地址:http://www.blackdown.org或http://java.sun.com• 开始安装: 1、首先安装RedHat,以custom方式安装。 2、安装Oracle 8i。 [root@oradb /root]$ #以root方式登录 [root@oradb /root]$ groupadd oinstall #创建oinstall组 [root@oradb /root]$ groupadd dba #创建dba组 [root@oradb /root]$ useradd oracle –g oinstall -G dba #在oinstall及dba组中建新用户oracle [root@oradb /root]$ passwd oracle #修改oracle用户口令 [root@oradb /root]$ mkdir /home/oracle/data [root@oradb /root]$chown oracle.dba /home/oracle/data [root@oradb /root]$chmod 750 /home/oracle/data 注:oinstall 组、dba组和oracle用户是oracle安装需要的 注:创建oracle用户后,linux系统自动在/home目录下创建/home/oracle目录,给oracle用户使用, oracle用户对此目录拥有所有的权限, 为方便,本例把oracle系统安装在oracle用户data目录下 [root@oradb /root]$ cd /user/local #到/usr/local目录 [root@oradb /local]$ ls -l #把j jdk118_v3-glibc-2.1.3.tar.bz2文件拷贝到本目录下 [root@oradb /local]$ bunzip2 -dc jdk118_v3-glibc-2.1.3.tar.bz2 [root@oradb /local]$ tar xvf jdk118_v3-glibc-2.1.3.tar #在当前目录下解压 tar xvf jdk118_v3-glibc-2.1.3.tar ln -s /usr/local/jdk118_v3 /usr/local/java [root@oradb /local]$ ls -l #这时,/usr/local目录下应该存在java目录 注:只要把解出来的文件放到/usr/local/java目录下就算完成了java的安装,oracle就可以正确识别了 [root@oradb /oracle]$ exit #退出,以oracle用户重新登录 [oracle@oradb /oracle]$ [oracle@oradb /oracle]$ ls -l [oracle@oradb /oracle]$ tar zxvf oracle8161_tar.gz #解压oracle压缩包到当前目录 [oracle@oradb /oracle]$ ls -a #.bash_profile文件是隐藏属性 [oracle@oradb /oracle]$ more .bash_profile #查看.bash_profile文件内容 [oracle@oradb /oracle]$ vi .bash_profile #编辑.bash_profile文件,并输入以下内容 # Setup ORACLE environment export ORACLE_BASE=/home/oracle/data/app/oracle export ORACLE_HOME=$ORACLE_HOME/product/8.1.6 export ORACLE_SID=orasah export ORACLE_TERM=vt100 export ORACLE_OWNER=oracle8 export TNS_ADMIN=$ORACLE_HOME/product/8.1.6/network/admin export CLASSPATH=$ORACLE_HOME/jdbc/lib/classes111.zip # Set up the search paths: PATH=/usr/local/jre/bin:/usr/local/jdk/bin:/bin:/sbin PATH=$PATH:/usr/bin:/usr/sbin:/usr/local/bin:$ORACLE_HOME/bin PATH=$PATH:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:. export PATH [oracle@oradb /oracle]$ exit #退出,以oracle用户重新登录,以使设定的环境生效 [oracle@oradb /oracle]$ [oracle@oradb /oracle]$ startx #启动X-windows后,启用一个终端(xterm), (图形窗口)在该终端中运行runInstaller [oracle@oradb /oracle]$ cd Oracle8iR2 [oracle@oradb /orainst]$ ./runInstaller #执行oracle安装程序 这时你可以看到oracle全新的图形化的OUI的欢迎画面,按照提示继续安装进程: Welcome:按next File Locations:按next UNIX Group Name:什么也不添,按next 出错,提示要以root权限运行/home/oracle/data/app/oracle/product/8.1.6/orainstRoot.sh 回到安装界面(图形窗口)按Retry按钮,就可以继续安装了, Available Products:选Oracle8i Enterprise Edition 8.1.6.1.0,按next Installation Types:选Typical(540MB),按next,这时,屏幕右上角出现一个进度标尺 Database Identification: Global Database Name:输入oracle8(可以任意) SID:保留orasah 按next Database File Location:任意目录,本例设为“/home/oracle/data/app/oracle”,按Next,这时,屏幕右上角进度标尺继续前进 出现Summary,对你想要安装的产品作一个总结按Install,出现Install画面,等待... 你可以看到窗口底部提示的安装等log文件目录,可供以后查询。 弹出Setup Privileges窗口,提示:在安装继续进行之前,需要以root运行一个脚本 “/home/oracle/data/app/oracle/product/8.1.6/root.sh”, 屏幕显示: Enter the full pathname of the local bin directory:[/usr/local/bin]:回车 系统开始执行一些动作,执行完毕,CTRL+ALT+F7按返回OUI,按OK。 Database Creation Progress开始,逐步进行以下4个过程 Creating and starting Oracle instance Copying database files Initializing database Database creation completed 以上4个过程完成,弹出Oracle Database Configuration Assistant Alert窗口, 提示:数据库创建完成,告诉你数据库的一些基本信息 global databse name:oracle8 database system identifier(SID):orasah SYS account password:change_on_install SYSTEM account password:manager 按ok End of Installation,按Exit退出OUI,完成安装。 退出图形窗口,回到 [oracle@oradb /oracle]$ 这时,oracle数据库已经安装成功,并且数据库已经启动运行,可以试一下 [oracle@oradb /oracle]$sqlplus system/manager 出现以下信息: SQL*Plus: Release 8.1.6.0.0 - Production on Fri Oct 26 22:21:32 2002 (c) Copyright 1999 Oracle Corporation. ALL rights reserved. Connected to: Oracle8i Enterprise Edition Release 8.1.6.1.0 - Production With the Partitioning option JServer Release 8.1.6.0.0 - Production SQL> 启动数据库: [oracle@oradb /oracle]$ svrmgrl SVRMGR> connect internal Connected. SVRMGR> startup ORACLE instance started. 显示SGA状态 Database mounted. Database opened. SVRMGR> 关闭数据库: [oracle@oradb /oracle]$ svrmgrl SVRMGR> connect internal Connected. SVRMGR> shutdown Database closed. Database dismounted. ORACLE instance shut down. SVRMGR> 启动监听器 [oracle@oradb /oracle]$ lsnrctl LSNRCTL> start LSNRCTL> exit 停止监听器 [oracle@oradb /oracle]$ lsnrctl LSNRCTL> stop LSNRCTL> exit 查看监听器状态 [oracle@oradb /oracle]$ lsnrctl LSNRCTL> status LSNRCTL> exit oracle8的安装先检查是否intel P4 芯片,是的话就麻烦了,修改symatec的jit解决。看楼主似乎不是在图形界面中运行,不知对否? oracle 优化方面的问题!!! 请问将索引和文件存放到不能的文件组怎么做?? 如何获取某个指定表空间的历史增长记录 oracle9带的jdbc驱动能正常连接oracle7么 过年好!学人放分 求助 关于FUNCTION中的变量(急、急、急)在线等待 oracle中的基本问题! Oracle在OEM中怎么管理数据库里面的内容?(有没有这方面的书--图形化界面) 帮我写一个 一次生成100条数据的oracle 的 语句 谢谢!!! ORACLE的安装问题,对于大家老说应该是小问题,大家指教我呀 有没有第三方的数据库同步软件(在线等)
2、数据库: Oracle 8i R2 (8.1.6) for Linux 企业版
3、Java运行时刻环境(JRE): jdk118_v3-glibc-2.1.3.tar.bz2• 软件下载地址:
1、Linux:
2、Oracle:
到Oracle的老家下载Oracle 8i R2 (8.1.6) for Linux 企业版[275MB]
ftp://ftp.oracle.com/pub/www/otn/li...acle8161_tar.gz
3、JDK:jdk118_v3-glibc-2.1.3.tar.bz2
下载地址:http://www.blackdown.org或http://java.sun.com• 开始安装: 1、首先安装RedHat,以custom方式安装。 2、安装Oracle 8i。
[root@oradb /root]$
#以root方式登录
[root@oradb /root]$ groupadd oinstall
#创建oinstall组
[root@oradb /root]$ groupadd dba
#创建dba组
[root@oradb /root]$ useradd oracle –g oinstall -G dba
#在oinstall及dba组中建新用户oracle
[root@oradb /root]$ passwd oracle
#修改oracle用户口令
[root@oradb /root]$ mkdir /home/oracle/data
[root@oradb /root]$chown oracle.dba /home/oracle/data
[root@oradb /root]$chmod 750 /home/oracle/data 注:oinstall 组、dba组和oracle用户是oracle安装需要的 注:创建oracle用户后,linux系统自动在/home目录下创建/home/oracle目录,给oracle用户使用, oracle用户对此目录拥有所有的权限, 为方便,本例把oracle系统安装在oracle用户data目录下
[root@oradb /root]$ cd /user/local
#到/usr/local目录
[root@oradb /local]$ ls -l
#把j jdk118_v3-glibc-2.1.3.tar.bz2文件拷贝到本目录下
[root@oradb /local]$ bunzip2 -dc jdk118_v3-glibc-2.1.3.tar.bz2
[root@oradb /local]$ tar xvf jdk118_v3-glibc-2.1.3.tar
#在当前目录下解压
tar xvf jdk118_v3-glibc-2.1.3.tar
ln -s /usr/local/jdk118_v3 /usr/local/java
[root@oradb /local]$ ls -l
#这时,/usr/local目录下应该存在java目录 注:只要把解出来的文件放到/usr/local/java目录下就算完成了java的安装,oracle就可以正确识别了
[root@oradb /oracle]$ exit
#退出,以oracle用户重新登录
[oracle@oradb /oracle]$
[oracle@oradb /oracle]$ ls -l
[oracle@oradb /oracle]$ tar zxvf oracle8161_tar.gz
#解压oracle压缩包到当前目录
[oracle@oradb /oracle]$ ls -a
#.bash_profile文件是隐藏属性
[oracle@oradb /oracle]$ more .bash_profile
#查看.bash_profile文件内容
[oracle@oradb /oracle]$ vi .bash_profile
#编辑.bash_profile文件,并输入以下内容
# Setup ORACLE environment
export ORACLE_BASE=/home/oracle/data/app/oracle
export ORACLE_HOME=$ORACLE_HOME/product/8.1.6
export ORACLE_SID=orasah
export ORACLE_TERM=vt100
export ORACLE_OWNER=oracle8
export TNS_ADMIN=$ORACLE_HOME/product/8.1.6/network/admin
export CLASSPATH=$ORACLE_HOME/jdbc/lib/classes111.zip
# Set up the search paths:
PATH=/usr/local/jre/bin:/usr/local/jdk/bin:/bin:/sbin
PATH=$PATH:/usr/bin:/usr/sbin:/usr/local/bin:$ORACLE_HOME/bin
PATH=$PATH:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:.
export PATH [oracle@oradb /oracle]$ exit
#退出,以oracle用户重新登录,以使设定的环境生效
[oracle@oradb /oracle]$
[oracle@oradb /oracle]$ startx
#启动X-windows后,启用一个终端(xterm),
(图形窗口)在该终端中运行runInstaller
[oracle@oradb /oracle]$ cd Oracle8iR2
[oracle@oradb /orainst]$ ./runInstaller
#执行oracle安装程序 这时你可以看到oracle全新的图形化的OUI的欢迎画面,按照提示继续安装进程: Welcome:按next File Locations:按next UNIX Group Name:什么也不添,按next 出错,提示要以root权限运行/home/oracle/data/app/oracle/product/8.1.6/orainstRoot.sh 回到安装界面(图形窗口)按Retry按钮,就可以继续安装了, Available Products:选Oracle8i Enterprise Edition 8.1.6.1.0,按next Installation Types:选Typical(540MB),按next,这时,屏幕右上角出现一个进度标尺 Database Identification:
Global Database Name:输入oracle8(可以任意)
SID:保留orasah
按next Database File Location:任意目录,本例设为“/home/oracle/data/app/oracle”,按Next,这时,屏幕右上角进度标尺继续前进 出现Summary,对你想要安装的产品作一个总结按Install,出现Install画面,等待... 你可以看到窗口底部提示的安装等log文件目录,可供以后查询。 弹出Setup Privileges窗口,提示:在安装继续进行之前,需要以root运行一个脚本 “/home/oracle/data/app/oracle/product/8.1.6/root.sh”, 屏幕显示:
Enter the full pathname of the local bin directory:[/usr/local/bin]:回车 系统开始执行一些动作,执行完毕,CTRL+ALT+F7按返回OUI,按OK。 Database Creation Progress开始,逐步进行以下4个过程
Creating and starting Oracle instance
Copying database files
Initializing database
Database creation completed 以上4个过程完成,弹出Oracle Database Configuration Assistant Alert窗口, 提示:数据库创建完成,告诉你数据库的一些基本信息
global databse name:oracle8
database system identifier(SID):orasah
SYS account password:change_on_install
SYSTEM account password:manager
按ok
End of Installation,按Exit退出OUI,完成安装。
退出图形窗口,回到
[oracle@oradb /oracle]$ 这时,oracle数据库已经安装成功,并且数据库已经启动运行,可以试一下
[oracle@oradb /oracle]$sqlplus system/manager 出现以下信息:
SQL*Plus: Release 8.1.6.0.0 - Production on Fri Oct 26 22:21:32 2002
(c) Copyright 1999 Oracle Corporation. ALL rights reserved. Connected to:
Oracle8i Enterprise Edition Release 8.1.6.1.0 - Production
With the Partitioning option
JServer Release 8.1.6.0.0 - Production SQL> 启动数据库:
[oracle@oradb /oracle]$ svrmgrl
SVRMGR> connect internal
Connected.
SVRMGR> startup
ORACLE instance started.
显示SGA状态
Database mounted.
Database opened.
SVRMGR> 关闭数据库:
[oracle@oradb /oracle]$ svrmgrl
SVRMGR> connect internal
Connected.
SVRMGR> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
SVRMGR> 启动监听器
[oracle@oradb /oracle]$ lsnrctl
LSNRCTL> start
LSNRCTL> exit 停止监听器
[oracle@oradb /oracle]$ lsnrctl
LSNRCTL> stop
LSNRCTL> exit 查看监听器状态
[oracle@oradb /oracle]$ lsnrctl
LSNRCTL> status
LSNRCTL> exit