06.23.08

罗列 Oracle 10G OCM 考点

Posted in Oracle at 9:45 am by David.Guo

ORACLE 10G OCM考点,罗列之,记录之。
Server Configuration
[  ]     Create the database
[  ]     Determine and set sizing parameters for database structures
[  ]     Create and manage temporary, permanent, and undo tablespaces
[  ]     Stripe data files across multiple physical devices and locations
[  ]     Configure the database environment to support optimal data access performance
[  ]     Create and manage database configuration files
[  ]     Create and manage bigfile tablespaces
[  ]     Create and manage multiple network configuration files
[  ]     Create and configure a listener
[  ]     Configure the database instance to support shared server connections
[  ]     Set up network tracing
[  ]     Manage Oracle network processes (the Listener Control utility)
[  ]     Configure the network environment to allow connections to multiple databases
[  ]     Use configurationless connections

Enterprise Manager Grid Control
[  ]     Install the Enterprise Manager Grid Control software
[  ]     Configure the Enterprise Manager repository
[  ]     Create Enterprise Manager Grid Control users
[  ]     Use Enterprise Manager to modify a database configuration
[  ]     Configure Enterprise Manager to modify a database availability
[  ]     Create and manage jobs
[  ]     Create and monitor alerts
[  ]     Create notifications
[  ]     Implement Grid Control and Database Control
[  ]     Choose the appropriate tablespace type for the intended use
[  ]     Create Scheduler jobs
[  ]     Create schedules
[  ]     Assign jobs to windows
[  ]     Create programs
[  ]     Create job classes
[  ]     Install the Enterprise Manager Grid Control infrastructure
[  ]     Deploy Enterprise Manager Grid Control agents
[  ]     Configure Grid Control for business requirements

Managing Database Availability
[  ]     Create a recovery catalog database
[  ]     Configure Recovery Manager
[  ]     Use Recovery Manager to perform database backups
[  ]     Use Recover Manager to perform complete database restore and recovery operations
[  ]     Set Flashback Database parameters
[  ]     Monitor Flashback Database logs and statistics
[  ]     Perform a Flashback Database operation
[  ]     Configure a flash recovery area

Data Management
[  ]     Implement fine-grained auditing
[  ]     Create a secure application role
[  ]     Grant specific privileges for a Flashback Query
[  ]     Set parameters for retaining undo
[  ]     Implement fine-grained access control
[  ]     Create and manage contexts
[  ]     Use SQL*Loader
[  ]     Implement transportable tablespaces between homogeneous and heterogeneous systems (using different methods of moving files)
[  ]     Choose the appropriate partition method (range, hash, list, and composite)
[  ]     Choose the appropriate partition key
[  ]     Choose appropriate indexing methods (local, global, prefixed, and nonprefixed)
[  ]     Perform partition maintenance operations
[  ]     Maintain indexes on a partitioned table
[  ]     Create and manage LOB segments
[  ]     Apply parallelism appropriately
[  ]     Tune memory for parallel operations
[  ]     Set parallel parameters

Data Warehouse Management
[  ]     Create external tables (Data Loader and Data Pump drivers)
[  ]     Implement Data Pump export and import jobs for data transfer
[  ]     Implement Data Pump to and from remote databases
[  ]     Implement Replication/Streams
[  ]     Configure and manage master replication
[  ]     Configure and manage distributed materialized views
[  ]     Configure and manage Streams for replication

Performance Management
[  ]     Install Statspack
[  ]     Adjust the default interval for statistics collection
[  ]     Customize the events that are monitored
[  ]     Use ADDM to analyze statistics and to identify performance bottlenecks and fix them
[  ]     Implement automatic shared memory management
[  ]     Tune memory using manual memory management
[  ]     Monitor and tune SGA areas that are not automatically tuned
[  ]     Implement automatic SQL execution memory management
[  ]     Tune the PGA using work area size parameters
[  ]     Use the PGA Advisor
[  ]     Create a Database Resource Manager plan with directives (active session count, max execution time)
[  ]     Create consumer groups
[  ]     Configure consumer group mappings
[  ]     Manage Services
[  ]     Create and manage objects to accommodate different data access methods (schema tuning)
[  ]     Use the SQL Tuning Advisor
[  ]     Use the SQL Access Advisor
[  ]     Gather Optimizer statistics
[  ]     Interpret execution plan
[  ]     Use SQL tuning tools and features

