LVM裸设备建库oracle10g

 

[root@oel4 ~]# fdisk /dev/sdd\
>
[root@oel4 ~]# fdisk /dev/sdd
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.


The number of cylinders for this disk is set to 1305.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): m
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1305, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-1305, default 1305):
Using default value 1305

Command (m for help): m
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

Command (m for help): t
Selected partition 1
Hex code (type L to list codes): l

 0  Empty           1e  Hidden W95 FAT1 75  PC/IX           be  Solaris boot  
 1  FAT12           24  NEC DOS         80  Old Minix       bf  Solaris       
 2  XENIX root      39  Plan 9          81  Minix / old Lin c1  DRDOS/sec (FAT-
 3  XENIX usr       3c  PartitionMagic  82  Linux swap      c4  DRDOS/sec (FAT-
 4  FAT16 <32M      40  Venix 80286     83  Linux           c6  DRDOS/sec (FAT-
 5  Extended        41  PPC PReP Boot   84  OS/2 hidden C:  c7  Syrinx        
 6  FAT16           42  SFS             85  Linux extended  da  Non-FS data   
 7  HPFS/NTFS       4d  QNX4.x          86  NTFS volume set db  CP/M / CTOS / .
 8  AIX             4e  QNX4.x 2nd part 87  NTFS volume set de  Dell Utility  
 9  AIX bootable    4f  QNX4.x 3rd part 8e  Linux LVM       df  BootIt        
 a  OS/2 Boot Manag 50  OnTrack DM      93  Amoeba          e1  DOS access    
 b  W95 FAT32       51  OnTrack DM6 Aux 94  Amoeba BBT      e3  DOS R/O       
 c  W95 FAT32 (LBA) 52  CP/M            9f  BSD/OS          e4  SpeedStor     
 e  W95 FAT16 (LBA) 53  OnTrack DM6 Aux a0  IBM Thinkpad hi eb  BeOS fs       
 f  W95 Ext'd (LBA) 54  OnTrackDM6      a5  FreeBSD         ee  EFI GPT       
10  OPUS            55  EZ-Drive        a6  OpenBSD         ef  EFI (FAT-12/16/
11  Hidden FAT12    56  Golden Bow      a7  NeXTSTEP        f0  Linux/PA-RISC b
12  Compaq diagnost 5c  Priam Edisk     a8  Darwin UFS      f1  SpeedStor     
14  Hidden FAT16 <3 61  SpeedStor       a9  NetBSD          f4  SpeedStor     
16  Hidden FAT16    63  GNU HURD or Sys ab  Darwin boot     f2  DOS secondary 
17  Hidden HPFS/NTF 64  Novell Netware  b7  BSDI fs         fd  Linux raid auto
18  AST SmartSleep  65  Novell Netware  b8  BSDI swap       fe  LANstep       
1b  Hidden W95 FAT3 70  DiskSecure Mult bb  Boot Wizard hid ff  BBT           
1c  Hidden W95 FAT3
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[root@oel4 ~]# pvcreate /dev/sdd1
  Physical volume "/dev/sdd1" successfully created
[root@oel4 ~]# lvcreate --info
lvcreate: unrecognized option `--info'
  Error during parsing of command line.
[root@oel4 ~]# man lvcreate
LVCREATE(8)                                                                                                             LVCREATE(8)

NAME
       lvcreate - create a logical volume in an existing volume group

SYNOPSIS
       lvcreate  [--addtag  Tag] [--alloc AllocationPolicy] [-A/--autobackup y/n] [-C/--contiguous y/n] [-d/--debug] [-h/-?/--help]
       [-i/--stripes Stripes [-I/--stripesize StripeSize]] {-l/--extents LogicalExtentsNumber |
        -L/--size LogicalVolumeSize[kKmMgGtT]} [-M/--persistent y/n] [--minor minor] [-n/--name LogicalVolumeName] [-p/--permission
       r/rw]  [-r/--readahead  ReadAheadSectors]  [-R|--regionsize  MirrorLogRegionSize] [-t/--test] [-v/--verbose] [-Z/--zero y/n]
       VolumeGroupName [PhysicalVolumePath...]

       lvcreate {-l/--extents LogicalExtentsNumber |
        -L/--size LogicalVolumeSize[kKmMgGtT]} [-c/--chunksize ChunkSize] -s/--snapshot -n/--name SnapshotLogicalVolumeName  Origi-
       nalLogicalVolumePath

DESCRIPTION
       lvcreate  creates a new logical volume in a volume group ( see vgcreate(8), vgchange(8) ) by allocating logical extents from
       the free physical extent pool of that volume group.  If there are not enough free physical extents then the volume group can
       be  extended ( see vgextend(8) ) with other physical volumes or by reducing existing logical volumes of this volume group in
       size ( see lvreduce(8) ).
       The second form supports the creation of snapshot logical volumes which keep the contents of the original logical volume for
       backup purposes.

OPTIONS
       See lvm for common options.

       -c, --chunksize ChunkSize
              Power of 2 chunk size for the snapshot logical volume between 4k and 512k.

[root@oel4 ~]#
[root@oel4 ~]# vgcreate vg01 /dev/sdd1
  Volume group "vg01" successfully created
[root@oel4 ~]# vgdisplay
  --- Volume group ---
  VG Name               vg01
  System ID            
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  1
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               10.00 GB
  PE Size               4.00 MB
  Total PE              2559
  Alloc PE / Size       0 / 0  
  Free  PE / Size       2559 / 10.00 GB
  VG UUID               Xq3EQd-NWV6-aPr4-IH5N-GSH0-PrDR-NUChaS
  
[root@oel4 ~]# lvcreate -L 112M -n control.ctl vg01
  Logical volume "control.ctl" created
[root@oel4 ~]# rmlv -f vg01control.ctl
-bash: rmlv: command not found
[root@oel4 ~]# cd /mapper
-bash: cd: /mapper: No such file or directory
[root@oel4 ~]# cd /dev/mapper
[root@oel4 mapper]# ll
total 0
crw-------  1 root root  10, 63 Dec 21 09:19 control
brw-rw----  1 root disk 253,  0 Dec 21 09:50 vg01-control.ctl
[root@oel4 mapper]# rm -rf vg01-control.ctl
[root@oel4 mapper]# ll
total 0
crw-------  1 root root 10, 63 Dec 21 09:19 control
[root@oel4 mapper]# [Acd
-bash: [Acd: command not found
[root@oel4 mapper]# cd
[root@oel4 ~]# lvcreate -L 112M -n control01.ctl vg01
  Logical volume "control01.ctl" created
[root@oel4 ~]# lvcreate -L 112M -n control02.ctl vg01
  Logical volume "control02.ctl" created
[root@oel4 ~]# lvcreate -L 112M -n control03.ctl vg01
  Logical volume "control03.ctl" created
[root@oel4 ~]# lvcreate -L 100M -n drsys01 vg01
  Logical volume "drsys01" created
[root@oel4 ~]# lvcreate -L 100M -n index.dbf vg01
  Logical volume "index.dbf" created
[root@oel4 ~]# lvcreate -L 120M -n redo01.log vg01
  Logical volume "redo01.log" created
[root@oel4 ~]# lvcreate -L 120M -n redo02.log vg01
  Logical volume "redo02.log" created
[root@oel4 ~]# lvcreate -L 120M -n redo03.log vg01
  Logical volume "redo03.log" created
[root@oel4 ~]# lvcreate -L 51M -n spfile.dbf vg01
  Rounding up size to full physical extent 52.00 MB
  Logical volume "spfile.dbf" created
[root@oel4 ~]# lvcreate -L 2500M -n system01.dbf vg01
  Logical volume "system01.dbf" created
[root@oel4 ~]# lvcreate -L 200M temp.dbf vg01
  Volume group "temp.dbf" doesn't exist
[root@oel4 ~]# lvcreate -L 200M -n temp.dbf vg01
  Logical volume "temp.dbf" created
[root@oel4 ~]# lvcreate -L 100M -n tools01.dbf vg01
  Logical volume "tools01.dbf" created
[root@oel4 ~]# lvcreate -L 500M -n undotbs.dbf vg01
  Logical volume "undotbs.dbf" created
[root@oel4 ~]#  lvcreate -L 200M -n users.dbf vg01
  Logical volume "users.dbf" created
[root@oel4 ~]# lvcreate -L 100M -n xdb01.dbf vg01
  Logical volume "xdb01.dbf" created
[root@oel4 ~]# vi /etc/sysconfig/rawdevices
# This file and interface are deprecated.
# Applications needing raw device access should open regular
# block devices with O_DIRECT.
# raw device bindings
# format:  <rawdev> <major> <minor>
#          <rawdev> <blockdev>
# example: /dev/raw/raw1 /dev/sda1
#          /dev/raw/raw2 8 5
~
~
~
~
~
~
~
"/etc/sysconfig/rawdevices" 25L, 946C written                                                                      
[root@oel4 ~]# service rawdevices restart
Assigning devices:
           /dev/raw/raw02  -->   /dev/mapper/vg01-control01.ctl
/dev/raw/raw2:  bound to major 253, minor 1
           /dev/raw/raw03  -->   /dev/mapper/vg01-control02.ctl
/dev/raw/raw3:  bound to major 253, minor 2
           /dev/raw/raw04  -->   /dev/mapper/vg01-control03.ctl
/dev/raw/raw4:  bound to major 253, minor 3
           /dev/raw/raw05  -->   /dev/mapper/vg01-index.dbf
/dev/raw/raw5:  bound to major 253, minor 5
           /dev/raw/raw06  -->   /dev/mapper/vg01-redo01.log
/dev/raw/raw6:  bound to major 253, minor 6
           /dev/raw/raw07  -->   /dev/mapper/vg01-redo02.log
/dev/raw/raw7:  bound to major 253, minor 7
           /dev/raw/raw08  -->   /dev/mapper/vg01-redo03.log
/dev/raw/raw8:  bound to major 253, minor 8
           /dev/raw/raw09  -->   /dev/mapper/vg01-spfile.dbf
/dev/raw/raw9:  bound to major 253, minor 9
           /dev/raw/raw10  -->   /dev/mapper/vg01-system01.dbf
/dev/raw/raw10: bound to major 253, minor 10
           /dev/raw/raw11  -->   /dev/mapper/vg01-temp.dbf
/dev/raw/raw11: bound to major 253, minor 11
           /dev/raw/raw12  -->   /dev/mapper/vg01-undotbs.dbf
/dev/raw/raw12: bound to major 253, minor 13
           /dev/raw/raw13  -->   /dev/mapper/vg01-users.dbf
/dev/raw/raw13: bound to major 253, minor 14
           /dev/raw/raw14  -->   /dev/mapper/vg01-drsys01
/dev/raw/raw14: bound to major 253, minor 4
           /dev/raw/raw15  -->   /dev/mapper/vg01-tools01
Cannot locate block device '/dev/mapper/vg01-tools01' (No such file or directory)
           /dev/raw/raw16  -->   /dev/mapper/vg01-xdb01
Cannot locate block device '/dev/mapper/vg01-xdb01' (No such file or directory)
done
[root@oel4 ~]# vi /etc/sysconfig/rawdevices
# This file and interface are deprecated.
# Applications needing raw device access should open regular
# block devices with O_DIRECT.
# raw device bindings
# format:  <rawdev> <major> <minor>
#          <rawdev> <blockdev>
# example: /dev/raw/raw1 /dev/sda1
#          /dev/raw/raw2 8 5

/dev/raw/raw02  /dev/mapper/vg01-control01.ctl
/dev/raw/raw03  /dev/mapper/vg01-control02.ctl
/dev/raw/raw04  /dev/mapper/vg01-control03.ctl
/dev/raw/raw05  /dev/mapper/vg01-index.dbf
/dev/raw/raw06  /dev/mapper/vg01-redo01.log
/dev/raw/raw07  /dev/mapper/vg01-redo02.log
/dev/raw/raw08  /dev/mapper/vg01-redo03.log
/dev/raw/raw09  /dev/mapper/vg01-spfile.dbf
/dev/raw/raw10  /dev/mapper/vg01-system01.dbf
/dev/raw/raw11  /dev/mapper/vg01-temp.dbf
/dev/raw/raw12  /dev/mapper/vg01-undotbs.dbf
/dev/raw/raw13  /dev/mapper/vg01-users.dbf
/dev/raw/raw14  /dev/mapper/vg01-drsys01
/dev/raw/raw15  /dev/mapper/vg01-tools01
/dev/raw/raw16  /dev/mapper/vg01-xdb01

~
~
~
~
[root@oel4 ~]# service rawdevices restart
Assigning devices:
           /dev/raw/raw02  -->   /dev/mapper/vg01-control01.ctl
/dev/raw/raw2:  bound to major 253, minor 1
           /dev/raw/raw03  -->   /dev/mapper/vg01-control02.ctl
/dev/raw/raw3:  bound to major 253, minor 2
           /dev/raw/raw04  -->   /dev/mapper/vg01-control03.ctl
/dev/raw/raw4:  bound to major 253, minor 3
           /dev/raw/raw05  -->   /dev/mapper/vg01-index.dbf
/dev/raw/raw5:  bound to major 253, minor 5
           /dev/raw/raw06  -->   /dev/mapper/vg01-redo01.log
/dev/raw/raw6:  bound to major 253, minor 6
           /dev/raw/raw07  -->   /dev/mapper/vg01-redo02.log
/dev/raw/raw7:  bound to major 253, minor 7
           /dev/raw/raw08  -->   /dev/mapper/vg01-redo03.log
/dev/raw/raw8:  bound to major 253, minor 8
           /dev/raw/raw09  -->   /dev/mapper/vg01-spfile.dbf
/dev/raw/raw9:  bound to major 253, minor 9
           /dev/raw/raw10  -->   /dev/mapper/vg01-system01.dbf
/dev/raw/raw10: bound to major 253, minor 10
           /dev/raw/raw11  -->   /dev/mapper/vg01-temp.dbf
/dev/raw/raw11: bound to major 253, minor 11
           /dev/raw/raw12  -->   /dev/mapper/vg01-undotbs.dbf
/dev/raw/raw12: bound to major 253, minor 13
           /dev/raw/raw13  -->   /dev/mapper/vg01-users.dbf
/dev/raw/raw13: bound to major 253, minor 14
           /dev/raw/raw14  -->   /dev/mapper/vg01-drsys01
/dev/raw/raw14: bound to major 253, minor 4
           /dev/raw/raw15  -->   /dev/mapper/vg01-tools01
Cannot locate block device '/dev/mapper/vg01-tools01' (No such file or directory)
           /dev/raw/raw16  -->   /dev/mapper/vg01-xdb01
Cannot locate block device '/dev/mapper/vg01-xdb01' (No such file or directory)
done
[root@oel4 ~]# cd /dev/mapper/
[root@oel4 mapper]# ll
total 0
crw-------  1 root root  10, 63 Dec 21 09:19 control
brw-rw----  1 root disk 253,  1 Dec 21 09:57 vg01-control01.ctl
brw-rw----  1 root disk 253,  2 Dec 21 09:57 vg01-control02.ctl
brw-rw----  1 root disk 253,  3 Dec 21 09:57 vg01-control03.ctl
brw-rw----  1 root disk 253,  4 Dec 21 10:00 vg01-drsys01
brw-rw----  1 root disk 253,  5 Dec 21 10:00 vg01-index.dbf
brw-rw----  1 root disk 253,  6 Dec 21 10:01 vg01-redo01.log
brw-rw----  1 root disk 253,  7 Dec 21 10:01 vg01-redo02.log
brw-rw----  1 root disk 253,  8 Dec 21 10:01 vg01-redo03.log
brw-rw----  1 root disk 253,  9 Dec 21 10:05 vg01-spfile.dbf
brw-rw----  1 root disk 253, 10 Dec 21 10:06 vg01-system01.dbf
brw-rw----  1 root disk 253, 11 Dec 21 10:07 vg01-temp.dbf
brw-rw----  1 root disk 253, 12 Dec 21 10:07 vg01-tools01.dbf
brw-rw----  1 root disk 253, 13 Dec 21 10:08 vg01-undotbs.dbf
brw-rw----  1 root disk 253, 14 Dec 21 10:09 vg01-users.dbf
brw-rw----  1 root disk 253, 15 Dec 21 10:10 vg01-xdb01.dbf
[root@oel4 mapper]# vi /etc/sysconfig/rawdevices
# This file and interface are deprecated.
# Applications needing raw device access should open regular
# block devices with O_DIRECT.
# raw device bindings
# format:  <rawdev> <major> <minor>
#          <rawdev> <blockdev>
# example: /dev/raw/raw1 /dev/sda1
#          /dev/raw/raw2 8 5

/dev/raw/raw02  /dev/mapper/vg01-control01.ctl
/dev/raw/raw03  /dev/mapper/vg01-control02.ctl
/dev/raw/raw04  /dev/mapper/vg01-control03.ctl
/dev/raw/raw05  /dev/mapper/vg01-index.dbf
/dev/raw/raw06  /dev/mapper/vg01-redo01.log
/dev/raw/raw07  /dev/mapper/vg01-redo02.log
/dev/raw/raw08  /dev/mapper/vg01-redo03.log
/dev/raw/raw09  /dev/mapper/vg01-spfile.dbf
/dev/raw/raw10  /dev/mapper/vg01-system01.dbf
/dev/raw/raw11  /dev/mapper/vg01-temp.dbf
/dev/raw/raw12  /dev/mapper/vg01-undotbs.dbf
/dev/raw/raw13  /dev/mapper/vg01-users.dbf
/dev/raw/raw14  /dev/mapper/vg01-drsys01
/dev/raw/raw15  /dev/mapper/vg01-tools01
/dev/raw/raw16  /dev/mapper/vg01-xdb01

~
~
~
~
"/etc/sysconfig/rawdevices" 26L, 959C written
[root@oel4 mapper]# service rawdevices restart
Assigning devices:
           /dev/raw/raw02  -->   /dev/mapper/vg01-control01.ctl
/dev/raw/raw2:  bound to major 253, minor 1
           /dev/raw/raw03  -->   /dev/mapper/vg01-control02.ctl
/dev/raw/raw3:  bound to major 253, minor 2
           /dev/raw/raw04  -->   /dev/mapper/vg01-control03.ctl
/dev/raw/raw4:  bound to major 253, minor 3
           /dev/raw/raw05  -->   /dev/mapper/vg01-index.dbf
/dev/raw/raw5:  bound to major 253, minor 5
           /dev/raw/raw06  -->   /dev/mapper/vg01-redo01.log
/dev/raw/raw6:  bound to major 253, minor 6
           /dev/raw/raw07  -->   /dev/mapper/vg01-redo02.log
/dev/raw/raw7:  bound to major 253, minor 7
           /dev/raw/raw08  -->   /dev/mapper/vg01-redo03.log
/dev/raw/raw8:  bound to major 253, minor 8
           /dev/raw/raw09  -->   /dev/mapper/vg01-spfile.dbf
/dev/raw/raw9:  bound to major 253, minor 9
           /dev/raw/raw10  -->   /dev/mapper/vg01-system01.dbf
/dev/raw/raw10: bound to major 253, minor 10
           /dev/raw/raw11  -->   /dev/mapper/vg01-temp.dbf
/dev/raw/raw11: bound to major 253, minor 11
           /dev/raw/raw12  -->   /dev/mapper/vg01-undotbs.dbf
/dev/raw/raw12: bound to major 253, minor 13
           /dev/raw/raw13  -->   /dev/mapper/vg01-users.dbf
/dev/raw/raw13: bound to major 253, minor 14
           /dev/raw/raw14  -->   /dev/mapper/vg01-drsys01.dbf
Cannot locate block device '/dev/mapper/vg01-drsys01.dbf' (No such file or directory)
           /dev/raw/raw15  -->   /dev/mapper/vg01-tools01.dbf
/dev/raw/raw15: bound to major 253, minor 12
           /dev/raw/raw16  -->   /dev/mapper/vg01-xdb01.dbf
/dev/raw/raw16: bound to major 253, minor 15
done
[root@oel4 mapper]# vi /etc/sysconfig/rawdevices
# This file and interface are deprecated.
# Applications needing raw device access should open regular
# block devices with O_DIRECT.
# raw device bindings
# format:  <rawdev> <major> <minor>
#          <rawdev> <blockdev>
# example: /dev/raw/raw1 /dev/sda1
#          /dev/raw/raw2 8 5

/dev/raw/raw02  /dev/mapper/vg01-control01.ctl
/dev/raw/raw03  /dev/mapper/vg01-control02.ctl
/dev/raw/raw04  /dev/mapper/vg01-control03.ctl
/dev/raw/raw05  /dev/mapper/vg01-index.dbf
/dev/raw/raw06  /dev/mapper/vg01-redo01.log
/dev/raw/raw07  /dev/mapper/vg01-redo02.log
/dev/raw/raw08  /dev/mapper/vg01-redo03.log
/dev/raw/raw09  /dev/mapper/vg01-spfile.dbf
/dev/raw/raw10  /dev/mapper/vg01-system01.dbf
/dev/raw/raw11  /dev/mapper/vg01-temp.dbf
/dev/raw/raw12  /dev/mapper/vg01-undotbs.dbf
/dev/raw/raw13  /dev/mapper/vg01-users.dbf
/dev/raw/raw14  /dev/mapper/vg01-drsys01.dbf
/dev/raw/raw15  /dev/mapper/vg01-tools01.dbf
/dev/raw/raw16  /dev/mapper/vg01-xdb01.dbf


~
~
~
"/etc/sysconfig/rawdevices" 26L, 955C written                                                                      
[root@oel4 mapper]# service rawdevices restart
Assigning devices:
           /dev/raw/raw02  -->   /dev/mapper/vg01-control01.ctl
/dev/raw/raw2:  bound to major 253, minor 1
           /dev/raw/raw03  -->   /dev/mapper/vg01-control02.ctl
/dev/raw/raw3:  bound to major 253, minor 2
           /dev/raw/raw04  -->   /dev/mapper/vg01-control03.ctl
/dev/raw/raw4:  bound to major 253, minor 3
           /dev/raw/raw05  -->   /dev/mapper/vg01-index.dbf
/dev/raw/raw5:  bound to major 253, minor 5
           /dev/raw/raw06  -->   /dev/mapper/vg01-redo01.log
/dev/raw/raw6:  bound to major 253, minor 6
           /dev/raw/raw07  -->   /dev/mapper/vg01-redo02.log
/dev/raw/raw7:  bound to major 253, minor 7
           /dev/raw/raw08  -->   /dev/mapper/vg01-redo03.log
/dev/raw/raw8:  bound to major 253, minor 8
           /dev/raw/raw09  -->   /dev/mapper/vg01-spfile.dbf
/dev/raw/raw9:  bound to major 253, minor 9
           /dev/raw/raw10  -->   /dev/mapper/vg01-system01.dbf
/dev/raw/raw10: bound to major 253, minor 10
           /dev/raw/raw11  -->   /dev/mapper/vg01-temp.dbf
/dev/raw/raw11: bound to major 253, minor 11
           /dev/raw/raw12  -->   /dev/mapper/vg01-undotbs.dbf
/dev/raw/raw12: bound to major 253, minor 13
           /dev/raw/raw13  -->   /dev/mapper/vg01-users.dbf
/dev/raw/raw13: bound to major 253, minor 14
           /dev/raw/raw14  -->   /dev/mapper/vg01-drsys01
/dev/raw/raw14: bound to major 253, minor 4
           /dev/raw/raw15  -->   /dev/mapper/vg01-tools01.dbf
/dev/raw/raw15: bound to major 253, minor 12
           /dev/raw/raw16  -->   /dev/mapper/vg01-xdb01.dbf
/dev/raw/raw16: bound to major 253, minor 15
done
[root@oel4 mapper]# vi /etc/rc/local
~
~

~
~
~
~
~
~
~
[root@oel4 mapper]# vi /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
~
~
~
~

~
~
~
"/etc/rc.local" 24L, 799C written                                                                                  
[root@oel4 mapper]# chown oracle:oninstall /dev/raw/raw2
chown: `oracle:oninstall': invalid group
[root@oel4 mapper]# chown -R oracle:oinstall /dev/raw/raw2
[root@oel4 mapper]# chown -R oracle:oinstall /dev/raw/raw2
chown -R oracle:oinstall /dev/raw/raw3
[root@oel4 mapper]# chown -R oracle:oinstall /dev/raw/raw3
[root@oel4 mapper]# chown -R oracle:oinstall /dev/raw/raw4
[root@oel4 mapper]# chown -R oracle:oinstall /dev/raw/raw5
[root@oel4 mapper]# chown -R oracle:oinstall /dev/raw/raw6
[root@oel4 mapper]# chown -R oracle:oinstall /dev/raw/raw7
[root@oel4 mapper]# chown -R oracle:oinstall /dev/raw/raw8
[root@oel4 mapper]# chown -R oracle:oinstall /dev/raw/raw9
[root@oel4 mapper]# chown -R oracle:oinstall /dev/raw/raw10
[root@oel4 mapper]# chown -R oracle:oinstall /dev/raw/raw11
[root@oel4 mapper]# chown -R oracle:oinstall /dev/raw/raw12
[root@oel4 mapper]# chown -R oracle:oinstall /dev/raw/raw13
[root@oel4 mapper]# chown -R oracle:oinstall /dev/raw/raw14
[root@oel4 mapper]# chown -R oracle:oinstall /dev/raw/raw15
[root@oel4 mapper]# chown -R oracle:oinstall /dev/raw/raw16
[root@oel4 mapper]#  chown -R oracle:oinstall /dev/raw/raw3
[root@oel4 mapper]# cd /dev/raw/
[root@oel4 raw]# ll
total 0
crw-rw----  1 oracle oinstall 162, 10 Dec 21 10:15 raw10
crw-rw----  1 oracle oinstall 162, 11 Dec 21 10:15 raw11
crw-rw----  1 oracle oinstall 162, 12 Dec 21 10:15 raw12
crw-rw----  1 oracle oinstall 162, 13 Dec 21 10:15 raw13
crw-rw----  1 oracle oinstall 162, 14 Dec 21 10:15 raw14
crw-rw----  1 oracle oinstall 162, 15 Dec 21 10:15 raw15
crw-rw----  1 oracle oinstall 162, 16 Dec 21 10:15 raw16
crw-rw----  1 oracle oinstall 162,  2 Dec 21 10:15 raw2
crw-rw----  1 oracle oinstall 162,  3 Dec 21 10:15 raw3
crw-rw----  1 oracle oinstall 162,  4 Dec 21 10:15 raw4
crw-rw----  1 oracle oinstall 162,  5 Dec 21 10:15 raw5
crw-rw----  1 oracle oinstall 162,  6 Dec 21 10:15 raw6
crw-rw----  1 oracle oinstall 162,  7 Dec 21 10:15 raw7
crw-rw----  1 oracle oinstall 162,  8 Dec 21 10:15 raw8
crw-rw----  1 oracle oinstall 162,  9 Dec 21 10:15 raw9
[root@oel4 raw]# vi /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local

chown oracle:oninstall /dev/raw/raw2
chown oracle:oninstall /dev/raw/raw3
chown oracle:oninstall /dev/raw/raw4
chown oracle:oninstall /dev/raw/raw5
chown oracle:oninstall /dev/raw/raw6
chown oracle:oninstall /dev/raw/raw7
chown oracle:oninstall /dev/raw/raw8
chown oracle:oninstall /dev/raw/raw9
chown oracle:oninstall /dev/raw/raw10
chown oracle:oninstall /dev/raw/raw11
chown oracle:oninstall /dev/raw/raw12
chown oracle:oninstall /dev/raw/raw13
chown oracle:oninstall /dev/raw/raw14
chown oracle:oninstall /dev/raw/raw15
chown oracle:oninstall /dev/raw/raw16

~
~
~
~
~
chown -R oracle:oinstall /dev/raw/raw12
chown -R oracle:oinstall /dev/raw/raw14
"/etc/rc.local" 24L, 821C written                                                                                  
[root@oel4 raw]# vi DBCA_RAW_CONFIG
~
~
~
~
~

~
~
~
[root@oel4 raw]# su - oracle
[oracle@oel4 ~]$ vi DBCA_RAW_CONFIG
~

~
~
"DBCA_RAW_CONFIG" [New] 15L, 297C written                                                                          
[oracle@oel4 ~]$ dbca
DISPLAY not set.
Set DISPLAY environment variable, then re-run.
[oracle@oel4 ~]$ export DISPLAY=128.196.0.3:0.0
[oracle@oel4 ~]$ xclock
[oracle@oel4 ~]$ dbca
[oracle@oel4 ~]$ sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 - Production on Tue Dec 21 11:09:51 2010

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

SQL> conn /as sysdba
Connected.
SQL> show parameter db_name

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_name                              string      prod
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup nomount
ORACLE instance started.

Total System Global Area  285212672 bytes
Fixed Size                  1218968 bytes
Variable Size              88082024 bytes
Database Buffers          188743680 bytes
Redo Buffers                7168000 bytes
SQL> alter database mount
  2  ;

Database altered.

SQL> archive log list
Database log mode              No Archive Mode
Automatic archival             Disabled
Archive destination            /u01/app/oracle/product/10.2/db/dbs/arch
Oldest online log sequence     0
Current log sequence           1
SQL> alter database open
  2  ;

Database altered.

 

展开阅读全文

没有更多推荐了,返回首页