使用11g DNFS建立基于DNFS的tablespace
来源:互联网 发布:cisco 端口隔离 编辑:程序博客网 时间:2024/04/30 09:31
使用11g DNFS建立基于DNFS的tablespace
参考自:
Step by Step - Configure Direct NFS Client (DNFS) on Linux (11g) (文档 ID 762374.1)
注意:
主机名p18的ip地址为192.168.80.18,是nfs的server
主机名为test179的为nfs的client
如下时操作过程:
一、在nfs server上的操作:
[root@p18 ~]# service nfs statusrpc.mountd is stoppednfsd is stoppedrpc.rquotad is stopped[root@p18 ~]# mkdir -p /u02/nfsdata[root@p18 ~]# chown oracle:oinstall /u02/nfsdata[root@p18 ~]# ls -ld /u02/nfsdata/drwxr-xr-x 2 oracle oinstall 4096 Aug 17 07:22 /u02/nfsdata/
二、在nfs server上的操作:
[root@p18 nfsdata]# cat /etc/exports /u02/nfsdata *(rw,sync,all_squash,anonuid=500,anongid=502)[root@p18 nfsdata]#
三、在nfs server上的操作:
[root@p18 ~]# chkconfig --level 345 nfs on
四、启动nfs server:
[root@p18 ~]# service nfs startStarting NFS services: [ OK ]Starting NFS quotas: [ OK ]Starting NFS daemon: [ OK ]Starting NFS mountd: [ OK ][root@p18 ~]# exportfs -v/u02/nfsdata <world>(rw,wdelay,root_squash,all_squash,no_subtree_check,anonuid=500,anongid=502)
五、在nfs client上操作:
[root@test179 ~]# mkdir -p /u02/nfsdata[root@test179 ~]# ls -ld /u02/nfsdatadrwxr-xr-x 2 root root 4096 Aug 17 07:27 /u02/nfsdata[root@test179 ~]# cat /etc/fstabLABEL=/ / ext3 defaults 1 1LABEL=/boot /boot ext3 defaults 1 2tmpfs /dev/shm tmpfs defaults 0 0devpts /dev/pts devpts gid=5,mode=620 0 0sysfs /sys sysfs defaults 0 0proc /proc proc defaults 0 0LABEL=SWAP-sda2 swap swap defaults 0 0192.168.80.18:/u02/nfsdata /u02/nfsdata nfs rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,actimeo=0,vers=3,timeo=600 0 0[root@test179 ~]# [root@test179 ~]# mount /u02/nfsdata[root@test179 ~]# df -hFilesystem Size Used Avail Use% Mounted on/dev/sda3 55G 18G 35G 34% //dev/sda1 190M 12M 170M 7% /boottmpfs 1014M 0 1014M 0% /dev/shm/dev/hdc 2.8G 2.8G 0 100% /media/Enterprise Linux dvd 20090908192.168.80.18:/u02/nfsdata 55G 12G 40G 24% /u02/nfsdata[root@test179 ~]# [root@test179 ~]# cd /u02/nfsdata[root@test179 nfsdata]# ls -lrttotal 0[root@test179 nfsdata]# touch testfile[root@test179 nfsdata]# ls -lrttotal 0-rw-r--r-- 1 oracle oinstall 0 Aug 17 07:32 testfile[oracle@test179 ~]$ cd /u01/app/oracle/product/11.1.0/db_1/dbs/[oracle@test179 dbs]$ cat oranfstab server: 192.168.80.18path: 192.168.80.18local: 192.168.80.179export: /u02/nfsdata mount: /u02/nfsdata[oracle@test179 db_1]$ cd lib/[oracle@test179 lib]$ ls -lrt | grep odm-rw-r--r-- 1 oracle oinstall 8905 Sep 10 2008 libodmd11.so-rw-r--r-- 1 oracle oinstall 44730 Sep 10 2008 libnfsodm11.solrwxrwxrwx 1 oracle oinstall 12 Jul 11 13:26 libodm11.so -> libodmd11.so[oracle@test179 lib]$ mv libodm11.so libodm11.so_bak[oracle@test179 lib]$ ln -s libnfsodm11.so libodm11.so[oracle@test179 lib]$ ls -l libnfsodm11.so -rw-r--r-- 1 oracle oinstall 44730 Sep 10 2008 libnfsodm11.so[oracle@test179 lib]$ ls -l libodm11.so lrwxrwxrwx 1 oracle oinstall 14 Aug 17 07:37 libodm11.so -> libnfsodm11.so[oracle@test179 lib]$
先重启数据库实例,建立基于dnfs的tablespace,下面就不贴出重启的过程了,直接贴出建立表空间的过程。
[oracle@test179 ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.1.0.7.0 - Production on Mon Aug 17 07:43:08 2015Copyright (c) 1982, 2008, Oracle. All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> create tablespace nfs_tbs datafile '/u02/nfsdata/nfs_tbs01.dbf' size 30m;Tablespace created.SQL>
0 0
- 使用11g DNFS建立基于DNFS的tablespace
- DNFS is
- Oracle 11gR2 DNFS功能测试
- oracle 11G 读书笔记之 tablespace
- 【Oracle 11g】利用基于函数的索引只对部分行建立索引
- oracle 11g oem的建立方法
- 使用Tomcat建立基于主机名的虚拟主机
- 使用Tomcat建立基于主机名的虚拟主机
- 10g中resource角色的隐含权限UNLIMITED TABLESPACE
- Temporary Tablespace Enhancements in Oracle Database 11g
- Oracle12c安装时的问题:创建TableSpace和用户的时候与11g的代码命令一样
- tablespace 的大小和使用情况
- oralce显示tablespace使用情况的sql
- 使用 Flashback 恢复删除的 tablespace --实验
- 如何检查 TEMP TABLESPACE 的使用情况
- 11g测试库建立
- Oracle 11G建立数据库
- 使用J2EE建立基于XML的网络服务(1)
- [机器学习]逻辑回归,Logistic regression |分类,Classification
- 装饰者模式
- 开发杂记
- HDU - 4081 Qin Shi Huang's National Road System(次小生成树)
- APP的HTML5页面经过运营商网络被植入手机管家问题及分析,解决方案见新文章
- 使用11g DNFS建立基于DNFS的tablespace
- JStorm中的并行( parallelismction )介绍
- 疯狂java——面向对象
- NOI国家集训队论文集
- TCP的三次握手(建立连接)和四次挥手(关闭连接)详解
- 数据结构之二叉树的遍历
- 一份小小的练习
- codeforces 566A Matching Names
- [Elasticsearch] 数据建模 - 处理关联关系(2)