Oracle GoldenGate 12.3.0.1.4 安装配置 之02 (oracle 11.2.0.4实例创建)

1.修改主机名(从克隆过来的vm)

[root@xag138 ~]# cat /etc/hostname
xag100

[oracle@xag138 ~]$ cat /etc/sysconfig/network
# Created by anaconda
NETWORKING=yes
HOSTNAME=xag100
# oracle-rdbms-server-11gR2-preinstall : Add NOZEROCONF=yes
NOZEROCONF=yes

vim /etc/hosts
#增加如下
192.168.40.100  xag100

2.網卡配置

[root@xag138 ~]# cd /etc/sysconfig/network-scripts/

[root@xag138 network-scripts]# cat ifcfg-ens33 
TYPE="Ethernet"
PROXY_METHOD="none"
BROWSER_ONLY="no"
BOOTPROTO="static"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
NAME="ens33"
UUID="0224e944-0b68-47d5-b327-71d0e5560845"
DEVICE="ens33"
ONBOOT="yes"
IPADDR="192.168.40.100"
GATEWAY="192.168.40.2"
NETMASK="255.255.255.0"
DNS1="8.8.8.8"

#重啟網卡
[root@xag138 network-scripts]# service network restart

2.安装监听

[oracle@xag100 ~]$ export DISPLAY=192.168.0.7:0.0

[oracle@xag100 ~]$ netca

3.修改环境变量

[oracle@xag100 ~]$ cat scripts/setEnv.sh 
TMP=/tmp; export TMP
TMPDIR=/tmp; export TMPDIR

ORACLE_HOSTNAME=xag100; export ORACLE_HOSTNAME
ORACLE_UNQNAME=DB100; export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/db_1; export ORACLE_HOME
ORACLE_SID=DB100; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:/u01/app/oracle/product/11.2.0.4/db_1/bin:/usr/sbin:/u01/app/oracle/product/11.2.0.4/db_1/bin:/usr/sbin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/oracle/.local/bin:/home/oracle/bin; export PATH
PATH=/u01/app/oracle/product/11.2.0.4/db_1/bin:/u01/app/oracle/product/11.2.0.4/db_1/bin:/usr/sbin:/u01/app/oracle/product/11.2.0.4/db_1/bin:/usr/sbin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/oracle/.local/bin:/home/oracle/bin; export PATH

LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0.4/db_1/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=/u01/app/oracle/product/11.2.0.4/db_1/JRE:/u01/app/oracle/product/11.2.0.4/db_1/jlib:/u01/app/oracle/product/11.2.0.4/db_1/rdbms/jlib; export CLASSPATH

alias sqlplus=‘rlwrap sqlplus‘
alias rman=‘rlwrap rman‘

[oracle@xag100 ~]$ source .bash_profile 

[oracle@xag100 ~]$ echo $ORACLE_SID
DB1100

4.创建实例(dbca)

[oracle@xag100 ~]$ dbca

5.重复上面步骤1到4 创建 主机:xag101,实例:DB101

Oracle GoldenGate 12.3.0.1.4 安装配置 之02 (oracle 11.2.0.4实例创建)

上一篇:mysql数据库的基本修养


下一篇:创建DataBase links 数据库链