Tiptop管理员手册_第1页
Tiptop管理员手册_第2页
Tiptop管理员手册_第3页
Tiptop管理员手册_第4页
Tiptop管理员手册_第5页
已阅读5页,还剩21页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、易拓管理员手册目录一)linux基础概念2二)linux基础操作21)登入linux操作系统22)linux基础指令8三)相关文件夹/文件介绍9part2:oracle部分10一、登入oracle10二、启动oracle10三、关闭oracle11四、查看oracle表空间使用情况11五、增加oracle表空间12六、处理表锁13七、备份还原oracle数据13part3:gp部分15一、易拓系统架构说明15二、易拓目录结构说明16三、易拓用户说明17四、添加tiptop erp用户17五、新建erp帐套19六、系统备份检查22七、tiptop gp重要文件介绍24八、环境变量24九、系统慢问

2、题25part:1 os部分一)linux基础概念1)和windows一样,linux是一种操作系统,一样有文件、进程、磁盘分区各种概念。2)不同于windows,linux的维护是在命令行界面完成,因此需要掌握一些linux维护指令。3)根据28定律,我们只要掌握20%的指令,就可以完成80%的维护操作了。4)现在开始万里长征第一步:登入linux,以便进行对linux的操作。二)linux基础操作1)登入linux操作系统1)推荐下载安装xshell最新版本登入os,方便日后操作启动xshell 点击new 新建一个到ap操作系统的链接2)点击connection选项,设定以下栏位的值:n

3、ame 连线标识,如:erp-aphost ap的ip地址3)点击authentiacation选项,设定以下栏位的值:user namerootpasswordroot账户的密码,默认为tiptop4)点击terminal选项,设定以下栏位的值:encodingunicode(utf-8)5)点击ok,完成连线设置。6)双击连线即可登入linux命令行方式7)下次登录时,只需要点击open按钮,双击连线方式就可进入linux进行操作了2)linux基础指令进入linux后,我们可以用linux指令对linux进行各种操作。1) 敲命令后,按回车即开始执行,不按回车不执行2) 多实践有助于快速

4、掌握3) 这里只简单列出命令用法,百度上有更多命令的用法shutdown服务器关机rootttp-2 # shutdown 慎重!reboot服务器重启rootttp-2 # reboot 慎重!exit退出登录cd切换目录rooterp-ap # cd /u1 切换到/u1目录rooterp-ap u1# cd topprod 切换到/u1下面的topprod目录rooterp-ap topprod# cd . 切换到上级目录ls显示目录文件rooterp-ap u2# ls 显示当前目录文件oracle orainventoryrooterp-ap u2# ls /u1/topprod 显

5、示/u1/topprod目录文件42f per tiptop topcustsu切换用户rooterp-ap u2# su tiptop 切换到tiptop用户mkdir创建文件夹rooterp-ap u2# mkdir /tmp/xxxdir 在/tmp目录下创建一个xxxdir文件夹chmod改变文件权限rooterp-ap tmp# cd /tmprooterp-ap tmp# llrooterp-ap tmp# chmod 777 xxxdirchwon改变文件属主rooterp-ap tmp# chown tiptop.tiptop xxxdirdf查看磁盘空间使用情况rootttp

6、-2 # df -hfilesystem size used avail use% mounted on/dev/sda1 9.7g 1.8g 7.4g 20% /tmpfs 1004m 388m 616m 39% /dev/shm/dev/sda3 132g 22g 103g 18% /u1/dev/sdb1 226g 117g 98g 55% /u2du查看文件夹大小rootttp-2 # du -sh /u1/topprod 查看/u1/topprod文件夹大小2.8g/u1/topprod find查找文件rootttp-2 # find /u1 -name aimr100.4gl 在

7、/u1下查找名字为aimr100.4gl的文件/u1/oyd/tiptop/aim/4gl/aimr100.4glgrep筛选文本文件中的文字 grep ds2 $fglprofile 将$fglprofile中有ds2字符串的行显示出来dbi.database.ds2.source = topproddbi.database.ds2.username = ds2dbi.database.ds2.password = ds2dbi.database.ds2.schema = ds2dbi.database.ds2.ora.prefetch.rows = 1passwd修改用户密码rootttp

