第一次提交
This commit is contained in:
54
db/创建表空间和用户.sql
Normal file
54
db/创建表空间和用户.sql
Normal file
@@ -0,0 +1,54 @@
|
||||
--DROP TABLESPACE WXZD_WMS_USERS INCLUDING CONTENTS AND DATAFILES;
|
||||
|
||||
|
||||
create tablespace WXZD_WMS_FIXED_DATA
|
||||
datafile
|
||||
'E:\oracle\data\WXZD_WMS_fixedData01.dbf'
|
||||
size 10M
|
||||
reuse
|
||||
autoextend on
|
||||
next 1M
|
||||
maxsize UNLIMITED;
|
||||
|
||||
create tablespace WXZD_WMS_INDX
|
||||
datafile
|
||||
'E:\oracle\data\WXZD_WMS_indx01.dbf'
|
||||
size 10M
|
||||
reuse
|
||||
autoextend on
|
||||
next 1M
|
||||
maxsize UNLIMITED;
|
||||
|
||||
create tablespace WXZD_WMS_USERS
|
||||
datafile
|
||||
'E:\oracle\data\WXZD_WMS_users01.dbf'
|
||||
size 10M
|
||||
reuse
|
||||
autoextend on
|
||||
next 1M
|
||||
maxsize UNLIMITED;
|
||||
commit;
|
||||
/
|
||||
--DROP USER cqqswms CASCADE
|
||||
CREATE USER cqqswms IDENTIFIED BY wms DEFAULT TABLESPACE WXZD_WMS_USERS;
|
||||
GRANT resource to cqqswms;
|
||||
grant unlimited tablespace to cqqswms;--12C<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>û<EFBFBD>б<EFBFBD><EFBFBD>ռ<EFBFBD>ʹ<EFBFBD><EFBFBD>Ȩ<EFBFBD><EFBFBD>
|
||||
GRANT connect to cqqswms;
|
||||
GRANT CREATE SESSION to cqqswms;
|
||||
GRANT CREATE TABLE to cqqswms;
|
||||
GRANT CREATE VIEW to cqqswms;
|
||||
GRANT CREATE TRIGGER to cqqswms;
|
||||
GRANT CREATE PROCEDURE to cqqswms;
|
||||
GRANT CREATE SEQUENCE to cqqswms;
|
||||
|
||||
grant create any synonym to cqqswms;
|
||||
|
||||
grant create public synonym to cqqswms;
|
||||
|
||||
grant create database link to cqqswms;
|
||||
|
||||
grant create public database link to cqqswms;
|
||||
|
||||
grant create session to cqqswms;
|
||||
/
|
||||
imp cqqswms/wms@orcl file=E:\test\452\db\20150308.dmp full=y
|
||||
Reference in New Issue
Block a user