1Apache::Session::Store:U:sOerracCloen(t3r)ibuted Perl DoAcpuamcehnet:a:tSieosnsion::Store::Oracle(3)
2
3
4
6 Apache::Session::Store::Oracle - Store persistent data in a Oracle
7 database
8
10 use Apache::Session::Store::Oracle;
11
12 my $store = new Apache::Session::Store::Oracle;
13
14 $store->insert($ref);
15 $store->update($ref);
16 $store->materialize($ref);
17 $store->remove($ref);
18
20 Apache::Session::Store::Oracle fulfills the storage interface of
21 Apache::Session. Session data is stored in a Oracle database.
22
24 To use this module, you will need at least these columns in a table
25 called 'sessions':
26
27 id varchar2(32) # or however long your session IDs are.
28 a_session long
29
30 To create this schema, you can execute this command using the sqlplus
31 program:
32
33 CREATE TABLE sessions (
34 id varchar2(32) not null primary key,
35 a_session long
36 );
37
38 If you use some other command, ensure that there is a unique index on
39 the table's id column.
40
42 The module must know what datasource, username, and password to use
43 when connecting to the database. These values can be set using the
44 options hash (see Apache::Session documentation). The options are
45 DataSource, UserName, and Password.
46
47 Example:
48
49 tie %hash, 'Apache::Session::Oracle', $id, {
50 DataSource => 'dbi:Oracle:database',
51 UserName => 'database_user',
52 Password => 'K00l'
53 };
54
55 Instead, you may pass in an already-opened DBI handle to your database.
56
57 tie %hash, 'Apache::Session::Oracle', $id, {
58 Handle => $dbh
59 };
60
61 The last option is LongReadLen, which specifies the maximum size of the
62 session object. If not supplied, the default maximum size is 8 KB.
63
65 This modules was written by Jeffrey William Baker <jwbaker@acm.org>
66
67 A fix for the commit policy was contributed by Michael Schout
68 <mschout@gkg.net>
69
71 Apache::Session, Apache::Session::Store::DBI
72
73
74
75perl v5.32.0 2020-09-19 Apache::Session::Store::Oracle(3)