8、-2 # passwd oracle 修改oracle用户的密码changing password for user oracle.new password: 输入新密码bad password: it is based on a dictionary wordbad password: is too simpleretype new password: 再次输入新密码确认passwd: all authentication tokens updated successfully.top类似于windows的任务管理器,查看服务器cpu、内存、进程情况可参照:tar类似于windows的win

9、rar打包压缩工具,用于打包或备份文件/文件夹可参照:三)相关文件夹/文件介绍/操作系统目录/u1erp软件目录/u2数据库目录/u3备份目录.profiletiptop环境变量文件,请不要随意改动$fglprofile文件数据库连接配置文件part2:oracle部分一、登入oraclerootttp-2 # su - oracle 切换为oracle用户 export oracle_sid=topprod 设置要登陆的数据库的代号 sqlplus / as sysdba show user exit 退出sqlplusdisconnected from oracle database 11

10、g enterprise edition release .0 - 64bit productionwith the partitioning, olap, data mining and real application testing options附注:操作需在db主机上进行二、启动oraclerootttp-2 # su - oracle 切换为oracle用户 export oracle_sid=topprod 设置要启动的数据库的代号 sqlplus / as sysdba startup; exit 启动完成后退出disconnected from oracle

11、database 11g enterprise edition release .0 - 64bit productionwith the partitioning, olap, data mining and real application testing options附注:操作需在db主机上进行三、关闭oraclerootttp-2 # su - oracle 切换为oracle用户 export oracle_sid=gp510 sqlplus / as sysdbasql*plus: release .0 production on fri jan

12、6 11:31:11 2012copyright (c) 1982, 2010, oracle. all rights reserved.connected to:oracle database 11g enterprise edition release .0 - 64bit productionwith the partitioning, olap, data mining and real application testing optionssql shutdown immediate; exit 完成关闭后退出disconnected from oracle data

13、base 11g enterprise edition release .0 - 64bit productionwith the partitioning, olap, data mining and real application testing options附注:操作需在db主机上进行四、查看oracle表空间使用情况rootttp-2 # su tiptop 在ap上以tiptop用户登陆 sqlplus system/managertopprod q_tbsfree; exit 退出sqlplusdisconnected from oracle database

14、11g enterprise edition release .0 - 64bit productionwith the partitioning, olap, data mining and real application testing options附注:1)操作需在ap主机上进行2)当dbs1、rptdbs1、temptabs表空间使用率超过80%时,需及时增加相应表空间五、增加oracle表空间 sqlplus system/managertopprod sql*plus: release .0 production on fri jan 6 12:

15、10:57 2012copyright (c) 1982, 2010, oracle. all rights reserved.connected to:oracle database 11g enterprise edition release .0 - 64bit productionwith the partitioning, olap, data mining and real application testing optionssql select name from v$datafile order by name; 查看数据文件情况name-/u2/oracle

16、/oradata/topprod/blobdbs1.dbf/u2/oracle/oradata/topprod/dbs1-01.dbf/u2/oracle/oradata/topprod/dbs1-02.dbf/u2/oracle/oradata/topprod/dbs1-03.dbf/u2/oracle/oradata/topprod/dbs1-04.dbf/u2/oracle/oradata/topprod/dbs1-05.dbf alter tablespace dbs1 add datafile /u2/oracle/oradata/topprod/dbs1-06.dbf size 2

17、000m; q_tbsfree; exit 退出sqlplus六、处理表锁rootttp-2 # su tiptop 在ap上以tiptop用户登陆 sqlplus system/managertopprod q_locktable;locked object tiptop user proc terminal sid serial# machine- - - - - - -ds1.nmd_file tiptop 7208 29 41921 ttp-2ds1.nmd_file tiptop 13327 1155 54429 ttp-2sql alter system kill session

18、29,41921 immediate; alter system kill session 1155,54429 immediate; exit;附注:1)操作需在ap主机上进行七、备份还原oracle数据1)备份ds1营运中心rootttp-2 # su tiptop exp ds1/ds1topprod file=/tmp/exp_ds1.dmp log=/tmp/exp_ds1.log2)备份ds1营运中心的ima_file表rootttp-2 # su tiptop exp ds1/ds1topprod file=/tmp/exp_ds1_ima_file.dmp tables=ima

