Skip to main content

Posts

Showing posts from August, 2017

REVOKE statement

REVOKE statement Use the REVOKE statement to remove privileges from a specific user or role, or from all users, to perform actions on database objects. You can also use the REVOKE statement to revoke a role from a user, from PUBLIC, or from another role. The following types of privileges can be revoked: Delete data from a specific table. Insert data into a specific table. Create a foreign key reference to the named table or to a subset of columns from a table. Select data from a table, view, or a subset of columns in a table. Create a trigger on a table. Update data in a table or in a subset of columns in a table. Run a specified routine (function or procedure). Use a sequence generator or a user-defined type. The  derby.database.sqlAuthorization  property must be set to  true  before you can use the GRANT statement or the REVOKE statement. The  derby.database.sqlAuthorization  property enables SQL Authorization mode. You can revoke privil...

GRANT statement

GRANT statement Use the GRANT statement to give privileges to a specific user or role, or to all users, to perform actions on database objects. You can also use the GRANT statement to grant a role to a user, to PUBLIC, or to another role. The following types of privileges can be granted: Delete data from a specific table. Insert data into a specific table. Create a foreign key reference to the named table or to a subset of columns from a table. Select data from a table, view, or a subset of columns in a table. Create a trigger on a table. Update data in a table or in a subset of columns in a table. Run a specified function or procedure. Use a sequence generator or a user-defined type. Before you issue a GRANT statement, check that the  derby.database.sqlAuthorization  property is set to  true . The  derby.database.sqlAuthorization  property enables the SQL Authorization mode. You can grant privileges on an object if you are the owner of the obj...

Using Flashback Drop and Managing the Recycle Bin

Using Flashback Drop and Managing the Recycle Bin When you drop a table, the database does not immediately remove the space associated with the table. The database renames the table and places it and any associated objects in a recycle bin, where, in case the table was dropped in error, it can be recovered at a later time. This feature is called  Flashback Drop, and the  FLASHBACK   TABLE  statement is used to restore the table. Before discussing the use of the  FLASHBACK   TABLE  statement for this purpose, it is important to understand how the recycle bin works, and how you manage its contents. This section contains the following topics: What Is the Recycle Bin? Viewing and Querying Objects in the Recycle Bin Purging Objects in the Recycle Bin Restoring Tables from the Recycle Bin What Is the Recycle Bin? The  recycle bin is actually a data dictionary table containing information about dropped objects. Dropped tables and any assoc...