GGS_Sect_Config_WinUX_ORA_to_iSeries_DB2
windows 平台下 oracle 11g ogg配置详细步骤
1、安装ogg工具
2、安装目录下 GGSCI.exe
3、 GGSCI 1>create subdirs --- 创建子目录
4、 GGSCI 2>edit params ./GLOBALS --- 手动指定服务名GGMGR
NAME TYPE VALUE
-------- ----------- ------------------------------
recyclebin string on
SQL> alter system set recyclebin=off deferred; 非立即生效
SQL> create user ggs identified by ggs default tablespace users temporary tablespace temp;
SQL> grant dba to ggs;
----在目标端添加checkpoint表
rmthost 10.1.5.107, mgrport 7500
--Setenv(ORACLE_SID=ORCL)
rmttrail D:\app\administrator\product\11.2.0\OraHome_1\dirdat\et
grant connect ,resource,unlimited tablespace to ggs;
grant execute on utl_file to ggs;
grant select any dictionary,select any table to ggs;
----在源端创建测试表
SQL> create table demo(id number primary key,ename varchar2(10));
CCIE R&S 理论各个击破—Security
Security目录Log和log-input作用 (1)remark (4)Autocommand (6)Privilege Levels (9)基于时间的ACL (16)Reflexive ACL (19)Context-Based Access Control(CBAC) (24)Port to Application Mapping(PAM) (30)Lock-and-Key Security (Dynamic ACL) (34)TCP Intercept (39)Unicast Reverse Path Forwarding (uRPF) (42)AAA (50)IP Source Tracker (56)Secure Shell (SSH) (57)Intrusion Prevention System (IPS) (61)Zone-Based Policy Firewall (66)Control Plane Policing (CoPP) (80)Log和log-input作用概述当路由器为用户转发了数据之后,如果管理员想查看路由器曾经为哪些用户转发过数据,在正常情况下,这是无法查证的。
但是,可以通过接口配置ACL,并且强制ACL记录下曾经转发过的用户记录,这样,就能从路由器得知哪些用户是发起过数据的,并且发送了多少数据,但是用户发出的数据内容,是无法记录的。
要达到以上目的,那在配置ACL时,使用Log和log-input的功能,并且将配置好的ACL用于接口上。
Log和log-input的区别是:Log只能记录数据包通过时的源IP和目的IP,而log-input除了记录源IP和目的IP之外,还会记录源的MAC地址。
配置1.配置ACL中的Log说明:配置路由器R1,让其允许R2发来的数据包通过,但拒绝R3的数据包通过,并且记录下它们数据量。
(1)配置ACL说明:配置ACL,允许R2,拒绝R3,分别使用log关键字r1(config)#access-list 100 permit ip host 10.1.1.2 any logr1(config)#access-list 100 deny ip host 10.1.1.3 any log(2)应用ACLr1(config)#int f0/0r1(config-if)#ip access-group 100 in(3)测试结果说明:从R2和R3分别ping R4,查看R1上的logOct 1 14:15:26: %SEC-6-IPACCESSLOGDP: list 100 permitted icmp 10.1.1.2 -> 14.1.1.4 (0/0), 5 packetsOct 1 14:16:46: %SEC-6-IPACCESSLOGDP: list 100 denied icmp 10.1.1.3 -> 14.1.1.4 (0/0), 5 packet说明:从R1上弹出的日志可以看出,R2到R4的数据包是被放行了的,而R3到R4的数据包被丢弃了。
Zabbix ODBC 监控 Oracle 和 MySQL
Bash# 配置odbcinst.ini 主要是配置安装的ODBC 数据库驱动,如MySQL,oracle, [MySQL] # 驱动名称,在数据库⽂件中需要 Description = ODBC for MySQL Driver = /usr/lib/libmyodbc5.so Setup = /usr/lib/libodbcmyS.so Driver64 = /usr/lib64/libmyodbc5.so Setup64 = /usr/lib64/libodbcmyS.so FileUsage = 112345678配置MySQL ODBC 连接b.修改odbc.ini ⽂件,每次新增加⼀个MySQL 数据库,需要在odbc.ini ⽂件中新增这⼀段内容。
PowerShell# odbc.ini 主要是配置数据源连接信息 [zabbix ] # 数据源名称,在这个⽂件中保持唯⼀ Description = MySQL test database # 数据源描述,⾃定义即可 Driver = MySQL # 对应驱动⽂件odbcinst.ini 中定义的名称 Server = 127.0.0.1 # 数据库服务器地址 User = zabbix # 数据库账号 Password = password # 数据库密码 Port = 3306 # 数据库端⼝ Database = zabbix # 数据库名称123456789数据库连接测试,返回 Connected 标明连接成功PowerShell[root @demo zabbix ]# isql zabbix -v +---------------------------------------+ | Connected! | | | | sql -statement | | help [tablename ] | | quit | | | +---------------------------------------+ SQL> quit12345678910 配置 Oracle ODBC 连接3.安装Oracle 驱动a.在Zabbix Server 上安装,只需要安装⼀次,后续新增数据库不需要再安装CSS# 下载驱动,百度搜索“Oracle Instant Client Downloads ”,在官⽹下载如下两个rpm 包:oracle-instantclient19.13-odbc-19.13.0.0.0-1.x86_64.rpm oracle-instantclient19.13-basic-19.13.0.0.0-1.x86_64.rpm # 安装驱动yum localinstall oracle-instantclient19.13-basic-19.13.0.0.0-1.x86_64.rpm oracle-instantclient19.13-odbc-19.13.0.0.0-1.x86_64.rpm12345在Zabbix Server 上配置,只需要配置⼀次,后续新增数据库不需要再修改修改驱动配置⽂件:/etc/odbcinst.ini :Makefile[root@bsmzabbix tmp]# more /etc/odbcinst.ini # Example driver definitions [Oracle12]Description = Oracle ODBC driver for Oracle 12Driver = /usr/lib/oracle/19.13/client64/lib/libsqora.so.19.1Setup =FileUsage =CPTimeout =CPReuse =123456789配置Oracle ODBC 连接b.在Zabbix Server 上配置,每次新增加⼀个 Oracle 数据库,需要在odbc.ini ⽂件中定义这⼀段内容 修改odbc.ini ⽂件:Makefile[root@bsmzabbix tmp]# more /etc/odbc.ini [ORATEST] # ODBC 数据源名称,整个⽂件中保持唯⼀ Driver = Oracle12 # 驱动名称,对应odbcinst.ini 中定义的名称 Trace = yes TraceFile = /tmp/odbc_oracle.log Database = drpdb # 数据库名称 UserID = system # 数据库⽤⼾名 Password = kboradb2013 # 数据库密码 Port = 1521 # 数据库端⼝ ServerName = 10.10.33.11:1521/drpdb # 数据库连接12345678910 连接测试,如果返回 Connected 表明连接测试成功。
ogg部署整理
OGG配置相关说明1.准备工作1.1安装Linux系统(CentOS6.5/CentOS6.8)系统需要开启支持图形化界面:如安装XWinDowsyum -y groupinstall "X Window System"安装Oracle和OGG需要图形界面支持。
安装过程中需要支持xclock、xhost等命令验证安装。
磁盘空间要求100G以上。
软件安装+系统约占用近20G空间,考虑数据增长加上如果开启归档,空间会暴增。
1.2安装配置JDK版本:Jdk6.01.3安装Oracle11gR2Oracle安装需要新建用户/用户组授权安装,并设置数据库相关目录等,Oracle规定root用户不能直接安装软件。
检查Oracle11gR2所需RPM软件包,如果系统为64位,需另外安装32位的软件包(Oracle检测需要)rpm -q --queryformat %-{name}-%{version}-%{release}-%{arch}"\n" \ compat-libstdc++-33 glibc-kernheaders glibc-headers libaio libgcc glibc-devel xorg-x11-deprecated-libs如果缺少,就继续安装缺失的组件包。
yum install -y libgcc*或者启动Oracle安装时候会提示缺少哪些软件包。
注意区分是64位还是32位的。
32位需要独立安装。
yum命令默认安装跟系统匹配的软件包,不会额外安装32位的。
需手动指定安装。
由于系统和yum源不同,版本不同,软件包的名字可能有差异,可使用命令查找可安装的软件包yum list package*Oracle安装的时候会检测32位的包,后缀为*.i386,单由于版本原因,可能后续的软件包32位的已经改为*.i686,安装时以实际支持的为准。
如果确定已安装了对应软件包的32位,可以跳过Oracle的检查提醒继续安装,如未安装,可能导致安装过程报错。
ggsci语法
ggsci语法GGSCI是GoldenGate的命令行工具,用于在Linux或Unix环境下管理GoldenGate。
本文将详细介绍GGSCI语法及其应用。
一、GGSCI基本操作1. 启动GGSCI:./ggsci2. 退出GGSCI:exit二、 GGSCI常用命令1. 查看当前版本:version2. 显示帮助信息:help3. 切换目录:cd4. 查看当前目录下的文件:ls5. 创建目录:mkdir6. 删除文件或目录:rm三、GGSCI与GoldenGate相关的命令1. 启动和停止进程:start gg_proces_name / stop gg_process_name2. 检查进程状态:info all3. 查看日志:viewlog gg_log_file4. 更改参数:edit param gg_param_file5. 提交更改并重新启动进程:stop gg_process_name, startgg_process_name四、GGSCI数据泵相关命令1. 启动数据泵:dblogin user ggadmin password ggadmin; add extract ext1 tranlog begin now2. 停止数据泵:dblogin user ggadmin password ggadmin; stop extract ext13. 检查数据泵状态:dblogin user ggadmin password ggadmin; info all五、GGSCI复制组相关命令1. 启动复制组:dblogin user ggadmin password ggadmin; add replicat rep1 ext12. 停止复制组:dblogin user ggadmin password ggadmin; stop replicat rep13. 检查复制组状态:dblogin user ggadmin password ggadmin; info all。
RAC+DG+OGG灾备中OGG实现部分
RAC+DG+OGG灾备中OGG实现部分RAC+DG+OGG灾备中OGG实现部分2013年05⽉12⽇阅读 341,389 次本⽂不牵扯具体操作系统及oracle软件的安装,假定在实施完毕的rac环境及安装好oracle软件的单机平台下,讲解如何实施RAC+DG+OGG 构建灾备系统中OGG实现部分,其他部分见我之前的相关博⽂。
RAC+DG+OGG简要架构如下:以下为主要的实施过程:修改存储服务器中共享盘的设置[root@openfiler rac_ogg]# cat /etc/exports# PLEASE DO NOT MODIFY THIS CONFIGURATION FILE!# This configuration file was autogenerated# by Openfiler. Any manual changes will be overwritten# Generated at: Thu May 2 15:36:07 CST 2013# End of Openfiler configuration/mnt/rac_ogg/rac_ogg 192.168.137.0/24(rw,sync,no_root_squash,no_all_squash,no_subtree_check)在rac所有节点挂载mount -t nfs 192.168.137.141:/mnt/rac_ogg/rac_ogg/rac_ogg /u01/app/ogg/11.1修改所有节点开机⾃动修改项⽬录属组[root@11grac1 11.1]# cat /etc/rc.local#!/bin/sh## This script will be executed *after* all the other init scripts.# You can put your own initialization stuff in here if you don't# want to do the full Sys V style init stuff.touch /var/lock/subsys/localchown -R oracle:oinstall /u01/app/ogg/11.1修改rac2个节点的开机⾃动挂载项[root@11grac2 11.1]# cat /etc/fstabLABEL=/ / ext3 defaults 1 1LABEL=/boot /boot ext3 defaults 1 2tmpfs /dev/shm tmpfs defaults 0 0devpts /dev/pts devpts gid=5,mode=620 0 0sysfs /sys sysfs defaults 0 0proc /proc proc defaults 0 0LABEL=SWAP-sda2 swap swap defaults 0 0#oralce set for ogg192.168.137.141:/mnt/rac_ogg/rac_ogg/rac_ogg /u01/app/ogg/11.1 nfs defaults 0 0在共享的nfs⽬录下解压并创建ogg相关⽬录[oracle@OELx64 app]$ mkdir -p ogg/11.1[oracle@OELx64 11.1]$ tar -xvf /tmp/ggs_Linux_x64_ora11g_64bit_v11_1_1_0_0_078.tar修改ogg⽤户的环境变量(此处的ogg⽤户为oracle)在.bash_profile中添加以下条⽬#ogg setOGG_BASE=/u01/app/ogg; export OGG_BASEOGG_HOME=$OGG_BASE/11.1; export OGG_HOMEPATH=$OGG_HOME:$PATH; export PATHexport LD_LIBRARY_PATH=$ORACLE_HOME/lib:$OGG_HOME:$LD_LIBRARY_PATH[oracle@ora10gr2 11.1]$ pwd/u01/app/ogg/11.1[oracle@ora10gr2 11.1]$ ggsciOracle GoldenGate Command Interpreter for OracleVersion 11.1.1.1.2 OGGCORE_11.1.1.1.2_PLATFORMS_111004.2100Linux, x86, 32bit (optimized), Oracle 10g on Oct 4 2011 23:54:04Copyright (C) 1995, 2011, Oracle and/or its affiliates. All rights reserved.GGSCI (ora10gr2) 1> create subdirsCreating subdirectories under current directory /u01/app/ogg/11.1Parameter files /u01/app/ogg/11.1/dirprm: createdReport files /u01/app/ogg/11.1/dirrpt: createdCheckpoint files /u01/app/ogg/11.1/dirchk: createdProcess status files /u01/app/ogg/11.1/dirpcs: createdSQL script files /u01/app/ogg/11.1/dirsql: createdDatabase definitions files /u01/app/ogg/11.1/dirdef: createdExtract data files /u01/app/ogg/11.1/dirdat: createdTemporary files /u01/app/ogg/11.1/dirtmp: createdVeridata files /u01/app/ogg/11.1/dirver: createdVeridata Lock files /u01/app/ogg/11.1/dirver/lock: createdVeridata Out-Of-Sync files /u01/app/ogg/11.1/dirver/oos: createdVeridata Out-Of-Sync XML files /u01/app/ogg/11.1/dirver/oosxml: createdVeridata Parameter files /u01/app/ogg/11.1/dirver/params: createdVeridata Report files /u01/app/ogg/11.1/dirver/report: createdVeridata Status files /u01/app/ogg/11.1/dirver/status: createdVeridata Trace files /u01/app/ogg/11.1/dirver/trace: createdStdout files /u01/app/ogg/11.1/dirout: created创建数据库⽤户SQL> select file_name from dba_data_files where rownum<10;FILE_NAME--------------------------------------------------------------------------------+DATA/racdb/users01.dbf+DATA/racdb/undotbs01.dbf+DATA/racdb/sysaux01.dbf+DATA/racdb/system01.dbf+DATA/racdb/undotbs02.dbf+DATA/racdb/datafile/yallonking.432.812066619+DATA/racdb/yallonking_2.dbf7 rows selected.SQL> create tablespace ogg datafile '+DATA/racdb/ogg01.dbf' size 50m autoextend on;Tablespace created.SQL> create user ogg identified by ogg default tablespace ogg quota unlimited on ogg temporary tablespace temp; User created.SQL> grant dba to ogg;Grant succeeded.修改2个节点的监听⽂件配置,需要添加ASM服务⽂件位置:/u01/11.2.0/grid/network/admin/listener.ora节点1:SID_LIST_LISTENER =(SID_LIST =(SID_DESC =(GLOBAL_DBNAME = +ASM)(ORACLE_HOME = /u01/11.2.0/grid)(SID_NAME = +ASM1)))节点2:SID_LIST_LISTENER =(SID_LIST =(SID_DESC =(GLOBAL_DBNAME = +ASM)(ORACLE_HOME = /u01/11.2.0/grid)(SID_NAME = +ASM2)))验证如下[oracle@11grac1 ~]$ sqlplus sys/oracle@192.168.137.165:1521/+ASM as sysdbaSQL*Plus: Release 11.2.0.1.0 Production on Mon Apr 22 15:59:53 2013Copyright (c) 1982, 2009, Oracle. All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - ProductionWith the Real Application Clusters and Automatic Storage Management optionsSQL>[oracle@11grac1 ~]$ sqlplus sys/oracle@192.168.137.166:1521/+ASM as sysdbaSQL*Plus: Release 11.2.0.1.0 Production on Mon Apr 22 16:00:51 2013Copyright (c) 1982, 2009, Oracle. All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - ProductionWith the Real Application Clusters and Automatic Storage Management optionsSQL>注意:可能需要早grid下修改sys密码[grid@11grac1 dbs]$ mv orapw+ASM orapw+ASM_bak[grid@11grac1 dbs]$ orapwd file=orapw+ASM password=oracle entries=10;修改2个节点的tnsname.ora[oracle@11grac1 ~]$ tail -f /u01/app/oracle/product/11.2.0/db_1/network/admin/tnsnames.ora ASM =(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.137.165)(PORT = 1521))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = +ASM)(SID_NAME = +ASM1)))RAC =(DESCRIPTION=(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 11grac1-vip)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = 11grac2-vip)(PORT = 1521)))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = racdb)))rac_ogg =(DESCRIPTION=(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.137.174)(PORT = 1521)))(CONNECT_DATA =(SERVER = DEDICATED)(SID = rac_ogg)))[oracle@11grac2 ~]$ tail -f /u01/app/oracle/product/11.2.0/db_1/network/admin/tnsnames.ora ASM =(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.137.166)(PORT = 1521))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = +ASM)(SID_NAME = +ASM2)))RAC =(DESCRIPTION=(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 11grac1-vip)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = 11grac2-vip)(PORT = 1521)))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = racdb)))在任意节点配置DDLSQL> alter system set recyclebin=off scope=spfile;System altered.SQL> alter database add supplemental log data;Database altered.SQL> alter database add supplemental log data (primary key) columns;Database altered.SQL> alter database add supplemental log data (foreign key) columns;Database altered.SQL> alter database add supplemental log data (unique) columns;Database altered.SQL> alter system archive log current;System altered.SQL> grant execute on utl_file to ogg;Grant succeeded.SQL> @marker_setup.sqlSQL> @ddl_setup.sqlSQL> @role_setup.sqlSQL> grant ggs_ggsuser_role to ogg;SQL> @ddl_enable.sqlSQL> @ddl_pin ogg节点1构建测试数据SQL> create tablespace test datafile '+DATA/racdb/test01.dbf' size 50m autoextend on;Tablespace created.SQL> create user test identified by test default tablespace test quota unlimited on test temporary tablespace temp; User created.SQL> grant resource,connect to test;Grant succeeded.SQL> conn test/testConnected.SQL> create table yallonking (id number,name varchar2(20),my_date date);Table created.SQL> insert into yallonking values(1,'yallonking',sysdate);1 row created.SQL> commit;Commit complete.SQL> alter session set nls_date_format='yyyy/mm/dd hh24:mi:ss';Session altered.SQL> select * from yallonking;ID NAME MY_DATE---------- -------------------- -------------------1 yallonking 2013/05/12 10:43:01登陆源库[oracle@11grac1 ~]$ /u01/app/ogg/11.1/ggsciOracle GoldenGate Command Interpreter for OracleVersion 11.1.1.1.2 OGGCORE_11.1.1.1.2_PLATFORMS_111004.2100Linux, x86, 32bit (optimized), Oracle 11g on Oct 4 2011 23:53:33Copyright (C) 1995, 2011, Oracle and/or its affiliates. All rights reserved.GGSCI (11grac1) 1> DBLOGIN USERID ogg,PASSWORD oggSuccessfully logged into database.主备端配置mgr进程此处注意创建相关⽬录GGSCI (11grac1) 1> view params mgrport 7840autostart er *autorestart er *GGSCI (11grac1) 2> info mgrManager is running (IP port 11grac1.7840).源端配置extract进程GGSCI (11grac1) 1> dblogin userid ogg,password oggSuccessfully logged into database.GGSCI (11grac1) 2> add extract ext_test,tranlog,begin now,threads 2EXTRACT added.GGSCI (11grac1) 4> view params ext_testEXTRACT ext_testSETENV (ORACLE_HOME = "/u01/app/oracle/product/11.2.0/db_1")USERID ogg@rac, PASSWORD oggTRANLOGOPTIONS ASMUSER sys@ASM,ASMPASSWORD oracle THREADOPTIONS MAXCOMMITPROPAGATIONDELAY 20000EXTTRAIL /u01/app/ogg/11.1/dirdat/etDYNAMICRESOLUTIONDDL INCLUDE ALLTABLE test.*;GGSCI (11grac1) 53> add exttrail /u01/app/ogg/11.1/dirdat/et, extract ext_test EXTTRAIL added.GGSCI (11grac1) 2> add extract pu_test,exttrailsource /u01/app/ogg/11.1/dirdat/et,begin now EXTRACT added.GGSCI (11grac1) 3> add rmttrail /u01/app/ogg/11.1/dirdat/rt,extract pu_testRMTTRAIL added.GGSCI (11grac1) 5> view params pu_testEXTRACT pu_testRMTHOST 192.168.137.174, MGRPORT 7840RMTTRAIL /u01/app/ogg/11.1/dirdat/rtPASSTHRUTABLE test.*源端配置pump进程GGSCI (11grac1) 22> view params pu_testextract pu_testdynamicresolutionpassthrurmthost 192.168.137.174,mgrport 7840,compressrmttrail /u01/app/ogg/11.1/dirdat/pttable test.*;GGSCI (11grac1) 23> add extract pu_test ,exttrailsource /u01/app/ogg/11.1/dirdat/et ERROR: EXTRACT PU_TEST already exists.GGSCI (11grac1) 24> delete pu_testDeleted EXTRACT PU_TEST.GGSCI (11grac1) 25> add extract pu_test,exttrailsource /u01/app/ogg/11.1/dirdat/etEXTRACT added.GGSCI (11grac1) 26> add rmttrail /u01/app/ogg/11.1/dirdat/pt,extract pu_testRMTTRAIL added.源端进程状态:GGSCI (11grac1) 30> info allProgram Status Group Lag Time Since ChkptMANAGER RUNNINGEXTRACT RUNNING EXT_TEST 00:00:01 00:00:00EXTRACT ABENDED PU_TEST 00:00:00 00:01:33⽬标端进程状态:GGSCI (x64_ogg) 5> info allProgram Status Group Lag Time Since ChkptMANAGER RUNNING以下为源库到⽬标库的复制过程修改⽬标端的密码⽂件[oracle@11grac1 dbs]$ scp orapwracdb1 192.168.137.172:/u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwrac_ogg orapwracdb1 100% 2048 2.0KB/s 00:00修改⽬标端的监听⽂件[oracle@x64_ogg ~]$ cat /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.oraSID_LIST_LISTENER =(SID_LIST =(SID_DESC =(GLOBAL_DBNAME = racdb)(ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)(SID_NAME = rac_ogg)))LISTENER =(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.137.174)(PORT = 1521)))ADR_BASE_LISTENER = /u01/app/oracle构建对端数据库参数⽂件[oracle@x64_ogg ~]$ cat /tmp/pfile_ogg*.__db_cache_size=360710144*.__java_pool_size=4194304*.__large_pool_size=4194304*.__oracle_base='/u01/app/oracle'#ORACLE_BASE set from environment*.__pga_aggregate_target=213909504*.__sga_target=633339904*.__shared_io_pool_size=0*.__shared_pool_size=255852544*.__streams_pool_size=0*.audit_file_dest='/u01/app/oracle/admin/racdb/adump'*.audit_trail='db'*.compatible='11.2.0.0.0'*.control_files='/u01/app/oracle/oradata/control01.ctl','/u01/app/oracle/oradata/control02.ctl'*.db_block_size=8192*.db_domain=''*.db_file_name_convert='+DATA/racdb/datafile','/u01/app/oracle/oradata','+DATA/racdb/tempfile','/u01/app/oracle/oradata' *.db_name='rac_ogg'*.db_recovery_file_dest='/u01/app/oracle'*.db_recovery_file_dest_size=4039114752*.diagnostic_dest='/u01/app/oracle'*.dispatchers='(PROTOCOL=TCP) (SERVICE=racdbXDB)'*.instance_number=1#*.log_archive_dest_1='/u01/app/oracle/arch'#*.log_file_name_convert='/u01/app/oracle/oradata','+DATA/racdb','+DATA/racdb/tempfile',*.open_cursors=300*.pga_aggregate_target=210763776*.processes=150*.remote_login_passwordfile='exclusive'*.sga_target=632291328*.thread=1*.undo_tablespace='UNDOTBS1'注意:在对端创建必要的⽬录将参数⽂件复制到主节点1相同⽬录[oracle@x64_ogg tmp]$ scp pfile_ogg 192.168.137.165:/tmp/The authenticity of host '192.168.137.165 (192.168.137.165)' can't be established.RSA key fingerprint is 69:c3:cb:7f:5b:dd:59:a9:5c:94:4e:33:fa:5b:0c:70.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added '192.168.137.165' (RSA) to the list of known hosts.oracle@192.168.137.165's password:pfile_ogg 100% 1157 1.1KB/s 00:00使⽤rman初始化ogg⽬标库注意主节点和灾备节点ogg进程状态主节点:GGSCI (11grac2) 50> info allProgram Status Group Lag Time Since ChkptMANAGER RUNNINGEXTRACT RUNNING EXT_TEST 00:00:00 00:00:00EXTRACT RUNNING PU_TEST 00:00:00 00:00:04备节点:(注意不要启动replica进程)GGSCI (x64_ogg) 4> info allProgram Status Group Lag Time Since ChkptMANAGER RUNNINGREPLICAT STOPPED REP1 00:00:00 00:00:01备份主数据库(注意验证备份可⽤性,以及备份期间主节点抓取进程不能掉)查看最新的事物的开始时间,确保备份在该时间之后。
GI常见问题
oracle_Grid Infrastructure 启动的五大问题问题1:CRS-4639:无法连接Oracle 高可用性服务,ohasd.bin 未运行或ohasd.bin 虽在运行但无init.ohasd 或其他进程问题2:CRS-4530:联系集群同步服务守护进程时出现通信故障,ocssd.bin 未运行问题3:CRS-4535:无法与集群就绪服务通信,crsd.bin 未运行问题4:Agent 或者mdnsd.bin, gpnpd.bin, gipcd.bin 未运行问题5:ASM 实例未启动,ora.asm 不在线References本文档仅适用于11gR2 Grid Infrastructure。
要确定GI 的状态,请运行以下命令:1. $GRID_HOME/bin/crsctl check crs2. $GRID_HOME/bin/crsctl stat res -t -init3. $GRID_HOME/bin/crsctl stat res -t4. ps -ef | egrep 'init|d.bin'Details问题1:CRS-4639:无法连接Oracle 高可用性服务,ohasd.bin未运行或ohasd.bin 虽在运行但无init.ohasd或其他进程症状:1. 命令“$GRID_HOME/bin/crsctl check crs”返回错误:CRS-4639: Could not contact Oracle High Availability Services2. 命令“ps -ef | grep init”不显示类似于如下所示的行:root 4878 1 0 Sep12 ? 00:00:02 /bin/sh /etc/init.d/init.ohasd run3. 命令“ps -ef | grep d.bin”不显示类似于如下所示的行:root 21350 1 6 22:24 ? 00:00:01 /u01/app/11.2.0/grid/bin/ohasd.bin reboot或者它只显示"ohasd.bin reboot" 进程而没有其他进程可能的原因:1. 文件“/etc/inittab”并不包含行h1:35:respawn:/etc/init.d/init.ohasd run >/dev/null 2>&1 2. 未达到运行级别3,一些rc3 脚本挂起3. Init进程(pid 1) 并未衍生/etc/inittab (h1) 中定义的进程,或init.ohasd之前的不当输入,如xx:wait: 阻碍了init.ohasd的启动4. CRS 自动启动已禁用5. Oracle 本地注册表($GRID_HOME/cdata/.olr) 丢失或损坏解决方案:1. 将以下行添加至/etc/inittabh1:35:respawn:/etc/init.d/init.ohasd run >/dev/null 2>&1 并以root 用户身份运行“init q”。
sql 代理自动执行dtsx包故障解决
Integration Services包部署常见问题汇总发布者:豆豆网日期:2010-02-03 00:00:00浏览次数:0(共有_条评论) 查看评论| 我要评论Integration Services 包在部署过程中,经常会出现这样那样的问题,让人摸不着头脑,很是烦人。
下面我就将我在部署过程中,遇到的一些问题整理出来,以供大家参考。
(一)SSIS包在SQL Server Business Intelligence Development Studi o环境中运行正常,通过DTExecUI.exe 运行也正常,可是一旦部署到Sql Server Agent 中,就不能正常运行,如图所示:(在开发环境运行)查看原图(大图)(在Sql Server Agent 中运行)从图上的错误信息看出,是数据库登录失败。
这就奇怪了,在SQL Server Business Intelligence Development Studio中运行没有问题,而在配置Sql Server Agent Job的过程中,也没有修改过连接配置啊,为什么此时sa 就连接失败了呢?(1)我们在SQL Server Business Intelligence Development Studio中,打开解决方案,打开连接管理器,如图所示:单击[测试连接],提示“连接成功”,没有问题啊,纳闷了。
此路不通,我们换一种方式试试,选择"Windows 身份认证",如图:单击[测试连接],提示“连接成功”,点击[确定],返回到编辑界面,[生成],再[Deployment],一切正常。
再切换Sql Server Agent 中,查看Job 的运行历史记录,错误依旧。
想来想去,不得其解,无奈之下,只好再换一种方法,[启用包配置](配置方法请参见Integration Services 学习(6):包配置),如图:查看原图(大图)然后再打开配置文件,修改数据库连接信息。
DBSPI配置手册说明书
DBSPI Configuration Manual:1.Add the virtual node in the node bank. Also configure the advance option in add node wizard.Please check Induction manual “Addition of the Node”.NOTE: In the advance option check the Cluster Virtual Node and fill the HA ResourcesGroup. Add the nodes where DB is running.2.Put the virtual node into the Oracle (UNIX) node group.3.To configure the DBSPI we required some information as shown below…Database NameResource group nameVirtual NameOracle HomeCluster serversServer where Database is ONLINEListener Name and PathRMAN PathAlert Log File PathTable Space Monitoring or HPOVO log file Path.See below…this information will be provided by the Oracle Database team.New HP Open View policies are to be deployed for monitoring the BSISPRD database.The Oracle home is:BSISPRD - /opt/local/bsispdbs/oracle/10gPlease configure the policies accordingly.1. RMAN log policyRMAN log file location:/opt/local/bsispdbs/oracle/10g/scripts/rman/logs/hotbackups/opt/local/bsispdbs/oracle/10g/scripts/rman/logs/coldbackups/opt/local/bsispdbs/oracle/10g/scripts/rman/logs/archive_logs2 .Tablespace monitoring policyHp open view log files:/opt/local/bsispdbs/oracle/10g/scripts/check/logs/hpopen.log3. Alert Log and Listener Log Monitoring PolicyAlert Log Path:/opt/local/bsis pdbs/admin/bdump/alert_bsisprd.logListener Log Path:/opt/local/bsispdbs/oracle/10g/network/log/bsisprd_listener.logDatabase is clustered in (TCPPDBS061, TCPPDBS007, TCPPDBS005, and TCPPDBS044).The HP_DBSPI user is also created according to the SEC1.Also find the information in the format below:4.Always remember that to configure you required a DBSPI user.er name: hp_dbspiii.Password: hp_dbspiIf the database is in cluster:•Based on the resource group name and information provided, apminfo.xml file has to be created with the mapping and copied to the following directory on each node in the cluster:/var/opt/OV/conf/conf•Always maintain a local copy in the management server Path: /opt/local/software.•Also check the following parameter locally on the server (DB node)o/opt/OV/bin/ovconfget | grep MONITORIf the parameter has not set or set to FALSE then set the parameter by running the following command. (This will enable cluster monitoring by setting MONITOR_MODE=TRUE key in conf.cluster namespace of that particular server.)On the manage node issue the command,sudo /opt/OV/bin/ovconfchg -change –ns conf.cluster -set MONITOR_MODE TRUE sudo /opt/OV/bin/ovc -restartOr you can usesudo /opt/OV/bin/ovc –killsudo /opt/OV/bin/ovc –start5.Assign Discovery and Message Templates to virtual node and deploy it by selecting templates,action, commands, and monitor.6.Now you required to run the DB Discovery program by selecting node. This is required becausethe discovery program creates some specific folder or files in on manage node which required by the DBSPI to configure DBSPI – Templates to setup the monitoring.DBSPI Discovery program is present in OVO bank go to windows tab --- Application Bank --- here a windows will open which has lists of all the application. Here you will find an icon named DBSPI. Double click on the icon. A new window will open. This window will have the DBSPI Admin and DBSPI. This will make entry in the different files or folder.7.To configure the DBSPI on the UNIX management server, you required to go into the DBSPIapplication…Here select the node and run the “Configure DB Connections”. Here an editor will appear where you need to provide the information in the EOF (End of the File) as given below…8.Then save the information…first time you may see a failed word which means the Database isnot running on that server or may be some error in the hp_dbspi user. If this is not a problem with the user then run the following command from the management server…sudo ovdeploy –cmd “dbspicol OFF <instance_name>” –host <node-name>9.Then again try to save the configuration. This time you see that everything is fine.See the below following screen shots…Enter the configurationinformation.Example of the FAILED…10.Also put the physical node in Node Group bank in group Oracle-Custom.11.Set the File System monitoring for given Database.Go to the Template window…Toyota > Toy OS Sun > File System.Click on the condition option or button. A window will appear.Find Name “Space on FileSystem [OSSPI-FileSystemMsg-4.2] for the Databases(x).Where x is the number 1, 2, 3…Put the name of the instance in the “Message Text” area.Select the template then click on the “condition” button. You can find it on the right hand side at the bottom of appear window or Template Window.Find the condition for the Database File System (DB FS) monitoring. As seen below…The condition name should be like as underline below in the screen shot. Then click modify you can able to see a new window with some information…as shown next…Enter the database instance name in the under line area and click OK.NOTE: Do not enter more than 15 instance name as the template work will be affected. If the instance reached to 15 then create a new template my copying the existing template change the name according to the naming convention. Then remove the entry from the under line area. (Only the instance name). Then do same as previously.12.Set the Listener monitoring Policy for given Database.Go to the Template window…Toyota > Toy Oracle RMAN > Toy Listener for Database(x)This is a logfile policy. Click Modify by selecting template. Here you need to add the Database instance name in the message text in the condition area like crippdbs*…as show in the figure…Note: In above two policies do not make entry more then 15 names. As it will not work. If such condition will happen then create a new set of policy by copying the existing policy.13.RMAN and Alert logfile policy were all ready define and there we don’t require making newentry in it. It does not require any changes.14.Assign the Templates (Group DBSPI Oracle - Quick Start PRD) to the virtual node and deploythe templates to virtual node by selecting virtual node.15.This process will make take more then 2 to 4 hours to deploy some time may be less 30 mins.16.When template deployment/distribution process will complete, you can able to see a successfulmessage in the history message browser. Or you can verify with the running the command from the management server.Sudo ovpolicy –list –host <node name>Or you can also verify by checking the level 4 information. For that you can run following commandSudo ovpolicy –list –level 4 –host <node name>Here you are able to see the HA Resource Group Name.17.Finally run the verify deployment from the DBSPI Tools sets. This will provide you everyinformation about the DBSPI configuration…like dbtab information, defaults file information, Template information, instances info, check connection info and others…。
优炫数据库安全审计系统-用户手册
6.
系统功能介绍 ............................................................................................................................................................ 18
2.4. 2.5.
多路模式的审计、访问控制 ............................................................................................................. 6 双机热备 ............................................................................................................................................. 6
5.1. 5.2. 5.3.
第一步:添加数据库引擎 ............................................................................................................... 15 第二步:加入规则 ........................................................................................................................... 15 第三步:实施阻断和查看结果 ....................................................................................................... 16
org.apache.catalina.core.StandardContext.star。。。
org.apache.catalina.core.StandardContext.star。
SSM项⽬,⼀直部署失败,连主页⾯都⽆法打开。
在⽹上找了⼏个⽅法尝试都⽆法奏效,例如直接往WEB-INF添加jar包,更改Tomcat的conf⽬录下的 catalina.properties ⽂件。
最后发现是配置⽂件出错,在配置 web.xml ⾥context-param 的 param-value 时多写了⼀个 * 号。
由于是直接复制的千峰李卫民⽼师博客⾥的配置⽂件代码,没想过会在这⾥出错,前前后后找了两天。
控制台⽇志如下:四⽉ 26, 2021 7:13:52 下午 org.apache.catalina.core.StandardContext listenerStart严重: 异常将上下⽂初始化事件发送到类的侦听器实例.[org.springframework.web.context.ContextLoaderListener]org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService' defined in file [D:\001 Learnging\Java\Java单体应⽤\代码\my-shop-back\target\my-shop-1.0.0-SNAPSHOT\WEB-INF\classes\com\jluzh\my\s at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1163)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1107)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4701)at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1720)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at ng.reflect.Method.invoke(Method.java:498)at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:287)at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:479)at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:428)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at ng.reflect.Method.invoke(Method.java:498)at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:287)at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468)at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)at java.security.AccessController.doPrivileged(Native Method)at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1408)at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at ng.reflect.Method.invoke(Method.java:498)at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)at sun.rmi.transport.Transport$1.run(Transport.java:200)at sun.rmi.transport.Transport$1.run(Transport.java:197)at java.security.AccessController.doPrivileged(Native Method)at sun.rmi.transport.Transport.serviceCall(Transport.java:196)at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)at sun.rmi.transport.tcp.TCPTransport$mbda$run$0(TCPTransport.java:688)at java.security.AccessController.doPrivileged(Native Method)at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)at ng.Thread.run(Thread.java:748)Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [erServiceImpl]: Constructor threw exception; nested exception is ng.NullPointerExceptionat org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:154)at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1155)... 60 moreCaused by: ng.NullPointerExceptionat mons.context.SpringContext.getBean(SpringContext.java:26)at erServiceImpl.<init>(UserServiceImpl.java:12)at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)at ng.reflect.Constructor.newInstance(Constructor.java:423)at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:142)... 62 more26-Apr-2021 19:13:52.803 严重 [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal ⼀个或多个listeners启动失败,更多详细信息查看对应的容器⽇志⽂件26-Apr-2021 19:13:52.805 严重 [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal 由于之前的错误,Context[/my_shop_war_exploded]启动失败四⽉ 26, 2021 7:13:52 下午 org.apache.catalina.core.ApplicationContext log信息: Closing Spring root WebApplicationContext[2021-04-26 07:13:52,822] Artifact my-shop:war exploded: Error during artifact deployment. See server log for details.26-Apr-2021 19:14:00.851 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应⽤程序部署到⽬录 [D:\Program Files\apache-tomcat-8.5.54\webapps\manager]26-Apr-2021 19:14:00.933 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\Program Files\apache-tomcat-8.5.54\webapps\manager] has finished in [81] msweb.xml<?xml version="1.0" encoding="UTF-8"?><web-app xmlns="/xml/ns/javaee"xmlns:xsi="/2001/XMLSchema-instance"xsi:schemaLocation="/xml/ns/javaee /xml/ns/javaee/web-app_4_0.xsd"version="4.0"><display-name>my-shop</display-name><context-param><param-name>contextConfigLocation</param-name><param-value>classpath:spring-context*.xml</param-value></context-param><listener><listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></listener><servlet><servlet-name>LoginController</servlet-name><servlet-class>com.lusifer.my.shop.web.controller.LoginController</servlet-class></servlet><servlet-mapping><servlet-name>LoginController</servlet-name><url-pattern>/login</url-pattern></servlet-mapping></web-app>。
oracle ogg数据不一致常见运维命令及解决方法
oracle ogg数据不一致常见运维命令及解决方法当 Oracle GoldenGate (OGG) 数据不一致时,可以使用以下运维命令来检查和解决问题:1. CHECKPARAMS:检查 GoldenGate 配置文件参数是否正确设置。
解决方法:使用 GGSCI CHECKPARAMS 命令来检查配置文件参数并进行修复。
2. INFO:查看 GoldenGate 运行状态和相关信息。
解决方法:使用 GGSCI INFO 命令来查看状态和错误信息,并根据需要采取相应的操作。
3. STATS:查看 GoldenGate 运行时统计信息。
解决方法:使用 GGSCI STATS 命令来查看统计信息,了解数据传输和复制的情况,并根据需要采取相应的操作。
4. PURGEOLDEXTRACTS:清除过期的 Extract 进程。
解决方法:使用 GGSCI PURGEOLDEXTRACTS 命令来清除过期的 Extract 进程,以释放资源并减少数据传输延迟。
5. VIEW REPORT:查看 GoldenGate 运行报告。
解决方法:使用 GGSCI VIEW REPORT 命令来查看GoldenGate 运行报告,以了解过程中可能出现的错误和警告。
6. STOP,START:停止和启动 GoldenGate 进程。
解决方法:使用 GGSCI STOP 和 START 命令来停止和启动GoldenGate 进程,以重新启动或重新配置系统。
如果以上命令无法解决数据不一致的问题,可能需要更深入分析和调试。
可以考虑使用 GoldenGate 相关的日志和工具来进行故障排除,例如:- GGSERR.log:查看 GoldenGate 错误日志,了解具体的错误信息。
- DUMP FILE:使用 GGSCI DUMP FILE 命令来生成详细的日志信息,以便进行分析和调试。
- GoldenGate 诊断工具:使用 Oracle 提供的 GoldenGate 诊断工具来分析和解决更复杂的问题。
ORACLE_错误列表
ORA-00001: 违反唯一约束条件 (.)ORA-00017: 请求会话以设置跟踪事件ORA-00018: 超出最大会话数ORA-00019: 超出最大会话许可数ORA-00020: 超出最大进程数 ()ORA-00021: 会话附属于其它某些进程;无法转换会话ORA-00022: 无效的会话 ID;访问被拒绝ORA-00023: 会话引用进程私用内存;无法分离会话ORA-00024: 单一进程模式下不允许从多个进程注册ORA-00025: 无法分配ORA-00026: 丢失或无效的会话 IDORA-00027: 无法删去当前会话ORA-00028: 您的会话己被删去ORA-00029: 会话不是用户会话ORA-00030: 用户会话 ID 不存在。
ORA-00031: 标记要删去的会话ORA-00032: 无效的会话移植口令ORA-00033: 当前的会话具有空的移植口令ORA-00034: 无法在当前 PL/SQL 会话中ORA-00035: LICENSE_MAX_USERS 不能小于当前用户数ORA-00036: 超过递归 SQL () 级的最大值ORA-00037: 无法转换到属于不同服务器组的会话ORA-00038: 无法创建会话: 服务器组属于其它用户ORA-00050: 获取入队时操作系统出错ORA-00051: 等待资源超时ORA-00052: 超出最大入队资源数 ()ORA-00053: 超出最大入队数ORA-00054: 资源正忙,要求指定 NOWAITORA-00055: 超出 DML 锁的最大数ORA-00056: 对象 '.' 上的 DDL 锁以不兼容模式挂起ORA-00057: 超出临时表锁的最大数ORA-00058: DB_BLOCK_SIZE 必须为才可安装此数据库 (非 ) ORA-00059: 超出 DB_FILES 的最大值ORA-00060: 等待资源时检测到死锁ORA-00061: 另一个例程设置了不同的 DML_LOCKSORA-00062: 无法获得 DML 全表锁定;DML_LOCKS 为 0 ORA-00063: 超出 LOG_FILES 的最大数ORA-00064: 对象过大以至无法分配在此 O/S (,)ORA-00065: FIXED_DATE 的初始化失败ORA-00066: LOG_FILES 为但需要成为才可兼容ORA-00067: 值对参数无效;至少必须为ORA-00068: 值对参数无效,必须在和之间ORA-00069: 无法获得锁定 -- 禁用了表锁定ORA-00070: 命令无效ORA-00071: 进程号必须介于 1 和之间ORA-00072: 进程""不活动ORA-00073: 命令介于和个参数之间时使用ORA-00074: 未指定进程ORA-00075: 在此例程未找到进程 ""ORA-00076: 未找到转储ORA-00077: 转储无效ORA-00078: 无法按名称转储变量ORA-00079: 未找到变量ORA-00080: 层次指定的全局区域无效ORA-00081: 地址范围 [,) 不可读ORA-00082: 的内存大小不在有效集合 [1], [2], [4] 之内ORA-00083: 警告: 可能损坏映射的 SGAORA-00084: 全局区域必须为 PGA, SGA 或 UGAORA-00085: 当前调用不存在ORA-00086: 用户调用不存在ORA-00087: 命令无法在远程例程上执行ORA-00088: 共享服务器无法执行命令ORA-00089: ORADEBUG 命令中无效的例程号ORA-00090: 未能将内存分配给群集数据库 ORADEBUG 命令ORA-00091: LARGE_POOL_SIZE 至少必须为ORA-00092: LARGE_POOL_SIZE 必须大于 LARGE_POOL_MIN_ALLOCORA-00093: 必须介于和之间ORA-00094: 要求整数值ORA-00096: 值对参数无效,它必须来自之间ORA-00097: 使用 Oracle SQL 特性不在 SQL92 级中ORA-00099: 等待资源时发生超时,可能是 PDML 死锁所致ORA-00100: 未找到数据ORA-00101: 系统参数 DISPATCHERS 的说明无效ORA-00102: 调度程序无法使用网络协议ORA-00103: 无效的网络协议;供调度程序备用ORA-00104: 检测到死锁;全部公用服务器已锁定等待资源ORA-00105: 未配置网络协议的调度机制ORA-00106: 无法在连接到调度程序时启动/关闭数据库ORA-00107: 无法连接到 ORACLE 监听器进程ORA-00108: 无法设置调度程序以同步进行连接ORA-00111: 由于服务器数目限制在 , 所以没有启动所有服务器ORA-00112: 仅能创建多达 (最多指定) 个调度程序ORA-00113: 协议名过长ORA-00114: 缺少系统参数 SERVICE_NAMES 的值ORA-00115: 连接被拒绝;调度程序连接表已满ORA-00116: SERVICE_NAMES 名过长ORA-00117: 系统参数 SERVICE_NAMES 的值超出范围ORA-00118: 系统参数 DISPATCHERS 的值超出范围ORA-00119: 系统参数的说明无效ORA-00120: 未启用或安装调度机制ORA-00121: 在缺少 DISPATCHERS 的情况下指定了 SHARED_SERVERS ORA-00122: 无法初始化网络配置ORA-00123: 空闲公用服务器终止ORA-00124: 在缺少 MAX_SHARED_SERVERS 的情况下指定了 DISPATCHERS ORA-00125: 连接被拒绝;无效的演示文稿ORA-00126: 连接被拒绝;无效的重复ORA-00127: 调度进程不存在ORA-00128: 此命令需要调度进程名ORA-00129: 监听程序地址验证失败 ''ORA-00130: 监听程序地址 '' 无效ORA-00131: 网络协议不支持注册 ''ORA-00132: 语法错误或无法解析的网络名称 ''ORA-00150: 重复的事务处理 IDORA-00151: 无效的事务处理 IDORA-00152: 当前会话与请求的会话不匹配ORA-00153: XA 库中的内部错误ORA-00154: 事务处理监视器中的协议错误ORA-00155: 无法在全局事务处理之外执行工作ORA-00160: 全局事务处理长度超出了最大值 ()ORA-00161: 事务处理的分支长度非法 (允许的最大长度为 )ORA-00162: 外部 dbid 的长度超出了最大值 ()ORA-00163: 内部数据库名长度超出了最大值 ()ORA-00164: 在分布式事务处理中不允许独立的事务处理ORA-00165: 不允许对远程操作进行可移植分布式自治转换ORA-00200: 无法创建控制文件ORA-00201: 控制文件版本与 ORACLE 版本不兼容ORA-00202: 控制文件: ''ORA-00203: 使用错误的控制文件ORA-00204: 读控制文件时出错 (块,# 块 )ORA-00205: 标识控制文件出错,有关详情,请检查警告日志ORA-00206: 写控制文件时出错 (块,# 块 )ORA-00207: 控制文件不能用于同一数据库ORA-00208: 控制文件的名称数超出限制ORA-00209: 控制文件块大小不匹配,有关详情,请检查警告日志ORA-00210: 无法打开指定的控制文件ORA-00211: 控制文件与先前的控制文件不匹配ORA-00212: 块大小低于要求的最小大小 ( 字节)ORA-00213: 不能重新使用控制文件;原文件大小为,还需ORA-00214: 控制文件 '' 版本与文件 '' 版本不一致ORA-00215: 必须至少存在一个控制文件ORA-00216: 无法重新调整从 8.0.2 移植的控制文件大小ORA-00217: 从 9.0.1 进行移植无法重新调整控制文件的大小ORA-00218: 控制文件的块大小与 DB_BLOCK_SIZE () 不匹配ORA-00219: 要求的控制文件大小超出了允许的最大值ORA-00220: 第一个例程未安装控制文件,有关详情,请检查警告日志ORA-00221: 写入控制文件出错ORA-00222: 操作将重新使用当前已安装控制文件的名称ORA-00223: 转换文件无效或版本不正确ORA-00224: 控制文件重设大小尝试使用非法记录类型 ()ORA-00225: 控制文件的预期大小与实际大小不同ORA-00226: 备用控制文件打开时不允许进行操作ORA-00227: 控制文件中检测到损坏的块: (块,# 块 )ORA-00228: 备用控制文件名长度超出了最大长度ORA-00229: 操作不允许: 已挂起快照控制文件入队ORA-00230: 操作不允许: 无法使用快照控制文件入队ORA-00231: 快照控制文件未命名ORA-00232: 快照控制文件不存在, 已损坏或无法读取ORA-00233: 控制文件副本已损坏或无法读取ORA-00234: 标识或打开快照或复制控制文件时出错ORA-00235: 控制文件固定表因并发更新而不一致ORA-00236: 快照操作不允许: 挂上的控制文件为备份文件ORA-00237: 快照操作不允许: 控制文件新近创建ORA-00238: 操作将重用属于数据库一部分的文件名ORA-00250: 未启动存档器ORA-00251: LOG_ARCHIVE_DUPLEX_DEST 不能是与字符串相同的目的地ORA-00252: 日志在线程上为空,无法存档ORA-00253: 字符限制在以内,归档目的字符串超出此限制ORA-00254: 存档控制字符串 '' 时出错ORA-00255: 存档日志 (线程 , 序列 # ) 时出错ORA-00256: 无法翻译归档目的字符串ORA-00257: 存档器错误。
oracle在linux安装报错问题
oracle在linux安装报错问题⾃⼰在CentOS安装oracle 11g报如下错误,参考/s/blog_7249058501014az8.html1.1 ins_ctx.mk问题[oracle@xd logs]$ tail installActions2012-05-05_01-20-00PM.logINFO: collect2: ld returned 1 exit statusINFO: make: *** [ctxhx] Error 1INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking target'install' of makefile '/u01/app/oracle/product/10.2.0/db_1/ctx/lib/ins_ctx.mk'.See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-20-00PM.log'for details.Exception Severity: 1[oracle@xd logs]$ yum install gccLoaded plugins: fastestmirror,refresh-packagekit, securityYou need to be root to perform thiscommand.[oracle@xd logs]$ rpm -qa --queryformat"%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep libgcclibgcc-4.4.6-3.el6 (i686)libgcc-4.4.6-3.el6 (x86_64)1.2 ins_rdbms.mk问题[oracle@xd logs]$ tail installActions2012-05-05_01-20-00PM.logINFO: make[1]: Leaving directory`/u01/app/oracle/product/10.2.0/db_1/rdbms/lib'INFO: make: *** [extproc32] Error 2INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking target'all_no_orcl' of makefile'/u01/app/oracle/product/10.2.0/db_1/rdbms/lib/ins_rdbms.mk'.See '/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-20-00PM.log'for details.Exception Severity: 11.3 ins_emdb.mk问题[oracle@xd logs]$ tail installActions2012-05-05_01-20-00PM.logINFO: make[1]: Leaving directory `/u01/app/oracle/product/10.2.0/db_1/sysman/lib'INFO: make: *** [nmccollector] Error 2INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking target'collector' of makefile'/u01/app/oracle/product/10.2.0/db_1/sysman/lib/ins_emdb.mk'. See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-20-00PM.log' fordetails.Exception Severity: 11.4 ins_net_client.mk问题[oracle@xd logs]$ tailinstallActions2012-05-05_01-51-59PM.logINFO: /usr/bin/ar:/u01/app/oracle/product/10.2.0/db_1/lib32/nnfgt.o: No such file or directoryINFO: make: *** [nnfgt.o] Error 1INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking target'nnfgt.o' ofmakefile'/u01/app/oracle/product/10.2.0/db_1/network/lib/ins_net_client.mk'.See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-51-59PM.log' fordetails.Exception Severity: 11.5 ins_precomp.mk问题[oracle@xd logs]$ tailinstallActions2012-05-05_01-51-59PM.logINFO: /bin/chmod: cannot access`/u01/app/oracle/product/10.2.0/db_1/precomp/lib/proc': No such file ordirectoryINFO: make: ***[/u01/app/oracle/product/10.2.0/db_1/precomp/lib/proc] Error 1INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking target'relink' ofmakefile'/u01/app/oracle/product/10.2.0/db_1/precomp/lib/ins_precomp.mk'.See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-51-59PM.log' fordetails.Exception Severity: 11.6 ins_plsql.mk问题[oracle@xd logs]$ tailinstallActions2012-05-05_01-51-59PM.logcollect2: ld returned 1 exit statusINFO: make: *** [wrap] Error 1INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking target'install' of makefile'/u01/app/oracle/product/10.2.0/db_1/plsql/lib/ins_plsql.mk'.See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-51-59PM.log' fordetails.Exception Severity: 11.7 ins_net_server.mk问题[oracle@xd logs]$ tailinstallActions2012-05-05_01-51-59PM.logcollect2: ld returned 1 exit statusINFO: make: *** [tnslsnr] Error 1INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking target'install' ofmakefile'/u01/app/oracle/product/10.2.0/db_1/network/lib/ins_net_server.mk'.See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-51-59PM.log' fordetails. Exception Severity: 11.8 ins_nau.mk问题[oracle@xd logs]$ tailinstallActions2012-05-05_01-51-59PM.logINFO: ld returned 1 exit statusINFO: make: *** [oklist] Error 1INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking target'ioklist iokinit iokdstry' ofmakefile'/u01/app/oracle/product/10.2.0/db_1/network/lib/ins_nau.mk'.See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-51-59PM.log' fordetails. Exception Severity: 11.9 ins_ldap.mk问题[oracle@xd logs]$ tailinstallActions2012-05-05_01-51-59PM.logcollect2: ld returned 1 exit statusINFO: make: *** [ldapadd] Error 1INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking target'clientonlyinstall' ofmakefile'/u01/app/oracle/product/10.2.0/db_1/ldap/lib/ins_ldap.mk'.See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-51-59PM.log' fordetails. Exception Severity: 11.10 ins_srvm.mk问题[oracle@xd logs]$ tailinstallActions2012-05-05_01-51-59PM.logINFO: ld returned 1 exit statusINFO: make: *** [rawutl] Error 1INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking target'install' of makefile'/u01/app/oracle/product/10.2.0/db_1/srvm/lib/ins_srvm.mk'. See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-51-59PM.log' fordetails.Exception Severity: 11.11 ins_has.mk问题[oracle@xd logs]$ tailinstallActions2012-05-05_01-51-59PM.logcollect2: ld returned 1 exit statusINFO: make: *** [/u01/app/oracle/product/10.2.0/db_1/racg/lib/racgmain]Error 1INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileException因为之前没有在CentOS 6.2 上安装过Oracle,所以开始也是争对具体情况去分析,饶了⼀圈之后,最终定位是安装之前少包了,才导致在安装过程中⼀些Binary Options不能进⾏link。
Oracle常用sql命令
Oracle常⽤sql命令1.查看数据库归档是开启还是关闭SQL> archive log list更改数据库归档模式:SQL> shutdown immediateSQL> startup mountSQL> alter database archivelog(改为归档)/noarchivelog(改为⾮归档)SQL> alter database open查看参数/控制/数据/⽇志/归档/告警⽇志(bdump⽬录下,以alert打头)⽂件位置:SQL> show parameter spfileSQL> show parameter controlSQL> select file_name from dba_data_files;SQL> select group#,member from v$logfile;SQL> show parameter recovery;SQL> set linesize 1000SQL> show parameter dump2.查看oracle相关的进程(实例名:ora11g)SQL> ps -ef|grep ora11gLOCAL=NO的进程表⽰⾮oracle本⾝的后台进程,是别的⽤户通过监听,连进该数据库进⾏访问的3.查看oracle实例名SQL>show parameter instance_name4. 查看SGA开辟多⼤空间SQL> show parameter sga查看PGA开辟多⼤空间SQL> show parameter pga* 共享池和数据缓存区的⼤⼩分配由SGA_MAX_SIZE决定,他们被分配多少由Oracle决定查看共享池多⼤SQL> show parameter shared_pool_size查看数据缓冲区多⼤SQL> show parameter db_cache_size查看⽇志缓冲区多⼤SQL> show parameter log_buffer5. 修改数据库参数 scope 参数--memory 只改变当前实例运⾏,重新启动数据库后失效--spfile 只改变spfile的设置,不改变当前实例运⾏,重启启动数据库后⽣效--both 同时改变实例及spfile,当前更改⽴即⽣效,重新启动数据库后仍然⽣效alter system set<parameter_name>=<value>scope=memory|spfile|both[sid=<sid_name>]如:SQL> alter system set sga_target=2000M scope=bothSQL> alter system set log_buffer=15000000 scope=spfile(log_buffer必须重启才⽣效)6. 启动数据库SQL> startup只读模式打开数据库,使数据库不会发⽣改变(插⼊、更新或删除)SQL> alter database open read only;以受限模式打开数据库,只有同时具有create session和restricted session权限的⽤户才能使⽤数据库SQL> startup restrict;把数据库置于某种状态,在该状态下只有sys和system⽤于才能查询数据库SQL> alter system quiesce restrict;SQL> alter system unquiesce;强制启动SQL> startup force7. 关闭数据库SQL> shutdown immediate8. 查看数据库状态SQL> select status from v$instance;9. 查看数据库的打开模式SQL> select open_mode from v$database;10. 如何查看数据库的所有⽤户有哪些?set linesize 300(设置⾏宽为100)SQL> select * from all_users11. 查询哪些⽤户正在使⽤Oracle?SQL> select username from v$session;12. 查询某个⽤户是从哪台机器登录Oracle的?SQL> select * from v$session;13. 从已知表新建另⼀个表:SQL>CREATE TABLE bAS SELECT * (可以是表a中的⼏列)FROM aWHERE a.column = ...;14.查找、删除重复记录:法⼀: ⽤Group by 语句此查找很快的SQL> select count(num), max(name) from student --查找表中num 列重复的,列出重复的记录数,并列出他的name属性group by numhaving count(num) >1 --按num分组后找出表中num 列重复,即出现次数⼤于⼀次delete from student(上⾯Select的)这样的话就把所有重复的都删除了。
ORACLE数据库RAC执行ROOT.SH失败后处理X
假设我们安装CRS时执行root.sh失败,我们应当如何重新执行root.sh,再比如OCR和VOTE全部损坏,并且都没有备份,应当如何恢复,这时候最简单的办法就是重新配置OCR和VOTE,下面是具体模拟过程:[root@rac1 oracle]# crs_stat -tName Type Target State Host------------------------------------------------------------ora.orcl.db application ONLINE ONLINE rac2ora....l1.inst application ONLINE ONLINE rac1ora....l2.inst application ONLINE ONLINE rac2ora....SM1.asm application ONLINE ONLINE rac1ora....C1.lsnr application ONLINE ONLINE rac1ora.rac1.gsd application ONLINE ONLINE rac1ora.rac1.ons application ONLINE ONLINE rac1ora.rac1.vip application ONLINE ONLINE rac1ora....SM2.asm application ONLINE ONLINE rac2ora....C2.lsnr application ONLINE ONLINE rac2ora.rac2.gsd application ONLINE ONLINE rac2ora.rac2.ons application ONLINE ONLINE rac2ora.rac2.vip application ONLINE ONLINE rac2这是一个已经在运行中的RAC环境,我们模拟所有的ocr和vote均损坏。
openwrt的默认etcconfignetwork文件是如何生成的?
openwrt的默认etcconfignetwork⽂件是如何⽣成的?openwrt的network⽂件,或者说在/etc/config下的⽂件,都是动态⽣成的。
脚本的函数定义在openwrt1407/package/base-files/files/lib/functions中,有以下⼏个⽂件:tf@ubuntu:~/projects/openwrt1407/package/base-files/files/lib/functions$ lsleds.sh network.sh preinit.sh service.sh system.sh uci-defaults.sh其中uci-defaults.sh会⽣成默认的/etc/config下的⽂件,⽽其它⽂件是它的“库”。
我们看⼀看uci-default.sh的内容#!/bin/sh# Copyright (C) 2011 UCIDEF_LEDS_CHANGED=0ucidef_set_led_netdev() {local cfg="led_$1"local name=$2local sysfs=$3local dev=$4uci -q get system.$cfg && return 0uci batch <<EOFset system.$cfg='led'set system.$='$name'set system.$cfg.sysfs='$sysfs'set system.$cfg.trigger='netdev'set system.$cfg.dev='$dev'set system.$cfg.mode='link tx rx'EOFUCIDEF_LEDS_CHANGED=1}ucidef_set_led_usbdev() {local cfg="led_$1"local name=$2local sysfs=$3local dev=$4uci -q get system.$cfg && return 0uci batch <<EOFset system.$cfg='led'set system.$='$name'set system.$cfg.sysfs='$sysfs'set system.$cfg.trigger='usbdev'set system.$cfg.dev='$dev'set system.$cfg.interval='50'EOFUCIDEF_LEDS_CHANGED=1}ucidef_set_led_wlan() {local cfg="led_$1"local name=$2local sysfs=$3local trigger=$4uci -q get system.$cfg && return 0uci batch <<EOFset system.$cfg='led'set system.$='$name'set system.$cfg.sysfs='$sysfs'set system.$cfg.trigger='$trigger'EOFUCIDEF_LEDS_CHANGED=1}ucidef_set_led_switch() {local cfg="led_$1"local name=$2local sysfs=$3local trigger=$4local port_mask=$5uci -q get system.$cfg && return 0uci batch <<EOFset system.$cfg='led'set system.$='$name'set system.$cfg.sysfs='$sysfs'set system.$cfg.trigger='$trigger'set system.$cfg.port_mask='$port_mask'EOFUCIDEF_LEDS_CHANGED=1}ucidef_set_led_default() {local cfg="led_$1"local name=$2local sysfs=$3local default=$4uci -q get system.$cfg && return 0uci batch <<EOFset system.$cfg='led'set system.$='$name'set system.$cfg.sysfs='$sysfs'set system.$cfg.default='$default'EOFUCIDEF_LEDS_CHANGED=1}ucidef_set_led_rssi() {local cfg="led_$1"local name=$2local sysfs=$3local iface=$4local minq=$5local maxq=$6local offset=$7local factor=$8uci -q get system.$cfg && return 0uci batch <<EOFset system.$cfg='led'set system.$='$name'set system.$cfg.sysfs='$sysfs'set system.$cfg.trigger='rssi'set system.$cfg.iface='rssid_$iface'set system.$cfg.minq='$minq'set system.$cfg.maxq='$maxq'set system.$cfg.offset='$offset'set system.$cfg.factor='$factor'EOFUCIDEF_LEDS_CHANGED=1}ucidef_set_rssimon() {local dev="$1"local refresh="$2"local threshold="$3"local cfg="rssid_$dev"uci -q get system.$cfg && return 0uci batch <<EOFset system.$cfg='rssid'set system.$cfg.dev='$dev'set system.$cfg.refresh='$refresh'set system.$cfg.threshold='$threshold'EOFUCIDEF_LEDS_CHANGED=1}ucidef_commit_leds(){[ "$UCIDEF_LEDS_CHANGED" == "1" ] && uci commit system }ucidef_set_interface_loopback() {uci batch <<EOFset network.loopback='interface'set network.loopback.ifname='lo'set network.loopback.proto='static'set network.loopback.ipaddr='127.0.0.1'set mask='255.0.0.0'set network.globals='globals'set network.globals.ula_prefix='auto'EOF}ucidef_set_interface_raw() {local cfg=$1local ifname=$2uci batch <<EOFset network.$cfg='interface'set network.$cfg.ifname='$ifname'set network.$cfg.proto='none'EOF}ucidef_set_interface_lan() {local ifname=$1uci batch <<EOFset n='interface'set n.ifname='$ifname'set n.force_link=1set n.type='bridge'set n.proto='static'set n.ipaddr='192.168.1.1'set mask='255.255.255.0'set n.ip6assign='60'EOF}ucidef_set_interface_wan() {local ifname=$1uci batch <<EOFset network.wan='interface'set network.wan.ifname='$ifname'set network.wan.proto='dhcp'set network.wan6='interface'set network.wan6.ifname='@wan'set network.wan6.proto='dhcpv6'EOF}ucidef_set_interfaces_lan_wan() {local lan_ifname=$1local wan_ifname=$2ucidef_set_interface_lan "$lan_ifname"ucidef_set_interface_wan "$wan_ifname" }ucidef_set_interface_macaddr() {local ifname=$1local mac=$2uci batch <<EOFset network.$ifname.macaddr='$mac'EOF}ucidef_add_switch() {local name=$1local reset=$2local enable=$3uci batch <<EOFadd network switchset network.@switch[-1].name='$name'set network.@switch[-1].reset='$reset'set network.@switch[-1].enable_vlan='$enable' EOF}ucidef_add_switch_vlan() {local device=$1local vlan=$2local ports=$3uci batch <<EOFadd network switch_vlanset network.@switch_vlan[-1].device='$device' set network.@switch_vlan[-1].vlan='$vlan'set network.@switch_vlan[-1].ports='$ports' EOF}ucidef_add_switch_port() {local device=$1local port=$2uci batch <<EOFadd network switch_portset network.@switch_port[-1].device='$device'set network.@switch_port[-1].port='$port'EOF}看到了吧,改这⾥的内容就会改到openwrt固件的默认配置了。
11.4.系统运行维护手册
酒钢理化检验实验室管理信息平台项目系统维护手册——主机系统湖南视拓科技发展有限公司2017年目录1. 简介 (1)1.1目的 (1)1.2使用范围 (1)1.3名词解释 (1)2. 系统总体架构 (2)2.1技术架构 (2)2.2网络架构 (3)2.3服务器部署架构 (3)3. 系统服务器配置 (4)3.1基本配置 (4)3.3数据库配置 (4)3.4应用程序部署目录 (5)3.5系统日常点检 (5)3.6常用软件介绍 (5)3.7服务器常用检查命令介绍 (5)4. 系统备份方案 (6)4.1数据库备份 (6)6. 服务器维护说明..................................................................................... 错误!未定义书签。
7. 服务开发环境配置 (7)7.1 服务端开发环境搭建说明.............................................................. 错误!未定义书签。
7.1.1 Jdk1.77的安装及配置 ................................................... 错误!未定义书签。
8.1.2 环境变量配置....................................................................... 错误!未定义书签。
8.1.3 Tomcat7.0的安装及配置 ...................................................... 错误!未定义书签。
8.1.4 Nginx的安装配置.................................................................. 错误!未定义书签。
【原创】大数据基础之Doris(1)编译安装和启动
【原创】⼤数据基础之Doris(1)编译安装和启动⼀编译doris编译有两种⽅式,⼀种是docker编译,⼀种是直接裸机编译,推荐使⽤docker编译,可以避免⼤量的环境依赖问题docker编译1 安装dockeryum install dockersystemctl start dockersystemctl enable dockerdocker pull apachedoris/doris-dev:build-env-1.22 下载源码3 启动容器docker run -it -v /root/.m2:/root/.m2 -v /path/to/apache-doris-0.13.0-incubating-src:/root/apache-doris-0.13.0-incubating-src apachedoris/doris-dev:build-env-1.2需要做两个⽬录映射,⼀个是maven的repository⽬录,⼀个是doris源码⽬录,避免容器挂了之后之前下载或编译的内容丢失4 编译doriscd /root/apache-doris-0.13.0-incubating-srcsh -x build.sh编译之后输出⾄output⽬录,有3个⼦⽬录:be、fe、udf,只需要拷贝output⽬录到其他服务器即可编译时报错修改如下:<!-- for java-cup --><repository><!--<id>cloudera-thirdparty</id><url>https:///content/repositories/third-party/</url>--><id>cloudera-public</id><url>https:///artifactory/public/</url></repository><!-- for cup-maven-plugin --><pluginRepository><!--<id>spring-plugins</id><url>https://repo.spring.io/plugins-release/</url>--><id>cloudera-public</id><url>https:///artifactory/public/</url></pluginRepository>5 编译brokercd fs_brokers/apache_hdfs_brokersh -x build.sh6 编译spark connectorcd extension/spark-doris-connectorsh -x build.sh裸机编译1 准备jdk8+mavensudo yum groupinstall 'Development Tools' && sudo yum install maven cmake byacc flex automake libtool bison binutils-devel zip unzip ncurses-devel curl git wget python2 glibc-static libstdc++-static java-1.8.0-openjdk其中:centos7上gcc默认4.8.5,cmake默认2.8.122 升级GCC3 升级CMAKE4 编译sh -x build.sh报错处理报错1解决⽅法:将url修改为LIBEVENT_DOWNLOAD="https:///thirdparty/libevent-20180622-24236aed01798303745470e6c498bf606e88724a.zip"报错2Error: Only libraries of the current release version can be used by the. package builder. The library DataTables's current release version is 1.10.24. Please reload the download builder page to have it use the latest libraries.解决⽅法:修改thirdparty/vars.sh,将版本改为最新的1.10.24,同时修改md5sum# datatables, bootstrap 3 and jQuery 3#DATATABLES_DOWNLOAD="https:///download/builder?bs-3.3.7/jq-3.3.1/dt-1.10.22"#DATATABLES_NAME="DataTables.zip"#DATATABLES_SOURCE="DataTables-1.10.22"#DATATABLES_MD5SUM="62558846fc6a6db1428e7816a2a351f7"DATATABLES_DOWNLOAD="https:///download/builder?bs-3.3.7/jq-3.3.1/dt-1.10.24"DATATABLES_NAME="DataTables.zip"DATATABLES_SOURCE="DataTables-1.10.24"DATATABLES_MD5SUM="22404292d02cf3c5f4cd9f5a02d4b42c"报错3checking how to run the C preprocessor... /usr/lib64/ccache/../bin/cppconfigure: error: in `/data/app/apache-doris-0.13.0-incubating-src/thirdparty/src/unixODBC-2.3.7':configure: error: C preprocessor "/usr/lib64/ccache/../bin/cpp" fails sanity check解决⽅法:ln -s /usr/local/bin/cpp /usr/lib64/bin/cpp报错4./comp_err: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory解决⽅法:yum -y install libatomic报错5cp: cannot stat ‘./zstd_ep-install/lib/libzstd.a’: No such file or directory解决⽅法:cd thirdparty/src/zstd-1.3.7/testsmake zstd-staticLibmkdir -p /path/to/apache-doris-0.12.0-incubating-src/thirdparty/src/arrow-apache-arrow-0.15.1/cpp/release/zstd_ep-install/lib64 cp ../lib/libzstd.a /path/to/apache-doris-0.12.0-incubating-src/thirdparty/src/arrow-apache-arrow-0.15.1/cpp/release/zstd_ep-install/lib64⼆启动1 启动FEcd output/femkdir doris-metabin/start_fe.sh --daemon⽇志在log⽬录下注意:默认8030端⼝可能与yarn的resourcemanager冲突启动之后检查fe绑定端⼝的ip是否正确,如果绑定ip错误(⽐如安装docker之后取到docker的ip),会导致be⽆法连接fe,需要配置fe.conf中的priority_networks,配置为正确的⽹段priority_networks=192.168.1.0/242 启动BEcd output/bemkdir /path/to/storagevim conf/be.confbin/start_be.sh --daemon⽇志在log⽬录下注意:默认8040端⼝可能与yarn的nodemanager冲突如果be启动失败,⼀般可能有两个原因:⼀个是端⼝被占⽤,⼀个是limit,根据⽇志排查,⽐如报错Doris Be http service did not start correctly. exiting.则是因为端⼝占⽤导致web启动失败修改limit临时修改limit -n 65535永久修改vim /etc/security/limit.conf* hard nofile 65535* soft nofile 655353 启动Brokercd fs_brokers/apache_hdfs_broker/output/apache_hdfs_brokerbin/start_broker.sh --daemon三使⽤1 FE web访问注意:端⼝为http_port默认账号root,密码空2 FE 命令访问mysql -P9030 -urootshow proc '/frontends';注意:端⼝为query_port3 添加或删除FEalter system add follower '$host:$port';show proc '/frontends';4 添加或删除BEalter system add backend '$host:$port';alter system dropp backend '$host:$port';show proc '/backends';注意:port默认为9050,即heartbeat_service_port5 添加或删除Brokeralter system add broker $broker_name '$host:$port';show proc '/brokers';注意:port默认为8000,即broker ipc_port四数据导⼊hive数据导⼊create database test;CREATE TABLE test.test_user_doris(`id` varchar(128) ,`name` varchar(128) ,`country` varchar(128) ,`province` varchar(128) ,`city` varchar(128) ,`order_count` int SUM)AGGREGATE KEY(id, name, country, province, city)DISTRIBUTED BY HASH(id) BUCKETS 10PROPERTIES("replication_num" = "3");LOAD LABEL load_test_user_doris(DATA INFILE("hdfs://nameservice1/user/hive/warehouse/test.db/test_user/*") INTO TABLE `test_user_doris`FORMAT as "parquet")WITH BROKER $broker_name("services" = "nameservice1","service1" = "namenode1,namenode2","node1" = "nn1:8020","node2" = "nn2:8020")PROPERTIES("timeout"="36000","max_filter_ratio"="0.1");show load;五参数配置show variables;同mysql参考:编译启动。
MSSQLSERVER数据库SUSPECT状态如何解决
MS-SQLSERVER数据库SUSPECT状态如何解决如何重置数据库Suppect(置疑)状态一、出现这种情况的原因如果在日常运行当中,数据库的文件或日志增长方式设为以下两种模式:1、文件不自动增长此种状态下,如果数据库中的数据或日志增长到设定的文件大小时,继续添加数据时就没有足够的空间时,MS SQL SERVER将把数据库标记为Suspect(置疑)2、文件自动增长但限制最大文件大小此种状态下,如果数据库中的数据或日志增长到设定的最大文件大小时,继续添加数据时就没有足够的空间时,MS SQL SERVER将把数据库标记为Suspect(置疑)3、文件自动增长也没限制文件大小,但存放文件的磁盘剩余空间不够了4、意外掉电,造成磁盘文件损坏5、二、解决方法:3、方法一:释放含有相关数据库日志文件的任意磁盘驱动器上的磁盘空间。
释放的磁盘空间使恢复系统可以自动地增长数据或事务日志文件。
执行sp_resetstatus 重置置疑状态。
通过执行DBCC DBRECOVER(数据库)运行恢复操作。
方法二:释放另一个磁盘驱动器上的磁盘空间。
把可用磁盘空间不足的事务日志文件移动到第一步所指的磁盘驱动器上。
执行sp_detach_db 分离数据库。
执行sp_attach_db 附加数据库,指向被移动的文件。
方法三:向置疑数据库添加一个日志文件,然后执行sp_add_log_file_recover_suspect_db 以便在数据库上运行恢复操作。
解决错误信息1105,然后使数据库联机对于任意一个含有错误信息1105 提到的文件组中文件的磁盘,释放其磁盘空间。
释放磁盘空间使得文件组中的文件可以增长。
执行sp_resetstatus 重置置疑状态。
执行DBCC DBRECOVER(数据库)运行恢复操作。
方法四:释放另一个磁盘驱动器上的磁盘空间。
将可用磁盘空间不足的文件组中的数据文件移动到第一步所指的磁盘驱动器上。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
GoldenGate for Oracle to DB2 on iObjectiveUpon completion of this lesson, you will be able to keep an Oracle database synchronized with a DB2 database on iSeries using GoldenGate.During this lesson, you will learn how to:Prepare your user environment.Configure and execute the initial data load process.Configure and start the change capture process of database operations.Configure and start the change delivery process of database operations.Oracle to DB2 configurationThe following diagram illustrates GoldenGate a configuration with Oracle source data being replicated to a DB2 target database on iSeries.Overview of TasksPrepare the EnvironmentIn order to execute this lesson, the GoldenGate application must be installed on both the source and target systems. The installation includes a sample database and scripts to generate initial data as well as subsequent update operations. The source and target tables are created and loaded with initial data. The GoldenGate Manager processes are also started so that other processes may be configured and started.Configure Initial Data LoadInitial database synchronization is almost always required. To initially load data across heterogeneous databases, you have limited choices. GoldenGate provides the ability to perform initial data synchronization while your application remains active. The capture process also provides flexible output options, including the capability to format the data to be loaded with bulk load utilities, such as DB2 Load.This lesson demonstrates using the direct load method to capture data directly from the source tables and send the data directly to the delivery process on the target system.Configure Change CaptureFor log-based Oracle capture, the capture process is configured to capture change data directly from the Oracle online redo logs or archive logs and store the changes in queues known as GoldenGate remote trails.Configure Change DeliveryOnce the tables have been initially loaded with data, the delivery process is configured to synchronize the captured change data into the target database.Exercise 1.Prepare the EnvironmentObjectiveThe goals of this exercise are to:Configure and start the Manager processesCreate and load practice data to Oracle tablesAdd supplemental loggingPrepare your Oracle source environment1. Configure the Manager process on the sourceOn the <source> system, create the Manager parameter file and specify the port it should use.Create the Manager parameter file.Shell> cd <install location>Shell> ggsciGGSCI> EDIT PARAMS MGRUse the editor to assign a port.--GoldenGate Manager parameter filePORT <port>Start the Manager.GGSCI> START MGRVerify that the Manager has started.GGSCI> INFO MGR2. Create the source tables and load the initial data.Using SQL*Plus, create and populate the TCUSTMER and TCUSTORD tables by running the demo_ora_create.sql and demo_ora_insert.sql files found in the install directory.Execute the following commands on the <source> system.Shell> cd <install location>Shell> sqlplus <login>/<password>SQL> @demo_ora_createSQL> @demo_ora_insertVerify the results:SQL> select * from tcustmer;SQL> select * from tcustord;SQL> exit3. Add supplemental loggingThe following steps are required only when GoldenGate will be capturing data from the server. Therefore it is only on your <source> environment.Turn on supplemental logging at the database level.This command requires the ALTER DATABASE permissions.Shell> sqlplus <login>/<password>SQL> ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;Switch to the next redo log file.SQL> ALTER SYSTEM SWITCH LOGFILE;SQL> EXITUsing GGSCI, log in to the database on the <source> and turn on supplemental logging for the TCUSTMER and TCUSTORD tables.Shell> ggsciGGSCI> DBLOGIN USERID <login>, PASSWORD <password>GGSCI> ADD TRANDATA <schema>.TCUSTMERGGSCI> ADD TRANDATA <schema>.TCUSTORDVerify that supplemental logging has been turned on for these tables.GGSCI> INFO TRANDATA <schema>.TCUST*Prepare your DB2 target environment1. Configure the Manager process on the intermediary Windows systemExecute the following commands on the intermediary Windows system.Start the command interfaceShell> cd <install location>Shell> ggsciSpecify the port that the Manager should use.GGSCI> EDIT PARAMS MGR-- GoldenGate Manager Parameter filePORT <port>Start ManagerGGSCI> START MANAGERVerify the results:GGSCI> INFO MANAGER2. Create target DB2 tablesExecute the following commands on the <target> system.Execute the script ecust.sql to create the source tables: If using iSeries Navigator version 6.x, go to My Connections > <target> > Databases > <dbname> > Schemas, and in the Database tasks below, select Run an SQL script. Click File > Open, then select./dirsql/ecust.sqlVerify the results: In the same window where you created the tables, run select statements.select * from <owner/schema>.TCUSTMER;select * from <owner/schema>.TCUSTORD;The two tables should exist but they should be empty.3. Configure the ODBC driver on the Intermediary Windows MachineExecute the following commands on the intermediary Windows system.1.Download and install the ODBC driver for IBM DB2 for i on the intermediaryWindows system.2.On the Windows system, click Start > Settings > Control Panel.3.Double-click Administrative Tools.4.Double-click Data Sources (ODBC) to open the ODBC Data SourceAdministrator dialog box.5.Select the System DSN tab, and then click Add.6.Under Create New Data Source, select the iSeries Access ODBC Driver.7.Click Finish. The Create a New Data Source wizard is displayed.8.Supply the following:•Name: Add the iSeries host name or TCP/IP address.•Description: (Optional) Type a description of this data source.Exercise 2.Configure Change CaptureObjectiveThe goals of this exercise are to:Configure and add the Extract process that will capture changes.Add the trail that will store the changes.Start the Extract process.Configure change capture1. Add the Extract groupExecute the following command on the <source> system to add an Extract group named EORA<unique id>.GGSCI> ADD EXTRACT EORA<unique id>, TRANLOG, BEGIN NOW, THREADS<instances>Note: In a non-RAC environment, the THREADS parameter can be omitted or the THREADS <instances> can be set to 1.Verify the results:GGSCI> INFO EXTRACT EORA<unique id>2. Create the Extract parameter fileExecute the following command on the <source> system to create the Extract parameter file.GGSCI> EDIT PARAM EORA<unique id>Add the following commands to the parameter file.---- Change Capture parameter file to capture-- TCUSTMER and TCUSTORD Changes--EXTRACT EORA<unique id>USERID <login>, PASSWORD <password>TARGETDEFS ./dirdefs/ens.defRMTHOST <target>, MGRPORT <port>RMTTRAIL <install vol>.GGSDAT.<trail id>TABLE <owner/schema>.TCUSTMER,TARGET <install vol>.GGSTAR.RCUSTMER;TABLE <owner/schema>.TCUSTORD;TARGET <target>.<install vol>.GGSTAR.RCUSTORDCOLMAP (USEDEFAULTS,ORDER-DATE = @DATE("YYMMDD", "YYYY-MM-DD:HH:MI:SS", ORDER_DATE), ORDER-TIME = @DATE("HHMISS", "YYYY-MM-DD:HH:MI:SS", ORDER_DATE) );Note: Record the two characters selected for your <trail id>: ______. You will need this in the next step and when you set up the Replicat.Note: When Oracle Automatic Storage Management (ASM) is in use, the TRANLOGOPTIONS ASMUSER and ASMPASSWORD must be set in the Extract parameter file. For more information refer to the Oracle GoldenGate Reference manual.3. Define the GoldenGate trailExecute the following command on the <source> to add the trail that will store the changes on the target.GGSCI> ADD RMTTRAIL <target>.<install vol>.GGSDAT.<trail id>,EXTRACT EORA<unique id>, MEGABYTES 5Verify the results:GGSCI> INFO RMTTRAIL *4. Start the capture processGGSCI> START EXTRACT EORA<unique id>Verify the results:GGSCI> INFO EXTRACT EORA<unique id>, DETAILGGSCI> VIEW REPORT EORA<unique id>Discussion points1. Identifying a remote systemWhat parameter is used to identify the remote target system?_________________________________________________________________________ _________________________________________________________________________2. Sizing the GoldenGate trailWhere do you set how large a GoldenGate trail file may get before it rolls to the next file?What option do you use?_________________________________________________________________________ _________________________________________________________________________Exercise 3.Initial Data Load using Direct Load MethodObjectiveThe goals of this exercise are to:Configure the initial load capture task.Configure the delivery of the data to the target system.Execute and verify the initial load of data.Configure initial load capture1. Add the initial load capture batch task groupExecute the following commands on the <source> system to add an Extract process called EINI<unique id>1.Execute the following command in GGSCI to create the batch task.Shell> cd <install location>Shell> ggsciGGSCI> ADD EXTRACT EINI<unique id>, SOURCEISTABLE Verify the results:GGSCI> INFO EXTRACT *, TASKS2. Configure the initial load capture parameter fileExecute the following command in GGSCI to open the editor on the <source> system.GGSCI> EDIT PARAMS EINI<unique id>Add the following lines to the parameter file.---- GoldenGate Initial Data Capture-- for TCUSTMER and TCUSTORD11 The process names used in lab exercises, for example EINIBD, are made up of 1) one character for the GoldenGate process (E for Extract, R for Replicat); 2) three or four to describe the process type (INI for initial data load, ORA for capture from or delivery to an Oracle database, etc.) and 3) two characters to create a unique identifier (usually your initials).--EXTRACT EINI<unique id>USERID <login>, PASSWORD <password>RMTHOST <target>, MGRPORT <port>RMTTASK REPLICAT, GROUP RINI<unique id>TABLE <owner/schema>.TCUSTMER;TABLE <owner/schema>.TCUSTORD;Configure initial load delivery3. Add the initial load delivery batch task groupExecute the following command in GGSCI to create the batch task on the intermediaryWindows system.GGSCI> ADD REPLICAT RINI<unique id>, SPECIALRUNVerify the results:GGSCI> INFO REPLICAT *, TASKS4. Configure the initial load delivery parameter fileExecute the following command in GGSCI to open the editor on the intermediary Windows system.GGSCI> EDIT PARAMS RINI<unique id>Add the following lines to the parameter file.---- GoldenGate Initial Load DeliveryREPLICAT RINI<unique id>TARGETDB <datasource>, USERID <userid>, PASSWORD <password>DISCARDFILE ./dirrpt/RINI<unique id>.dsc, PURGESOURCEDEFS ./dirdef/source.defMAP <owner/schema>.TCUSMTER, TARGET <owner/schema>.TCUSTMER;MAP <owner/schema>.TCUSTORD, TARGET <owner/schema>.TCUSTORD;Note: Remember to use <db type>.def if you renamed the source.def when you transferred it to the <target>.Execute the initial load5. Execute the initial load taskExecute the following commands on the <source> system.GGSCI> START EXTRACT EINI<unique id>Initial Data LoadVerify the results:GGSCI> VIEW REPORT EINI<unique id>Execute the following commands on the intermediary Windows system.GGSCI> VIEW REPORT RINI<unique id>Exercise 4.Configure Change DeliveryObjectiveThe goals of this exercise are to:Set up the checkpoint table on the target system.Create a named group that includes the Replicat process and the checkpoint tables.Configure the Replicat group by adding parameters.Start the Replicat group.Set up the checkpoint table1. Create a GLOBALS file on the intermediary Windows systemExecute the following commands on the intermediary Windows system.Create and edit the GLOBALS parameter file to add the checkpoint table.Shell> cd <install location>Shell> ggsciGGSCI> EDIT PARAMS ./GLOBALSIn the text editor, type:CHECKPOINTTABLE <owner/schema>.ggschkptRecord the checkpoint table owner and name, then save and close the file.Table owner ____________________ name ___________________Note: You could name the table anything you want, but for training purposes we areusing ggschkpt.Verify that the GLOBALS file was created in the root GoldenGate directory, and remove any file extension that was added.2. Activate the GLOBALS parametersFor the GLOBALS configuration to take effect, you must exit the session in which the changes were made. Execute the following command to exit GGSCI.GGSCI> EXIT3. Add a Replicat checkpoint tableOn the intermediary Windows system, execute the following commands in GGSCI:Shell> cd <install location>Shell> ggsciGGSCI> DBLOGIN SOURCEDB <database>, USERID <login>, PASSWORD<password>GGSCI> ADD CHECKPOINTTABLEConfigure Change Delivery4. Add the Replicat groupExecute the following command on the intermediary Windows system to add a delivery group named RDB2<unique id>.GGSCI> ADD REPLICAT RDB2<unique id>, EXTTRAIL ./dirdat/<trail id> Note: Refer to your Extract set up for the correct two-character <trail id>.5. Create Replicat parameter fileExecute the following commands on the intermediary Windows system to bring up the parameter file in the editor.GGSCI> EDIT PARAM RDB2<unique id>Type in the following parameters---- Change Delivery parameter file to apply-- TCUSTMER and TCUSTORD Changes--REPLICAT RDB2<unique id>TARGETDB <database>, USERID <login>, PASSWORD <password>HANDLECOLLISIONSASSUMETARGETDEFSDISCARDFILE ./dirrpt/RDB2<unique id>.DSC, PURGEMAP <owner/schema>.tcustmer, TARGET <owner/schema>.tcustmer;MAP <owner/schema>.tcustord, TARGET <owner/schema>.tcustord; 6. Start the Replicat processGGSCI> START REPLICAT RDB2<unique id>Verify the results:GGSCI> INFO REPLICAT RDB2<unique id>Discussion pointsSearch in the Windows/UNIX Reference Guide for the information on the followingquestions.1. When to use HANDLECOLLISIONSWhen would you use HANDLECOLLISIONS? What does it do?_________________________________________________________________________ _________________________________________________________________________2. When to use ASSUMETARGETDEFSWhat should be the same on the source and target when ASSUMETARGETDEFS is used?_________________________________________________________________________ _________________________________________________________________________3. What is the purpose of the DISCARDFILE?_________________________________________________________________________ ________________________________________________________________________Exercise 5.Generate Activity and Verify ResultsObjectiveThe goals of this exercise are to:Execute miscellaneous update, insert, and delete operations on the source system.Verify the delivery of the changes to the targetTurn off the error handling used for initial load.Generate database operations1. Execute miscellaneous update, insert, and delete operationsExecute the following commands on the <source> system.Shell> cd <install location>Shell> sqlplus <login>/<password>SQL> @demo_ora_miscNote that DDL commands are not replicated.Verify change capture and delivery2. Verify results on the source systemExecute the following commands on the <source> system.SQL> select * from tcustmer;SQL> select * from tcustord;SQL> exitShell> ggsciGGSCI> SEND EXTRACT EORA<unique id>, REPORTGGSCI> VIEW REPORT EORA<unique id>3. Verify your results on the target systemExecute the following commands on the intermediary Windows system to verify the target data.If using iSeries Navigator version 6.x, go to My Connections > <target> > Databases > <dbname> > Schemas, and in the Database tasks below, select Run an SQL script.select * from <owner/schema>.TCUSTMER;select * from <owner/schema>.TCUSTORD;The two tables should each have a few rows in them.Execute the following commands on the intermediary Windows system to verify the target data.Shell> ggsciGGSCI> SEND REPLICAT RDB2<unique id>, REPORTGGSCI> VIEW REPORT RDB2<unique id>Turn off error handling4. Turn off initial load error handling for the running delivery processExecute the following commands on the intermediary Windows system.GGSCI> SEND REPLICAT RDB2<unique id>, NOHANDLECOLLISIONS5. Remove initial load error handling from the parameter fileExecute the following commands on the intermediary Windows system.GGSCI> EDIT PARAMS RDB2<unique id>Remove the HANDLECOLLISIONS parameter.。