'Oracle 9i建立資料庫時預設包含了XDB特性。一旦啟動了資料庫和Listener,Oracle XDB的http服務就佔用8080連接埠,剛好和JBoss、Tomcat等預設連接埠衝突,Oracle XDB的連接埠設定不在設定檔中,而是在資料庫裡。修改XDB的http和ftp服務連接埠的方法有3種: 1、使用sys登入Oracle,利用dbms_xdb修改連接埠設定 SQL> -- Change the HTTP/WEBDAV port from 8080 to
1 建立使用者 create user tom identified by 密碼 default tablespace 資料表空間 temporary tablespace 暫存資料表空間 quota 20m on 資料表空間 password expire; 其中 quota表明只能使用某個資料表空間指定大小的磁碟空間. 改變其配額 alter user tom quota 新數值 on 資料表空間.2 刪除使用者 drop user tom;3 概要檔案
1 在sql時,先用 desc v$controlfile; 看下v$controfile中,每一列的具體長度,然後再決定在顯示時,如何用col name for a50這樣的格式;2 如果遇到一個.sql的檔案需要恢複到oracle的話,最好先建立一個方案(schema),這裡我的理解是oracle裡的方案其實是相當於其他資料庫中的"資料庫",因為如果oracle裡沒特殊的要求,其實就在當前執行個體對應的資料庫裡建立不同的方案就可以了.
主要是小結之前遇到的備份恢複,內容很多分幾次小結。1 增加控制檔案備份 select * from v$controlfile; 增加控制檔案 alter system set control_files='d:\demo1\control01.ctl','c:\demo\control02.ctl' scope=spfile; shutown 後,用host copy後再startup2 多元化重做日誌 col member format a30 select
程式員對ORACLE,雖然不象ORACLE DBA那樣牛,但也要掌握些基本的東西,因此小結之.1 格式化輸出 比如 col name(要顯示的欄位) for a20 2 查看命令參數 show parameter 查看SGA大小 show sga3 啟動資料庫 nomount方式:該方式只有在建立資料庫或重建控制檔案時使用,當nomount的時,只是啟動執行個體而不開啟資料庫,控制檔案也不開啟的,此時會分配SGA,開啟後台進行,開啟警報檔案和追蹤檔案.
1 開啟統計日誌資訊 set autot on stat2 ORACLE的記憶體配置大致小結 SGA的查看: select * from v$sga; (注意oracle在unix下是多進程的,在windows下是單進程的) 查看系統實際分配的各類pool select * from v$sgastat; sga大小估計: 查看UGA大小 show parameter
DETERMINISTIC Clause Specify DETERMINISTIC to indicate that the function returns the same result value whenever it is called with the same values for its arguments.You must specify this keyword if you intend to call the function in the expression of
1、建立表: create table stud( sid int, sname varchar2(50) ) 並插入一條資料 insert into stud values(1,'Tom')2、通過包定義一個遊標 create or replace package pack_stud is --聲明一個遊標類型 type cur is ref cursor;