Oracle创建与扩建表空间(支持Linux)
1.Oracle创建表空间
- create tablespace JWZH
- logging
- datafile '/opt/oracle/oradata/dqjz/JWZH01.dbf'
- size 30720m
- autoextend on
- next 50m maxsize 32768m
- extent management local;
2.在原表空间的基础上扩建表空间
alter tablespace JWZH add datafile '/u01/app/oracle/product/10.2.0/oradata/dqjz/JWZH01.dbf' size 10240m; 3.
拷贝别人的代码,以后备用
/*第1步:创建临时表空间 */
- create temporary tablespace user_temp
- tempfile 'D:\oracle\oradata\Oracle9i\user_temp.dbf'
/*第2步:创建数据表空间 */
- create tablespace test_data
- logging
- datafile 'D:\oracle\oradata\Oracle9i\user_data.dbf'
- size 50m
- autoextend on
- next 50m maxsize 20480m
- extent management local;
/*第3步:创建用户并指定表空间 */
- create user username identified by password
- default tablespace user_data
- temporary tablespace user_temp;
/*第4步:给用户授予权限 */
grant connect,resource,dba to username;
相关推荐
赵继业 2020-08-17
FightFourEggs 2020-08-16
大慧 2020-05-27
zhangchaoming 2020-04-20
Carlos 2020-02-03
haiross 2020-01-13
Streamoutput 2019-12-31
pfpfpfpfpf 2014-06-03
spurity 2020-11-10
bfcady 2020-08-16
Hody 2020-08-16
lidongliang 2020-08-16
流云追风 2020-07-04
dataminer 2020-06-25
Kele0 2020-06-13
一次次尝试 2020-06-13
warden00 2020-06-11