Chinaunix首页 | 论坛 | 博客
  • 博客访问: 577385
  • 博文数量: 158
  • 博客积分: 2696
  • 博客等级: 少校
  • 技术积分: 1668
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-10 00:49
个人简介

life?is?short?,?play?more!

文章分类

全部博文(158)

文章存档

2021年(1)

2013年(10)

2012年(4)

2011年(11)

2010年(27)

2009年(28)

2008年(52)

2007年(25)

我的朋友

分类: Oracle

2011-04-13 11:11:00


SQL> shut abort                              停止数据库
ORACLE instance shut down.

SQL> startup mount                           启动数据库mount模式
ORACLE instance started.

Total System Global Area 2304909312 bytes
Fixed Size                  2215464 bytes
Variable Size            2214592984 bytes
Database Buffers           67108864 bytes
Redo Buffers               20992000 bytes
Database mounted.

 
SQL> select name from v$datafile;              查看datafile文件

[root@DB-Oracle-01 /]# chown -R oracle:oinstall /ora_new_data_dir/                       创建oracle权限目录

[root@DB-Oracle-01 /]# su - oracle
[oracle@DB-Oracle-01 ~]$ cp /old_data/system01.dbf /ora_new_data_dir/            拷贝到新的目录

SQL> alter database rename file '/old_data/system01.dbf' to '/ora_new_data_dir/ system01.dbf';   datafile重定向

Database altered.

SQL> alter database open;   打开数据库

Database altered.


SQL> select username,DEFAULT_TABLESPACE from dba_users;  查看用户名对应tablespace

SQL> desc dba_users;
阅读(6891) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~