1.給指定使用者(tecamocmsuser)授權(ctxapp和execute on ctx_ddl)grant ctxapp to tecamocmsuser; grant execute on ctx_ddl to tecamocmsuser; 2建立分詞 ctx_ddl.create_preference ('my_LEXER', 'chinese_vgram_lexer'); 3建立索引CREATE INDEX INX_Archive ON
Oracle universal Installer,Oracle Database ,Enterprise Edition.Oracle Database Configuration Assistant to Create Database.Oracle Net Configuration Assistant to connect the a certain (remote/local) database.Oracle Enterprise Manager adds the database
/* 預存程序 參數類型: in 表示入參 out 表示出參 in out 表示既是入參又是出參 預設情況下是入參 注意: 預存程序的參數資料類型不需要指定精度 */ create or replace procedure pro_myjob(title in varchar2) is var_mytitle jobs.job_title%type; begin select j.job_title into var_mytitle from jobs j where
select * from employees emp where emp.salary = 3000 if語句 begin if (10>50) then dbms_output.put_line('da yu'); else dbms_output.put_line('bu da yu'); end if; end; select * from employees emp where emp.employee_id=119 where
有時候我們可能不知道一個使用者的密碼,但是又需要以這個使用者做一些操作,又不能去修改掉這個使用者的密碼,這個時候,就可以利用一些小竅門,來完成操作。具體操作過程如下:SQL*Plus:Release 9.2.0.5.0 - Production on 星期日 11月 21 13:32:34 2004Copyright (c)1982, 2002, Oracle Corporation. All rights reserved.SQL> connectsys/oracle as
表結構create table U ( NAME CHAR(64) not null, ID INTEGER not null PRIMARY KEY)tablespace CICI;comment on table U is '使用者表'; create table GROU ( NAME CHAR(64) not null, ID INTEGER not null PRIMARY KEY)tablespace CICI;comment on table GROU is
create or replace package PAGEQUERY_PACK is -- Author : ADMINISTRATOR -- Created : 2013/1/13 15:47:30 -- Purpose : FEN YE CHA XUN -- Public type declarations TYPE CUR IS REF CURSOR; -- Public function and procedure declarations