国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > Oracle > 正文

Oracle9i重建與切換臨時表空間

2024-08-29 13:40:33
字體:
來源:轉載
供稿:網友
Oracle9i引入了全局缺省臨時表空間,缺省的假如不指定用戶臨時表空間,Oracle會為用戶指定這個缺省臨時表空間.首先查詢用戶的缺省臨時表空間:     [oracle@jumper oracle]$ sqlplus "/ as sysdba"SQL*Plus: Release 9.2.0.4.0 - PRodUCtion on Wed Apr 12 11:11:43 2006Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning option
JServer Release 9.2.0.4.0 - ProductionSQL> select username,temporary_tablespace from dba_users;USERNAME                       TEMPORARY_TABLESPACE
------------------------------ ------------------------------
SYS                                 TEMP2
SYSTEM                         TEMP2
OUTLN                           TEMP2
EYGLE                            TEMP2
CSMIG                            TEMP2
TEST                               TEMP2
REPADMIN                    TEMP2
......13 rows selected.SQL> select name from v$tempfile;NAME
---------------------------------------------------------------------
/opt/oracle/oradata/conner/temp02.dbf
/opt/oracle/oradata/conner/temp03.dbf
重建新的臨時表空間并進行切換:SQL> create temporary tablespace temp tempfile '/opt/oracle/oradata/conner/temp1.dbf' size 10M;Tablespace created.SQL> alter tablespace temp add tempfile '/opt/oracle/oradata/conner/temp2.dbf' size 20M;Tablespace altered.SQL> alter database default temporary tablespace temp;Database altered.SQL> select username,temporary_tablespace from dba_users;
USERNAME                       TEMPORARY_TABLESPACE
------------------------------ ------------------------------
SYS                                 TEMP
SYSTEM                         TEMP
OUTLN                           TEMP
EYGLE                            TEMP
CSMIG                           TEMP
TEST                               TEMP
REPADMIN                    TEMP
.......13 rows selected.假如原臨時表空間無用戶使用,我們可以刪除該表空間:SQL> drop tablespace temp2;Tablespace dropped.SQL>
SQL> select name from v$tempfile;NAME
---------------------------------------------------------------
/opt/oracle/oradata/conner/temp1.dbf
/opt/oracle/oradata/conner/temp2.dbfSQL> select file_name,tablespace_name,bytes/1024/1024 MB,autoextensible
  2  from dba_temp_files
  3  /FILE_NAME                              TABLESPACE_NAME              MB AUTOEXTENSIBLE
-------------------------------------- -------------------- ---------- --------------
/opt/oracle/oradata/conner/temp2.dbf   TEMP                         20 NO
/opt/oracle/oradata/conner/temp1.dbf   TEMP                         10 NO

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 西贡区| 昭苏县| 闵行区| 峨边| 武宣县| 米脂县| 洪洞县| 天镇县| 卓尼县| 自贡市| 龙泉市| 凉城县| 云龙县| 宁国市| 新化县| 睢宁县| 洛南县| 泸州市| 甘孜县| 闸北区| 巫山县| 手游| 南华县| 蚌埠市| 巴马| 永兴县| 琼结县| 夏邑县| 布尔津县| 荆州市| 元朗区| 东平县| 郯城县| 读书| 安塞县| 淮南市| 青冈县| 页游| 鹤庆县| 万山特区| 将乐县|