Listener: LSNRCTL Start LSNRCTL Stop: Alter Database Mount Alter Database Open
Listener: LSNRCTL Start LSNRCTL Stop: Alter Database Mount Alter Database Open
STARTUP;
STARTUP NOMOUNT;
SHUTDOWN IMMEDIATE;
RESIZE 110M;
To find the current default temporary tablespace, you execute the following
statement:
SELECT
property_name,
property_value
FROM
database_properties
WHERE
property_name='DEFAULT_TEMP_TABLESPACE';
Here is the output:
SELECT
property_name,
property_value
FROM
database_properties
WHERE
property_name='DEFAULT_TEMP_TABLESPACE';
***To revoke all system privileges from a user, you can use the following statement:
REVOKE ALL PRIVILEGES FROM user;
***To set the password of the user dolphin expired, you use the following statement:
ALTER USER dolphin PASSWORD EXPIRE;
SELECT
username,
profile
FROM
dba_users
WHERE
username ='DOLPHIN';
USER ROLES;
DROP USER
If you specify the CASCADE option, Oracle will remove all schema objects of the user
before deleting the user.
If the schema objects of the dropped user are referenced by objects in other
schemas, Oracle will invalidate these objects after deleting the user.
Note that Oracle does not drop roles created by the user even after it deletes the user.
EXEC grant_select('OT','DW');