oracle11g数据文件路径,oracle11g修改数据文件路径
有時候我們想把數據文件移動到其他的目錄下,可以按照如下操作:
查看數據文件位置
SQL>??select?file_name?from?sys.dba_data_files;
FILE_NAME
--------------------------------------------------------------------------------
/home/app/oracle/oradata/orahq/users01.dbf
/home/app/oracle/oradata/orahq/undotbs01.dbf
/home/app/oracle/oradata/orahq/sysaux01.dbf
/home/app/oracle/oradata/orahq/system01.dbf
2.關機并啟動到mount狀態
SQL>?shutdown?immediate;
Database?closed.
Database?dismounted.
ORACLE?instance?shut?down.
SQL>?startup?mount;
ORACLE?instance?started.
Total?System?Global?Area?2.1379E+10?bytes
Fixed?Size????2262656?bytes
Variable?Size?1677724032?bytes
Database?Buffers?1.9663E+10?bytes
Redo?Buffers???36073472?bytes
Database?mounted.
3.執行修改
SQL>?alter?database?rename?file???'/home/app/oracle/oradata/orahq/users01.dbf'???to???'/alidata1/oradata/orahq/users01.dbf';
Database?altered.
SQL>?alter?database?rename?file???'/home/app/oracle/oradata/orahq/undotbs01.dbf'???to???'/alidata1/oradata/orahq/undotbs01.dbf';
Database?altered.
SQL>?alter?database?rename?file???'/home/app/oracle/oradata/orahq/sysaux01.dbf'???to???'/alidata1/oradata/orahq/sysaux01.dbf';
Database?altered.
SQL>?alter?database?rename?file???'/home/app/oracle/oradata/orahq/system01.dbf'???to???'/alidata1/oradata/orahq/system01.dbf';
Database?altered.
4.啟動數據庫
SQL>?alter?database?open;
Database?altered.
總結
以上是生活随笔為你收集整理的oracle11g数据文件路径,oracle11g修改数据文件路径的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php改密后joomla无法登陆,恢复丢
- 下一篇: oracle远程连接串,oracle远程