专注业务连续性支持与数据保护
2013-10-23技术合集

MySQL在ARM平台上的编译错误一例已关闭评论

MySQL在ARM平台上的编译错误一例

由于ARM平台开发板CPU本身处理能力有限,这样在MySQL编译的时候过程非常漫长,更可恶的还出现了错误,如下:

1
2
3
4
5
6
7
8
9
10
[ 68%] Building C object libmysql/CMakeFiles/clientlib.dir/__/sql-common/client_plugin.c.o
/root/lnmp1.0-full/mysql-5.5.28/sql-common/client_plugin.c: In function ‘mysql_client_plugin_init’:
/root/lnmp1.0-full/mysql-5.5.28/sql-common/client_plugin.c:252:5: error: incompatible type for argument 5 of ‘add_plugin’
/root/lnmp1.0-full/mysql-5.5.28/sql-common/client_plugin.c:120:1: note: expected ‘va_list’ but argument is of type ‘int’
/root/lnmp1.0-full/mysql-5.5.28/sql-common/client_plugin.c: In function ‘mysql_client_register_plugin’:
/root/lnmp1.0-full/mysql-5.5.28/sql-common/client_plugin.c:310:5: error: incompatible type for argument 5 of ‘add_plugin’
/root/lnmp1.0-full/mysql-5.5.28/sql-common/client_plugin.c:120:1: note: expected ‘va_list’ but argument is of type ‘int’
make[2]: *** [libmysql/CMakeFiles/clientlib.dir/__/sql-common/client_plugin.c.o] Error 1
make[1]: *** [libmysql/CMakeFiles/clientlib.dir/all] Error 2
make: *** [all] Error 2

处理方法如下应用下面Patch,文件名arm_fix_client_plugin.patch,内容:
继续阅读 »

2013-09-12技术合集

ORA-65086: cannot open/close the pluggable database已关闭评论

ORA-65086: cannot open/close the pluggable database

在Oracle 12C中执行卸载命令后,如果执行PDB的OPEN操作,将会提示错误,如下:

1
2
3
4
5
6
7
8
SQL> alter pluggable database pdb01 unplug into '/opt/oracle/pdb01.xml';
 
Pluggable database altered.
 
SQL> ALTER PLUGGABLE DATABASE pdb01 OPEN;
*
ERROR at line 1:
ORA-65086: cannot open/close the pluggable database

继续阅读 »

2013-09-05关注学习

Windows 7 自定义锁屏、登录背景已关闭评论

Windows 7 自定义锁屏、登录背景

1. 进入注册表,找到“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\
Background”,找到一个名为“OEMBackground”的DWORD,修改值为“1”。

2. 在“运行”中输入gpedit.msc,打开组策略编辑器,在目录“计算机配置-管理模块-系统-登录”中找到“始终使用自定义登录背景”项,哈哈,终于找到这个隐藏的家伙了,双击,在编辑页面选择“已启用”,保存设置。

3. 接下来就是用自选的壁纸替代系统默认的那张了,先找到放锁屏壁纸的目录,原来他在这里:C:\Windows\System32\oobe\info\backgrounds;默认情况下info\backgrounds目录是不存在的,我们需要自己新建这两个文件夹

4. 将自选的锁屏壁纸命名为backgroundDefault.jpg,放入第3步说明的backgrounds文件夹中,OK! 无需重启电脑,即刻生效

2013-08-31技术合集

crs_stop 错误一列已关闭评论

crs_stop 错误一列

