资源描述:
《linux下使用裸设备创建oracle表空间》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、Linux下使用裸设备创建oracle表空间Linux下使用裸设备创建oracle表空间1.环境n系统环境[root@node1~]#uname–aLinuxnode12.6.18-194.el5#1SMPTueMar1621:52:43EDT2010i686i686i386GNU/Linux [root@node1~]#more/etc/redhat-release RedHatEnterpriseLinuxServerrelease5.5(Tikanga)[root@node1~]# nora
2、cle环境SQL>select*fromv$version;BANNEROracleDatabase11gEnterpriseEditionRelease11.2.0.1.0-ProductionPL/SQLRelease11.2.0.1.0-ProductionCORE 11.2.0.1.0 ProductionTNSforLinux:Version11.2.0.1.0-ProductionNLSRTLVersion11.2.0.1.0–Production2.查看磁盘[root@node1
3、~]#fdisk-lDisk/dev/sda:21.4GB,21474836480bytes255heads,63sectors/track,2610cylindersUnits=cylindersof16065*512=8225280bytes DeviceBoot Start End Blocks Id System/dev/sda1 * 1 13 104391 83 Linux/dev/sda2 14 2610 20860402+ 8e
4、LinuxLVMDisk/dev/sdb:21.4GB,21474836480bytes255heads,63sectors/track,2610cylindersUnits=cylindersof16065*512=8225280bytes DeviceBoot Start End Blocks Id System/dev/sdb1 1 2610 20964793+ 83 LinuxDisk/dev/sdc:8589MB,8589934592bytes255he
5、ads,63sectors/track,1044cylindersUnits=cylindersof16065*512=8225280bytesDisk/dev/sdcdoesn'tcontainavalidpartitiontable3.给/dev/sdc划分一个1g的分区 用作裸设备[root@node1~]#fdisk/dev/sdcDevicecontainsneitheravalidDOSpartitiontable,norSun,SGIorOSFdisklabel第4页Linux下使用裸
6、设备创建oracle表空间BuildinganewDOSdisklabel.Changeswillremaininmemoryonly,untilyoudecidetowritethem.Afterthat,ofcourse,thepreviouscontentwon'tberecoverable.Thenumberofcylindersforthisdiskissetto1044.Thereisnothingwrongwiththat,butthisislargerthan1024,andcoul
7、dincertainsetupscauseproblemswith:1)softwarethatrunsatboottime(e.g.,oldversionsofLILO)2)bootingandpartitioningsoftwarefromotherOSs (e.g.,DOSFDISK,OS/2FDISK)Warning:invalidflag0x0000ofpartitiontable4willbecorrectedbyw(rite)Command(mforhelp):mCommandact
8、ion a toggleabootableflag b editbsddisklabel c togglethedoscompatibilityflag d deleteapartition l listknownpartitiontypes m printthismenu n addanewpartition o createanewemptyDOSpartitiontable p printthepartitiontable q quitwit