單向,雙向同步都可使用.--名詞說明:源——被同步的資料庫 目的——要同步到的資料庫前6步必須執行,第6以後是一些輔助資訊.--1、在目的資料庫上,建立dblinkdrop public database link dblink_orc92_182;Create public DATABASE LINK dblink_orc92_182 CONNECT TO bst114 IDENTIFIED BY password USING 'orc92_192.168.254.111
在oracle中建立預存程序和sybase及sql server下的文法有些不一致之處。下面就此用不同的資料庫下預存程序的例子來示範之。---------------------------oracle下:CREATE OR REPLACE FUNCTION MY_FUNC(P1 IN MY_TABLE.YY%TYPE,P2 IN MY_TABLE.NN%TYPE,P3 VARCHAR(100))RETURN VARCHAR2 AS/*定義有參數的遊標和無參數的遊標*/CURSOR
第五部分 LONG類型 LONG是一種已經被棄用的資料類型,LOB類型是它的替代品.所以留在LOB之後進行討論. 我們只需要簡單的瞭解即可.為什麼ORACLE還保留這種類型,只是為了向後相容,在新的資料庫設計是,不要再使用LONG類型列. LONG類型有兩種: LONG :能儲存2GB的字元 LONG RAW:能儲存最多2GB的位元據. 我們只需要對LONG類型的限制進行瞭解即可. LONG/LONG RAW 類型 CLOB/BLOB類型
We don’t want to have every user install Oracle Data Access Components and drivers so we want to package it into our deployment.first dowload Oracle Data Access Components. The most current one as of 2/11/2011
使用Truncate:清理並回收空間,(mysql,sqlserver等有自增序列的資料庫將序列歸零),無法恢複,不能復原;使用drop:刪除表,但不回收空間,可以恢複,不能復原;使用delete:刪除記錄,不回收空間,可恢複,可復原; 1. 使用drop和delete之後如何恢複?使用flashback語句flashback table test2 to before drop ; 查詢資源回收筒select * from dba_recyclebin;
Oracle Data Provider for .NET有兩個名字空間,分別是Oracle.DataAccess.Client和Oracle.DataAccess.Types。Oracle.DataAccess.Client用於設定資料庫的串連等等通用功能,Oracle.DataAccess.Types用於設定oracle自訂的一些資料類型。使用之前,需要在項目中添加引用Oracle.DataAccesss.dll。下面舉個例子說明: 1.
using System; using System.Data; using System.Text; using System.Windows.Forms; using Microsoft.Office.Interop.Excel; using System.Data.OleDb; //引用-com-microsoft excel objects 11.0 namespace WindowsApplication5 { public partial
給使用者增加匯入資料許可權的操作http://www.diybl.com/course/7_databases/oracle/oraclejs/20071211/91845.html 第一,啟動sql*puls 第二,以system/manager登陸 第三,create user 使用者名稱 IDENTIFIED BY 密碼 (如果已經建立過使用者,這步可以省略) 第四,GRANT CREATE USER,DROP USER,ALTER USER ,CREATE ANY VIEW ,
註:答案在選項後面 Q. 1 : The default tablespace clause in the create user command sets the location for 1. Database Objects created by the user 2. Temporary Objects Created By the User 3. System Objects Created by the user 4. None of the above
Q. 1 : What option of Exporting allows quicker data extractions 1. Grants =y 2. Consistent =y 3. Direct = true 4. Direct=y 4 : Direct=y option bypasses the SQL layer to allow quicker data extractions Q. 2 : How are exports useful ? 1.
Q. 1 : When will the rollback information applied in the event of a database crash 1. before the crash occurs 2. after the recovery is complete 3. immediately after re-opening the database before the recovery 4. roll back infrmation is
Q. 1 : Physical Disk Resources in an Oracle Database are 1. Control Files 2. Redo Log Files 3. Data Files 4. All of the above 4 Q. 2 : What is a Schema 1. A Physical Organization of Objects in the Database 2. A Logical Organization