oracle資料庫的一些概念

功能實現的位置可以是:前端-後端-資料庫端中的某一處,通常考慮的比較多的是把一個功能放在前端還是後端處理,往往忽視了放在資料庫端處理。其實資料提供了很多個物件可以把一些功能在資料庫端處理。比如如下三個對象:view\procedure\trigger。________________________________________________________________________________視圖是虛表預存程序是sql語句觸發器是預存程序這是比較簡單的描述但是卻道出了他們的本質。

初識 Oracle 11g

   安裝完成之後不知道怎麼配置,今天糊糊塗塗的搞了半天。終於在哥們的協助下使用PLSQL串連伺服器成功。可是關於Oracle真的還是不清楚,只好選點書來參考參考了。   用戶端串連伺服器需要先配置用戶端的相應路徑E:\app\liuhongpei\product\11.1.0\db_1\NETWORK\ADMIN(此為oracle 11g 11.1.0.7.0版本安裝產生的路徑)下的tnsnames.ora檔案:# tnsnames.ora Network Configuration

oracle reports interview questions

Oracle Reports Interview QuestionsOracle Reports Interview QuestionsName the report triggers.Before ParameterAfter ParameterBefore ReportBetween PagesAfter ReportWhat are bind parameter and lexical parameter used for?A bind reference replaces a

oracle row_number()

要求查詢每個使用者對應的最大樣品資訊,忽然想到ms sql提供過 row_number() over(partition by 列 order by 列 desc),那麼oracle可能也存在,我的表結構如下:create table NEOGOODSRULE( ID NUMBER(22) not null, PERSONALID NVARCHAR2(50), CT_SMP_TYPE NVARCHAR2(100))tablespace VGSM pctfree 10

Begin End在oracle資料庫中大量操作應用

oracle大量操作:文法begin end上代碼:UPDATE_IS_DEFLUAT 1 public static string UPDATE_IS_DEFLUAT = " UPDATE NEORULE SET ISDEFAULT=:ISDEFAULT{0} WHERE ID=:ID{0}";前台代碼 1 Dictionary<string, string> dict = new Dictionary<string, string>(); 2

oracle 行列裝置

項目中遇見統計每個課題組的”試劑“與”耗材“採購額與採購次數,當時查詢統計“試劑”的採購額與採購次數,然後查詢統計"耗材"的採購額與採購次數。這種方式效率很差,反反覆複訪問資料庫很多次,如果oracle提供了行列裝置函數就很好的解決此問題。oracle 11g提供PIOVToracle 10g提供的有decodedecode的邏輯如下:DECODE(value, if1, then1, if2,then2, if3,then3, . . . else

在fedora 12上面安裝oracle 11gR2

在fedora 12上面安裝oracle 11gR2 前言:這篇文章主要是翻譯的oracle-base的那篇安裝教程,不過由於英文的行文方式翻譯成中文比較彆扭,他這篇文章裡面也有不完美的地方,我再慢慢調整,現在這篇文章只是作為一個參考,每台機子情況不同,完全照著做基本上是裝不上,貼一下本文地址,防止有人把半成品給轉走哈,加上地址這樣別人看了好知道成品在哪,文章寫的是x86_64位的安裝教程,其實也適用於32位http://bbs.fedora-zh.org/showthread.php?4776

啟用oracle scott帳號

預設的scott使用者是被鎖定的,先解鎖就能登陸上了。 使用下面的語句解鎖scott: Java代碼 alter user scott account unlock;  alter user scott account unlock;解鎖之後可能會要求你該密碼: Java代碼 alter user scott identified by tiger;  alter user scott identified by tiger;再登陸: Java代碼

Oracle 進階查詢

1.  隨機返回記錄 Select * from (select ename,job from emp order by dbms_random.value()) where rownum<=5 隨機返回五條記錄。其中用到了系統函數dbms_random.value()為隨機數 2.  處理空值排序select * from emp order by comm desc nulls last;空值排在最前select * from emp order by comm desc nulls

Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified

我先裝了oracle9,再安裝了pl/sql dev,這時我輸入使用者名稱、口令可以串連伺服器。隨後我再安裝了ODAC 11.2 Release 4 (11.2.0.3.0) with Oracle Developer Tools for Visual Studio,我再使用pl/sql dev聯結時,報錯Oracle 10g ORA-12154: TNS: could not resolve the connect identifier

Rails 串連 Oracle 資料庫

Rails 串連 Oracle 資料庫準備工作:1)安裝 ActiveRecordOracle adaptersudo gem install activerecord-oracle-adapter --source http://gems.rubyonrails.org2)安裝 Oracle Clienthttp://www.oracle.com/technology/tech/oci/instantclient/index.html在安裝過程可能會出錯,一般都會有提示,可能會執行下面步驟 2