19、_file3) 还原ds1营运中心rootttp-2 # su tiptop sqlplus system/managertopprod as sysdbasql drop user ds1 cascade;sqlcreate user ds1 identified by ds1 default tablespace dbs1 temporary tablespace temp;sqlgrant create session,create table to ds1;sqlgrant resource to ds1;sqlgrant create synonym to ds1;sqlgrant

20、select on sys.v_$session to ds1;sqlexit; imp ds1/ds1topprod file=/tmp/exp_ds1.dmp log=/tmp/imp_ds1.log4) 还原ds1营运中心的ima_filerootttp-2 # su tiptop sqlplus ds1/ds1topprod create table ima_file_bak as select * from ima_file; truncate table ima_file; exit; 4.退出sqlplus imp ds1/ds1topprod file=/tmp/exp_ds1

21、.dmp tables=ima_file ignore=y;5.导入ima_file数据5) 备份整个数据库 exp system/managertopprod file=/tmp/exp_all.dmp full=y6) 还原整个数据库1. 重建整个topprod实例2. 导入之前的exp_all.dmp备份imp system/managertopprod file=/tmp/exp_all.dmp ignore=ypart3:gp部分一、易拓系统架构说明tiptopgenerooraclelinux1) tiptop gp安装于linux或aix操作系统上2) tiptop gp使用or

22、acle数据库3) tiptop gp是在genero平台下开发的erp系统二、易拓目录结构说明/根分区/u1程序区usrtiptoptoptestoracletopguigenero toptest测试区tiptop标准区aap,aim,axm,apm.topcust客制区cap,cbg,cim,cxm.topprod正式区tiptop标准区topcust客制区/u2数据库区oracle数据库程序oradb数据库文件/u3备份区backup每日备份/ 根分区存放os操作系统文件/u1/usr 为各用户的家目录,存放.profile用户配置文件/u1/genero存放genero platfo

23、rm,是tiptop erp的开发及运行平台/u1/topprodtiptop erp正式区程序/u1/toptesttiptop erp测试区程序,供开发及测试用/u2/oracleoracle软件的安装目录/u2/oradb存放erp数据的oracle数据库文件/u3/backup存放tiptop erp程序及数据库的备份三、易拓用户说明tiptopgp正式区管理员用户toptestgp测试区管理员用户topguigp测试账户,其.profile供erp普通用户使用四、添加tiptop erp用户添加erp用户分为两部分操作:1)后台linux系统添加erp账户2)前台p_zx作业中添加e

24、rp账户注:两者名称必须一致包括大小写。以下以添加用户a001为例1)后台linux系统添加a001账户 su - 切换到root账户password: rootttp-3 # useradd -g tiptop -s /bin/ksh -d /u1/usr/topgui a001 添加a001用户useradd: warning: the home directory already exists.not copying any file from skel directory into it.rootttp-3 # passwd a001 设置a001用户密码changing passwo

25、rd for user a001.new password: 输入密码 注ps:密码字符不会显示bad password: it does not contain enough different charactersbad password: is too simpleretype new password: 再次输入密码设置passwd: all authentication tokens updated successfully.rootttp-3 # exitlogout udm7(红字部分为为所下指令,篮字为注释,黑字为屏幕提示)2)前台运行p_zx作业添加a001账户,并赋予正确的

26、权限。五、新建erp帐套1)运行aooi930作业添加法人资料,这里添加编号为x1的法人2)执行aooi931集团架构资料维护作业,点击录入,并完善各项资料,点确定3)点击建立schema,转到如下页面4) 点击全选,然后选修改密码,默认密码如下ds密码dssystem密码managersys密码sys5) 确定后返回如下画面,点建立schema开始创建db由于创建db需复制大量数据表,所以执行时间较长,约20分钟左右,请您耐心等待。六、系统备份检查1)备份时间及备份脚本tiptop或root用户执行指令:crontab -lcrontab指令介绍:可以分析、理解、修改备份脚本里面内容 cro

27、ntab -l00 23 * * * /u3/backup/tools/backup.sh2)备份目录备份目录通常位于/u3/backup或/backup或/u2/backup请确认备份时间是否为近期备份,如非近期备份,请查找原因 lltotal 32drwxr-xr-x 2 tiptop tiptop 4096 sep 23 23:56 fridrwxr-xr-x 2 tiptop tiptop 4096 sep 26 23:56 mon 需确认备份时间是否为昨天或今天drwxr-xr-x 2 tiptop tiptop 4096 sep 24 23:56 satdrwxr-xr-x 2 t

