Oracle Database 10g allows for a simpler client configuration, in that in some cases it is not necessary to have a TNSNAMES file at all. This is possible using Oracle Net Easy Connect. In doing so, the client may connect by simply specifying the connect string in the form of //<vipname:port>/<service_name>.
Using the Easy Connect syntax in Oracle Database 10g Release1, instead of a tnsnames.ora file, means that you will not be able to take advantage of advanced features, such as TAF or client-side load balancing. However, the listener load balancing is still possible.
CONNECT
username@[//]host[:port][/service_name][:server][/instance_name]
Enter password: password
Read more…
RAC环境中,每次节电启动的时候,默认情况下CRS会自动启动相关的数据库的资源。如果我们做节点服务器维护的时候,不希望数据库等资源在节点重起的时候自动启动,可以使用srvctl disable这个资源。Disable就是指不让CRS自动启动相关资源。资源disable还是enable的状态记录在OCR中。
srvctl stop instance -d grid -i grid1 -o immediate
srvctl disable instance -d grid -i grid1
srvctl stop asm -n rmsclnxclu1 -i +ASM1 -o immediate
srvctl disable asm -n rmsclnxclu1 -i +ASM1
srvctl用来disable和enable相关资源
srvctl enable asm -n rmsclnxclu1 -i +ASM1
srvctl start asm -n rmsclnxclu1 -i +ASM1
srvctl enable instance -d grid -i grid1
srvctl start instance -d grid -i grid1 -o open
CRS也可以被disable和enable,防止做维护的时候CRS自动启动。
crsctl enable crs - enables startup for all CRS daemons
crsctl disable crs - disables startup for all CRS daemons
上海世博会真让上海赚了个满,所有区域的宾馆的价格就是牛市中的股票一样,一天1个价格。前几天张江的如家还275,过了几天就330。
住如家的结果的就是,带回北京1堆虱子,发现被咬了N多疙瘩。这也说明服务行业有待发展。
上海虱子欢迎你。
以前我说过,如果你讨厌一个人,恨一个人,你就告诉他去上海的豫园去吃小吃。
现在我又可以说,如果你恨一个人,讨厌一个人,你就告诉他去上海看世博会,就说有很多好看的。
这个问题是在作Online redef测试的时候碰见的,如果在primary执行START_REDEF_TABLE的时候,写错了目标表的名字,可能导致在logical standby上报这个错误然后导致apply停掉。并且该错误无法被skip。貌似bug.
SQL> create table large(id number primary key,text varchar(32) ) tablespace users;
Table created.
SQL> insert into large select object_id,object_name from dba_objects where object_id is not null;
72631 rows created.
SQL> create table TEST_NEW(id number primary key,text varchar(32) ) tablespace users2;
Table created.
SQL> exec dbms_redefinition.can_redef_table ( USER,’TEST’, DBMS_REDEFINITION.CONS_USE_PK) ;
PL/SQL procedure successfully completed.
然后执行START_REDEF_TABLE;如下敲错成“-”,自然会在primary上提示表large-new不存在。
exec dbms_redefinition.START_REDEF_TABLE ( USER, ‘LARGE’, ‘LARGE-NEW’, NULL, DBMS_REDEFINITION.CONS_USE_PK);
然后会在logical standby上碰见ORA-26808错误。
ORA-26808: Apply process AS00 died unexpectedly.
ORA-23481: unexpected name string “LARGE-NEW”
Read more…
Logical standby would be more mature and popular in future, i did some test about some feathures behavior in Oracle11g logical standby env.
Here is conclusion.
1) Text index is not FULLY support. It’s only Partially support. But it can be maintained on logical standby via SQL apply.
2) ROWID datatype are not supported in logical standby, you will see “ORA-16129: unsupported dml encountered” when it’s ignored by logical standby
3) Rows in compressed table can be replicated to logical standby.
4)virtual column and related function based index is also supported by logical standby
5)Logical standby will replicate “analyze table” statement from primary to standby, not copy statistics in dictionary from primary to standby.
6)Online redefinition is supported
7)Outline is supported. But manually updates in outln schema is not replicated to logical standby.
8)Oracle replicate sequence value very well and make sence.
9)During convert to some character set, we need to do convert on both databases.
10)System trigger like “after logon”or “after startup” is also supported on logical standby side.
Read more…
年初从到北京工作,需要租房子。由于当时时间比较紧张,找的北京石景山八角路附近的中介–中天置地,租的是那种代理的房子。现在才明白过来,中介和房东签一个代理协议后,中介就全权负责租房,并且以高于给房东的价钱出租,从中间收取差价,并且能够收取看房人的中介费用。
北京中介费用和上海不一样,上海是中介收取房东和租客各月租金的30%;北京不收房东的钱,收取租客1个月的房租,租房的方式也分2种:代理和只帮助找租客。中介费用一般可以侃价,会打些折扣。
2月份的时候只签了4个月的协议,交了1个月中介费用。6月份中天置地和房东重新签协议后,大概是房东涨了些钱,中介要求如果再续组的话就要加房租,还要付额外的一些续签工本费用。狗屎的中天置地,要不是当时我比较紧急才不会租他们的破房子。续租,就是他们多收钱,不租就相当于将我们赶出后,他们再租又能够收取中介费用。垃圾的中天置地。这是和帮助房东炒房,同样存在于中介环境中的潜规则吧。
如果是非代理形式的租房方式,可能不会存在类似情况。因此推荐非要找中介租房的时候,租非代理的方式。
最后说一句: 中天置地垃圾。
15号的时候在北京参加了一个infoq和baidu组织的1个技术沙龙,2个演讲嘉宾分别介绍了能够为超大数据量提供分布式且可扩展的百度Hadoop架构,和FreeWheel公司的广告核心系统的架构设计。PPT可以从infoq下载。
据我泛泛学习到,百度Hadoop是1个针对OLAP的分布式可扩展文件系统,不适合OLTP的随机读。适合存储用类似OLAP的列式数据库,比方说HBase。或许baidu是将网上抓取得网页进行分析并存储在Hbase中,然后批量读取以列方式存储的Title,Keywords,Content等字段来提高索引的吞吐量和性能。列式数据库的领域是大有前途阿,难怪SAP要整合Sybase。
Hadoop整体架构有点类似Oracle的ASM,整套(1个namenode+多个datanode)的Hadoop文件系统是1个disk group,每个datanode是该disk group中的1个disk。数据存储在Hadoop文件系统中,可以对数据个性化设置类似ASM的冗余属性等,且你不需要知道数据存储在哪个datanode中。当新的datanode加入到Hadhoop中的时候,会做类似ASM的rebalance均匀在datanode中分布数据stripe everything减免热块竞争。
另一位嘉宾是来自FreeWheel核心系统的技术总监。我觉的FreeWheel公司是一个有意思的互联网公司,它的业务模式很有意思。它是做多媒体运营商(比方说tudou)和多媒体内容提供商(比方说CCAV)的中间公证人。网络媒体的收入主要来自广告。这个广告费用那,有运营商和媒体提供商分成,这2个买卖对象,谁也不能100%相信谁,这就需要1个作中间得公证人。FreeWheel独立的负责广告投放的监管和计费,从中牟利。很明显的,这个模式目前在中国行不通。
不过不影响FreeWheel的发展,FreeWheel的所有开发人员都在中国招聘,应该在跨国IT公司中全球化战略比较成功的了。他们所带来的演讲我觉得也非常典型,business发展不同阶段对技术的使用和运营有不同的需求,只要应用规划和实施能够不制约商业规模的发展就是好猫,并且在每个阶段都要做好Capacity design,致力于High Avail。比方说PPT中提到的2点–50% 上限 & N+1 Data Center。
现场围观效果比瞄PPT收获好多了。