Académique Documents
Professionnel Documents
Culture Documents
4. View Sessions
SELECT SCHEMANAME, OSUSER, MACHINE, PROGRAM, STATE FROM V$SESSION;
5. View Services
SELECT SERVICE_ID, NAME, NETWORK_NAME FROM DBA_SERVICES;
2. Create tablespace
CREATE TABLESPACE myspace
DATAFILE 'datafile_directory_path\data_file_name.dbf'
SIZE 20M
AUTOEXTEND ON
NEXT 512K
MAXSIZE UNLIMITED;
3. Create User
CREATE USER charlie IDENTIFIED BY password123;
Note: Two administrative user accounts SYS and SYSTEM are created by default. Default password for SYS user is
CHANGE_ON_INSTALL and SYSTEM user is MANAGER
4. Change user password
ALTER USER charlie IDENTIFIED BY newpassword;
- or -
PASSWORD
10. View all user privileges including the privileges that are indirectly granted through roles
SELECT * FROM DBA_SYS_PRIVS WHERE GRANTEE='USERNAME' or GRANTEE in (SELECT
GRANTED_ROLE FROM DBA_ROLE_PRIVS WHERE GRANTEE='USERNAME');
Rate it
Related Articles
How to change the name of a Oracle DatabaseGracefully terminating sessions in
OracleRelocating and Renaming Datafiles in a Oracle TablespaceCreating Oracle
databases using DBCA