由于目录变化,需要将数据库从目录/home/db2inst1移动到目录/public/home/guanghong.yu/db2inst1
由于目录变化,需要将数据库从目录/home/db2inst1移动到目录/public/home/guanghong.yu/db2inst1
重新编目数据库
$db2 uncatalog db oracle
$db2 catalog db oracle
编目成功后会即可看到:
$db2 list db directory
database alias = oracle
database name = oracle
local database directory = /public/home/guanghong.yu/db2inst1
database release level = d.00
comment =
directory entry type = indirect
catalog database partition number = 0
alternate server hostname =
alternate server port number =
如上操作做了后仍然不能连接数据库,需要对表空间做如下操作:
编辑mvdb.cfg
db_name=oracle
db_path=/home/db2inst1,/public/home/guanghong.yu/db2inst1
instance=db2inst1
nodenum=0
cont_path=/home/db2inst1/db2inst1/node0000/oracle/t0000000/c0000000.cat,/public/home/guanghong.yu/db2inst1/db2inst1/node0000/oracle/t0000000/c0000000.cat
storage_path=/home/db2inst1/,/public/home/guanghong.yu/db2inst1
运行如下命令:
$db2relocatedb -f mvdb.cfg
[db2inst1@hpserver2 db2]$ db2relocatedb -f mvdb.cfg
files and control structures were changed successfully.
database was catalogued successfully.
dbt1000i the tool completed successfully.
重新编目成功,数据库可以成功连接激活啦
[db2inst1@hpserver2 db2]$ db2 connect to oracle
database connection information
database server = db2/linuxx8664 9.7.5
sql authorization id = db2inst1
local database alias = oracle
ok,,移动后的数据库可以被使用啦。
DB2数据库性能调整和优化(第1、2版) PDF
DB2数据库性能优化介绍
SHOPEX简灰服装商城整站源码下载。 安装方法:1.解压上传程序至网站根目录.. 访问:域名/bak.(用户名:admin 密码:123456)2.进入帝国备份王后,配置数据库数据库信息.选择-www.taomoban.net目录.还原数据库.3.修改FTP目录下的config/config.phpphp 数据库连接信息.4.登陆网站后台--清空缓存..5.删除bak文件夹 后台:shopadm
0
DB2 9.7 for Linux 5.4安装详细步骤
本文永久更新链接地址:

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号