灯火互联
管理员
管理员
  • 注册日期2011-07-27
  • 发帖数41778
  • QQ
  • 火币41290枚
  • 粉丝1086
  • 关注100
  • 终身成就奖
  • 最爱沙发
  • 忠实会员
  • 灌水天才奖
  • 贴图大师奖
  • 原创先锋奖
  • 特殊贡献奖
  • 宣传大使奖
  • 优秀斑竹奖
  • 社区明星
阅读:1857回复:0

Linux下的外挂存储

楼主#
更多 发布于:2012-08-27 14:58

服务器41为例.

利用工具SSH进入到Linux下.
10.117.10.41/123123

1. 首先进入到数据库中执行启动数据库的命令,看看是否可以正常启动,一般情况下是不能正常启动的,因为有存储没有挂载上.
Sql代码  
[root@new-jwtest /]# su - oracle           -- 进入 oracle 用户  
[oracle@new-jwtest ~]$ sqlplus "/as sysdba"          -- 以管理员的身份进入数据库  
     www.atcpu.com/bbs  
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Apr 8 17:29:54 2012  
  
Copyright (c) 1982, 2005, Oracle.  All rights reserved.  
  
Connected to:  
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production  
With the Partitioning, OLAP and Data Mining options  
  
SQL> startup        -- 启动数据库  
-- 此时可能会提示:没有发现存储 /u03  
SQL> quit          -- 退出数据库  
[oracle@new-jwtest ~]$ exit                -- 退出oracle用户  

2. 执行 fdisk -l 查看磁盘的分区情况(注意:-l是小写的L)
Sql代码  
[root@new-jwtest ~]# fdisk -l  
  
Disk /dev/sda: 146.5 GB, 146544787456 bytes  
255 heads, 63 sectors/track, 17816 cylinders  
Units = cylinders of 16065 * 512 = 8225280 bytes  
  
   Device Boot      Start         End      Blocks   Id  System  
/dev/sda1   *           1          25      200781   83  Linux  
/dev/sda2              26        2065    16386300   82  Linux swap / Solaris  
/dev/sda3            2066       17816   126519907+  83  Linux  
     www.atcpu.com/bbs  
Disk /dev/sdb: 1498.6 GB, 1498657587200 bytes  
255 heads, 63 sectors/track, 182201 cylinders  
Units = cylinders of 16065 * 512 = 8225280 bytes  
  
   Device Boot      Start         End      Blocks   Id  System  
/dev/sdb1   *           1      182201  1463529501   83  Linux  

3. 外挂存储 mount
Sql代码  
[root@new-jwtest /]# mount /dev/sdb1 /u03    -- 把存储 /u03 挂在 /dev/sdb1    


喜欢0 评分0
游客

返回顶部