在搞資料庫時,發現有這樣的一個欄位,類型是NUMBER(38),查看了一下裡面的資料,都是這樣的,1323957678114132132699429513221293068041322129716220猜到應該是1970年1月1號0點0分距現在的毫秒值。解決辦法是寫一個轉換函式:create or replace function num_to_date(in_number NUMBER) return date isbegin
為了確定資料表空間中包含那些內容,運行:select owner,segment_name,segment_type from dba_segments where tablespace_name='<name of tablespace>' 查詢資料表空間包含多少資料檔案。select file_name, tablespace_name from dba_data_files where tablespace_name ='<name of tablespace>
Parsing command line arguments: Parameter "silent" = truejava.lang.ArrayIndexOutOfBoundsException: 2 at oracle.net.ca.CmdlineArgs.parseArgs(Unknown Source) at oracle.net.ca.InitialSetup.<init>(Unknown Source) at oracle.
一1oracle體繫結構主要組件Oracle體繫結構的3個主要組件:1.檔案:組成資料庫執行個體的5個檔案(參數檔案,控制檔案,資料檔案,臨時資料檔案,重做記錄檔)2.系統全域地區SGA( System Global Area): Java池,共用池等3.物理進程與線程: 在資料庫上運行3種不同類型的進程(伺服器server進程,後台backgroud進程,從屬slave進程)記憶體結構1.SGA(System Global Area)2.PGA(Process Global
create tablespace EWMSDB datafile 'E:/EWMSDB/ewms.dbf' size 100M autoextend on next 10M maxsize unlimited extent management local;create user 'ewmsdb' identified by 'ewmsdb' defalut tablespace EWMSDB;create user ewmsdb identified by ewmsdb defalut
Oracle查詢使用者所有表的語句select * from all_tab_comments -- 查詢所有使用者的表,視圖等select * from user_tab_comments -- 查詢本使用者的表,視圖等select * from all_col_comments--查詢所有使用者的表的列名和注釋.select * from user_col_comments -- 查詢本使用者的表的列名和注釋select * from
啟動資料庫在http://blog.csdn.net/chenxiaohua/archive/2008/01/22/2057815.aspx中已經描述怎樣簡單地啟動資料庫,和相應的服務監聽。用oracle安裝使用者登入主機,啟動資料庫和服務監聽,操作如下:[ora@localhost ora]$ sqlplus "/ as sysdba"SQL*Plus: Release 9.2.0.4.0 - Production on Sun Mar 22 23:55:56 2009Copyright (