先创建数据库:
通过Enterprise Login Assistant
按向导一步一步创建下去就OK.
图像界面创建:
第一步:创建用户
用控制台登录数据库
安全性->用户 新建
第二步:赋予用户相应的权限
赋予DBA权限(据说是创建表的时候要用的权限)
第三步:以该用户在控制台中登录
第四步:创建schema
创建一个表空间,转到第一步将用户的表空间改为这个表空间。
任意选中一个方案创建->表 方案选择用户名(用户对应方案),表空间选择新建的表空间。
================================================================================
代码创建:
oracle中方案的创建
第一步:创建用户
create user wsl
identified by kmust.net
default tablespace wsl
temporary tablespace temp;
identified by kmust.net
default tablespace wsl
temporary tablespace temp;
第二步:赋予用户相应的权限
grant connect,resource to aa;
第三步:以该用户登录
connect wsl/kmust.net@oracle
第四步:创建schema
create schema authorization wsl--创建名为wsl的方案
create table tab1(a number)
create table tab2(b number,c varchar2(10));
create table tab1(a number)
create table tab2(b number,c varchar2(10));