Add DB notes.
This commit is contained in:
parent
450905f8e6
commit
8cef11dff4
24
2/ASGBD/notes/commands.txt
Normal file
24
2/ASGBD/notes/commands.txt
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
CREATE USER username
|
||||||
|
IDENTIFIED BY password
|
||||||
|
[DEFAULT TABLESPACE tablespace]
|
||||||
|
[QUOTA {size | UNLIMITED} ON tablespace]
|
||||||
|
[PROFILE profile]
|
||||||
|
[PASSWORD EXPIRE]
|
||||||
|
[ACCOUNT {LOCK | UNLOCK}];
|
||||||
|
|
||||||
|
CREATE INDEX index_name
|
||||||
|
ON table_name(column1[,column2,...]);
|
||||||
|
|
||||||
|
GRANT {system_privileges | object_privileges }
|
||||||
|
TO user
|
||||||
|
[WITH ADMIN OPTION];
|
||||||
|
|
||||||
|
REVOKE {system_privilege | object_privilege } FROM user;
|
||||||
|
|
||||||
|
CREATE TABLESPACE tbs1
|
||||||
|
DATAFILE 'tbs1.dbf'
|
||||||
|
SIZE 1m
|
||||||
|
AUTOEXTEND 20m;
|
||||||
|
CREATE TABLE table_name(
|
||||||
|
...
|
||||||
|
) TABLESPACE tablespace_name;
|
Loading…
Reference in New Issue
Block a user