ORACLE的使用方法有哪些

本篇内容主要讲解“ORACLE的使用方法有哪些”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“ORACLE的使用方法有哪些”吧!

网站的建设创新互联专注网站定制,经验丰富,不做模板,主营网站定制开发.小程序定制开发,H5页面制作!给你焕然一新的设计体验!已为封阳台等企业提供专业服务。

//删除用户
drop user lc0019999 cascade

//创建用户
create user lc0019999 identified by password

//给用户授DBA权限
grant dba to lc0019999

//导入数据
$implc0019999/password@server file=e:back312.dmp fromuser=lc0019999 touser=lc0019999

//导出数据
$explc0019999/password@server file=e:backaaa.dmp

//更改sys与system口令
alter user system(sys) identified by newpassword

//更改归档日志方式archivelog与noarchivelog
alter database archivelog(noarchivelog)

//整理蜂窝式碎片的方式
alter tablespace tablespacename coalesce

//查看缺省表空间与临时表空间
select username from dba_users where default_tablespace='system' or temporary_tablespace='system' order by username

//将缺省表空间与临时表空间改为非system
alter user rsingh default users temporary temp

//创建表空间命令
create tablespace tablespacename...(other command options)...extent management local uniform size 10M

//在不同表空间之间移动索引
alter index rebuild tablespace

//分析数据表空间(执行结果不可见)
analyze table compute statistics

//查询表最高点与表的未用块
select blocks "high water mark",empty_blocks "unused space" from dba_tables where table_name='&table_name' and owner='&owner_name'

//释放未用表空间
alter table deallocate unused[keep [K|M]]

到此,相信大家对“ORACLE的使用方法有哪些”有了更深的了解,不妨来实际操作一番吧!这里是创新互联网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!


分享名称:ORACLE的使用方法有哪些
网站链接:http://bzwzjz.com/article/pdceee.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: 重庆网站建设 网站设计制作 成都营销网站建设 成都网站制作 成都定制网站建设 成都网站建设 定制网站制作 响应式网站设计 网站制作 外贸网站建设 四川成都网站建设 企业网站建设 成都网站设计 网站建设费用 成都网站建设推广 成都网站设计 成都品牌网站建设 响应式网站设计 重庆网站设计 成都商城网站建设 成都响应式网站建设公司 定制级高端网站建设