Oracle创建表空间、用户、赋予权限、修改密码

1、创建表空间
CREATE SMALLFILE TABLESPACE "TS_TEST" DATAFILE'/home/oracle/oradata/datafile/test.dbf' SIZE 500M AUTOEXTEND ON NEXT 1M MAXSIZE UNLIMITED LOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO DEFAULT NOCOMPRESS; 


2、创建用户
CREATE USER TEST PROFILE "DEFAULT" IDENTIFIED BY test DEFAULT TABLESPACE "TS_TEST" TEMPORARY TABLESPACE "TEMP" ACCOUNT UNLOCK;


3、赋予DBA权限
GRANT "CONNECT","DBA","EXP_FULL_DATABASE","IMP_FULL_DATABASE" TO TEST;


4、修改密码

alter user TEST identified by oracle_test;


5、查看表空间

SELECT * FROM dba_tablespaces;

select * from dba_data_files


--------------------------------------------------------------

删除用户、删除表空间:

https://blog.csdn.net/oscar999/article/details/7468153



你可能感兴趣的:(Oracle)