Oracle RMAN vs. Export?

http://www.dba-oracle.com/t_rman_export_expdp.htm Question:  I've been using data pump (the export utility) to backup my database, but I wonder if I should be using RMAN instead.  They both do backups, so what's the advantages of each? Answer:  Yes,

oracle spatial 類型

        在ArcGIS中通過SDE儲存空間資料到Oracle中有多種儲存方式,分別有:二進位Long Raw 、ESRI的ST_Geometry以及基於Oracle Spatial的SDO_Geometry等等。 <UpDooGIS原創>      關於這幾種方式的各自的優缺點不是主要的探討的方向,這些我們可以通過ArcGIS中的ArcGIS Server Help得到相關的協助。這裡主要是學習關於基於Oracle

關於解決oracle登入:ora-12154:tns:無法解析指定的串連標識符

          準備五一開始學習oracle,所以今天就打算把oracle 10g安裝下。安裝完後就來進行測試是否能夠正常的工作。          在安裝的過程中,配置的全域資料庫為tmt。         

Oracle 日期和時間處理函數匯總

Oracle 日期和時間處理函數匯總TO_DATE格式  Day:  dd number 12  dy abbreviated fri  day spelled out friday  ddspth spelled out, ordinal twelfth  Month:  mm number 03  mon abbreviated mar  month spelled out march  Year:  yy two digits 98  yyyy four digits

oracle表定界分割的測試例子

-- Create sequence create sequence SQ1minvalue 1maxvalue 999999999999999999999999999start with 2001increment by 1cache 20;序列的建立 create table testpatition(Gid number(10,3) primary key,GName varchar2(36),GDate date)partition by range(Gid)

oracle 觸發器寫法|oracle trigger 文法

create or replace trigger t_after_table --create or replace trigger 觸發器名稱after insert   ---時間 after/before 事件 insert or update or deleteon student   ---作用的表 on tablenameFOR EACH ROW --  指定是否對受影響的每行都執行觸發器,即行級觸發器,如果不使用此子句,則為語句級觸發器declare              -

簡單的oracle觸發器例子

簡單的oracle觸發器例子---術前訪視術後隨訪觸發器create or replace trigger t_update_triggerafter update or insert or deleteon MED_SMARTREPORT_TEMPLATEfor each rowdeclarestateCount number;beginselect count(1) into stateCount from MED_Template_State where ReportTemplateID=

oracle建立資料表空間,建立使用者

oracle建立資料表空間,建立使用者>//建立暫存資料表空間create temporary tablespace test_temp tempfile 'E:\oracle\product\10.2.0\oradata\testserver\test_temp01.dbf' size 32m autoextend on next 32m maxsize 2048mextent management local;//建立資料資料表空間create tablespace

ORACLE SQL效能最佳化三

17. 使用表的別名(Alias)18. 用EXISTS替代IN19. 用NOT EXISTS替代NOT IN 20. 用表串連替換EXISTS21. 用EXISTS替換DISTINCT22. 識別'低效執行'的SQL語句23. 使用TKPROF 工具來查詢SQL效能狀態 17. 使用表的別名(Alias) 當在SQL語句中串連多個表時, 請使用表的別名並把別名首碼於每個Column上.這樣一來,就可以減少解析的時間並減少那些由Column歧義引起的語法錯誤. (譯者注:

總頁數: 1509 1 .... 288 289 290 291 292 .... 1509 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.