7.4 Save Python Objects in the Database
You can save Python and OML4Py 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.savefunction saves one or more Python objects to a datastore. - Load Saved Objects From a Datastore
Theoml.ds.loadfunction loads one or more Python objects from a datastore into a Python session. - Get Information About Datastores
Theoml.ds.dirfunction provides information about datastores. - Get Information About Datastore Objects
Theoml.ds.describefunction provides information about the objects in a datastore. - Delete Datastore Objects
Theoml.ds.deletefunction deletes datastores or objects in a datastore. - Manage Access to Stored Objects
Theoml.grantandoml.revokefunctions 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