Start KVLite
Perform the following steps to start a KVLite instance:
To start KVLite in secure mode:
- 
                        Open a terminal and cdinto thekv-23.1.21directory to start the NoSQL Database server.$ cd kv-23.1.21 $ java -Xmx64m -Xms64m -jar lib/kvstore.jar kvlite [-storagedirsizegb N]The storagedirsizegbis an optional parameter. This parameter can be used to control the size of the storage directory for a new instance. The value of N is in GB and must be >= 1. By default the store created has a size of 10GB and this flag must be used to override that. The size cannot be changed once the instance has been created and use of the flag on an existing instance is ignored.Expected Output: Generated password for user admin: <password> User login file: ./kvroot/security/user.security Created new kvlite store with args: -root ./kvroot -store kvstore -host localhost -port 5000 -storagedirsizegb 15 -secure-config enableWhere kvstoreis the name of the store,localhostis the name of the local host, andkvrootis the directory where Oracle NoSQL Database data is placed. It takes about 10 - 60 seconds before this message is issued, depending on the speed of your machine.Note that you will not get the command line prompt back until you stop the KVLite. 
- 
                        In a second shell, cdinto thekv-23.1.21directory and ping your KVLite instance to test that it's alive. The details of the output will vary but you should see a running store.$ cd kv-23.1.21 $ java -Xmx64m -Xms64m -jar lib/kvstore.jar ping -host localhost -port 5000 -security kvroot/security/user.securityExpected output: Pinging components of store kvstore based upon topology sequence #14 10 partitions and 1 storage nodes Time: 2023-05-23 06:15:34 UTC Version: 23.1.21 Shard Status: healthy: 1 writable-degraded: 0 read-only: 0 offline: 0 total: 1 Admin Status: healthy Zone [name=KVLite id=zn1 type=PRIMARY allowArbiters=false masterAffinity=false] RN Status: online: 1 read-only: 0 offline: 0 Storage Node [sn1] on phoenix126166: 5000 Zone: [name=KVLite id=zn1 type=PRIMARY allowArbiters=false masterAffinity=false] Status: RUNNING Ver: 23.1.21 2023-05-19 18:31:46 UTC Build id: 477e7f102ab4 Edition: Community isMasterBalanced: true serviceStartTime: 2023-05-23 06:13:24 UTC Admin [admin1] Status: RUNNING,MASTER serviceStartTime: 2023-05-23 06:13:29 UTC stateChangeTime: 2023-05-23 06:13:29 UTC availableStorageSize: 2 GB Rep Node [rg1-rn1] Status: RUNNING,MASTER sequenceNumber: 322 haPort: 5003 availableStorageSize: 9 GB storageType: HD serviceStartTime: 2023-05-23 06:13:32 UTC stateChangeTime: 2023-05-23 06:13:32 UTCThe status indicates that the KVLite is up and running. 
To start KVLite in unsecure mode:
- 
                        Open a terminal and cdinto thekv-23.1.21directory.$ cd kv-23.1.21
- 
                        Execute the kvstore.jarfile using the-enable-secure disableflag to disable security and start KVLite in unsecure mode.$ java -jar lib/kvstore.jar kvlite [-storagedirsizegb N ] -secure-config disableThe storagedirsizegbis an optional parameter. This parameter can be used to control the size of the storage directory for a new instance. The value of N is in GB and must be >= 1. By default the store created has a size of 10GB and this flag must be used to override that. The size cannot be changed once the instance has been created and use of the flag on an existing instance is ignored.
- 
                        In a second shell, cdinto thekv-23.1.21directory and ping your KVLite instance to test that it's alive. You should see a running store.$ cd kv-23.1.21 $ java -jar lib/kvstore.jar ping -host localhost -port 5000Expected output: Pinging components of store kvstore based upon topology sequence #14 10 partitions and 1 storage nodes Time: 2023-05-23 08:30:00 UTC Version: 23.1.21 Shard Status: healthy: 1 writable-degraded: 0 read-only: 0 offline: 0 total: 1 Admin Status: healthy Zone [name=KVLite id=zn1 type=PRIMARY allowArbiters=false masterAffinity=false] RN Status: online: 1 read-only: 0 offline: 0 Storage Node [sn1] on phoenix126166: 5000 Zone: [name=KVLite id=zn1 type=PRIMARY allowArbiters=false masterAffinity=false] Status: RUNNING Ver: 23.1.21 2023-05-19 18:31:46 UTC Build id: 477e7f102ab4 Edition: Community isMasterBalanced: true serviceStartTime: 2023-05-23 08:29:14 UTC Admin [admin1] Status: RUNNING,MASTER serviceStartTime: 2023-05-23 08:29:17 UTC stateChangeTime: 2023-05-23 08:29:17 UTC availableStorageSize: 2 GB Rep Node [rg1-rn1] Status: RUNNING,MASTER sequenceNumber: 51 haPort: 5003 availableStorageSize: 9 GB storageType: HD serviceStartTime: 2023-05-23 08:29:19 UTC stateChangeTime: 2023-05-23 08:29:19 UTCThe status indicates that the KVLite is up and running.