grid 与 oracle 版本为11.2.0.4,为两节点RAC,在通过crs_stop -all命令关闭oracle服务时出现下面问题:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[oracle@rac01 ~]$ crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora.DATA.dg    ora....up.type OFFLINE   OFFLINE               
ora.FRA.dg     ora....up.type OFFLINE   OFFLINE               
ora....ER.lsnr ora....er.type OFFLINE   OFFLINE               
ora....N1.lsnr ora....er.type OFFLINE   OFFLINE               
ora.OCR.dg     ora....up.type OFFLINE   OFFLINE               
ora.asm        ora.asm.type   OFFLINE   ONLINE    rac02       
ora.cvu        ora.cvu.type   OFFLINE   OFFLINE               
ora.gsd        ora.gsd.type   OFFLINE   OFFLINE               
ora....network ora....rk.type OFFLINE   OFFLINE               
ora.oc4j       ora.oc4j.type  OFFLINE   OFFLINE               
ora.ons        ora.ons.type   OFFLINE   OFFLINE               
ora.rac.db     ora....se.type OFFLINE   OFFLINE               
ora....SM1.asm application    OFFLINE   ONLINE    rac01       
ora....01.lsnr application    OFFLINE   OFFLINE               
ora.rac01.gsd  application    OFFLINE   OFFLINE               
ora.rac01.ons  application    OFFLINE   OFFLINE               
ora.rac01.vip  ora....t1.type OFFLINE   OFFLINE               
ora....SM2.asm application    OFFLINE   ONLINE    rac02       
ora....02.lsnr application    OFFLINE   OFFLINE               
ora.rac02.gsd  application    OFFLINE   OFFLINE               
ora.rac02.ons  application    OFFLINE   OFFLINE               
ora.rac02.vip  ora....t1.type OFFLINE   OFFLINE               
ora....ry.acfs ora....fs.type OFFLINE   OFFLINE               
ora.scan1.vip  ora....ip.type OFFLINE   OFFLINE

继续阅读 »

2013-06-27技术合集

Oracle Database 12C 体验已关闭评论

Oracle Database 12C 体验

oracle版本:12.1.0.1.0
redhat版本:RedHat EL5.6 x64

安装过程分以下四个步骤

一,安装准备
二,下载安装
三,过程详解
四,常见错误

一,安装准备
1,创建oracle用户
继续阅读 »

2013-05-18关注学习

开放硬件平台已关闭评论

开放硬件平台

最近开始对开发板关注起来,罗列一下

1、Raspberry Pi
中文名:树莓派
基本配置:700MHz处理器,带有GPU,512MB内存,双USB口,一个100M网络接口,HDMI接口。
特性特点:基于linux的卡片大小的微电脑,可播放高清视频,有USB、网络、HDMI接口。
参考价格:280人民币 (红色为国内生产,较便宜,绿色版为英国生产)
购买地址:http://detail.tmall.com/item.htm?spm=a230r.1.14.3.R7cDm7&id=17337394004
官方网站:http://www.raspberrypi.org/
中文社区:http://www.eeboard.com/bbs/forum-43-1.html

2、Cubieboard
基本配置:1GHz处理器,带有GPU,1GB内存,双USB口,一个100M网络接口,HDMI接口,SATA接口。
特性特点:基于linux的卡片大小的微电脑,可播放高清视频,比Raspberry Pi多个sata硬盘接口。
参考价格:350人民币
购买地址:http://item.taobao.com/item.htm?spm=a230r.1.14.90.W4aJR2&id=22173848049
官方网站:http://cubieboard.org/
继续阅读 »

2013-04-18技术合集

ORA-00445错误一则已关闭评论

ORA-00445错误一则

数据库在运行中突然出现如下错误,导致服务不可用。
ORA-00445: background process “m000” did not start after 120 seconds
ORA-32701: Possible hangs up to hang ID=0 detected
DIA0 terminating blocker (ospid: 14288486 sid: 4370 ser#: 7549) of hang with ID = 129
requested by master DIA0 process on instance 1
Hang Resolution Reason: Automatic hang resolution was performed to free a
critical database process.
by terminating session sid: 4370 ospid: 14288486
DIA0 successfully terminated session sid:4370 ospid:14288486 with status 31.
ORA-00445: background process “J000” did not start after 120 seconds
ORA-00445: background process “W005” did not start after 120 seconds
ORA-00445: background process “J000” did not start after 120 seconds
ERROR: Unable to normalize symbol name for the following short stack (at offset 311):
继续阅读 »