Oracle研究專題 Oracle系統安裝與配置

2021-09-08 18:32:28 字數 1480 閱讀 7922

最近開始研究oracle資料庫,蓋因公司的系統要麼oracle要麼是mysql吧。

作為乙個it工作者,沒有碰過oracle是一件很匪夷所思得事情。 想到過去幾年,乃至接觸it行業開始就只有玩過sql server,是太low了。

所以從現在開始要好好學一下oracle資料庫,不僅是plsql的開發,還要學會oracle的調優與配置。

客戶端只需要安裝幾十兆的instant client就可以了:

其中 listener.ora的內容:

sid_list_listener =

(sid_list =

(sid_desc =

(sid_name = mengxin) #資料庫例項

(oracle_home = d:\oracle\administrator\product\11.2.0\dbhome_1) #安裝資料庫目錄

(envs = "extproc_dlls=only:d:\oracle\administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll") #連線dll )

)listener =

(description_list =

(description =

(address = (protocol = tcp)(host = localhost)(port = 1521)) )

(description =

(address = (protocol = ipc)(key = mengxin)) )

)adr_base_listener = d:\oracle\administrator #安裝目錄

sqlnet.ora的內容為:(一般不需要更改)

sqlnet.authentication_services= (nts)

names.directory_path= (tnsnames, ezconnect)

在oracle的客戶端安裝目錄裡,找到tnsnames.ora,檔案位於:d:\oracle instant client\network\admin

配置如下:

listener_mengxin = #listener_例項名

(address = (protocol = tcp)(host = localhost)(port = 1521))

mengxin = #連線名

(description =

(address_list =

(address = (protocol = tcp)(host = localhost)(port = 1521)) )

(connect_data =

(service_name = mengxin) )

)最後開啟pl/sql developer,在首選項裡配置如下:

如此oracle使用前的配置就算結束了!

Oracle研究專題 Oracle系統安裝與配置

最近開始研究oracle資料庫,蓋因公司的系統要麼oracle要麼是mysql吧。作為乙個it工作者,沒有碰過oracle是一件很匪夷所思得事情。想到過去幾年,乃至接觸it行業開始就只有玩過sql server,是太low了。所以從現在開始要好好學一下oracle資料庫,不僅是plsql的開發,還要...

oracle序列專題

oracle沒有象sql server中一樣的自增加字段,要實現只能通過sequence來實現 1.建立序列 create sequence your seq nocycle maxvalue 9999999999 start with 1 2.使用觸發器實現自增 create or replace...

Oracle學習筆記day06 Oracle函式

to char 將任意型別轉換成字串 日期轉換 select to char sysdate,yyyy mm dd hh24 mi ss from dual 數字轉換 select to char 100.789999999999,l99g999d999 from dual to date 將字串轉...