Time of Update: 2018-07-24
備份類型: 完全備份包含所有使用的資料檔案塊。 0 級增量備份等同於標記為 0 級的 完全備份。 累積 1 級增量備份只包含自上次 0 級增量備份以來修改過的塊。 差異 1 級增量備份只包含自上次增量備份以來修改過的塊。 要應用level1級備份,必須要有相應的level0級備份; backup incremental level 0 database; --level0級備份 backup incremental level 1
Time of Update: 2018-07-24
###### 分析記錄檔 logmnr ##############1) 在 init.ora 中 set utl_file_dir 參數2) 重新啟動 oracle3) create 目錄檔案desc dbms_logmnr_d;dbms_logmnr_d.build;4) 加入記錄檔 add/remove log filedhms_logmnr.add_logfiledbms_logmnr.removefile5) start logmnrdbms_logmnr.start_logmnr6)
Time of Update: 2018-07-24
1 oracle10g 卸載 軟體環境: 1、Windows XP + Oracle 10g 2、Oracle安裝路徑為:d:\Oracle
Time of Update: 2018-07-24
錯誤描述 ORACLE-04082:NEW 或OLD引用不允許在表級觸發器中 解決範例 (1)建立觸發器,出現問題 CREATE OR REPLACE TRIGGER trigger_cnameBEFORE DELETE on CDECLARE v_count number;BEGINselect count(*) into v_count from SC where CNO=:old.CNO;if v_count > 0 then
Time of Update: 2018-07-24
3. C:\Users\xiaofeng>emctl start dbconsole Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0 Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved. http://192.168.0.106:1158/em/console/aboutApplication
Time of Update: 2018-07-24
轉載自:http://blog.csdn.net/hijiankang/article/details/9173877/ 一. 分區表理論知識 Oracle提供了分區技術以支援VLDB(Very Large DataBase)。分區表通過對分區列的判斷,把分區列不同的記錄,放到不同的分區中。分區完全對應用透明。
Time of Update: 2018-07-24
轉載自:http://blog.csdn.net/xixi_666/article/details/48179865 1.查看一個表所佔的空間大小:SELECT bytes/1024/1024 ||'MB' TABLE_SIZE ,u.* FROM USER_SEGMENTS U WHERE U.SEGMENT_NAME='JK_TEST';2.查看一個資料表空間所佔的實際大小:SELECT SUM(BYTES) / 1024 / 1024 ||'MB' FROM
Time of Update: 2018-07-24
關於ORACLE的UPDATE更新多表的問題有以下幾種方式可以實現:一種是: update table1 set (field1,field2...) = (Select Field1,field2....
Time of Update: 2018-07-24
啟動資料庫命令分為三個階段: startup nomount alter database mount alter database open 1.查看所有使用者: select * from dba_user; select * from all_users; select * from user_users; 2.查看使用者系統許可權: select * from dba_sys_privs; select * from all_sys_privs;
Time of Update: 2018-07-24
原創作品,出自 “深藍的blog” 部落格,歡迎轉載,轉載時請務必註明以下出處,否則追究著作權法律責任。 深藍的blog:http://blog.csdn.net/huangyanlong/article/details/43926321 第一步:目錄 --資料庫檔案目錄 $ cd $ORACLE_BASE/oradata $ ls --看到已經存在庫的SID PROD $ pwd --查看一下絕對路徑 /u01/app/oracle/
Time of Update: 2018-07-24
使用資料庫oracle10g 我要建立的資料庫的名稱叫做db231(叫做db+學號後三位) ORACLE_SID=db231 ORACLE_BASE=F:\oracle\ ORACLE_HOME=F:\oracle\product\10.2.0\db_1\
Time of Update: 2018-07-24
--t_veh_traffic_vio 違法表--vhcl_info 車輛資訊表--單表修改,修改2014年4月份違法資料的同步標誌位update t_veh_traffic_vio t set t.synchflag = 0, t.synchstatus = 'u' where t.wfsj > to_date('2014-04-01', 'yyyy-mm-dd') and t.wfsj < to_date('2014-05-01',
Time of Update: 2018-07-24
Oracle中to_char()函數的用法 轉:http://blog.csdn.net/jiangnan2014/article/details/16908585 (1)用作日期轉換: to_char(date,'格式'); select to_date('2005-01-01 ','yyyy-MM-dd') from dual;select to_char(sysdate,'yyyy-MM-dd HH24:mi:ss') from
Time of Update: 2018-07-24
由於Toad不支援64位的oracle用戶端,因此要卸載已經安裝的用戶端 官網卸載說明: http://docs.oracle.com/cd/E11882_01/install.112/e10844/deinstall.htm#BABHIGFE 官網下載Oracle卸載工具: http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
Time of Update: 2018-07-24
選擇表中的某一行記錄:(理解:rownum是oracle系統順序分配為從查詢返回的行的編號) select * from (select rownum a,t.* from testtab t) where a=2; 不能為: select * from (select rownum,t.* from testtab t) where rownum=2;或 select * from testtab where rownum=2; 返回多行記錄: select * from testtab
Time of Update: 2018-07-24
Oracle中有兩種含義的表大小 一種是分配給一個表的物理空間數量,而不管空間是否被使用。可以這樣查詢獲得位元組數: select segment_name, bytes from user_segments where segment_type = TABLE; 效果如下: 或者 Select Segment_Name,Sum(bytes)/1024/1024 from User_Extents Group By
Time of Update: 2018-07-24
後來查了查資料,發現資料表空間資料檔案容量與DB_BLOCK_SIZE有關,在初始建庫時,DB_BLOCK_SIZE要根據實際需要,設定為 4K,8K、16K、32K、64K等幾種大小,ORACLE的物理檔案最大隻允許4194304個資料區塊(由作業系統決定),資料表空間資料檔案的最大值為 4194304×DB_BLOCK_SIZE/1024M。 即: 4k最大資料表空間為:16384M 8K最大資料表空間為:32768M
Time of Update: 2018-07-24
oracle 設定資料表空間不限制 1、查看各個資料表空間狀態SELECT FILE_NAME,TABLESPACE_NAME,AUTOEXTENSIBLE FROM dba_data_files;2、資料表空間無限大alter database DATAFILE '/u02/oradata/rsjdb/users01.dbf' autoextend on maxsize unlimited; 3、建資料表空間、表SQL> create
Time of Update: 2018-07-24
oracle支援的檔案大小和他的db_block_size和db_block的數量決定的。在oracle 9i以前,oracle 的db_block的數量最大隻能為2的22次方個,而我們通過oracle預設的模板建的資料庫執行個體的db_block_size是8K。所以oracle 9i以前支援的單個檔案的預設大小是32GB。雖然在oracle 11g沒有這個限制,但是它預設的能力也是這麼多。所以我在前面講如果你遇到這個問題,說明你不是一般人,你在建立一個單個檔案超過32GB的資料表空間。
Time of Update: 2018-07-24
select a.FILE_NAME,a.AUTOEXTENSIBLE,a.MAXBYTES,a.INCREMENT_BY from dba_data_files a; --AUTOEXTENSIBLE 是否自動擴充 --MAXBYTES 最大 --INCREMENT_BY 自動擴充塊數 SQL> show parameter db_block