liunx 下装 oracle

共享:
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 network restart
重启服务:
service smb restart
防火墙:
setup
vi /etc/sysconfig/selinux -- SELINUX=disable
光盘安装:
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
ifconfig eth0 192.168.0.6 netmask 255.255.255.0 - 命令修改
unzip 文件
groupadd dba
groupadd oinstall
useradd -d /home/oracle -m -g oinstall -G dba oracle
passwd oracle
//chown -R oracle:oinstall
su - oracle
export DISPLAY=192.168.15.5:0
export LANG=""
oracle:
vi .bash_profile
export ORACLE_BASE=/home/oracle/oracle/product/10.2.0
export ORACLE_HOME=$ORACLE_BASE/db_1
export ORACLE_SID=orcl
export PATH=$ORACLE_HOME/bin:$PATH:.
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
export LANG=""
netmgr --  远程配
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

你可能感兴趣的:(oracle,user,防火墙,service,Path,NetWork)