
1.开启oracle服务,打开plsql工具,使用管理员账户登录
2.点左上角的新建SQL窗口
3.创建表空间。在sql窗口中输入create tablespace test datafile 'D:\test.ora' size 1000m这里的test为表空间名称,路径自己来命名。然后点执行按钮。
4.执行成功后,继续创建用户。输入create user test identified by test default tablespace test quota 500m on users这里第一个test为用户名,第二个test为密码,第三个test为表空间名。然后执行
5.成功创建用户后,进行授权。输入grant all privileges to test执行该语句给test用户授权,此时test用户就可以登录了
6.接下来使用test用户登录,就可以建表了
拓展资料:
甲骨文公司,全称甲骨文股份有限公司(甲骨文软件系统有限公司),是全球最大的企业级软件公司,总部位于美国加利福尼亚州的红木滩。1989年正式进入中国市场。2013年,甲骨文已超越 IBM ,成为继 Microsoft 后全球第二大软件公司。
2017年6月7日发布的2017年美国《财富》500强,甲骨文公司排名第81位。
2017年6月,《2017年BrandZ最具价值全球品牌100强》公布,甲骨文公司排名第46位
oracle创建表空间有多种方法,如下:
一、方法1:
代码创建,如下:
SQL>edi
已写入 file afiedt.buf
1 create tablespace ts1
2 datafile 'F:\oracle\product\10.2.0\oradata\orcl\ts1.dbf' size 100M
3 autoextend on next 1M maxsize 1000M
4* extent management local
SQL>/
表空间已创建。
二、方法2
用sqlplus,如下:
sqlplus / as sysdba
SQL>create tablespace tbsname datafile '文件路径及文件名' size 500m
三、方法3
通过脚本创建,如下:
Create tablespace StartDB
datafile 'e:\database\oracle\StartDB.dbf'
size 32m
autoextend on
next 32m maxsize 1024m
extent management local。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)