版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、InstallationThe installation is customized and performed in two steps/ericsson/versant/bin/Extract_EXTRvrsnt.sh/ericsson/versant/bin/Configure_EXTRvrsnt.shVerification is done with/ericsson/versant/bin/Verify_EXTRvrsnt.sh These scripts are called from core.sh installation scriptEnvironmentoscp -iVer
2、sant Product Version: 6.0.1.1 Versant Root Path: /opt/versant/ODBMS Versant Runtime Path: /opt/versant/ODBMS Versant DB Directory: /export/versant/db Versant osc-dbid node name: tomas1o Versant osc-dbid path: /export/versant/dbid VERSANT_ROOT: /opt/versant/ODBMS VERSANT_DB: /export/versant/db VERSAN
3、T_DBID: /export/versant/dbid Versant ss.d Location: /opt/versant/ODBMS/bin/ss.d Database ListID = 1 DB name = PASDBtomas1o creator = nmsadm date created = Fri Jan 23 12:14:40 2004 db type = GROUP DATABASE db version = 6.0.1.1 ID = 2 DB name = AMDBtomas1o creator = nmsadm date created = Tue Jan 27 09
4、:33:20 2004 db type = GROUP DATABASE db version = 6.0.1.1 ID = 3 DB name = SMCStomas1o creator = nmsadm date created = Tue Jan 27 09:33:45 2004 db type = GROUP DATABASE db version = 6.0.1.1 ID = 4 DB name = NADBtomas1o creator = nmsadm date created = Wed Jan 28 09:42:58 2004 db type = GROUP DATABASE
5、 db version = 6.0.1.1 ID = 5DB name = NMSNADBtomas1o creator = nmsadm date created = Wed Jan 28 09:42:58 2004 db type = GROUP DATABASE db version = 6.0.1.1 ID = 6 DB name = ONRM_CStomas1o creator = nmsadm date created = Wed Jan 28 09:42:58 2004 db type = GROUP DATABASE db version = 6.0.1.1 Active da
6、tabasesdbtool -activedbList of started databases on tomas1o for VERSANT_DB /export/versant/db/:PASDBAMDBSMCSNADBNMSNADBONRM_CSHidden Dbid Optionsdbid E7012: UT_INVALID_PARAMETER: Invalid parameter Usage: dbid options options: -N Create an osc-dbid file. is not specified -c Create an entry in osc-dbi
7、d file for database -C Create an entry in osc-dbid file for database and database id as . -t Specify the type of database ( group or personal ) Must be used with -c or -C options. Default database type is group. -d Remove the database entry from the osc-dbid file -r Print the database id of the data
8、base -noprint Supress display messagesdbname: database nametype: database type 1: personal database 2: group databaseExampledbid C 10 t 2 testBackup/RestoreIs scheduled via the crontab, by default every sunday0 02 * * 0 /opt/ericsson/sck/bin/backup_versant_db.shCalls : ericsson/versant/bin/vrsnt_dbd
9、ump Calls ericsson/versant/bin/db2disk.bash Backup_versant_db.sh# VAR VRSNTDUMP=/export/dbdumps/versant KEEP=14 # days# ENV SCRIPTNAME=basename $0 SCRIPTDIR=cd dirname $0; pwd . $SCRIPTDIR/./lib/syb12.lib . $SCRIPTDIR/./lib/sck_function.lib# Databases to filesystem su - nmsadm -c /ericsson/versant/b
10、in/vrsnt_dbdump -d $VRSNTDUMP/db -l $VRSNTDUMP/log dump all /tmp/backup.$ 2&1 if $? != 0 ; then cat /tmp/backup.$ rm -f /tmp/backup.$ BAILOUT Versant database backup failed fi# Cleanup old databases/logs rm -f /tmp/backup.$ find $VRSNTDUMP -ctime +$KEEP | while read FILE; do $FILE = $VRSNTDUMP & con
11、tinue rm -rf $FILE done# Done exit 0Special Addvol procedureDescription: in Versant 6.0.1 there may be situations, where the database runs out of space and cannot be restarted to add volumesSolution:stopdbcp p logical.log logical.log.backdbtool E dbNameaddvol -n volname -p /PATH/volnameFile dbNamest
12、opdb fcp p logical.log.back logical.logstartdb dbNameNote the option is not available on all releases and must sometimes be replaced with the command .Database Schemapublic abstract class BaseModel protected String _name;public class Department extends BaseModel protected Vector _Employees; = CLASS
13、Department =superclasses: BaseModelattributes: _vj_hashCode : o_4b _name : char _vj_count_Employees : o_4b _vj_serial_Employees : o_1b _vj_increment_Employees : o_4b _Employees - (NULL_DOMAIN)* Total 10 instances of class Department *DatatypesDirectly mapped elemental typesStringintBooleanObject Ref
14、erenceDual Serialized“Vector and oder CollectionsCollection Attribute contains object loidsOutput in db2tty:charo_4bo_1bmConfiguration - (NULL_DOMAIN)Additional Versant Java (VJ) Fields _vj_count_Employees : o_4b _vj_serial_Employees : o_1b _vj_increment_Employees : o_4b _Employees - (NULL_DOMAIN)Ch
15、eck Ref Command (contribution)Usage : vrefcheck.exe -d -cursor-size -cod-threshold -v -fix -y -null -connect . -classes . -loids .Options-d: Database to be checked-cursor-size : Number of objects read per batch (default 2K)-cod-threshold : Threshold limit for COD table (default 1M)-v: Verbose output
16、-fix: Fix inconsistencies, use with caution-y: Fix inconsistencies without asking, use with extreme caution-null: Report NULL references as inconsistencies-connect: Databases that should be checked for referenced objects-classes: Classes to check, if not specified check all classes-loids: Specific o
17、bjects to check, if not specified check all instances of all classesExamplevrefcheck.exe -d vdbExamining class Department Checking instances Instance 924.0.2081 contains an invalid reference 924.0.2167 referenced by attribute _Employees is an invalid (null) object. checked 10 instances, 1 invalid references found in 1 instances.Fixing the instanceJava FixCollection vdb 924.0.2081 _Employees 924.0.2167java FixCollection vdb 924.0.2081 _Employees 924.0.2167Fixed Instance: 924.0.2081 Removed 924.0.2167 from attribute _Employees Jsql - Demo Programjava com.versant.contrib.demo.JDBCDemo vdbConn
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 护理护理问题解决
- 护理与安宁疗护
- 护士安全操作中的团队合作与沟通
- 医院感染预防的法律法规
- 护理专业解剖学学习资源
- 客户服务团队文化建设与价值观塑造
- 客户回访中的技巧与策略
- 轮机员安全防护措施及应急处理
- 成都天府生物产业孵化园三期项目水土保持方案报告表
- 列车的日常维护与保养知识培训
- 科技预见与未来愿景 2049 中文版
- 2025环境工程考研水处理工程模拟卷及答案
- 货运车队安全教育课件
- 2025中国电影市场及观众变化趋势报告
- 纠纷及突发事件应急预案
- 志愿活动拍摄技法
- SA8000-2026社会责任管理体系内审检查表完整内容
- 2025年专升本贵州真题语文答案
- 力学性能仿真与实验数据融合的承口弯头疲劳寿命评估新范式探索
- 废气运维工考试题及答案
- 初中语文2026届中考必背古诗词理解性默写练习(共40首附参考答案)
评论
0/150
提交评论