Real Application Clusters
[  ]     Install Oracle Clusterware
[  ]     Install the Oracle Database 10g software
[  ]     Implement ASM failure groups
[  ]     Create and manage as ASM instance
[  ]     Create and manage ASM disk groups
[  ]     Configure ASM for the shared disks, and create a clustered database
[  ]     Configure archiving
[  ]     Configure Services with a primary instance and an available instance

Data Guard
[  ]     Use Data Guard Manager and DGMGRL
[  ]     Create and utilize a physical standby database
[  ]     Create and utilize a logical standby database
[  ]     Set up log transport services for various levels or protection
[  ]     Configure the network environment to allow communication between the standby database and the primary database
[  ]     Open the physical standby database in a “ready-only” state
[  ]     Perform a switchover operation and a failover operation
[  ]     Implement Data Guard

06.14.08

作技术,什么都可能发生

Posted in Oracle管理 at 3:31 am by David.Guo

最近的怪事蛮多。

首先是那天我晚班,下午去公司,同事说下午2点左右地震了,我靠,那可是6月12日,难道是汶川地震1个月的纪念,再问下去,原来是那个时候一台伟大的DS8300可能是站着太累了,居然在机房去睡了会,1.4吨的家伙,这么一睡,那动作和地震差不多。晚饭后去机房看望了下这哥们,嗯,这是第一次我有意识的去看8300,结果还是刚睡醒的,这种看8300倒地的机会还真不多,可惜我去看望的时候8300已经站起来了,不过没人敢给它上电了。有多少人见过8300倒地呀?

今天晚上在家值班的时候,收到电话,晚上要重新起停一个rac库。不是很重要的系统,所以服务器也不是很好,IBM P560Q而已,也没怎么在意,这种活已经习惯了,都不会紧张了,先把库拉掉,很正常,然后IBM的哥们在机房给加内存,装好了,HA起来,正常,然后我拉库。拉呀,第一个节点起来正常,拉第二个节点呗,启动到nomount就不动了,检查alert.log

at Jun 14 02:46:52 2008
lmon registered with NM - instance id 2 (internal mem no 1)
Sat Jun 14 02:52:41 2008
Reconfiguration started (old inc 0, new inc 1)
List of nodes:
1

Global Resource Directory frozen
one node partition
Communication channels reestablished
Master broadcasted resource hash value bitmaps
Non-local Process blocks cleaned out
Resources and enqueues cleaned out
Resources remastered 0
0 GCS shadows traversed, 0 cancelled, 0 closed
0 GCS resources traversed, 0 cancelled
set master node info
Submitted all remote-enqueue requests
Update rdomain variables
Dwn-cvts replayed, VALBLKs dubious
All grantable enqueues granted
0 GCS shadows traversed, 0 replayed, 0 unopened
Submitted all GCS remote-cache requests
0 write requests issued in 0 GCS resources
0 PIs marked suspect, 0 flush PI msgs

也没啥好看的,把先拉起来的节点down掉,2号节点就立刻起来了。这问题好像以前见过,我记得好像是如果参数cluster_interconnects不对的话,会有这种问题,嗯,那就整呗,这个参数也正常,每个instance单独起来都会对。难道是,莫非是见鬼了,ok,再想想,似乎两个主机交换的hacmp的网络会引起这种问题,先检查tty0,正常,再检查网卡的参数MTU,也正常。

