You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running against the Cloud Service requires an Oracle Cloud account. See
344
+
`Configure for the Cloud Service <https://nosql-python-sdk.readthedocs.io/en/latest/installation.html#configure-for-the-cloud-service>`_ for information on getting
345
+
an account and acquiring required credentials.
346
+
347
+
1. Collect the following information:
348
+
349
+
* Tenancy ID
350
+
* User ID
351
+
* API signing key (private key file in PEM format)
352
+
* Fingerprint for the public key uploaded to the user's account
353
+
* Private key pass phrase, needed only if the private key is encrypted
354
+
355
+
2. Edit *quickstart.py* and add your information. There are 2 ways to supply
356
+
credentials in the program:
357
+
358
+
* Directly provide the credential information. To use this method, modify the
359
+
values of the variables at the top of the program: *tenancy*, *user*,
360
+
*private_key*, *fingerprint*, and *pass_phrase*, setting them to the
361
+
corresponding information you've collected.
362
+
* Using a configuration file. In this case the information you've collected
363
+
goes into a file, ~/.oci/config. `Configure for the Cloud Service <https://nosql-python-sdk.readthedocs.io/en/latest/installation.html#configure-for-the-cloud-service>`_ describes the contents of the file. It will look like this::
364
+
365
+
[DEFAULT]
366
+
tenancy=<your-tenancy-id>
367
+
user=<your-user-id>
368
+
fingerprint=<fingerprint-of-your-public-key>
369
+
key_file=<path-to-your-private-key-file>
370
+
pass_phrase=<optional-pass-phrase-for-key-file>
371
+
372
+
3. Decide which region you want to use and modify the *cloud_region* variable to
373
+
the desired region. See `Regions documentation <https://nosql-python-sdk.readthedocs.io/en/latest/api/borneo.Regions.html>`_ for possible regions. Not all support
374
+
the Oracle NoSQL Database Cloud Service.
375
+
376
+
4. Run the program:
377
+
378
+
.. code-block:: pycon
379
+
380
+
python quickstart.py cloud
381
+
382
+
383
+
Run Against the Oracle NoSQL Cloud Simulator
384
+
============================================
385
+
386
+
Running against the Oracle NoSQL Cloud Simulator requires a running Cloud
387
+
Simulator instance. See `Using the Cloud Simulator <https://oracle.github.io/nosql-node-sdk/tutorial-connect-cloud.html#cloudsim>`_ for information on how to download
388
+
and start the Cloud Simulator.
389
+
390
+
1. Start the Cloud Simulator based on instructions above. Note the HTTP port
391
+
used. By default it is *8080* on *localhost*.
392
+
393
+
2. The *quickstart.py* program defaults to *localhost:8080* so if the Cloud
394
+
Simulator was started using default values no editing is required.
395
+
396
+
3. Run the program:
397
+
398
+
.. code-block:: pycon
399
+
400
+
python quickstart.py cloudsim
401
+
402
+
Run Against Oracle NoSQL on-premise
403
+
===================================
404
+
405
+
Running against the Oracle NoSQL Database on-premise requires a running
406
+
Oracle NoSQL Database instance as well as a running NoSQL Proxy server instance.
407
+
The program will connect to the proxy server.
408
+
409
+
See `Connecting to an On-Premise Oracle NoSQL Database <https://oracle.github.io/nosql-node-sdk/tutorial-connect-on-prem.html>`_ for information on how to download
410
+
and start the database instance and proxy server. The database and proxy should
411
+
be started without security enabled for this quickstart program to operate
412
+
correctly. A secure configuration requires a secure proxy and more complex
413
+
configuration.
414
+
415
+
1. Start the Oracle NoSQL Database and proxy server based on instructions above.
416
+
Note the HTTP port used. By default the endpoint is *localhost:80*.
417
+
418
+
2. The *quickstart.py* program defaults to *localhost:80*. If the proxy was started
419
+
using a different host or port edit the settings accordingly.
420
+
421
+
3. Run the program:
422
+
423
+
.. code-block:: pycon
424
+
425
+
python quickstart.py kvstore
426
+
87
427
=======
88
428
License
89
429
=======
90
430
91
431
Copyright (C) 2018, 2020 Oracle and/or its affiliates. All rights reserved.
92
432
93
433
This SDK is licensed under the Universal Permissive License 1.0. See
0 commit comments