發表文章

目前顯示的是 6月, 2018的文章

PostgreSQL 10 Logical Replication

圖片
發佈端 Publisher login as: root root@192.168.235.10's password: Last login: Mon Jun 11 10:14:09 2018 from 192.168.235.1 [root@vsource ~]# su - postgres Last login: Mon Jun 11 11:14:06 CST 2018 on pts/1 -bash-4.2$ psql psql (10.4) Type "help" for help. postgres=# ALTER SYSTEM SET listen_addresses to '*'; ALTER SYSTEM postgres=# ALTER SYSTEM SET wal_level = 'logical'; ALTER SYSTEM postgres=# SHOW max_wal_senders;  max_wal_senders -----------------  10 (1 row) postgres=# SHOW max_replication_slots;  max_replication_slots -----------------------  10 (1 row) postgres-# \q -bash-4.2$ /usr/pgsql-10/bin/pg_ctl -D $PGDATA restart waiting for server to shut down.... done server stopped waiting for server to start....2018-06-11 15:04:57.851 CST [3618] LOG:  listening on IPv4 address "0.0.0.0", port 5432 2018-06-11 15:04:57.851 CST [3618] LOG:  listening on IPv6 address "::", port

Oracle client silent install

圖片
首先先解壓縮Oracle Client軟體 使用以下命令啟動靜默安裝。 “-silent”參數表示這是無提示安裝,“-responseFile”參數定義響應文件的名稱和位置。  ./runInstaller -silent -responseFile /tmp/client/response/client_install.rsp 再執行response file之前需先編輯如下所示: [root@node1 response]# cat client_install.rsp #################################################################### ## Copyright(c) Oracle Corporation 1998,2017. All rights reserved.## ##                                                                ## ## Specify values for the variables listed below to customize     ## ## your installation.                                             ## ##                                                                ## ## Each variable is associated with a comment. The comment        ## ## can help to populate the variables with the appropriate        ## ## values.                                                        ## ##                                                                ## ## IMPORTANT NOTE: This file contains plain text

Oracle Instant Client Install

圖片
Oracle Instant Client下載ZIP安裝方式 http://www.oracle.com/technetwork/database/database-technologies/instant-client/downloads/index.html  查看下載zip檔並且解壓縮檔案 執行link後並設定library環境變數後再進行連線測試

Oracle RAC_11.2.0.4 上 Patch 步驟

圖片
Oracle 2018 Q2 的 CPU 已經 Release了,相信不少DBA已經開始準備進行Patch的更新了,最近才幫客戶更新完,在此跟大家分享步驟,但是最基本的 Patch 中的 Readme 還是得看一下! 環境介紹: OS: Linux Oracle RAC 架構 兩個Node 版本為 11.2.0.4 事前準備工作 1.  下載 OPatch 最新版 (Optional), 下載連結 2.  下載最新版 DB 與 GI PSU, 下載連結 2.1  以版本 11.2.0.4 來說 , 2018Q2的CPU更新,  下載 Patch 27475913 (GI including DB) 3.  閱讀 GI PSU 的 readme.html 3.1  此次 OPatch 版本要求為 11.2.0.3.6, 若 版本為 11.2.0.3.6以上則 不用升級 OPatch 3.2  若要升級 OPatch, 步驟為 : 3.2.1  Node1  備份舊版 , 分別備份 $GRID_HOME 與 $ORACLE_HOME su – grid [grid@node1]$ mv $ORACLE_HOME/OPatch $ORACLE_HOME/OPatch.pre6880880 su - oracle [oracle@node1]$ mv $ORACLE_HOME/OPatch $ORACLE_HOME/OPatch.pre6880880 3.2.2  Node1 解壓縮新版到 $GRID_HOME 與 $ORACLE_HOME su – grid [grid@Node1]$ export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch [grid@node1]$ cd $ORACLE_HOME/ [grid@node1]$ unzip p6880880_112000_Linux-x86-64.zip [grid@node1]$ ./OPatch/opatch version OPatch Version: 11.2.0.3.18 解壓縮到 $ORACL