Gallery: Oracle:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
(新页面: = Oracle Database Server For Gallery 2 = Gallery 2 supports Oracle Database Server 9i and 10g. To guarantee correct functioning of Gallery 2, it is imperative to configure the database c...)
 
无编辑摘要
 
第1行: 第1行:
= Oracle Database Server For Gallery 2 =
= Gallery2的Oracle数据库服务器=
Gallery 2 supports Oracle Database Server 9i and 10g.  To guarantee correct functioning of Gallery 2, it is imperative to configure the database correctly.  See the below requirements.
Gallery 2支持Oracle数据库服务器9i和10g。为了保障Gallery2能够正常运作,对数据库进行正确的配置是必不可少的。参见以下要求。


== Database Server Settings ==
== 数据库服务器设定==
* CHARACTER_ENCODING AL32UTF8
* CHARACTER_ENCODING AL32UTF8
* NLS_LENGTH_SEMANTICS CHAR ([1])
* NLS_LENGTH_SEMANTICS CHAR ([1])


== Client / Environment Settings ==
== 客户端/环境设定 ==
* NLS_LANG=AMERICAN_AMERICA.UTF8 (Choose the territory / language of your choice, but keep '''.UTF8'''!)
* NLS_LANG=AMERICAN_AMERICA.UTF8 (可根据需要选择区域/语言,但保留'''.UTF8''')
* ORA_NLS10=/home/oracle/product/10.2.0.1/nls/data (example value, must be defined)
* ORA_NLS10=/home/oracle/product/10.2.0.1/nls/data (示例数值,须被定义)
* etc (ORACLE_HOME, ORACLE_SID, PATH, ...)
* etc (ORACLE_HOME, ORACLE_SID, PATH, ...)


== Database User Requirements ==
== 数据库用户要求==
Required Permissions:
需要的权限:
* CREATE, ALTER, DROP TABLE
* 创建,修改,删除表格
* CREATE SEQUENCE (DROP SEQUENCE if you want to use the "erase" method of the installer to reinstall G2 without manual steps)
* 创建次序(删除次序,如果你希望使用安装程序的"擦除"方法不经手动步骤重新安装G2)
* SELECT, INSERT, UPDATE, DELETE on all tables created by this user
* 选择,插入,更新,删除该用户创建的所有表格
* (CREATE, DROP INDEX - is indirectly granted through CREATE, ALTER, DROP TABLE)
* (创建,删除索引- 间接地经创建,修改,删除表格所授权)
* ANALYZE ANY (to analyze all tables created by this user)
* 分析所有(分析该用户所创建的所有表格)
* Unlimited tablespace quota (without page level caching, the database will remain reasonably small (< 100 MB) even for pretty large image collections. But with page level caching, the CacheMap table alone can take over a GB of space.)
* tablespace分区不受限(若无页面层级缓冲的话,那么即使对于颇大的图片集来说,数据库仍将相当地小(小于100MB)。但有了页面层级缓冲之后,单单CacheMap表格就可享有1个GB那么大的空间。)


Note: Only SELECT, INSERT, UPDATE, and DELETE is required during the normal operation of Gallery 2.  Other permissions are required during installation and upgrade of the core and other modules. Since users can install / upgrade / uninstall modules at any time in "Site Admin : Plugins", you cannot just use another database user during normal operations (unless you change the code).
注:仅选择,插入,更新和删除时Gallery2一般操作中所需要的。其他权限则在安装以及核心/模块的升级中才需要。因为用户任何时候都可在"站点管理(Site Admin) : 插件(Plugins)"中安装/升级/卸载模块,所以在一般操作过程中你不能使用另外一个数据库用户(除非你修改了代码)。


== Optional Components ==
== 可选组件==
Install '''OracleCreateBitOr.sql''' (location: modules/core/classes/GalleryStorage/) and uncomment the following line in OracleStorage.class
安装'''OracleCreateBitOr.sql''' (位置:modules/core/classes/GalleryStorage/)并取消OracleStorage.class中该行的批注
   /* return array(null, 'BIT_OR(' . $args[0] . ')'); */
   /* return array(null, 'BIT_OR(' . $args[0] . ')'); */
This may boost performance a bit.
这将略微提高性能。


== Oracle Express Edition ==
== Oracle XE ==
Instructions for setting up Oracle XE can be found [http://codex.gallery2.org/Gallery2:VM-OracleXe here].
Oracle XE的相关安装指导可见于[http://codex.gallery2.org/Gallery2:VM-OracleXe ]
 
== Notes ==
[1] If not the whole database is set to NLS_LENGTH_SEMANTICS, you need to set it in OracleStorage.class function _setConnectionSettings() ''before'' you run the Gallery 2 installer.


== 注释 ==
[1] 如果非整个数据库保被设定为NLS_LENGTH_SEMANTICS的话,那么在运行Gallery2安装程序''之前'',你需要在OracleStorage.class function _setConnectionSettings()中进行设定。
[[Category:Gallery 2]]
[[Category:Gallery 2]]

2008年8月28日 (四) 16:32的最新版本

Gallery2的Oracle数据库服务器[ ]

Gallery 2支持Oracle数据库服务器9i和10g。为了保障Gallery2能够正常运作,对数据库进行正确的配置是必不可少的。参见以下要求。

数据库服务器设定[ ]

  • CHARACTER_ENCODING AL32UTF8
  • NLS_LENGTH_SEMANTICS CHAR ([1])

客户端/环境设定[ ]

  • NLS_LANG=AMERICAN_AMERICA.UTF8 (可根据需要选择区域/语言,但保留.UTF8!)
  • ORA_NLS10=/home/oracle/product/10.2.0.1/nls/data (示例数值,须被定义)
  • etc (ORACLE_HOME, ORACLE_SID, PATH, ...)

数据库用户要求[ ]

需要的权限:

  • 创建,修改,删除表格
  • 创建次序(删除次序,如果你希望使用安装程序的"擦除"方法不经手动步骤重新安装G2)
  • 选择,插入,更新,删除该用户创建的所有表格
  • (创建,删除索引- 间接地经创建,修改,删除表格所授权)
  • 分析所有(分析该用户所创建的所有表格)
  • tablespace分区不受限(若无页面层级缓冲的话,那么即使对于颇大的图片集来说,数据库仍将相当地小(小于100MB)。但有了页面层级缓冲之后,单单CacheMap表格就可享有1个GB那么大的空间。)

注:仅选择,插入,更新和删除时Gallery2一般操作中所需要的。其他权限则在安装以及核心/模块的升级中才需要。因为用户任何时候都可在"站点管理(Site Admin) : 插件(Plugins)"中安装/升级/卸载模块,所以在一般操作过程中你不能使用另外一个数据库用户(除非你修改了代码)。

可选组件[ ]

安装OracleCreateBitOr.sql (位置:modules/core/classes/GalleryStorage/)并取消OracleStorage.class中该行的批注

 /* return array(null, 'BIT_OR(' . $args[0] . ')'); */

这将略微提高性能。

Oracle XE[ ]

Oracle XE的相关安装指导可见于

注释[ ]

[1] 如果非整个数据库保被设定为NLS_LENGTH_SEMANTICS的话,那么在运行Gallery2安装程序之前,你需要在OracleStorage.class function _setConnectionSettings()中进行设定。