Oracle 创建用户和表空间
使用sys 账户登录
建立临时表空间
CREATE TEMPORARY TABLESPACE TEMP_POS
TEMPFILE '/oracle/oradata/POS/TEMP_POS.DBF'
SIZE 50M
AUTOEXTEND ON
NEXT 50M
EXTENT MANAGEMENT LOCAL;
建立表空间
CREATE TABLESPACE POS
LOGGING
DATAFILE '/oracle/oradata/POS/POS.DBF'
SIZE 50M
AUTOEXTEND ON
NEXT 50M
EXTENT MANAGEMENT LOCAL;
创建用户绑定表空间
CREATE USER pos IDENTIFIED BY pos123456
DEFAULT TABLESPACE POS
TEMPORARY TABLESPACE TEMP_POS;
CREATE USER pos IDENTIFIED BY PASSWORD;
CREATE USER C
ALTER USER pos DEFAULT TABLESPACE POS;
ALTER USER pos TEMPORARY TABLESPACE TEMP_POS;
授权
GRANT CONNECT,RESOURCE,DBA TO pos;