CREATE TABLE Space
[SQL]View Plaincopy
- Create tablespace ' < database name > ' datafile ' < storage path > '
- Size 500M
- Default storage
- (Initial 200m
- Next 50m
- Minextents 20
- Maxextents 500)
- Online
Example:
[SQL]View Plaincopy
- Create tablespace itmyhome datafile ' D:\oracle\product\10.2.0\oradata\orcl\itmyhome.dbf '
- Size 500M
- Default storage
- (Initial 200m
- Next 50m
- Minextents 20
- Maxextents 500)
- Online
< database name > without quotation marks
Create user
[SQL]View Plaincopy
- --Create User (specify default tablespace and temporary tablespace Specify connection state)
- CREATE user < username > profile default identified by < password > default
- Tablespace < tablespace name > temporary tablespace TEMP account UNLOCK;
Authorized
[SQL]View Plaincopy
- Grant DBA to Testauth;
- Grant Connect,resource to Testauth;
Oracle Import and Export:
[SQL]View Plaincopy
- Exp Henanprovince/[email PROTECTED]/ORCL File=d:\province.dmp
- Imp henanprovince1/[email PROTECTED]/ORCL file=d:\province.dmp full=y
Oracle creates table spaces, user