6.4 Save Python Objects in the Database
You can save Python objects in OML4Py datastores, which persist in the database.
You can grant or revoke read privilege access to a datastore or its objects to one or more users. You can restore the saved objects in another Python session.
The following topics describe the OML4Py functions for creating and managing datastores:
Topics:
- About OML4Py Datastores
In an OML4Py datastore, you can store Python objects, which you can then use in subsequent Python sessions; you can also make them available to other users or programs. - Save Objects to a Datastore
Theoml.ds.save
function saves one or more Python objects to a datastore. - Load Saved Objects From a Datastore
Theoml.ds.load
function loads one or more Python objects from a datastore into a Python session. - Get Information About Datastores
Theoml.ds.dir
function provides information about datastores. - Get Information About Datastore Objects
Theoml.ds.describe
function provides information about the objects in a datastore. - Delete Datastore Objects
Theoml.ds.delete
function deletes datastores or objects in a datastore. - Manage Access to Stored Objects
Theoml.grant
andoml.revoke
functions grant or revoke the read privilege to datastores or to user-defined Python functions in the script repository.
Parent topic: Get Started with Oracle Machine Learning for Python