Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How does one create, manage and drop database users?

create database drop manage Users
0
Posted

How does one create, manage and drop database users?

0

One can add, drop and manage database users from the Enterprise Manager GUI. The following examples will show how the same can be achieved from the SQL*Plus command prompt: CREATE USER scott IDENTIFIED BY tiger — Assign password DEFAULT TABLESPACE tools — Assign space for table and index segments TEMPORARY TABLESPACE temp; — Assign sort space DROP USER scott CASCADE; — Remove user After creating a new user, assign the required privileges: GRANT CONNECT, RESOURCE TO scott; GRANT DBA TO scott; — Make user a DB Administrator Remember to give the user some space quota on its tablespaces: ALTER USER scott QUOTA UNLIMITED ON tools; Oracle user accounts can be locked, unlocked, forced to choose new passwords, etc. For example, all accounts except SYS and SYSTEM will be locked after creating an Oracle9iDB database using the DB Configuration Assistant (dbca). DBA’s must unlock these accounts to make them available to users.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123