See live how easy it is to provision our Toolbox on a new database server properly, so that mails can be sent, Perl works correctly and other pitfalls are prevented. I will demonstrate the basic installation and configuration of TVD-Basenv and the very simple creation of a new 12cR2 database with TVD-Admin. Next step is a backup configuration for your database with TVD-Backup in 5 minutes and last but not least we create a Data Guard Setup with TVD-HA. I will tell you the answer to questions that people ask me all the time and show you all the new features.
6. MSSQL Server Tools - Architecture
TVD-Toolbox6 15.09.2017
Dedicated repository Database per instance called TVDTools
– Tables for the tool configuration and job control
– Tables for logging
Dedicated SQL Server Agent jobs execute the tasks
The jobs consider all databases by default
No initial configuration required – “set and forget”
TVD-Backup for SQL Server
TVD-Maintenance for SQL Server
9. TVD-Basenv Installation
TVD-Toolbox11 15.09.2017
Unzip the installation file somewhere
Start runInstaller in interactive mode or silent with a response file
Logout and login. Done!
Change from OS Perl to Oracle Home Perl
vi $ETC_BASE/sid._DEFAULT_.conf
TVDPERL_HOME=$TVD_BASE/tvdperl-all
TVDPERLBIN=$ORACLE_HOME/perl/bin/perl
# Relogin and verify
tvd_perl –v|-V
10. TVD-Basenv Usage
TVD-Toolbox12 15.09.2017
Set environment by entering the SID or SID.PDB_NAME
Navigating with aliases, show them with alih
Command line completion for srvctl
Use utility aliases like rmanch, sqh, dgh
Use TVD-Basenv scripts under $DBA_BASE/bin
– Starting/Stopping components
– Role-based Scheduling
– Housekeeping for log files
Configure your preferred aliases and variables in basen.conf, sid._DEFAULT_.conf or
sid.<SID>.conf
12. TVD-Admin Installation
TVD-Toolbox14 15.09.2017
TVD-Basenv must be installed
Just unpack TVD-Admin under $TVD_BASE
Resource TVD-Basenv (alias basenv)
Start newdb.ksh
cd $TVD_BASE
tar -xvzf tvdadmin-17.05.final.a_unix.tgz
basenv
newdb.ksh -v
13. TVD-Admin Database Creation
TVD-Toolbox15 15.09.2017
Forget the old template files under $TVDADMIN_BASE/templates/newdb/sample*!
newdb.ksh uses DBCA in silent mode and DBCA XML templates
Create a new template in interactive mode of newdb.ksh
Use this reference template for further non-interactive database creation
Adapt the XML template manually if necessary
newdb.ksh # Enter through the interactive mode
newdb.ksh
-c /u00/app/oracle/admin/DB01_SITE1/create/DB01_template.dbt
-s DB02 # New SID
-o /u00/app/oracle/product/12.2.0.1.EE
17. TIB Engine Concept
TVD-Toolbox19 15.09.2017
Backup configuration
z.B. RPO, retention
Backup window
e.g. time frame for full backup
Scheduler parameters
e.g. rating interval
Database situation
e.g. change rate, database load
Rating job in the
Repository
(algorithm)
Database belongs to
one configuration
and one window
Situation belongs
to one database
Repository
18. TVD-Backup and TIB Installation (1)
TVD-Toolbox20 15.09.2017
TVD-Basenv must be installed
Unpack TVD-Backup under $TVD_BASE
Resource TVD-Basenv (alias basenv)
Configure SMTP settings in TVD-Basenv
vib # $ETC_BASE/basenv.conf
TS_MAILHOST=smtp.mycompany.com
TS_MAILPORT=25
TS_MAILUSER=oracle_${HOSTNAME}@mycompany.com
19. TVD-Backup and TIB Installation (2)
TVD-Toolbox21 15.09.2017
Create a backup with rman_exec.[ksh|cmd], no mandatory configuration file needed
But CLI parameter could optionally be placed in the configuration file
# Compressed incremental level 0 backup to disk with mail
rman_exec.ksh --sid CDG1 --rmanscript bck_inc0
--catalog rman/rman@REPO1.world --compress
--mailaddr dba@mycompanyc.com:backup.mail:
# Archive log backup to SBT channel, parallelism 2
rman_exec.ksh --sid CDG1 --rmanscript bck_arc --channeltype sbt
--catalog rman/rman@REPO1.world --target-auto-catalog-register
--channelparam "SBT_LIBRARY=oracle.disksbt,ENV=(BACKUP_DIR=/bck)"
--channelno 2
20. TVD-Backup and TIB Installation (3)
TVD-Toolbox22 15.09.2017
Database point in time recovery with recovery_exec.[ksh|cmd]
Option --openresetlogs will finally open the database with resetlogs clause
Install the TIB repository with tibInstaller.[ksh|cmd]
Extract the web UI zip and edit config/application.yml
– Provide correct JDBC connect string
– Add TIB repo user and password
– Start application with startapp.[bat|sh]
Access via browser http://localhost:8010 and configure the policies and windows
recovery_exec.ksh --openresetlogs
21. TVD-Backup and TIB Installation (4)
TVD-Toolbox23 15.09.2017
Copy and adapt the configuration file of the TIB agent on the database server
Start the TIB Agent
cd $TVDBACKUP_BASE/etc
cp tibagent.conf.example tibagent.conf
vi tibagent.conf
# Add credentials to repository
BackupSchedulerCred="tibteagent/tibteagent@REPO1.world"
tibagent.ksh --start
tibagent.ksh --status
22. TVD-Backup and TIB Installation (5)
TVD-Toolbox24 15.09.2017
Finally register a database in TIB
– Command will assign the database to policy PRODCFG and window PRODWIN
– Database is already in RMAN catalog therefore --no-rman-register
– No initial full backup is required --no-full
tibctl.ksh register -d CDG1_SITE1
-c PRODCFG -w PRODWIN --no-rman-register --no-full
# Show registered database
tibctl.ksh db-config
24. TVD-HA Installation
TVD-Toolbox26 15.09.2017
TVD-Basenv must be installed
Unpack TVD-HA under $TVD_BASE
Resource TVD-Basenv (alias basenv)
Create configuration file and start dgadd.ksh
cd $TVD_BASE
tar -xvzf tvdha-17.05.final.a_unix.tgz
basenv
dgadd.ksh -v
cd $BE_ORA_ADMIN_SID/etc
cp $TVDHA_BASE/templates/dgadd.conf .
dgadd.ksh -d CDG1 -f /u00/app/oracle/admin/CDG1_SITE1/etc/dgadd.conf
25. TVD-HA Data Guard Monitoring
TVD-Toolbox27 15.09.2017
Some nice aliases for ad-hoc queries (sdg, sdgp, sdgs)
Use dgmon.[ksh|cmd] for frequent monitoring and alarming
Send alarms by mail or just analyze the created logfile under $LOG_BASE
TVD-HA has also a virtual IP (VIP) feature as known from clusters!
This ensures that the VIP is always active on the primary site.
cd $BE_ORA_ADMIN_SID
cp $TVDHA_BASE/templates/dgmon.conf .
vi dgmon.conf
dgmon.ksh -d CDG1 -f /u00/app/oracle/admin/CDG1_SITE1/etc/dgmon.conf
27. Conclusion
TVD-Toolbox29 15.09.2017
Very lean and fast deployment
Preconfigured but highly flexible for customer specific settings
Efficiency for repeatable daily business tasks
Standardization reduces mistakes
Automation frees up time for exciting things
Use our TOOLS and get in TOUCH with me in case of questions! I will help you out…
28. TVD-Toolbox30 15.09.2017
Screencasts for each chapter are available here:
https://tvdit.sharepoint.com/sites/bds/bds-infr/public/toolbox/80_Meeting/TE_09-
2017/How_modern_DBAs_can_use_our_efficient_Toolbox/Screencasts?csf=1
29. Q & A
Roland Stirnimann
Business Development Manager
roland.stirnimann@trivadis.com
Phone +41 58 459 52 47
15.09.2017 TVD-Toolbox31
30. Session Feedback – now
TVD-Toolbox32 15.09.2017
Please use the Trivadis Events mobile app to give feedback on each session
Use "My schedule" if you have registered for a session
Otherwise use "Agenda" and the search function
If the mobile app does not work (or if you have a Windows smartphone), use your
smartphone browser
– URL: http://trivadis.quickmobileplatform.eu/
– User name: <your_loginname> (such as “sro")
– Password: sent by e-mail...