Oracle Database automatically creates a schema when you create a user.
Use the
CREATE
USER
statement to create and configure a database user.PREREQUISITES:
You must have the
CREATE
USER
system privilege. For the user to login to the Oracle Database, must have the CREATE
SESSION
system privilege. Therefore, after creating a user, you should grant the user at least the CREATE
SESSION
system privilege. EXAMPLE:
CREATE
USER DEVIDENTIFIED BY DEVDEFAULT TABLESPACE DATATEMPORARY TABLESPACE TEMPPROFILE DEFAULT
DEFAULT TABLESPACE Clause:
Specify the default tablespace for objects that the user creates. If you omit this clause, then the user's objects are stored in the database default tablespace. If no default tablespace has been specified for the database, then the user's objects are stored in the
SYSTEM
tablespace.TEMPORARY TABLESPACE Clause :
Specify the tablespace or tablespace group for the user's temporary segments. If you omit this clause, then the user's temporary segments are stored in the database default temporary tablespace or, if none has been specified, in the
SYSTEM
tablespace.ACCOUNT UNLOCK; - Specify
tablespace
to indicate the user's temporary tablespace. - Specify
tablespace_group_name
to indicate that the user can save temporary segments in any tablespace in the tablespace group specified bytablespace_group_name
.
No comments:
Post a Comment