日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Oracle中获取文件中的数据,操作oracle中的数据文件

發(fā)布時(shí)間:2024/9/27 编程问答 46 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Oracle中获取文件中的数据,操作oracle中的数据文件 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

收藏于http://dev.yesky.com/296/8090796.shtml

Oracle數(shù)據(jù)庫

中管理表空間和數(shù)據(jù)文件

數(shù)據(jù)庫的三大組成部分:數(shù)據(jù)文件,控制文件,Redo日志。

表空間分為系統(tǒng)表空間和非系統(tǒng)表空間。

SYSTEM表空間是最基本的,必須的,Oracle建議你為用戶數(shù)據(jù),用戶索引,Undo數(shù)據(jù)段,臨時(shí)數(shù)據(jù)段創(chuàng)建單獨(dú)的表空間。

管理員可以對(duì)表空間執(zhí)行以下管理操作:

1.新建表空間,調(diào)整數(shù)據(jù)文件大小,添加數(shù)據(jù)文件到表空間。

2.設(shè)置和修改缺省的數(shù)據(jù)段存儲(chǔ)設(shè)置。

3.使表空間變?yōu)橹蛔x或讀寫狀態(tài)。

4.設(shè)置表空間為臨時(shí)或永久。

5.刪除表空間。

創(chuàng)建表空間的命令:

SQL> create tablespace userdat datafile '/home/oracle/oradata/userdat01.dbf' size 10m autoextend on next 1m maxsize 20m;

Tablespace created.

表空間中的extents可以由數(shù)據(jù)字典表或位圖進(jìn)行管理,創(chuàng)建表空間時(shí)可以選擇:

本地管理表空間:extent management local

字典管理表空間:extent management dictionary

Undo表空間:

僅用于存儲(chǔ)undo數(shù)據(jù)段,extent只能采用本地管理。

Temp表空間:

僅用于排序操作,不包含任何永久對(duì)象,extent推薦采用本地管理。

以下命令用于指定系統(tǒng)的缺省臨時(shí)表空間:

SQL> alter database default temporary tablespace temp;

表空間離線:

離線的表空間無法訪問,用于數(shù)據(jù)維護(hù)。

system表空間,有活動(dòng)undo段的表空間和缺省的臨時(shí)表空間不能置于離線狀態(tài)。

操作命令:

SQL> alter tablespace users offline;

Tablespace altered.

SQL> alter tablespace users online;

Tablespace altered.

將表空間置為只讀模式和讀寫模式:

SQL> alter tablespace users read only;

Tablespace altered.

SQL> alter tablespace users read write;

Tablespace altered.

刪除表空間:

SQL> drop tablespace userdat including contents and datafiles;

Tablespace dropped.

手工改變數(shù)據(jù)文件的大小:

SQL> alter database datafile '/home/oracle/oradata/gldb/users01.dbf' resize 20m;

Database altered.

添加數(shù)據(jù)文件到表空間:

SQL> alter tablespace users add datafile '/home/oracle/oradata/gldb/users02.dbf' size 1m;

Tabl

總結(jié)

以上是生活随笔為你收集整理的Oracle中获取文件中的数据,操作oracle中的数据文件的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。