




已阅读5页,还剩21页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
第一章 SCO UNIX5.0 操作系统安装及其说明第一节 UNIX安装安装前的准备工作(HP Netserver LH 3000 U3 镜相服务器)一、1 按Ctrl+M for HP NetRAID Express Tools在Management下选 configure New configuration 回车选Yes 回车2 在New Configuration_Array Selection Menu按空格选ONLINE 回车 ONLINE 回车回车在Logical Drive 0 中 选RAID=1 回车选RAID1回车回车YESYES 直到出现Save Configuration选 YesYes按ESC退出3 选Initialize(初始化)在Logical Drives中按空格选中Logical Drive 0按F10,YES,回车按ESC,回车,yes,回车按ESC,退出二制作Amird NetRAID driver 和网卡驱动装入光盘(HP Netserver Navigator CD-ROM).在菜单中选择 Diskket Library制作RAID盘和网卡驱动盘退出。(IBM xSeries 232 阵列服务器)基础知识:RAID 0一块盘 RAID 1两块盘(镜相) RAID 5多块盘(最少三块) 例:4块盘容量=4块盘总容量-1/4总容量一、 配置阵列信息步骤:1、 放入工具盘2、 选中controller,选Actions出厂设置3、 ActionsCreate arrays4、 选Custom configuration for controller 15、 Next6、 将ID0ID3拖到右侧Arrays下7、 Next8、 选5-Maxmum capacity with redurdaLogical drive19、 Next 10、Apply yes11、Reboot,取出光盘二、 制作RAID盘1、 Creat systom dishettes选SCO UnixWare2、 Next3、 Your Server4、 Next5、 IBM Server RAID Adapter6、 Next7、 IBM Serve RAID Device Driver Diskette for SCO Operation System_UnixWare HE8、 Next9、 插入磁盘10、 Next11、 OK12、 NextNext 系统安装放入UNIX光盘,启动服务器屏幕显示:1、boot:defbootstr link=”amird” Sdsk=amird(0,0,0,0) Srom=wd(0,0,0,0)(HP Netserver LH 3000 U3镜相服务器)2、boot:restart link=ipsraid Sdsk=ips(0,0,0,0) Srom=wd(0,0,0,0) 放入RAID软盘,回车。 Press to begin installationInstalling SCO openserver softwareIdentifying the installation media deviceThe media device is your type,CD-ROM,or floppy driveFollow the instructions at the bottm of the screen to change a value.Media device to be used:IDE CD ROM IDE Controller : primary Master or Slave : masterInsert your installation CD-ROM in the CD-ROM drive and select ok to continue the installation.To reset your media choice,select Cancel. Ok Cancel选择:OKSelecting a keyboard type Keyboard : US EnglishLicensing your system (输入UNIX的License号) License number: License code: License date:Suitability for automatic Upgrade Upgrade Fresh选择:FreshConfiguring the basic systemSystem name : (任意)Domain name : (任意起名)Security profile (安全级) : Traditional Tine zone : china Standard Time Langnage : Standard C (English)Initial system profileStandark Enterprise system configuration: YesLightweight character terminal configuration: NoIf you run large database products,choose the following: Database services: YesPreparing your disk and choosing SoftwareHard disk setup:Unix only:Bad Blocking OFF按空格选Custom硬盘分区boot区(引导区):如果硬盘容量大,可适当加大该区域。Swap区(交换区):是内存的两倍或1.5倍。Root区:U区:大于500 M。V区:剩余空间。Configuring optional SoftwareNetwork cord:deferredNetwork address: No networking cord configuredVideo and graphice:VESA SVGAMouse:Low ResoLutionEmail system:默认 Setting your boot password Boot password:(输入口令)Please select the floppy device you are using: (1)/dev/fd0 (2)/dev/fd1选择:1Please insert the floppy for BTLD package:wd and press For more information on there produces see /info/readme.txt or /info/readme.hem on the optional services CD.重新启动服务器 ,UNIX系统安装完毕。第二节 安装网卡之一:# custom1. 选择Software2. 选择Install new3. 选择From Scosysv4. 选择Floppy Disk Drive5. 选择select Software to install用tab键选installAdd the interface in slot 0 to the cnet driver configuration?(y/n)回答:yDo you want to use TCP/IP facilities on the interface in slot 0?(y/n)回答:yInter the internet address of this interface(服务器地址):如:0Inter the netmask for this interface(default ):输入:Does the interface use broadcast address of all Is?(y/n)(default :y): 回答:yEnter the broadcast address for this Interface (default:55):(回车)Are these values correct: (y/n)回答:yinsert :floppy volum 2in:scosysv,floppy disk drive 0During this installation the Kernel was relinked,you must reboot your system to make this Kernel effective.OKInstallation completeOK# reboot网卡安装完毕,用ping命令检查网卡是否通过。之二:(联想万全2300服务器)进入系统后,将“网卡驱动程序for Sco Openserver 5.0.5”软盘中的驱动程序拷贝到硬盘上,改名为VOL.000.000,并将文件属性改为只读:#doscp a:eee.vol/tmp/VOL.000.000#chmod 444/tmp/VOL.000.000然后安装网卡驱动:# custom1.选择Software2.选择Install new3.选择From Scosysv4.选择media images作为安装介质,键入驱动路径/tmp,选择Intel Network Drivers(Ver 1.4.10),安装完毕,退出custom。5.运行netconfig添加网卡(选第一项,加LAN适配器),并配置相关参数,退出netconfig并选择relink the kernel。6. 重启系统之三:(IBM xSeries 232)# doscp a:eee.vol/tmp/VOL.000.000.000#chmod 444 /tmp/VOL.000.000#custom1. softwareinstall newfrom scosysv2. 按空格选Media Images3. 输入/tmp4. 选install5. OK,退出6. #netconfig7. Hardware/Add new LAN adapter8. continue9. 选 SCO TCP/IP 选Add10. 输IP地址11. 退出,relink第三节 建立用户及修改参数增加10用户:# scoadmin选License Manger,回车选License 按选License Additional Users,回车输入(10用户)序列号:回车选OK,退出用tab键选Tune回车,选OK 回车,yes,回车连内核,OK,回车重连内核用选hardware/Kernel Manager用tab键选择Tune Parameters选7项User and group configurationNOFILES:maximum number of open files per processThe current value is:110 New value is :1024,回车选16项 Shared dataSHMMAX:maximum shared memory segment size(byes)The current value is:52428 New value is:SHMMAX(SHMMAX=内存数*1024*1024)重连内核建立Sybase用户# scoadmin选择:Account Manager(帐户管理)选菜单项:UsersAdd new User Login:Sybase Use ID:改为 /u/Sybase OK,回车,输入口令,退出修改参数1 修改Sybase目录下的 .profile文件进入sybase目录;$ vi .profile在MAIL=/usr/spool/mail/logname 行下加一行:SYBASE=”/u/Sybase”;export SYBASE按ESC,输入冒号,wq,回车2 修改根目录下的 .profile文件在根下# vi .profile在PATH下插入一行:SYBASE=”/u/Sybase”;export SYBASE按ESC ,输入冒号,wq,回车3 修改rc2文件参数cd etcvi rc2在if前加一行:/etc/suds_ctrl a 50Sybase组的ID号重连内核第四节 SYBASE数据库的安装一连接光驱# mkdir cdrom# mount r f HS,lower /dev/cd0 /cdrom二Login Sybase用户(登录Sybase用户)$ /cdrom/sybase11/sql11/sybload -DCurrent directory is “/u/Sybase”Is this the correct directory for installation?If so,Please enter y or Y:回答:yIs this a local or Remote installation,as defined in your Installation Guide?Please enter L for Local or R for RemotelPlease enter the full name of the disk file of the global archive:/cdrom/sybase11/sql11/sybimage输入Sybase系统号DDBKBK BKBKRN BKBKSO KOBKBK BYBKPP PDZASybase Products available for installation:Product No. 1:Sybase SQL Server,SCO,11.0.3Product No. 2:.Please enter the product Number that you with to install,one per line.Terminate your enties with a blank line.1回车The following products were chosen for installation:Choice No.1:Sybase SQL Server,SCO.11.0.3If this list is correct as shownPlease enter y or Y to continue q or Q to quitor any other character to make another set of choices:回答:y释放文件。出现$符号时,文件释放完成。安装Sybase数据库$ cp /cdrom/sybase11/ebfss/ebf7575.tar ./$ tar xvf ebf7575.tar# umount /cdrom取出光盘安装Sybase数据库$ cd install$ sybinit屏幕上显示:SYBINIT1. Release directory:/u/Sybase2. Edit/View Interfaces File3. Configure a Server product4. Configure an open client/server productCtrl-a Accept and continue,Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:选择:2INTERFACES FILE TOPSCREENInterfaces File:1. Add a new entry2. Modify an exiting entry3. View an existing entry4. Delete an existing entryCtrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:选择:1CREATE NEW INTERFACES FILE ENTRY1. Server nameCtrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:选择:1按Ctrl-a 后,屏幕显示:SERVER INTERFACES FILE ENTRY SCREENServer name: SYBASE1. Retry count:02. Retry delay:03. Add anew listener ServiceCtrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:选择:3EDIT TCP SERVICE1. Hostname/Address: SCOSYSV.CWC2. Port:3. Name Alias:4. Delete this Service from the interfaces entryCtrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:选择:2输入口号:6688系统回到:SYBINIT1.Release directory: /u/sybase2.Edit/View Interfaces File3.Configure a Server product4.Configure an open client/server productCtrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:选择:3CONFIGURE SERVER PRODUCTSProducts:Product Date Installed Date Configured1.SQL Server Apr 28 97 07:282.Backup Server Apr 28 97 07:29Ctrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:选择:1NEW OR EXISTING SQL SERVER1. Configure a new SQL Server2. Configure an existing SQL Server3. Upgrade an existing SQL ServerCtrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:选择:1ADD NEW SQL SERVER1. SQL Server name: SYBASECtrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:选择:1SQL SERVER CONFIGURTION1. CONFIGURE SERVERS INTERFACES FILE ENTRY2. MASTER DEVICE CONFIGURATION3. SYBSYS TEMPROCS DATABASE CONFIGURATION4. SET ERRORLOG LOCATION5. CONFIGURE DEFAULT BACKUP SERVER6. CONFIGURE LANGUAGES7. CONFIGURE CHARACTER SETS8. CONFIGURE SORT ORDER9. ACTIVATE AUDITINGCtrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:1- 9条每条都要做一边。其中1-3条可以根据情况进行修改。4-9条一般不改。1- 9条做完以后,屏幕回到:1.SQL Server Apr 28 97 07:282.Backup Server Apr 28 97 07:29Ctrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:选择:2NEW OR EXISTING BACKUP SERVER1. Configure a new Backup Server2. Configure an existing Backup ServerCtrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:选择:1ADD NEW BACKUP SERVER1. Backup Server name: SYB_BACKUPCtrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:键入:Ctrl-a屏幕显示:BACKUP SERVER CONFIGVRATION1. Backup Server errorlog:2. Enter 345Ctrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:1- 5条每一条都要做一边。选择第二条时,屏幕显示:SERVER INTERFACES FILE ENTRY SCREENServer name: SYB_BACKUP1. Retry count:02. Retry Delay:03. Add a new Listener ServiceCtrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:选择:3EDIT TCP SERVICE1. Hostname/Address:SCOSYSV.CWC2. Port(口号)3. Name Alias:4. Delete this Service from the interfaces entryCtrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:选择:2输入口号时,应区别于Sybase的口号,如:6689重新启动UNIX系统和Sybase数据库,进行下一步财务数据库的安装工作。修改sybase参数(两种方法)1、 1sp_configure “total mem”,512*内存*(60%-80%)2go2、 $cd sybase$vi SYBASE.cfg修改:total memory=102400 number of Locks=20000分配权限、属主在v下建cwdata和cwbf目录然后chgrp group cwbf/cwdata(属组)chown Sybase cwbf/cwdata(属主)chmod 777 cwbf/cwdata(权限)自启动(VI 编辑)$ vi cw输入:cd install;startserver;startserver f RUN_SYB_BACKUP存盘,退出第五节 修改IP地址一在UNIX下# netconfig1 在hardware选项中用tab键向下到SCO TCP/IP2 在protocol中选Modify protocol configuration 回车修改本机IP地址(使用tab键和等移动),回车OK,回车,OK,回车,退出重连内核,Y,回车,Ctrl+A,继续。二# cd# cd etc# vi Hosts光标移到旧地址处修改为新地址。存盘,退出。三进入sybase界面$ cd install进入/u/Sybase/install(用pwd查看)$ sybinit屏幕上显示:SYBINIT1.Release directory:/u/Sybase2.Edit/View Interfaces File3.Configure a Server product4.Configure an open client/server productCtrl-a Accept and continue,Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:选择:2INTERFACES FILE TOPSCREENInterfaces File:1.Add a new entry2.Modify an exiting entry3.View an existing entry4.Delete an existing entryCtrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:选择:4删除sybase和syb_backup(先删2,再删1)ctrl+a,继续删除后,选:1Add a new entry屏幕显示:1.Server nameCtrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:选择:1 ,输入SYBASE按Ctrl-a 后,屏幕显示:SERVER INTERFACES FILE ENTRY SCREENServer name: SYBASE1.Retry count:02.Retry delay:03.Add a new listener ServiceCtrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:选择:3EDIT TCP SERVICE1.Hostname/Address: SCOSYSV.CWC2.Port:3.Name Alias:4.Delete this Service from the interfaces entryCtrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:选择:1输入新的IP地址:选择:2输入口号:6688ctrl+a系统回到:Interfaces File:1.Add a new entry2.Modify an exiting entry3.View an existing entry4.Delete an existing entryCtrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:选择:1Add a new entry屏幕显示:1.Server nameCtrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:选择:1,输入SYB_BACKUP按Ctrl-a 后,屏幕显示:SERVER INTERFACES FILE ENTRY SCREENServer name: SYB_BACKUP1.Retry count:02.Retry delay:03.Add a new listener ServiceCtrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:选择:3EDIT TCP SERVICE1.Hostname/Address: SCOSYSV.CWC2.Port:3.Name Alias:4.Delete this Service from the interfaces entryCtrl-a Accept and continue, Ctrl-X Exit Screen,?HelpEnter the number of your choice and press return:选择:1输入新的IP地址:选择:2输入口号:6689ctrl+a退出,重启第六节 基本操作和命令路由:增加路由:# route add default 1删除路由:# route delete default 1查看路由:# netstat -rn修改sybase口令:$ passwd出现setting password for user:sybaseold password:12选1,回车输入新密码修改sa口令:1 sp_password 旧口令,新口令2 go数据库空间扩充:1、增加设备数。 可以先查看设备数:sp_configure device sp_configure devices,xx go reconfigure with override go2、重启3、初始化(创建)数据库设备 disk init name=ass_dat4_add(设备名),phyname=”/v/cwdata/ass_dat4_add.dat”,vdevno=23, size=51200(100兆) go disk init name=ass_log4_add(设备名),phyname=”/v/cwdata/ass_log4_add.dat”, vdevno=24,size=25600(50兆) go 4、执行alter database将数据库扩展到同一数据库设备或不同数据库设备上。如果在数据库现有的设备上已没有空间允许数据库在其上来扩充,用户必须建一个新的设备,然后扩充在新的设备上。alter database database_nameon default | database_device =size log on database_device=size 例:alter database assets4 on ass_dat4_add=100 log on ass_log4_add=50数据库设备的删除: sp_dropdevice device_name go修改设备号:(其中xx表示修改的设备号个数) sp_configure devices,xx go reconfigure with override go数据库的删除:drop database database_namego例:删除财务帐套(cwbase3)1.首先删除物理设备,删除cwdata下的cwbase3.dat和cwlog3.dat(使用rm *.*)2.然后删除数据库,drop database cwbase3如果服务器上只有这一套帐,还要删除master库,drop database cwmaster3.删除逻辑设备,sp_dropdevice cwdata3 sp_dropdevice cwlog3 sp_dropdevice cwbase3_dump 如果只有一个帐套,还要删除master 的逻辑设备sp_dropdevice cwmaster 若还有其他帐套,则不能将其完全删除,use cwmaster delete LSZTXX where F_ZTBH=3 delete LSZTXT where F_ZTBH=3被损坏而不能用drop删除的数据库可以执行:dbcc dbrepair(database_name,dropdb)命令查看数据设备信息:sp_helpdevice device_namego查看空间#dfspace /dev/v#df v /dev/u#mount(查看分区)查看数据库信息:sp_helpdb db_namego查看用户登录信息:sp_who login_namego增加用户:sp_addlogin login_name,password ,defdb ,deflanguage ,fullname go删除帐户:sp_droplogin login_namego数据库的备份:dump database cwbase1 to “/./”go数据库的恢复:load database cwbase1 from “/././”go在load回来之后,执行:oline database cwbase1go在服务器上实现自动备份功能:1 确保BACKUP Server总是启动的在/u/sybase目录下,编辑文件“.profile”,在文件中加入:cd install;startserver;startserver f RUN_SYB_BACKUPSYBASE=”/u/sybase”;export SYBASE2 在/u/sybase/install目录下编辑文件:backAuto.sqldeclare backdate varchar(100),backdb varchar(100)select backdate=convert(varchar,datepart(year,getdate()+”.” +convert(varchar,datepart(month,getdate()+”.” +convert(varchar,datepart(day,getdate() (从系统中读取时间,并将时间转换成“2001.10.9”的字符串格式)select backdb=”/v/cwdata/cwbf1_”+backdatedump database cwbase1 to backdb (备份财务数据库1)select backdb=”/v/cwdata/cwbf2_”+backdatedump database cwbase2 to backdb go3 /u/sybase/install下编辑文件backauto:/u/sybase/bin/isql Usa p i /u/sybase/install/backAuto.sql4 修改权限chmod 777 BackAuto.sql chmod 777 BackAuto5 在UNIX下实现定时执行”backAuto”批程序在/u/sybase/install下,编辑一个文件,名字随意。(ss)30 12 * * * /u/sybase/install/backAuto分 时 日 月 星期 (注:上述字段中*表示任意值)然后以“sybase“帐户执行如下命令:$ crontab ssss上述命令执行完成后,系统自动在目录“/usr/spool/cron/crontabs”目录下生成了文件名字为”sybase”,系统”cron”精灵程序会自动读取该目录下的所有文件,并根据文件的内容来自动执行拥护定义的批命令。系统会使SYBASE帐户每天的中午12时30分。执行命令backauto,从而完成了数据库的自动备份工作。从单机对服务器端进行操作:例:远程进行数据库备份及恢复首先,远程登录。“telnet”然后,进入/v/cwdump/查看需要备份的文件。 进入MS-DOS,创建文件夹。C:aa c:aaftp 3 回车 输入root口令ftpbinary 回车进入c:aa可以备份:get 20010921.ddump 0924.bf(从服务器上拷贝)可以恢复:put 0924.bf 20010924.ddump(从单机向服务器上进行拷贝) 在load回去之后,使用online。 第二章 中油财务软件1网络数据库安装若数据库第一次安装不成功,应该将第一次安装的所有信息删掉以后再重新安装。步骤如下:首先删除数据库drop database cwbase1godrop database cwmas
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年度电视机产品智能语音交互技术研发合同
- 2025年度土地买卖合同履行及监管规范
- 诺如知识培训方案课件
- 2025年度汽车租赁企业培训及拓展合同
- 2025年度智慧校园食堂运营管理承包合同
- 2025版涂料产品进出口代理合同标准范本
- 2025版科技园区融资中介服务合作协议范本
- 2025版新能源设备以租代售租赁协议范本
- 2025版水管材料电商平台服务条款合同
- 2025合同样本库建设与管理的规范指南
- 《医药电子商务实务》考试复习题库(含答案)
- 钢板仓施工流程及安全保证方案
- 农业互联网与农产品营销策略优化
- 知识产权具体实施细则
- 泄密案件整改报告范文
- 船舶危险源辨识及防范措施
- 严重精神障碍患者报告卡
- 空气源热泵计算
- 学员陪跑合同模板
- 钢结构大棚安拆专项施工方案
- 消化内科护士进修总结汇报
评论
0/150
提交评论