28、iptop tiptop 4096 sep 25 23:56 sundrwxr-xr-x 3 tiptop tiptop 4096 sep 22 23:56 thudrwxr-xr-x 2 tiptop tiptop 4096 sep 27 14:11 toolsdrwxr-xr-x 2 tiptop tiptop 4096 sep 20 23:55 tuedrwxr-xr-x 2 tiptop tiptop 4096 sep 21 23:55 wed3)确认的备份正确性a)备份文件介绍exp_base_201109262300.dmp工厂数据备份文件exp_base_201109262300

29、.log为备份日志genero.tgzgenero平台备份tiptop.tgztiptop备份b)检查备份文件正确性核对工厂数据备份,看是否有工厂没有备份出来,及文件事件是否为正确备份检查备份日志,看是否有备份报错确保dmp文件是可用的 cd mon/u3/backup/mon lltotal 3395104-rw-r-r- 1 tiptop tiptop 1153974272 sep 26 23:56 exp_all.dmp-rw-r-r- 1 tiptop tiptop 98672640 sep 26 23:27 exp_base_201109262300.dmp-rw-r-r- 1 ti

30、ptop tiptop 187764 sep 26 23:27 exp_base_201109262300.log-rw-r-r- 1 tiptop tiptop 153460736 sep 26 23:05 exp_ds1_201109262300.dmp-rw-r-r- 1 tiptop tiptop 195411 sep 26 23:05 exp_ds1_201109262300.log-rw-r-r- 1 tiptop tiptop 163905536 sep 26 23:18 exp_ds_201109262300.dmp-rw-r-r- 1 tiptop tiptop 193760

31、 sep 26 23:18 exp_ds_201109262300.log-rw-r-r- 1 tiptop tiptop 540672 sep 26 23:02 exp_ds21_201109262300.dmp-rw-r-r- 1 tiptop tiptop 1184 sep 26 23:02 exp_ds21_201109262300.log-rw-r-r- 1 tiptop tiptop 66879488 sep 26 23:07 exp_ds2_201109262300.dmp-rw-r-r- 1 tiptop tiptop 168380 sep 26 23:07 exp_ds2_2

32、01109262300.log-rw-r-r- 1 tiptop tiptop 55074816 sep 26 23:09 exp_ds3_201109262300.dmp-rw-r-r- 1 tiptop tiptop 140108 sep 26 23:09 exp_ds3_201109262300.log-rw-r-r- 1 tiptop tiptop 72540160 sep 26 23:11 exp_ds4_201109262300.dmp-rw-r-r- 1 tiptop tiptop 175372 sep 26 23:11 exp_ds4_201109262300.log-rw-r

33、-r- 1 tiptop tiptop 37199872 sep 26 23:21 exp_ds5_201109262300.dmp-rw-r-r- 1 tiptop tiptop 175676 sep 26 23:21 exp_ds5_201109262300.log-rw-r-r- 1 tiptop tiptop 389701632 sep 26 23:15 exp_ds6_201109262300.dmp-rw-r-r- 1 tiptop tiptop 176208 sep 26 23:15 exp_ds6_201109262300.log-rw-r-r- 1 tiptop tiptop

34、 79544320 sep 26 23:23 exp_dsall_201109262300.dmp-rw-r-r- 1 tiptop tiptop 175684 sep 26 23:23 exp_dsall_201109262300.log-rw-r-r- 1 tiptop tiptop 548864 sep 26 23:24 exp_dsv1_201109262300.dmp-rw-r-r- 1 tiptop tiptop 1184 sep 26 23:24 exp_dsv1_201109262300.log-rw-r-r- 1 tiptop tiptop 23781376 sep 26 2

35、3:02 exp_dtest_201109262300.dmp-rw-r-r- 1 tiptop tiptop 176368 sep 26 23:02 exp_dtest_201109262300.log-rw-r-r- 1 root root 218133331 jun 7 12:37 genero.tgz 备份时间不对-rw-r-r- 1 tiptop tiptop 1557 sep 26 23:00 ora_exp.list-rw-r-r- 1 tiptop tiptop 957311797 sep 27 00:00 topprod.tar.gz七、tiptop gp重要文件介绍1)$fglprofile文件$fglprofile文件为为tiptop erp连接oracl

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论