码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2020-04-09 00:52:37      阅读:82      评论:0      收藏:0      [点我收藏+]

标签:start   ted   proxy   otp   created   classpath   prot   ora   xterm   

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实例创建)

标签:start   ted   proxy   otp   created   classpath   prot   ora   xterm   

原文地址:https://www.cnblogs.com/mydb/p/12663667.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!