无论如何,我一定坚信,这个是HA的问题或者是网络的问题,明显资源有问题。再看看metalink,发现也是这些东西,但是metalink说的这些都没有问题的,继续折磨IBM的哥们,让他们去查网络,终于,10分钟后,有好消息了,RAC的网络光纤出现了问题,我靠,不就是下个电吗,有这么麻烦的加内存动的是前面,又不是后面,光纤,你咋坏了列。赶紧的兄弟们换光纤线,重新拉库。正常了。

不是8300倒地,就是光纤不行,是我该去烧香,还是IBM的哥们该去了列?

05.30.08

招聘Oracle DBA —-广州

Posted in Oracle at 11:07 am by David.Guo

因广州业务发展需要,批量招聘Oracle DBA 

要求:

1、两年以上ORACLE DBA/技术支持相关工作经验,可以独立承担安装部署以及基本的ORACLE操作,熟悉UNIX/RAC/PARTITION/DATA GUARD优先

2、对OCP知识有一定理解,有OCP证书优先

3、主要服务通讯行业客户,出差较少,熟悉通讯行业优先

4、有良好的人际关系和沟通能力

5、请在简历注明待遇要求,如果附件发送简历请在附件名称注明个人姓名

 

工作地点:广州,基本不出差.
待遇:  

1:面谈

2:每月提供交通和通信补贴

3:在职期间,通过OCM考试,报销全部费用

有意者,请简历给我 guoyue@gmail.com

那位大哥有熟人推荐给我也行,有丰厚推荐费哟.

 

PS:上次的助理DBA的职位继续开放!

03.31.08

数据库用户避开了LOGON_AUDIT触发器

Posted in Oracle管理 at 3:01 pm by David.Guo

相信很多DBA会在系统中来个LOGON_AUDIT,目的就是避免某些未经过授权的机器登陆了数据库.

这事在我们这也有.为了防止从办公网络试用生产账号登陆生产主机非法获取用户信息(因为我们的生产账号是不作审计的,个人账号作审计,因此要避免生产账号从办公网络登陆主机),我们写了个LOGON_AUDIT的触发器,如下:

CREATE OR REPLACE TRIGGER sys.LOGON_AUDIT
AFTER LOGON ON DATABASE
declare
  lv_user   varchar2(100);
  lv_host   varchar2(100);
  lv_schema varchar2(100);
  lv_suser  varchar2(100);
  lv_ip varchar2(100);
BEGIN
  select sys_context(‘USERENV’, ‘HOST’),
         sys_context(‘USERENV’, ‘CURRENT_USER’),
         sys_context(‘USERENV’, ‘CURRENT_SCHEMA’),
         sys_context(‘USERENV’, ‘SESSION_USER’),
         sys_context(‘USERENV’, ‘IP_ADDRESS’)
    into lv_host, lv_user, lv_schema, lv_suser, lv_ip
    from dual;

  if lv_suser = ‘USERNAME’ then
    if substr(lv_ip, 1, 8) in (‘xx.xx.xx’)
       or lv_ip is null
    then
       null ;
    else
      RAISE_APPLICATION_ERROR(-20001, ‘CONNECTIION REFUSED’||lv_ip);
    end if;
  end if;
END;
测试的时候,通过,可是在正式使用中,却发现有的生产主机没有办法拒绝办公网络的登陆.那就查问题呗.

查来查去,发现似乎应该是权限的问题.在检查,发现凡是不能拒绝办公网络登陆的数据库用户有一个IMP_FULL_DATABASE的角色.这个角色的权限非常的高,仔细检查这个角色的权限,发现其中有一个权限为:ADMINISTER DATABASE TRIGGER,将这个权限从用户上revoke后,登陆就会被拒绝,如果将这个权限授予用户,就会避开系统的LOGON_AUDIT触发器,能继续登陆,问题是找到了,啥时候能重新授权列,只能等待,慢慢的等到系统上线或者例行维护的时候了,这个权限的重新授予风险还是很高的.不过问题找到了就ok.

03.17.08

我们到底需要什么样的DBA?

Posted in Oracle at 5:13 pm by David.Guo

