To create a database user, use the sqlplus utility.
Become superuser by issuing the following command:
su - oracle |
Start the sqlplus utility:
sqlplus /nolog |
At the prompt, connect to the database:
sqlplus>connect / as sysdba |
Create a user and specify the password for the user:
sqlplus>create user user-name identified by password; |
The password value must be at least six characters.
For example, to specify a user named APP and a password of app123, you would use the following command:
sqlplus>create user APP identified by app123; |
Grant privileges to the user you created:
sqlplus>grant connect, resource, dba to APP; |
Exit the utility:
exit |