Ubuntu 6.10上安装Oracle 10g

    技术2022-05-11  59

    如果以前有安装过oracle,可以通过以下命令清除: sudo rm  - rf  $ORACLE_HOME sudo rm  / etc / oratabsudo rm  / etc / oraInst . loc /etc中的两个文件是在上次安装过程中运行root.sh时自动生成的,主要和inventory目录有关。必须要先删除,否则接下来安装过程中会出现错误。 用apt-get 安装必须的软件包: gcc make binutils libmotif3 lesstif2 rpm libaio libdb3 libc - dev ln  - / usr / bin / awk  / bin / awkln  - / usr / bin / rpm  / bin / rpmln  - / usr / bin / basename  / bin / basenameln  - / etc  / etc / rc . d    创建/etc/redhat-release文件 Red Hat Linux release  4.1 sudo groupadd oinstallsudo groupadd dbasudo groupadd nobodysudo useradd  - g oinstall  - G dba  - p passwd  - / home / oracle oraclesudo useradd  - g nobody nobody mkdir  - pv  / opt / oraclemkdir  - pv  / opt / oradatachown  - R oracle:oinstall  / opt / ora * chmod  - 775   / opt / ora * 为避免安装界面出现乱码: $ export LC_ALL = en_US 开始安装:   我只选择安装软件,以后再自行创建数据库。 安装完成后,把{ORACLE_HOME}/bin目录加到环境变量$PATH中。 然后运行dbca创建数据库。 数据库创建完成后,运行netca配置网络 运行lsnrctl start启动网络监听器。 运行emctl start dbconsole启动企业管理器,然后通过 http://localhost:1158/em 访问企业管理器。 运行sqlplus: bitan @ubuntu : ~ $ bitan @ubuntu : ~ $ sqlplus  / nologSQL * Plus: Release  10.2 . 0.1 . 0   -  Production  on  Sat Feb  17   01 : 45 : 55   2007 Copyright (c)  1982 2005 , Oracle.   All  rights reserved.SQL >  conn  /   as  sysdbaConnected  to  an idle instance.SQL >  startupORACLE instance started.Total System Global Area   167772160  bytesFixed Size                   1218316  bytesVariable Size               75499764  bytes Database  Buffers            88080384  bytesRedo Buffers                 2973696  bytes Database  mounted. Database  opened. SQL >  conn system / qqqqqq @oradb Connected.SQL >

    最新回复(0)