linux oracle10重装,Linux安装oracle10.2.0

论坛 期权论坛 脚本     
已经匿名di用户   2022-5-29 19:27   1393   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

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:81
帖子:4969
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP