Skip to content

Commit

Permalink
update demo's unit
Browse files Browse the repository at this point in the history
  • Loading branch information
kaven276 committed Mar 27, 2013
1 parent 7c032bf commit 4f403dd
Show file tree
Hide file tree
Showing 16 changed files with 67 additions and 121 deletions.
Empty file modified oracle/demo/auth_s.bdy 100755 → 100644
Empty file.
Empty file modified oracle/demo/auth_s.spc 100755 → 100644
Empty file.
57 changes: 0 additions & 57 deletions oracle/demo/callout_broker_h.bdy

This file was deleted.

12 changes: 0 additions & 12 deletions oracle/demo/callout_broker_h.spc

This file was deleted.

Empty file modified oracle/demo/default_b.bdy 100755 → 100644
Empty file.
Empty file modified oracle/demo/default_b.spc 100755 → 100644
Empty file.
61 changes: 46 additions & 15 deletions oracle/demo/install_demo_obj.sql 100755 → 100644
@@ -1,8 +1,9 @@
-----------------------------------------------
-- Export file for user DEMO --
-- Created by Li Yong on 2012-7-20, 10:58:29 --
-----------------------------------------------
-----------------------------------------------------
-- Export file for user DEMO --
-- Created by Administrator on 2013-3-27, 21:19:36 --
-----------------------------------------------------

set define off
spool install_demo_obj.log

prompt
Expand All @@ -21,6 +22,11 @@ prompt =======================
prompt
@@auth_b.spc
prompt
prompt Creating package AUTH_S
prompt =======================
prompt
@@auth_s.spc
prompt
prompt Creating package BASIC_IO_B
prompt ===========================
prompt
Expand All @@ -31,11 +37,6 @@ prompt ========================
prompt
@@cache_b.spc
prompt
prompt Creating package CALLOUT_BROKER_H
prompt =================================
prompt
@@callout_broker_h.spc
prompt
prompt Creating package CHARSET_B
prompt ==========================
prompt
Expand All @@ -46,6 +47,11 @@ prompt =========================
prompt
@@db_src_b.spc
prompt
prompt Creating package DEFAULT_B
prompt ==========================
prompt
@@default_b.spc
prompt
prompt Creating package ERROR_B
prompt ========================
prompt
Expand Down Expand Up @@ -101,6 +107,11 @@ prompt ============================
prompt
@@post_file_b.spc
prompt
prompt Creating package PROFILE_S
prompt ==========================
prompt
@@profile_s.spc
prompt
prompt Creating package PV
prompt ===================
prompt
Expand Down Expand Up @@ -161,6 +172,16 @@ prompt ===========================
prompt
@@xml_page_b.spc
prompt
prompt Creating procedure DAD_AUTH_ENTRY
prompt =================================
prompt
@@dad_auth_entry.prc
prompt
prompt Creating procedure HELLO
prompt ========================
prompt
@@hello.prc
prompt
prompt Creating procedure URL_TEST1_B
prompt ==============================
prompt
Expand All @@ -176,6 +197,11 @@ prompt ============================
prompt
@@auth_b.bdy
prompt
prompt Creating package body AUTH_S
prompt ============================
prompt
@@auth_s.bdy
prompt
prompt Creating package body BASIC_IO_B
prompt ================================
prompt
Expand All @@ -186,11 +212,6 @@ prompt =============================
prompt
@@cache_b.bdy
prompt
prompt Creating package body CALLOUT_BROKER_H
prompt ======================================
prompt
@@callout_broker_h.bdy
prompt
prompt Creating package body CHARSET_B
prompt ===============================
prompt
Expand All @@ -201,6 +222,11 @@ prompt ==============================
prompt
@@db_src_b.bdy
prompt
prompt Creating package body DEFAULT_B
prompt ===============================
prompt
@@default_b.bdy
prompt
prompt Creating package body ERROR_B
prompt =============================
prompt
Expand Down Expand Up @@ -256,6 +282,11 @@ prompt =================================
prompt
@@post_file_b.bdy
prompt
prompt Creating package body PROFILE_S
prompt ===============================
prompt
@@profile_s.bdy
prompt
prompt Creating package body RC
prompt ========================
prompt
Expand Down Expand Up @@ -311,4 +342,4 @@ prompt =======================
prompt
@@t_user.trg

spool off
spool off
Empty file modified oracle/demo/profile_s.bdy 100755 → 100644
Empty file.
Empty file modified oracle/demo/profile_s.spc 100755 → 100644
Empty file.
14 changes: 0 additions & 14 deletions oracle/demo/t_user.trg
@@ -1,21 +1,7 @@
create or replace trigger t_user
after update on user_t
for each row
declare
v mv2bg.event;
begin
kv.del('user', :old.name);

v.evt_rowid := :old.rowid;

-- to manual stream
v.pipe_name := 'user_change_broker';
mv2bg.add(v);

-- for auto stream
v.pipe_name := 'demo_user_upt';
mv2bg.add(v);

-- when commit the transaction, remember to call mv2bg.after_commit to send all pending event to pipe
end t_user;
/
6 changes: 3 additions & 3 deletions oracle/demo/term_t.tab
@@ -1,8 +1,8 @@
create table TERM_T
(
MSID VARCHAR2(30) not null,
BGCOLOR VARCHAR2(30),
FGCOLOR VARCHAR2(30)
msid VARCHAR2(30) not null,
bgcolor VARCHAR2(30),
fgcolor VARCHAR2(30)
)
;
alter table TERM_T
Expand Down
12 changes: 9 additions & 3 deletions oracle/demo/test_b.bdy
Expand Up @@ -7,6 +7,12 @@ create or replace package body test_b is
h.line('<a href="test_b.d">Link to test_b.d (basic request info) </a>');
h.line('<a href="test_b.redirect">Link to test_b.redirect (test for redirect)</a>');
h.line('</pre>');
h.line(r.protocol);
h.line(r.client_addr);
h.line(r.client_port);
h.line(r.header('x-forwarded-proto'));
h.line(r.header('x-forwarded-for'));
h.line(r.header('x-forwarded-port'));
end;

procedure d is
Expand Down Expand Up @@ -39,7 +45,7 @@ create or replace package body test_b is
p.style_open;
p.line('p{line-height:1.1em;margin:0px;}');
p.style_close;
p.p('����һ�·�ascii�ַ�����http header�����');
p.p('test case that none ascii charset following http header');
p.p(r.host_prefix);
p.p(r.port);
p.p(r.method);
Expand Down Expand Up @@ -74,8 +80,8 @@ create or replace package body test_b is
h.line('<a href="test_b.redirect">Link to test_b.redirect</a>');
h.line('<form action="test_c.do?type=both&type=bothtoo" method="post" accept-charset="gbk">');
h.line('<input name="text_input" type="text" value="http://www.google.com?q=HELLO"/>');
h.line('����');
h.line(utl_i18n.escape_reference('����', 'us7ascii'));
h.line('Hello');
h.line(utl_i18n.escape_reference('Hello', 'us7ascii'));
h.flush;
h.line('<input name="checkbox_input" type="checkbox" value="checkedvalue1" checked="true"/>');
h.line('<input name="checkbox_input" type="checkbox" value="checkedvalue2" checked="true"/>');
Expand Down
12 changes: 6 additions & 6 deletions oracle/demo/test_c.bdy
Expand Up @@ -6,7 +6,7 @@ create or replace package body test_c is
h.status_line(200);
h.content_type;
h.header_close;

p.doc_type('5');
p.h;
p.ul_open;
Expand All @@ -16,36 +16,36 @@ create or replace package body test_c is
p.ul_close;
end;

-- 201������ʾ֪�����ļ���URL
-- 201 tip for the newly created file's URL
procedure do_201 is
begin
h.status_line(201);
h.location('test_b.d');
h.header_close;
end;

-- 202�������ܺʹ�����������δ���
-- 202 accept and processing, but not done completely
procedure do_202 is
begin
h.status_line(202);
h.header_close;
end;

-- 203����������Ϣ��ȷ��������
-- 203 infomation is not sure or not complete
procedure do_203 is
begin
h.status_line(203);
h.header_close;
end;

-- 204���������յ�����������ϢΪ��
-- 204 accept, but return null response
procedure do_204 is
begin
h.status_line(204);
h.header_close;
end;

-- 205��������������������û��������븴λ��ǰ�Ѿ���������ļ�
-- 205 processed, but UA must
procedure do_205 is
begin
h.status_line(205);
Expand Down
6 changes: 3 additions & 3 deletions oracle/demo/user_t.tab
@@ -1,8 +1,8 @@
create table USER_T
(
NAME VARCHAR2(30) not null,
PASS VARCHAR2(30) not null,
CTIME DATE not null
name VARCHAR2(30) not null,
pass VARCHAR2(30) not null,
ctime DATE not null
)
;
comment on table USER_T
Expand Down
3 changes: 0 additions & 3 deletions oracle/demo/xml_page_b.bdy
Expand Up @@ -103,8 +103,6 @@ create or replace package body xml_page_b is
v := dbms_xmlgen.newcontext(c);
dbms_xmlgen.setrowsettag(v, 'users');
dbms_xmlgen.setrowtag(v, 'user');
p.line('<?xml version="1.0"?>');
p.a('url', 'users_ol.css');
p.ps('<?xml-stylesheet type="text/css" href=":1" media="screen"?>', st(u('users_ol.css')));
p.d(dbms_xmlgen.getxmltype(v).getclobval);
close c;
Expand All @@ -126,7 +124,6 @@ create or replace package body xml_page_b is
p.ps('<?xml-stylesheet type="text/xsl" href=":1" media="screen"?>', st(u('users.xsl')));
p.d(dbms_xmlgen.getxmltype(v).getclobval());
close c;
p.gv_headers_str := null;
end;

-- has problem by now
Expand Down
5 changes: 0 additions & 5 deletions oracle/psp/install_psp_obj.sql
Expand Up @@ -321,11 +321,6 @@ prompt ==========================
prompt
@@k_bg.bdy
prompt
prompt Creating package body K_CCFLAG
prompt ==============================
prompt
@@k_ccflag.bdy
prompt
prompt Creating package body K_CFG
prompt ===========================
prompt
Expand Down

0 comments on commit 4f403dd

Please sign in to comment.