ubTools Support http://jira.ubtools.com/jira/secure/IssueNavigator.jspa?reset=true&type=16&pid=10050&sorter/field=issuekey&sorter/order=DESC An XML representation of a search request en-us [PSUP-145] ubGuard 2.0.1 Commands http://jira.ubtools.com/jira/browse/PSUP-145 This document explains ubGuard commands. PSUP-145 ubGuard 2.0.1 Commands ubTools - ubGuard Major Closed Answered ubTools Support ubTools Support Sat, 25 Feb 2017 15:54:14 +0000 (UTC) Tue, 28 Feb 2017 09:06:41 +0000 (UTC) 0 <b>COMMANDS:</b> <p>ubGuard executable is &lt;UBGUARD_HOME&gt;/bin/ubguard.sh (ubguard.bat for Windows).</p> <p>Prerequisite for all commands:</p> <ul class="alternate" type="square"> <li>Regarding Oracle listeners must be running.</li> </ul> <p><b>Setup:</b></p> <p>Prerequisites:</p> <ul class="alternate" type="square"> <li>&lt;UBGUARD_HOME&gt;conf/setup.properties must be filled.</li> <li>Primary databases must be opened.</li> <li>Standby databases must be in MOUNT state.</li> </ul> <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent"> <pre>CMD&gt; ubguard.sh setup </pre> </div></div> <p><b>Start:</b></p> <p>Prerequisites:</p> <ul class="alternate" type="square"> <li>Primary database must be opened.</li> <li>Standby database must be in MOUNT state.</li> </ul> <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent"> <pre>CMD&gt; ubguard.sh start &lt;ubguard_alias&gt; </pre> </div></div> <p><b>Stop:</b></p> <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent"> <pre>CMD&gt; ubguard.sh stop &lt;ubguard_alias&gt; </pre> </div></div> <p><b>Status:</b></p> <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent"> <pre>CMD&gt; ubguard.sh status &lt;ubguard_alias&gt; </pre> </div></div> <p><b>Failover:</b></p> <p>Prerequisites:</p> <ul class="alternate" type="square"> <li>Standby database must be in MOUNT state.</li> </ul> <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent"> <pre>CMD&gt; ubguard.sh failover to &lt;ubguard_alias&gt; [FORCE] </pre> </div></div> <p><ins>Default Failover:</ins></p> <p>It is a failover without FORCE option. It gets all missing archivelogs from primary server, applies archivelogs to standby database and activates standby database as primary database. It causes less data loss, but longer failover time.</p> <p>The alternative manual method by RMAN on standby:</p> <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent"> <pre>CMD&gt; ubguard.sh stop &lt;ubguard_alias&gt; --&gt; Copy all missing archivelogs from primary server to standby server CMD&gt; SET ORACLE_SID=&lt;SID&gt; CMD&gt; rman target / RMAN&gt; SHUTDOWN IMMEDIATE; RMAN&gt; STARTUP MOUNT; RMAN&gt; RECOVER DATABASE; RMAN&gt; SQL 'ALTER DATABASE ACTIVATE STANDBY DATABASE'; RMAN&gt; ALTER DATABASE OPEN; RMAN&gt; EXIT; </pre> </div></div> <p><ins>Forced Failover:</ins></p> <p>It is a failover with FORCE option. It doesn't get archivelogs from primary server and it doen't apply archivelogs to standby database. It just activates standby database as primary database. It causes more data loss, but less failover time.</p> <p>The alternative manual method by RMAN on standby:</p> <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent"> <pre>CMD&gt; ubguard.sh stop &lt;ubguard_alias&gt; CMD&gt; SET ORACLE_SID=&lt;SID&gt; CMD&gt; rman target / RMAN&gt; SHUTDOWN IMMEDIATE; RMAN&gt; STARTUP MOUNT; RMAN&gt; SQL 'ALTER DATABASE ACTIVATE STANDBY DATABASE'; RMAN&gt; ALTER DATABASE OPEN; RMAN&gt; EXIT; </pre> </div></div> [PSUP-142] Change Log: ubGuard 1.1.3 http://jira.ubtools.com/jira/browse/PSUP-142 <b>CHANGE LOG:</b> <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent"> <pre>Since 1.0.3: -------------------- New features: 1- bin/ubguard.sh (bin/ubguard.bat for Windows) has been added to manage ubGuard. 2- bin/environment.sh (bin/environment.bat for Windows) has been added to set environment variables. 3- Windows service has been added. 4- New parameters: ssh.port.client: Defines local(outgoing) SSH port. Value 0 means random port. database.instance.alias: Defines ubGuard instance as an alias. database.instance.parent.alias: Defines ubGuard parent instance aliases. 5- Renamed parameters: ssh.port to ssh.port.server. 6- Removed parameters: database.instance.parent.host database.instance.parent.instance 1.1.2: ------------------- New features: 1- database.standby.archivelog.retention.time definition has changed. Archivelogs on standby are deleted if they are older than standby database time by this parameter. Improvements: 1- Database instance alias name is not required to be case sensitive. 2- Numbers of SQLs running on Primary have been reduced. 3- Archivelogs are deleted by RMAN. 4- Unnecessary privileges have been revoked from UBGUARD_ROLE role. Bugs: 1- While running OS commands, Runtime Exceptions could not be caught. 2- If parameter database.instance.alias is not upper case, Oracle directories UBGUARD_ASM_* and UBGUARD_TMP_* are recreated unnecessarily. 3- Wrong file separator used for ASM on Windows. 4- bin/ directory is included in ubGuard.jar unnecessarily. 5- bin/ubguard.sh and bin/environment.sh are in DOS format. 1.1.3: ------------------- Bug: 1- Unable to catalog archivelogs on Windows. </pre> </div></div> PSUP-142 Change Log: ubGuard 1.1.3 ubTools - ubGuard Minor Closed Product Update (Minor) ubTools Support ubTools Support Mon, 25 May 2015 16:27:39 +0000 (UTC) Mon, 25 May 2015 16:38:15 +0000 (UTC) ubGuard 1.1.3 0 [PSUP-140] Change Log: ubGuard 1.0.3 http://jira.ubtools.com/jira/browse/PSUP-140 <b>CHANGE LOG:</b> <p>Cumulative from the following versions:</p> <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent"> <pre> * 1.0.0: * ------------------- * New features: * 1- ubGuard is installed in standby severs instead of primary servers. * 2- Cascaded standby: A standby gets archivelogs from another standby. * 3- The content of conf/setup.properties changed. * 4- Applied archivelog can be deleted from standby server with time delay. * 5- SSH connect timeout added. * 6- Single ubGuard home can bee used for multiple local standby databases. * 7- conf/message.properties file added. * * 1.0.1: * ------------------- * Bug: * 1- Archivelogs moved from ASM to primary TMP directory not deleted. * * 1.0.2: * ------------------- * Bug: * 1- Windows not identified. * * * 1.0.3: * ------------------- * Bugs: * 1- Unable to get ORACLE_HOME environment variable in Windows. * 2- Existing archivelog in standby is retransffered in Windows. </pre> </div></div> PSUP-140 Change Log: ubGuard 1.0.3 ubTools - ubGuard Major Closed Product Update (Major) ubTools Support ubTools Support Sat, 22 Mar 2014 13:54:20 +0000 (UTC) Sat, 22 Mar 2014 13:55:11 +0000 (UTC) ubGuard 1.0.3 0 [PSUP-138] Change Log: ubGuard 0.3.2 http://jira.ubtools.com/jira/browse/PSUP-138 <b>CHANGE LOG:</b> <p>Cumulative from the following versions:</p> <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent"> <pre>* 0.2.3: * ------------------- * 1- SSH compression has been added. * The parameter: ssh.compression.level * No compression:0, Max compression:9, Default compression:-1(that is 6) * * 0.3.0: * ------------------- * New Features: * 1- Forcing archivelog generation in each archivelog transfer period has been removed. * Use Oracle ARCHIVE_LAG_TARGET initialization parameter instead. * 2- The changed messages: * old: ubGuard-1 [&lt;returnCode&gt;]: Unable to acquire lock by DBMS_LOCK.REQUEST(). * new: ubGuard-1 [&lt;taskID&gt;,&lt;returnCode&gt;]: Unable to acquire task lock. * * old: ubGuard-2 [&lt;returnCode&gt;]: Unable to release lock by DBMS_LOCK.RELEASE(). * new: ubGuard-2 [&lt;taskID&gt;,&lt;returnCode&gt;]: Unable to release task lock. * * old: ubGuard-5 No UBGUARD_TMP_ARCHIVE directory found in ALL_DIRECTORIES. * new: ubGuard-5 Oracle directory UBGUARD_TMP_ARCHIVE not defined. * * old: ubGuard-4 No standby found. * new: ubGuard-4 Standby not defined. * * 3- The removed messages: * ubGuard-3: &lt;message&gt; * ubGuard-6: Archivelog transfer period not defined. * * Bugs: * 1- Time portion of ERROR_LOG.ERROR_DATE column is lost. * 2- If an Oracle RAC thread reopened, it transfers archivelogs which are already in-transmit in another node. * * * 0.3.1d3: * ------------------- * Bug: * 1- File name separator on standby windows is not handled correctly. * * 0.3.1d5: * ------------------- * Bug: * 1- Recover SCN of standby database computed wrong after removing forcing archivelog generation * which is introduced in ubGuard 0.3.0. * * 0.3.1d6: * ------------------- * New features: * 1- Setting up mail.transport.user and mail.transport.password parameters are optional. * SMTP authentication is forced only if both parameters are set. * 2- Java Mail debug is set to diagnose a problem. * * 0.3.1d7: * ------------------- * Bug: * 1- Recovery start SCN is wrong if datafile is older than controlfile. * * 0.3.2: * ------------------- * New feature: * 1- Unhandled exceptions are written to log/ubGuard.log. * * Bug: * 1- Already deleted archivedlogs are tried to be deleted again. </pre> </div></div> PSUP-138 Change Log: ubGuard 0.3.2 ubTools - ubGuard Minor Closed Product Update (Minor) ubTools Support ubTools Support Mon, 30 Sep 2013 17:24:41 +0000 (UTC) Mon, 30 Sep 2013 17:25:29 +0000 (UTC) ubGuard 0.3.2 0 [PSUP-137] Change Log: ubGuard 0.2.2 http://jira.ubtools.com/jira/browse/PSUP-137 <b>Change Log:</b> <p>Initial version.</p> PSUP-137 Change Log: ubGuard 0.2.2 ubTools - ubGuard Major Closed Product Update (Major) ubTools Support ubTools Support Thu, 28 Feb 2013 15:37:17 +0000 (UTC) Thu, 28 Feb 2013 15:46:46 +0000 (UTC) ubGuard 0.2.2 0