Oracle NoSQL Database Administrator's Guide

Legal Notice

Copyright © 2011, 2012, 2013, 2014, Oracle and/or its affiliates. All rights reserved.

This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.

The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing.

If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable:

U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs. No other rights are granted to the U.S. Government.

This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications.

Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.

Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group.

This software or hardware and documentation may provide access to or information on content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services.


Table of Contents

Conventions Used in This Book
1. Introduction to Oracle NoSQL Database
The KVStore
Replication Nodes and Shards
Replication Factor
Access and Security
The Administration Command Line Interface
The Administration Command Line Interface history
The Admin Console
Oracle External Tables Integration
Coherence Integration
2. Installing Oracle NoSQL Database
Installation Prerequisites
Installation Configuration
3. Plans
Using Plans
Feedback While a Plan is Running
Plan States
Reviewing Plans
4. Configuring the KVStore
Configuration Overview
Start the Administration CLI
The plan Commands
Configure and Start a Set of Storage Nodes
Name your KVStore
Create a Zone
Create an Administration Process on a Specific Host
Create a Storage Node Pool
Create the Remainder of your Storage Nodes
Create and Deploy Replication Nodes
Configuring with Multiple Zones
Using a Script to Configure the Store
Smoke Testing the System
Where to Find Error Information
Service States
Useful Commands
5. Determining Your Store's Configuration
Steps for Changing the Store's Topology
Make the Topology Candidate
Transform the Topology Candidate
View the Topology Candidate
Validate the Topology Candidate
Preview the Topology Candidate
Deploy the Topology Candidate
Verify the Store's Current Topology
6. Upgrading an Existing Oracle NoSQL Database Deployment
Preparing to Upgrade
General Upgrade Notes
Upgrade from Release 2.0 to Release 3.0
Using a Script to Upgrade to Release 3
Upgrade from NoSQL DB Release 1.0 to NoSQL DB Release 2.0
7. Administrative Procedures
Backing Up the Store
Taking a Snapshot
Snapshot Management
Recovering the Store
Using the Load Program
Restoring Directly from a Snapshot
Managing Avro Schema
Adding Schema
Changing Schema
Disabling and Enabling Schema
Showing Schema
Replacing a Failed Storage Node
Replacing a Failed Disk
Repairing a Failed Zone
Addressing Lost Admin Service Quorum
Verifying the Store
Monitoring the Store
Setting Store Parameters
Changing Parameters
Setting Store Wide Policy Parameters
Admin Parameters
Storage Node Parameters
Replication Node Parameters
Security Parameters
Admin Restart
Replication Node Restart
Removing an Oracle NoSQL Database Deployment
Fixing Incorrect Storage Node HA Port Ranges
8. Standardized Monitoring Interfaces
Simple Network Management Protocol (SNMP) and Java Management Extensions (JMX)
Enabling Monitoring
Displaying the NoSQL DB MBeans
9. Integrating Oracle Enterprise Manager (OEM) with Oracle NoSQL Database
Importing and Deploying the EM Plug-in
Adding NoSQL Database Targets
Components of a NoSQL Store
Store Targets
Store Page
Storage Node Page
Shard Page
Replication Node Page
A. KVStore Command Reference
CLI Commands and Subcommands
Utility commands
B. Initial Capacity Planning
Shard Capacity
Application Characteristics
Hardware Characteristics
Shard Storage and Throughput Capacities
Memory and Network Configuration
Estimate total Shards and Machines
Number of Partitions
C. Machine Tuning
Linux Page Cache Tuning
OS User Limits
File Descriptor Limits
Process and Thread Limits
Linux Network Configuration Settings
Server Socket Backlog
Isolating HA Network Traffic
Receive Packet Steering
D. Solid State Drives (SSDs)
Trim requirements
Enabling Trim
E. Third Party Licenses