Linux安装oracle10.2.0

共享:

mkdir /software

vi /etc/samba/smb.conf

[software]

comment = software

path = /software

read only = no

public = yes

chmod 777 /software

useradd smb1

smbpasswd -a smb1

service smb restart .l

service smb restart

ifconfig

防火墙:

setup

vi /etc/sysconfig/selinux -- SELINUX=disabled

 

安装:

 

 

rpm -ivh gcc-4.1.2-44.el5.i386.rpm glibc-devel-2.5-34.i386.rpm kernel-headers-2.6.18-128.el5.i386.rpm libgomp-4.3.2-7.el5.i386.rpm glibc-headers-2.5-34.i386.rpm 

 

rpm -ivh compat-libstdc++-*

rpm -ivh libXp*.rpm --force --nodeps

 

neat: 修改IP

unzip

groupadd dba

groupadd oinstall

useradd -d /home/oracle -m -g oinstall -G dba oracle

passwd oracle

mkdir -p /opt/oracle/product/10.2.0/db_1

chown -R oracle:oinstall /opt/oracle/product/10.2.0/db_1/

chown -R oracle:oinstall database/

su - oracle

export DISPLAY=192.168.15.5:0

export LANG=""

 

vi .bash_profile

export PATH

export ORACLE_BASE=/home/oracle/product/11.2.0

export ORACLE_HOME=$ORACLE_BASE/db_1

export ORACLE_SID=orcl

export PATH=$ORACLE_HOEM/bin:.:$PATH

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:$ORACLE_HOME/lib

~

source .bash_profile

 

su - oracle

cat .bash_profile

sqlplus / as sysdba

SQL>startup

 

# mkdir /oradata

chown -R oracle:oinstall /oradata/

 

SQL>create tablespace ts1 datafile '/oradata/ts1.dbf' size 10M;

create user user1 identified by abc default tablespace ts1;

 

su - oracle

export DISPLAY=192.168.15.5:0

netmgr --  远程配

export LANG=""

netmgr 英文

mkdir /oradata/data

 

SQL>alter user scott account unlock;

alter user scott identified by tiger;

create directory d1 as '/oradata/data'

grant read,write on directory d1 to scott;

 

$ expdp scott/tiger directory=d1 dumpfile=emp.dmp tables=emp

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值