- ubuntu12.04环境下使用kvm ioctl接口实现最简单的虚拟机
- Ubuntu 通过无线网络安装Ubuntu Server启动系统后连接无线网络的方法
- 在Ubuntu上搭建网桥的方法
- ubuntu 虚拟机上网方式及相关配置详解
CFSDN坚持开源创造价值,我们致力于搭建一个资源共享平台,让每一个IT人在这里找到属于你的精彩世界.
这篇CFSDN的博客文章oracle 11g RAC 常用命令整理分享由作者收集整理,如果你对这篇文章有兴趣,记得点赞哟.
1)、检查集群状态: [grid@rac02 ~]$ crsctl check cluster CRS-4537: Cluster Ready Services is online CRS-4529: Cluster Synchronization Services is online CRS-4533: Event Manager is online 2)、所有 Oracle 实例 —(数据库状态): [grid@rac02 ~]$ srvctl status database -d racdb Instance racdb1 is running on node rac01 Instance racdb2 is running on node rac02 3)、检查单个实例状态: [grid@rac02 ~]$ srvctl status instance -d racdb -i racdb1 Instance racdb1 is running on node rac01 4)、节点应用程序状态: [grid@rac02 ~]$ srvctl status nodeapps VIP rac01-vip is enabled VIP rac01-vip is running on node: rac01 VIP rac02-vip is enabled VIP rac02-vip is running on node: rac02 Network is enabled Network is running on node: rac01 Network is running on node: rac02 GSD is disabled GSD is not running on node: rac01 GSD is not running on node: rac02 ONS is enabled ONS daemon is running on node: rac01 ONS daemon is running on node: rac02 eONS is enabled eONS daemon is running on node: rac01 eONS daemon is running on node: rac02 5)、列出所有的配置数据库: [grid@rac02 ~]$ srvctl config database racdb 6)、数据库配置: [grid@rac02 ~]$ srvctl config database -d racdb -a Database unique name: racdb Database name: racdb Oracle home: /u01/app/oracle/product/11.2.0/dbhome_1 Oracle user: oracle Spfile: +RACDB_DATA/racdb/spfileracdb.ora Domain: xzxj.edu.cn Start options: open Stop options: immediate Database role: PRIMARY Management policy: AUTOMATIC Server pools: racdb Database instances: racdb1,racdb2 Disk Groups: RACDB_DATA,FRA Services: Database is enabled Database is administrator managed 7)、ASM状态以及ASM配置: [grid@rac02 ~]$ srvctl status asm ASM is running on rac01,rac02 [grid@rac02 ~]$ srvctl config asm -a ASM home: /u01/app/11.2.0/grid ASM listener: LISTENER ASM is enabled. 8)、TNS监听器状态以及配置: [grid@rac02 ~]$ srvctl status listener Listener LISTENER is enabled Listener LISTENER is running on node(s): rac01,rac02 [grid@rac02 ~]$ srvctl config listener -a Name: LISTENER Network: 1, Owner: grid Home: <CRS home> /u01/app/11.2.0/grid on node(s) rac02,rac01 End points: TCP:1521 9)、SCAN状态以及配置: [grid@rac02 ~]$ srvctl status scan SCAN VIP scan1 is enabled SCAN VIP scan1 is running on node rac02 [grid@rac02 ~]$ srvctl config scan SCAN name: rac-scan.xzxj.edu.cn, Network: 1/192.168.1.0/255.255.255.0/eth0 SCAN VIP name: scan1, IP: /rac-scan.xzxj.edu.cn/192.168.1.55 10)、VIP各个节点的状态以及配置: [grid@rac02 ~]$ srvctl status vip -n rac01 VIP rac01-vip is enabled VIP rac01-vip is running on node: rac01 [grid@rac02 ~]$ srvctl status vip -n rac02 VIP rac02-vip is enabled VIP rac02-vip is running on node: rac02 [grid@rac02 ~]$ srvctl config vip -n rac01 VIP exists.:rac01 VIP exists.: /rac01-vip/192.168.1.53/255.255.255.0/eth0 [grid@rac02 ~]$ srvctl config vip -n rac02 VIP exists.:rac02 VIP exists.: /rac02-vip/192.168.1.54/255.255.255.0/eth0 11)、节点应用程序配置 —(VIP、GSD、ONS、监听器) [grid@rac02 ~]$ srvctl config nodeapps -a -g -s -l -l option has been deprecated and will be ignored. VIP exists.:rac01 VIP exists.: /rac01-vip/192.168.1.53/255.255.255.0/eth0 VIP exists.:rac02 VIP exists.: /rac02-vip/192.168.1.54/255.255.255.0/eth0 GSD exists. ONS daemon exists. Local port 6100, remote port 6200 Name: LISTENER Network: 1, Owner: grid Home: <CRS home> /u01/app/11.2.0/grid on node(s) rac02,rac01 End points: TCP:1521 12)、验证所有集群节点间的时钟同步: [grid@rac02 ~]$ cluvfy comp clocksync -verbose Verifying Clock Synchronization across the cluster nodes Checking if Clusterware is installed on all nodes... Check of Clusterware install passed Checking if CTSS Resource is running on all nodes... Check: CTSS Resource running on all nodes Node Name Status ------------------------------------ ------------------------ rac02 passed Result: CTSS resource check passed Querying CTSS for time offset on all nodes... Result: Query of CTSS for time offset passed Check CTSS state started... Check: CTSS state Node Name State ------------------------------------ ------------------------ rac02 Active CTSS is in Active state. Proceeding with check of clock time offsets on all nodes... Reference Time Offset Limit: 1000.0 msecs Check: Reference Time Offset Node Name Time Offset Status ------------ ------------------------ ------------------------ rac02 0.0 passed Time offset is within the specified limits on the following set of nodes: "[rac02]" Result: Check of clock time offsets passed Oracle Cluster Time Synchronization Services check passed Verification of Clock Synchronization across the cluster nodes was successful. 13)、集群中所有正在运行的实例 — (SQL): SELECT inst_id , instance_number inst_no , instance_name inst_name , parallel , status , database_status db_status , active_state state , host_name host FROM gv$instance ORDER BY inst_id; 14)、所有数据库文件及它们所在的 ASM 磁盘组 — (SQL): 15)、ASM 磁盘卷: 16)、启动和停止集群: 以下操作需用root用户执行。 (1)、在本地服务器上停止Oracle Clusterware 系统: [root@rac01 ~]# /u01/app/11.2.0/grid/bin/crsctl stop cluster 注:在运行“crsctl stop cluster”命令之后,如果 Oracle Clusterware 管理的 资源中有任何一个还在运行,则整个命令失败。使用 -f 选项无条件地停止所有资源并 停止 Oracle Clusterware 系统。 另请注意,可通过指定 -all 选项在集群中所有服务器上停止 Oracle Clusterware 系统。如下所示,在rac01和rac02上停止oracle clusterware系统: [root@rac02 ~]# /u01/app/11.2.0/grid/bin/crsctl stop cluster –all 在本地服务器上启动oralce clusterware系统: [root@rac01 ~]# /u01/app/11.2.0/grid/bin/crsctl start cluster 注:可通过指定 -all 选项在集群中所有服务器上启动 Oracle Clusterware 系统。 [root@rac02 ~]# /u01/app/11.2.0/grid/bin/crsctl start cluster –all 还可以通过列出服务器(各服务器之间以空格分隔)在集群中一个或多个指定的 服务器上启动 Oracle Clusterware 系统: [root@rac01 ~]# /u01/app/11.2.0/grid/bin/crsctl start cluster -n rac01 rac02 使用 SRVCTL 启动/停止所有实例: [oracle@rac01 ~]#srvctl stop database -d racdb [oracle@rac01 ~]#srvctl start database -d racdb 。
最后此篇关于oracle 11g RAC 常用命令整理分享的文章就讲到这里了,如果你想了解更多关于oracle 11g RAC 常用命令整理分享的内容请搜索CFSDN的文章或继续浏览相关文章,希望大家以后支持我的博客! 。
我目前正在尝试让 g++ 工作,并查看 http://gcc.gnu.org/install/build.html ,我似乎找不到它在哪里说如何“执行编译器的 3 阶段 bootstrap ”。我在哪
James Powell 在他对即将举行的演示文稿的简短描述中说,他自豪地发明了最粗糙的 Python 单行代码之一: (None for g in g if (yield from g) and F
请告诉我我的证明是否正确 We have a connected graph, and specific vertex u in V(G). Suppose we compute the dfs tr
下面的test2和test3结果是不同的。 我对此感到困惑,因为它看起来像相同的逻辑,并且与linux bash ||逻辑不同。 $data = @( [PSCustomObject]@{St
我试图找到一个明确的 G 代码语法规范,而不是单个 G 代码的含义,我无处不在的规范,我的意思是详细的语法规范,目的是编写解析器。 我编写解析器没有问题,我只是在寻找语法规范,例如。我知道您不必总是为
我写了这个 mixin,但它循环了很多时间。你能帮我优化我的代码吗?或者你能建议一些其他的东西来获得想要的结果吗? dfgdfgsdfgsdf 最佳答案 希望这就是您要找的。 $spaces: (4,
默认情况下,g++ 似乎会省略未使用的类内定义方法的代码。示例 from my previous question : struct Foo { void bar() {} void baz(
是否可以将文件内容通过管道传送到 g++编译程序? 我想这样做是因为我想使用数据库中的文件而不是磁盘上的物理文件。可以通过我制作的 API 轻松检索文件内容。 例如,我想做这样的事情: g++ con
如何profile c++代码获取每行代码的调用次数和消耗时间,就像profile工具一样在 Matlab 中呢? 我尝试使用-fprofile-arcs之类的东西,但它只生成代码覆盖率报告,其中可以
如何在几行代码上禁用所有警告。可以使用 GCC 诊断功能禁用特定警告,但是否有针对所有警告的标志。我尝试了这个方法,但不起作用 #pragma GCC diagnostic push #pragma
我有一个链接到 opencv 2.2 的可执行文件。但是,我删除了 opencv 2.2 并安装了 opencv 2.3。 问题是,有没有办法在不重新编译整个源代码的情况下将这个可执行文件链接到新的共
在编译带有一些标志的以下文件时,是否可以让 g++ 显示错误? #include using namespace std; int main() { int arr[ 2 ]; cout
在学习 Haskell 时,我遇到了一个挑战,要找到两个函数 f 和 g,例如 f g 和 f 。 g 是等价的(并且是总计,因此像 f = undefined 或 f = (.) f 这样的东西不算
根据我的理解,Theta 位于 Big O 和 Omega 之间,但我看到了这个声明,但我无法理解为什么交集会出现在这里。我能否对 Θ(g(n)) = O(g(n)) ∩ Ω(g(n)) 获得数学和分
我需要为这个递归函数编写一个迭代函数。 int funcRec(int n){ if(n>1) { return 2*funcRec(n - 1) + 3*funcRec(n
我在 github repository 上有代码示例并在 travis-ci 上创建了一个构建便于复制。 最小的、完整的和可验证的例子 可能不是最小的,但我相信它足够小 它使用 boost.inte
编辑:我们将调用箭头 p纯如果存在这样的函数f即:p = arr f . 我试图更好地掌握 Haskell 中的 Arrows,我想弄清楚什么时候 f >>> (g &&& h) = (f >>> g
我有两个(或更多)函数定义为: val functionM: String => Option[Int] = s => Some(s.length) val functionM2: Int => Op
好像是的。任何直观或严肃的证据都值得赞赏。 最佳答案 没有。 我认为您的问题等同于:给定函数 f 和 g,f 是 O(g) 或 g 是 O(f) 是否总是正确的?这在 SE Computer Scie
如果我设法证明 f(n) = o(g(n))(小 o),那么这两个函数的总和 f( n) + g(n) 应该被“更大”的函数 g(n) 紧紧束缚。 然而,我在证明这一点时遇到了一些麻烦。 最佳答案 以
我是一名优秀的程序员,十分优秀!