Files
old_fushimai_wms_1/db/创建表空间和用户.sql

55 lines
1.3 KiB
MySQL
Raw Normal View History

2025-09-12 15:53:10 +08:00
--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