上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 76 下一页
摘要: Unix manual pages(online documentation):man perlhttp://www.perl.orghttp://www.perl.comhttp://www.cpan.orghttp://www.activestate.comhttp://www.oreilly.com 阅读全文
posted @ 2013-06-23 14:18 ArcerZhang 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1、连接数据库#!/usr/bin/perluse strict;use DBI;my $tnsname = "DB234";my $username = "SCOTT";my $password = "TIGER";my $dbh = DBI->connect("dbi:Oracle:$tnsname",$username,$password) or die "Cannot connect db : $DBI::errstr\n";print "I have connect t 阅读全文
posted @ 2013-06-23 14:15 ArcerZhang 阅读(1056) 评论(0) 推荐(0) 编辑
摘要: 1、安装之前,先检查一下当前系统中Perl的版本[root@arcerzhang ~]# perl -vThis is perl, v5.10.1 (*) built for x86_64-linux-thread-multiCopyright 1987-2009, Larry WallPerl may be copied only under the terms of either the Artistic License or theGNU General Public License, which may be found in the Perl 5 source kit.Complet 阅读全文
posted @ 2013-06-23 13:36 ArcerZhang 阅读(3550) 评论(1) 推荐(1) 编辑
摘要: Here is some pretty good code piece to check it:#!/usr/bin/perluse strict;use ExtUtils::Installed;my $inst=ExtUtils::Installed->new();my @modules = $inst->modules();foreach(@modules){ my $ver = $inst->version($_) || "???"; printf("%-12s -- %s\n",$_,$ver);}exit;View Code 阅读全文
posted @ 2013-06-23 11:30 ArcerZhang 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Oracle10G以前执行drop table后表就即被删除了。10G后引入了垃圾回收站的概念recyclebin。如果仍只是drop table xxx,表不会立即被删除,而是被暂时放入回收站。 可以保障某些误操作后还可以将表还原。 1.查看数据库是否开户recyclebin功能 SQL> sho... 阅读全文
posted @ 2013-06-23 10:05 ArcerZhang 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 1、oracle 10g oracle 11g,数据库同步归档 对外查询在oracle 10g中,备库与主库之间的同步归档与备库的对外查询功能是二选一的,要么只能与主库进行同步归档功能,要么只能对外查询,二者不可以同时兼容存在;在oracle 11g中,备库与主库之间的同步归档与备库的对外查询功能是可以同时存在的. 阅读全文
posted @ 2013-06-22 10:45 ArcerZhang 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 1、查看哪些文件需要进行RMAN 备份?RMAN> report need backup;RMAN retention policy will be applied to the commandRMAN retention policy is set to redundancy 1Report of... 阅读全文
posted @ 2013-06-21 18:43 ArcerZhang 阅读(391) 评论(0) 推荐(0) 编辑
摘要: RAC集群软件存在两大核心部分:表决磁盘、OCR.脚本1、a_preusers.sh#!/bin/bash#Purpose:Create 6 groups named 'oinstall','dba','asmadmin','asmdba','asmoper','oper', plus 2 users named 'oracle','grid'.#Also setting the Environment#variable for oracle user.#variab 阅读全文
posted @ 2013-06-21 09:25 ArcerZhang 阅读(1246) 评论(0) 推荐(0) 编辑
摘要: 参考视频[bbk4436]第1集 - Oracle 11g DataGuard 概述[bbk4437]第2集 - Oracle 11g DataGuard 概述[bbk4742]第3集 - 创建一个物理备库[bbk4743]第4集 - 创建一个物理备库Steps to Create a Physical Standby DatabasePrepare the primary database.Set parameters on the physical standby database.Configure Oracle Net Services.Start the standby databa 阅读全文
posted @ 2013-06-18 20:12 ArcerZhang 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 查看数据库中log file信息SQL> col member format a50SQL> select group#,status,type,member from v$logfile; GROUP# STATUS TYPE MEMBER---------- ------- ------- -------------------------------------------------- 3 ONLINE D:\APP\MARYHU\ORADATA\ARCERZHANGDB\REDO03.LOG 2 ONLI... 阅读全文
posted @ 2013-06-18 17:27 ArcerZhang 阅读(222) 评论(0) 推荐(0) 编辑
上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 76 下一页