-
--oracle查看用戶的表空間 ·dba_tablespaces數據字典 ---desc dba_tablespaces ---select tablespace_name from dba_tablespaces; ·user_tablespaces數據字典 ---desc dba_tablespaces ---select tablespace_name from user_tablespaces; ·dba_users connect system/toor desc dba_users; ·user_users查看全部
-
2-9修改[永久的]表空間 · 修改表空間狀態 · 修改數據文件 · 設置聯機或脫機狀態 ALTER TABLESPACE tablespace_name ONLINE|OFFLINE; · 示例: · alter tablespace test1_tablespace offline; 用數據字典查看表狀態 · desc dba_tablespaces STATUS就是表的狀態 select status from dba_tablespaces where tablespace_name='TEST1_TABLESPACE'; · alter tablespace test1_tablespace online; · 設置只讀或者可讀寫狀態(前提是表要在聯機online狀態) ALTER TABLESPACE tablespace_name READ ONLY|READ WRITE · 示例: · alter tablespace test1_tablespace read only; 查看狀態 · desc dba_tablespaces · alter tablespace test1_tablespace read only; 查看狀態 · desc dba_tablespaces查看全部
-
2-8創建表空間 · CREATE [TEMPORARY] TABLESPACE tablespace_name TEMPFILE|DATAFILE 'xx.dbf' SIZE xx · 示例: · create tablespace test1_tablespace datafile 'test1file.dbf' size 10m; · create temporary tablespace temptest1_tablespace tempfile 'tempfile1.dbf' size 10m 查看表空間 desc dba_data_files select file_name from dba_data_files where tablespace_name='TEST1_TABLESPACE';【文件名要大寫】 查看臨時表空間 select file_name from dba_temp_files where tablespace_name='TEMPTEST1_TABLESPACE';查看全部
-
--oracle表空間 ·數據庫與表空間 ·表空間與數據文件 ·表空間分類 -·永久表空間:永久存儲的表 -·臨時表空間:SQL語句執行過程的臨時表 -·UNDO表空間:修改之前的信息查看全部
-
--oracle啟用scott用戶 ·啟用用戶的語句 alter user username account unlock; ·使用scott用戶登入SQL Plus connect scott/tiger查看全部
-
--oracle查看登入用戶 ·show user命令 查看當前的用戶 ·dba_users數據字典 查看賬號信息 desc dba_users ·select username from dba_users; 查看oracle的所有系統用戶查看全部
-
--oracle使用系統用戶 系統用戶 -sys,system 安裝密碼 -sysman 安裝密碼 -scott tiger 使用system用戶登入 system/密碼 @orcl as sysdba orcl就是自己設置的服務名,如果不是用自己的,就寫別人的 如果在同一臺機器上,就不用@orcl eg-->system/toor eg-->connect sys/toor as sysdba查看全部
-
---oracle刪除 app\Administrator\product\11.2.0\dbhome_1\deinstall.bat 指定要取消配置的所有單實例監聽程序 【LISTENER】: Enter 指定在此Oracle主目錄中配置的數據庫名的列表【ORCL】:Enter 是否仍要修改ORCL數據庫的詳細資料?【n】:y 指定此數據庫<1.單實例數據庫;2.啟用Oracle Restart的數據庫>的類型[1]:Enter Enter Enter CCR check is finished 是否繼續<y -是,n - 否>?【n】:y 等待... 無法刪除:'d:\app\Administrator\product\11.2.0\dbhome_1\deinstall.bat'。該目錄正在使用中。 在程序結束后刪除。查看全部
-
在官網找不到,查看全部
-
意思是說online狀態才能使用這個表空間嗎?查看全部
-
1.邏輯空間與物理文件的映射,是在創建時就建立的 2.永久和臨時文件對應的數據字典分別是dba_data_files和dba_temp_files查看全部
-
表空間是Oracle特有的概念么?查看全部
-
表空間——邏輯數據空間 數據文件——物理上的存儲查看全部
-
DROP TABLESPACE tablespace_name [INCLUDING CONTENTS] drop tablespace test1_tablespace including contents;查看全部
-
ALTER TABLESPACE tablespace_name ADD DATAFILE 'xx.dbf' SIZE xx; alter tablespace test1_tablespace add datafile 'test2_file.dbf' size 10m; alter tablespace test1_tablespace drop datafile 'test2_file.dbf'查看全部
舉報
0/150
提交
取消