oracle 创建元素

数据库建立公共表

创建一张实例中所有用户都能访问的表:

你创建个表 比如 我在test用户下创建test表
赋权  grant selet on test to public;
创建公共同义词 create public synonym test for test.test;

这样所有的用户都可以select 这个表了

创建表空间

SQL> create tablespace lixin datafile 'E:\oracle\product\10.2.0\oradata\orcl\lixin.dbf' size 1000m autoextend on next 10m maxsize unlimited;
SQL>
 
Tablespace created
 
SQL> alter database datafile 'E:\oracle\product\10.2.0\oradata\orcl\lixin.dbf' autoextend on;
 
Database altered

猜你喜欢

转载自cnmcxiari.iteye.com/blog/1313690