Archive for 十二月, 2007

votedisk和ocr备份恢复

星期四, 十二月 27th, 2007

ORACLE RAC 的一些备份
ORACLE会自动对CRS的配置信息OCR盘进行自动备份
可以通过orcconfig -showbackup查看备份信息

对于中裁盘votingdisk可以使用DD命令备份文件系统
可以通过crsctl query css votedisk
备份
dd if=/dev/votedisk of=/oraclebackup/vote_disk
恢复只要
dd if=/oraclebackup/vote_disk of /dev/votedisk

ASM实例的备份
可以只备份ASM的$ORACLE_HOME

OCR的备份可以通过如下命令
ocrconfig -export myfile
orcdump -backupfile myfile
恢复可以用如下命令
crs stop
ocrconfig -import myfile

关于模块的命令

星期四, 十二月 27th, 2007

lsmod(list modules)

功能说明:显示已载入系统的模块。

语  法:lsmod

补充说明:执行lsmod指令,会列出所有已载入系统的模块。Linux操作系统的核心具有模块化的特

性,应此在编译核心时,务须把全部的功能都放入核心。您可以将这些功能编译成一个个单独的模

块,待需要时再分别载入。

—————————————————-

(全文…)

not null-unique-primarykey-check

星期三, 十二月 26th, 2007

关于not_null

A column in a table can be specified not null. It’s not possible to insert a null in such a column. The default is null. So, in the following create table statement, a null can be inserted into the column named c.

120.jpg

(全文…)

oracle audit的实现

星期三, 十二月 26th, 2007

创建一个登陆信息登记表
create table login_log
(
session_id int not null,
login_on_time date,
login_off_time date,
user_in_db varchar2(30),
machine varchar2(20),
run_program varchar2(20)
);

(全文…)

韩国跑跑-精彩视频

星期三, 十二月 26th, 2007

 [youku cg00XMTI0OTEwMA==]

[youku XNDI0Mjk2]

(全文…)