1、创建临时表空间
create tablespace ORACLE_HISTORY logging datafile '/home/oracle/oraclehistory.dbf' size 30m autoextend on next 28m extent management local;
2、创建索引表空间
create tablespace ORACLE_INDEX logging datafile '/home/oracle/oracleindex.dbf' size 30m autoextend on next 22m extent management local;
3、创建数据表空间
create tablespace ORACLE_DATA logging datafile '/home/oracle/oracledata.dbf' size 30m autoextend on next 24m extent management local;
3.建用户
create user oracle identified by oracle default tablespace ORACLE_DATA temporary tablespace TEMP profile DEFAULT quota unlimited on oracle_HISTORY quota unlimited on oracle_DATA quota unlimited on oracle_INDEX;
4.赋权
grant connect to oracle;
grant exp_full_database to oracle;
grant imp_full_database to oracle;
grant create session to oracle;
alter user oracle quota 10M on users;
create tablespace ORACLE_HISTORY logging datafile '/home/oracle/oraclehistory.dbf' size 30m autoextend on next 28m extent management local;
2、创建索引表空间
create tablespace ORACLE_INDEX logging datafile '/home/oracle/oracleindex.dbf' size 30m autoextend on next 22m extent management local;
3、创建数据表空间
create tablespace ORACLE_DATA logging datafile '/home/oracle/oracledata.dbf' size 30m autoextend on next 24m extent management local;
3.建用户
create user oracle identified by oracle default tablespace ORACLE_DATA temporary tablespace TEMP profile DEFAULT quota unlimited on oracle_HISTORY quota unlimited on oracle_DATA quota unlimited on oracle_INDEX;
4.赋权
grant connect to oracle;
grant exp_full_database to oracle;
grant imp_full_database to oracle;
grant create session to oracle;
alter user oracle quota 10M on users;