网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

Tbs_P2:改变表空间特性

SQL>conn system/oracle

创新互联公司2013年成立,是专业互联网技术服务公司,拥有项目网站设计制作、成都网站设计网站策划,项目实施与项目整合能力。我们以让每一个梦想脱颖而出为使命,1280元蔡家坡做网站,已为上家服务,为蔡家坡各地企业和个人服务,联系电话:18980820575

 

--创建手动段管理的表空间

SQL>altersystem set db_create_file_dest ='/oradata';

SQL>createtablespace tbs_manualsegs segment space management manual;

 

--确定新表空间的存在

SQL>selecttablespace_name, segment_space_management from dba_tablespaces

Wheretablespace_name='TBS_MANUALSEGS';

 

--在表空间中创建表和索引

SQL>createtable t_mantab (c1 number) tablespace tbs_manualsegs;

SQL>createindex i_mantab on t_mantab(c1) tablespace manualsegs;

 

--新建自动段表空间

SQL>createtablespace tbs_autosegs;

 

--将对象移入新的表空间

SQL>altertable t_mantab move tablespace tbs_autosegs;

SQL>alterindex i_mantab  rebuild online tablesapcetbs_autosegs;

 

--删除原来的表空间

SQL>droptablespace tbs_manualsegs including contents and datafiles;

 

--将新的表空间重命名为原来的名称。(应用软件的需要)

SQL>altertablesapce tbs_autosegs rename to tbs_manualsegs;

 

--通过删除表空间进行清理,首先用以下命令

SQL>droptablespace tbs_manualsegs;

 --由于表空间非空,将引发错误,应该对此进行纠正。

SQL>drop tablespace tbs_manualsegs including contents and datafiles;


当前名称:Tbs_P2:改变表空间特性
文章起源:http://bjjierui.cn/article/pipchs.html

其他资讯