0% found this document useful (0 votes)
4 views

USER MANAGEMENT CREATION

The document outlines the steps for user management creation in Oracle, including creating a listener and user, granting privileges, and managing user accounts. It provides SQL commands for viewing users, creating a user, altering user passwords, unlocking accounts, and dropping users. Additionally, it emphasizes the importance of taking an export before dropping a user.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

USER MANAGEMENT CREATION

The document outlines the steps for user management creation in Oracle, including creating a listener and user, granting privileges, and managing user accounts. It provides SQL commands for viewing users, creating a user, altering user passwords, unlocking accounts, and dropping users. Additionally, it emphasizes the importance of taking an export before dropping a user.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

USER MANAGEMENT CREATION

!env | grep ORA


SQL> select name,open_mode,database_role from v$database;

create listener
location-/oracle/oracle19c/app/product/19c/dbhome/network/admin

vi listener.ora

LISTENER_SBI =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.29.75)(PORT = 1532))
)
SID_LIST_LISTENER_SBI =
(SID_LIST=
(SID_DESC=
(SID_NAME=SBI)
(ORACLE_HOME=/oracle/oracle19c/app/product/19c/dbhome/)
)
)

to see users- select


username,account_status,default_tablespace,TEMPORARY_TABLESPACE,created from
dba_users;

select name from v$tablespace;

create user Sandeep identified by password default tablespace SYSAUX temporary


tablespace TEMP1;

privilages:
grant connect to user;
grant create session to user;
grant resource to user;
alter user UserName quota unlimited on 'TablespaceName'

to connecgt to user in oracledba- conn USER/PASSWORD

sho user

conn / as sysdba

to c the RESOURCE-GRANTE-PRIvilages- select * from dba_sys_privs where


grantee='RESOURCE';

to change password= alter user USERNAME identified by NewPassword;

to unlock- alter user USERNAME account Lock/Unlock;

TO roleback grantes=
- select * from dba_role_privs where grantee='UserName';
- revoke RESOURCE from User;

DRop User:
----------
take export before drop
drop user username cascade

You might also like