第八章: managing password security and resources 1.controlling account lock and password sql> alter user juncky identified by oracle account unlock; 2.user_provided password function sql> function_name(userid in
CREATE OR REPLACE TYPE Varchar2Varray IS VARRAY(100) of VARCHAR2(40);/CREATE OR REPLACE FUNCTION sf_split_string (string VARCHAR2, substring VARCHAR2) RETURN Varchar2Varray IS len integer := LENGTH(substring); lastpos integer := 1 - len; pos
1.首先在oracle中建預存程序,預存程序名庫 PROCEDURE prc_queryCREATE OR REPLACE PROCEDURE prc_query (p_tableName in varchar2, --表名 p_strWhere in varchar2, --查詢條件 p_orderColumn in varchar2, --排序的列 p_orderStyle
因公司規定用繁體字 ,所以下麵的中文都是繁體的 CREATE OR REPLACE PROCEDURE send_mail (p_From IN VARCHAR2,p_To IN VARCHAR2,p_Subject IN VARCHAR2,p_Body IN VARCHAR2,p_Cc IN VARCHAR2 := NULL,p_Bcc IN VARCHAR2 := NULL,p_ContentType IN VARCHAR2 := 'text/plain;charset=big5',
Q. 1 : Oracle immediately re-uses the space assigned to row-directory portion of the data block once you delete the corresponding rows. 1. True 2. False 2 Q. 2 : Which of the following three portions of a data block are collectively
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
Q. 1 : The Database must be in this mode for the instance to be started 1. MOUNT 2. OPEN 3. NOMOUNT 4. None 3 Q. 2 : When Oracle startups up, what happens if a datafile or redo log file not available or corrupted due to O.S Problems 1.
第四章:索引 1.creating function-based indexes sql> create index summit.item_quantity on summit.item(quantity-quantity_shipped); 2.create a b-tree index sql> create [unique] index index_name on table_name(column,.. asc/desc)