create or replace package PG_ENCRYPT_DECRYPTisiKey varchar2(8):='oracle9i';function GEN_RAW_KEY ( iKey in varchar2) return raw;function DECRYPT_3KEY_MODE(iValue in raw,iMode in pls_integer)return varchar2;function ENCRYPT_3KEY_MODE(iValue in varchar2
ORACLE段:首先在ORACLE建立PACKAGE和PACKAGE BODY,將在這裡面定義函數和預存程序返回結果集.1:建立PACKAGE:CREATE OR REPLACE package SCOTT.pk_wtistype mytype is ref cursor;procedure p_wt( mycs out mytype );function f_get( str in varchar2 )return
上次講了在linux下安裝Oracle,安裝完之後可以用netac來配置遠端資料庫的本地命名。要在perl下面串連oracle資料庫,首先必須安裝DBI和DBD for Oracle。下面是一段perl程式#!/usr/bin/perluse DBI;$dbname="oralce";$user="user";$passwd="password";$dbh="";$dbh =
一、什麼是REDO LOGREDOLOG檔案是十分重要的檔案,它記錄了Oracle的所有變化,是資料庫執行個體恢複機制中最為關鍵的組成部分。sys@OCM> select * from v$log;GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS
1、索引的概念索引是用於加速資料存取的資料庫物件。合理地使用索引可以大大降低I/O次數。2、索引的功能:對記錄進行排序,加快表的查詢速度。3、索引的分類:(1)單列索引和複合索引單列索引是基於單個列所建立的索引;複合索引時基於兩列或多列所建立的索引。SQL>CREATE INDEX emp_idx1 on emp( ename, job);SQL>CREATE INDEX
在047考題中有以下這麼一道考題11.View the Exhibit and examine the descriptions of ORDER_ITEMS and ORDERS tables.You want to display the CUSTOMER_ID, PRODUCT_ID, and total (UNIT_PRICE multiplied byQUANTITY) for the order placed. You also want to display the
一、案例說明利用rman備份資料庫後,因為人工誤刪除資料表空間,現在需要使用非完全恢複來找回被誤刪除的資料表空間二、環境準備[oracle@ECP-UC-DB1 ~]$ sqlplus / as sysdbaSQL*Plus: Release 10.2.0.4.0 - Production on Mon Nov 14 12:35:14 2011Copyright (c) 1982, 2007, Oracle. All Rights Reserved.Connected