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.
350
+
`Configure for the Cloud Service <https://nosql-python-sdk.readthedocs.io/en/
351
+
latest/installation.html#configure-for-the-cloud-service>`_ for information on
352
+
getting an account and acquiring required credentials.
346
353
347
354
1. Collect the following information:
348
355
@@ -352,15 +359,18 @@ an account and acquiring required credentials.
352
359
* Fingerprint for the public key uploaded to the user's account
353
360
* Private key pass phrase, needed only if the private key is encrypted
354
361
355
-
2. Edit *quickstart.py* and add your information. There are 2 ways to supply
362
+
2. Edit *quickstart.py* and add your information. There are 2 ways to supply
356
363
credentials in the program:
357
364
358
365
* Directly provide the credential information. To use this method, modify the
359
366
values of the variables at the top of the program: *tenancy*, *user*,
360
367
*private_key*, *fingerprint*, and *pass_phrase*, setting them to the
361
368
corresponding information you've collected.
362
369
* 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::
370
+
goes into a file, ~/.oci/config. `Configure for the Cloud Service <https://
the-cloud-service>`_ describes the contents of the file. It will look like
373
+
this::
364
374
365
375
[DEFAULT]
366
376
tenancy=<your-tenancy-id>
@@ -370,22 +380,23 @@ an account and acquiring required credentials.
370
380
pass_phrase=<optional-pass-phrase-for-key-file>
371
381
372
382
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.
383
+
the desired region. See `Regions documentation <https://nosql-python-sdk.
384
+
readthedocs.io/en/latest/api/borneo.Regions.html>`_ for possible regions. Not
385
+
all support the Oracle NoSQL Database Cloud Service.
375
386
376
387
4. Run the program:
377
388
378
389
.. code-block:: pycon
379
390
380
391
python quickstart.py cloud
381
392
382
-
383
393
Run Against the Oracle NoSQL Cloud Simulator
384
394
============================================
385
395
386
396
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.
397
+
Simulator instance. See `Using the Cloud Simulator <https://oracle.github.io/
398
+
nosql-node-sdk/tutorial-connect-cloud.html#cloudsim>`_ for information on how to
399
+
download and start the Cloud Simulator.
389
400
390
401
1. Start the Cloud Simulator based on instructions above. Note the HTTP port
391
402
used. By default it is *8080* on *localhost*.
@@ -402,21 +413,22 @@ and start the Cloud Simulator.
402
413
Run Against Oracle NoSQL on-premise
403
414
===================================
404
415
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.
416
+
Running against the Oracle NoSQL Database on-premise requires a running Oracle
417
+
NoSQL Database instance as well as a running NoSQL Proxy server instance. The
418
+
program will connect to the proxy server.
408
419
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.
420
+
See `Connecting to an On-Premise Oracle NoSQL Database <https://oracle.github.io
421
+
/nosql-node-sdk/tutorial-connect-on-prem.html>`_ for information on how to
422
+
download and start the database instance and proxy server. The database and
423
+
proxy should be started without security enabled for this quickstart program to
424
+
operate correctly. A secure configuration requires a secure proxy and more
425
+
complex configuration.
414
426
415
-
1. Start the Oracle NoSQL Database and proxy server based on instructions above.
427
+
1. Start the Oracle NoSQL Database and proxy server based on instructions above.
416
428
Note the HTTP port used. By default the endpoint is *localhost:80*.
417
429
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.
430
+
2. The *quickstart.py* program defaults to *localhost:80*. If the proxy was
431
+
started using a different host or port edit the settings accordingly.
0 commit comments