db2概念
db2实例,是一个数据库管理器环境,跟sqlserver实例类似。db2数据库,类似于sqlserver的数据库表空间:一个db2数据库可以有一个或者多个表空间容器:容器是表空间的组成部分。多库结构的数据库:sqlserver ; db2 ; sybase单库结构的数据库:oracle[@more@]
db2在rhel 4u6下做rose HA双机时的注意点
1.将gam_server 改名。[root@leiredhat ~]# ps -ef |grep gam_serverroot 11244 1 0 09:39 ? 00:00:00 /usr/libexec/gam_serverroot 22764 11169 0 12:03 pts/2 00:00:00 grep gam_server[root@leiredhat ~]# mv /usr/libexec/gam_server /usr/libexec/gam_server.bak[root@leiredhat ~]# cd /usr/libexec/[root@leiredhat libexec]# ll | grep gam_server-rwxr-xr-x 1 root root 107912 2006-11-20 gam_server.bak[root@leiredhat libexec]# ps -ef |grep gam_serverroot 11244 1 0 09:39 ?
关于db2副本
db2副本,db2 copy,这个名称一开始理解不透,后来研究了一下,其实就是 db2 software 的安装目录,那么多个db2 software的安装 目录。[@more@]
db2实例在运行时db2nodes.cfg是被锁定的
[db2inst1@leiredhat sqllib]$ ll |grep db2nodes.cfg-r--r--r-- 1 db2inst1 db2iadm1 14 12-12 03:13 db2nodes.cfg[db2inst1@leiredhat sqllib]$ db2stop2010-12-12 03:27:45 0 0 SQL1064N DB2STOP processing was successful.SQL1064N DB2STOP processing was successful.[db2inst1@leiredhat sqllib]$ ll |grep db2nodes.cfg-rw-r--r-- 1 db2inst1 db2iadm1 14 12-12 03:13 db2nodes.cfg[db2inst1@leiredhat sqllib]$ cat /home/db2inst1/sqllib/db2nodes.cfg0 leiredhat 0[@more@]
[转]使用 db2icrt 创建实例
原文:http://hi.baidu.com/dba_james/blog/item/733ef8fce90b4442d7887d65.html使用 db2icrt 创建实例 DB2® 实例是用来存储数据和运行应用程序的一种环境。使用 db2icrt 命令来创建实例。 在 Linux® 或UNIX® 操作系统上,必须具有 root 用户权限。 在 Windows® 操作系统上,必须以本地管理员登录。 要使用 db2icrt 创建实例: 1. 使用适当权限登录。 2. 运行 db2icrt 命令。例如,在 Linux 或 UNIX 操作系统上: DB2DIR/instance/db2icrt -a AuthType -u FencedID InstName
cmd_sqlplus 中的break命令
cmd_sqlplus 中的break命令 ,注意break 是sqlplus命令,不是sql语句。SQL> select deptno,empno,ename,sal from scott.emp order by deptno; 10  ...
PLSQL Developer_v7_sqlplus:set head off and set head on
Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 Connected as SYSSQL> ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YYYY HH24:MI:SS';Session alteredSQL> EXECUTE DBMS_LOGMNR.START_L...
cmd_sqlplus:set head off and set head on
Microsoft Windows [版本 5.2.3790](C) 版权所有 1985-2003 Microsoft Corp.C:\Documents and Settings\Administrator>sqlplus / as sysdbaSQL*Plus: Release 10.2.0.4.0 - Production on Thu Dec 2 17:01:13 2010Co...
sqlplus set命令
set echo off Controls whether or not to echo commands in a script. that is executed with @, @@ or START. ON displays the commands on screen. OFF suppresses the display. ECHO does not affect the displa...
字符集的相关记录
http://www.**.com/bbs/thread-4582-1-1.html字符集不一致,保证服务器端的字符集和client的字符集一致即可,服务器端的字符集一旦建库就基本上不能修改了,可以用 select userenv('language') from dual查看,...
USERENV()
USERENV() 基于opt返回包含当前会话信息。opt的可选值为: ISDBA 会话中SYSDBA脚色响应,返回TRUE SESSIONID 返回审计会话标示符 ENTRYID 返回可用的审计项标示符 INSTANCE 在...
使.bash_profile 文件中环境变量马上生效的命令
http://hi.baidu.com/oracle__/blog/item/e0fd35d2ebe198083bf3cf71.html执行 source .bash_profile 或者 . .bash_profile
linux的目录
linux的目录表示方法 ~ 表示 home目录,也就是执行cd命令所显示出来的命了.. 代表上级目录 (2 个点)./ 代表当前目录 (1个点1个/) ...
tar命令详解--转
http://linux.chinaunix.net/techdoc/system/2008/02/09/978179.shtml格式: tar 选项 文件目录列表功能: 对文件目录进行打包备份选项:-c 建立新...
oracle的保存权限的视图
select * from DBA_SYS_PRIVS WHERE grantee='LC0329999'select * from DBA_TAB_PRIVS WHERE grantee='LC0329999'
测试移动blob类型的数据到新的表空间
准备工作:1.原来lc0259999.zwpzgs 在gs_oradb_012表空间。2.移动之前,做如下的查询:select status from dba_indexes where wner='LC0259999' and index_name = 'NDX_ZWPZGS_GSNM' --系统返回valid...
ultraedit中将某字符替换为回车符
truncate table A_TMP gotruncate table BACKBB gotruncate table BBCONF gotruncate table BBORDE gotruncate table BHLOG gotruncate table BHTDTM...