您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

Linux系统下Oracle创建和删除表空间及用户

2024/2/28 15:41:50发布17次查看
#su - oracle $ sqlplus /nolog sqlgt; connect / as sysdba --//创建临时表空间 create temporary tablespace test_temp tempf
首页 → 数据库技术
背景:
阅读新闻
linux系统下oracle创建和删除表空间及用户
[日期:2011-01-24]来源:linux公社 作者:linux[字体:]
#su - oracle
$ sqlplus /nolog
sql> connect / as sysdba
--//创建临时表空间
create temporary tablespace test_temp
tempfile '/data/oracle/oradata/test/test_temp01.dbf' --//linux下的文件系统
size 64m
autoextend on
next 64m maxsize 2048m
extent management local; --//创建数据表空间
create tablespace test_data
logging
datafile '/data/oracle/oradata/test/test_data01.dbf' --//linux下的文件系统
size 64m
autoextend on
next 65m maxsize 2048m
extent management local; --//创建用户并指定表空间 用户名和密码均为test
create user test identified by test
default tablespace test_data
temporary tablespace test_temp;
--//给用户授予权限 grant connect,resource to test; --//删除表空间
drop tablespace test_temp including contents and datafiles; --//修改用户密码
alter user test identified by new_password; --//删除用户
drop user 用户名 cascade; --//执行该语句请小心,会级联删除该用户下所有对象。
--//给用户分配权限 sql> grand connect to test_user;
sql> grand resource to test_user;
sql> grand create view to test_user; 
建好表后插入数据 查询数据 要对该表加上引号 如: “表名”
0
mysql在linux下安装详细教程
oracle 开启autotrace功能
相关资讯       oracle教程
图片资讯
本文评论查看全部评论 (2)
评论声明
第 2 楼
第 1 楼
最新资讯
本周热门
linux公社简介 - 广告服务 - 网站地图 - 帮助信息 - 联系我们
本站(linuxidc)所刊载文章不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。
copyright © 2006-2011 linux公社 all rights reserved 浙icp备06018118号

该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product