oracle 建表
来源:互联网 发布:数据库范式例题 编辑:程序博客网 时间:2024/06/11 08:06
imp system/sys@TEST file=d:\j3.2017-08-23.bak
修改密码
alter user system identified by system;
以sysdba身份登录
sqlplus / as sysdba
--表空间
create tablespace J3SPACE
datafile 'D:/oracle_tablespaces/J3SPACE_TBSPACE.dbf'
size 1500M
autoextend on next 5M maxsize 3000M;
用户
create user hx_zs identified by hxzs
default tablespace J3SPACE;
赋权
grant connect,resource to hx_zs;
grant create any sequence to hx_zs;
grant create any table to hx_zs;
grant delete any table to hx_zs;
grant insert any table to hx_zs;
grant select any table to hx_zs;
grant unlimited tablespace to hx_zs;
grant execute any procedure to hx_zs;
grant update any table to hx_zs;
grant create any view to hx_zs;
授予用户使用表空间的权限:
alter user hx_dm_qg quota unlimited on j3SPACE;
删除用户和表空间
drop user j3 cascade;
DROP TABLESPACE j3space INCLUDING CONTENTS AND DATAFILES;
导入导出命令
exp j3/j3@orcl file=d:/f.dmp full=y
imp j3/j3@orcl file=C:/Users/Administrator/j320170823.DMP full=y ignore=y
修改密码
alter user system identified by system;
以sysdba身份登录
sqlplus / as sysdba
--表空间
create tablespace J3SPACE
datafile 'D:/oracle_tablespaces/J3SPACE_TBSPACE.dbf'
size 1500M
autoextend on next 5M maxsize 3000M;
用户
create user hx_zs identified by hxzs
default tablespace J3SPACE;
赋权
grant connect,resource to hx_zs;
grant create any sequence to hx_zs;
grant create any table to hx_zs;
grant delete any table to hx_zs;
grant insert any table to hx_zs;
grant select any table to hx_zs;
grant unlimited tablespace to hx_zs;
grant execute any procedure to hx_zs;
grant update any table to hx_zs;
grant create any view to hx_zs;
授予用户使用表空间的权限:
alter user hx_dm_qg quota unlimited on j3SPACE;
删除用户和表空间
drop user j3 cascade;
DROP TABLESPACE j3space INCLUDING CONTENTS AND DATAFILES;
导入导出命令
exp j3/j3@orcl file=d:/f.dmp full=y
imp j3/j3@orcl file=C:/Users/Administrator/j320170823.DMP full=y ignore=y
阅读全文
0 0
- Oracle 建表
- ORACLE建表
- oracle建表
- oracle 建表
- oracle建表
- oracle 建表(转)
- oracle 建表 约束 constraint
- Oracle sqlplus 建表
- oracle 建表sql语句
- oracle建表、序列、触发器
- oracle-----sql--建表
- ORACLE基础语句-建表
- Oracle建表、索引、主键
- oracle-建表-增加数据
- Oracle???
- oracle
- oracle
- oracle
- pci总线扫描设备本地操作(二)(local bus operation)
- 形态学操作
- json 得到 第一个 对象的 属性
- Apache系列—Windows不能在本地计算机启动Apache
- 一篇对JS的重新介绍
- oracle 建表
- leetcode解题方案--060--Permutation Sequence
- 遇见kafka
- 瑞昱 rtl8710 试用
- eoj 1816. 连通(无向图是否连通判定)
- tomcat启动了两次,导致mina监听的端口报端口被占用的错误
- r语言安装错误
- VS2013 +QT5.7+QGIS2.18
- linux系统安装VNC服务端