最近一直在招DBA,以至于弄到很多兄弟说我们怎么一直在招DBA,是不是骗人的列? 事实上,从招人到现在,我们也招到了4-5个不错的DBA,可是业务发展太快,以至于我不得不不停的招DBA. 最近也收到很多简历,上周对这些简历也着手作了一些整理.

一些兄弟列,明显的经验不足,有的还不到1年的工作经验,如果是我前家公司,我还能给这些兄弟一些机会,但是现在的业务,真的没有办法让经验非常不足的兄弟来玩,我也非常能理解大家迫切的想有一个好的环境锻炼下的心情,但是,作为替公司招人,我也要对公司,对老板以及对客户负责,很抱歉,对于这样的简历,我实在没有办法给予回复.因为我不知道该如何去很直接的拒绝;

另外一些兄弟,有一定的工作经验,但是经历的系统并不是很大.说实话,维护一个从来不出问题的系统,或者是业务不繁忙的系统,出现的问题比较少,对于一些繁忙系统经常出现的问题,明显没有什么心理准备,也曾经有人告诉我说,看到IO很忙的session,就直接kill掉,说实话,这么干的话,那就不用DBA了,写个job吗,发现调用系统资源频繁的,就都kill掉,只是不知道有多少业务系统能接受这样的操作.而事实上,可能是由于最近DBA很难招,因此这样的兄弟,开出来的薪水,真的有点吓人的.其实对于薪水,我相信任何公司都能给工程师所需要的薪水,但是高得离谱的薪水,显然有失公允.

还有兄弟上来就问我现在的工程师的人数,是不是会很忙,很累?公司未来三到五年的发展计划是啥呀,公司有什么想法呀,只字不提工作的内容,工作的团队,嗯,我不反对谈这些,但是说实话,对于第一次面试的人,我都不知道你是否合适来我公司,有些东西我是不会向你透露的,当然,如果你是风投,我会考虑和你聊聊发展.至于累的问题,我们不是养老院,所以一定会累的,如果想不累,建议可以考虑去养老院,据说那地不是很累.

还有一些兄弟,简历中留下的电话根本就无法接通,对于这样的简历,我只能说,非常抱歉,我没有办法每天给你打个电话看看你的电话是否能够接通.因为其实大家都很忙,我也知道,你也很忙.

我到底要什么样的DBA?该回答这个问题了.1:我需要有丰富工作经验并且理论扎实的DBA,因为维护的系统的缘故,我不敢冒险的,我会随时担心悬在头上的达摩克利斯剑会掉下来,因此,我要降低这万一掉下来的风险;2:我需要具有良好合作精神的DBA,大家都知道,我这地,环境太复杂,主机,网络,存储,数据库,应用,在这干活是需要协调的,当然,很多协调我可以帮你干,但是还是有很多协调需要你自己去完成,因此太过于自傲和太过于内向的人,可能并不适合我这;3:我需要能长期的在一个地方工作的DBA,很多人的简历中,5年能换6家公司,我一直相信,即使那个公司再烂,你也应该待2年左右,这样你才能真的看清楚这个公司是否不适合你待,才能对这个公司作出合理的评价,不是吗?我也和很多猎头聊过,大部分的猎头也不喜欢跳槽过于频繁的人;4:要能承受巨大工作压力的人,这里说的工作压力,并不一定是多累,每天搬3000块砖头上30楼,这个也叫工作压力,但是我这里,更多的是能承受巨大的心理压力,当你发现一个业务的慢影响如此之大,而且很多领导站你后面,或者是5分钟你会接到10个电话催你这个事情处理得如何的时候,你能保持良好的心态,不会在这种情况下作出错误的判断,基本上,我认为这个部分就比较强悍了.

 Ok,我这里继续有DBA的缺口,还是非常欢迎有丰富工作经验的DBA,特别是满足上面4个条件的DBA来试试我们的职位,我相信公司不会在其他方面让你失望.

« Previous entries ·