Redian新闻
>
Question on create a database in DB2
avatar
Question on create a database in DB2# Database - 数据库
M*r
1
When I create a database
Command used:
CREATE DATABASE testdb AUTOMATIC STORAGE YES ON 'C:\DB2Data' DBPATH ON 'C:\
db2data' USING CODESET 1252 TERRITORY US COLLATE USING SYSTEM PAGESIZE 8192;
SQL1052N The database path "C:\db2data" does not exist.
I do make sure C:\db2data exists on C drive before I run the command, also,
it is empty.
If I change the path to 'C', it works.
Why?
How can I create a database in folders like C:\db2data?
avatar
c*7
2
On the Windows operating system, the path must be a drive letter (for
example: C:).
Please check the information:
http://publib.boulder.ibm.com/infocenter/db2luw/v8//topic/com.ibm.db2.udb.doc/core/r0001941.htm?resultof=%22%63%72%65%61%74%65%22%20%22%63%72%65%61%74%22%20%22%64%61%74%61%62%61%73%65%22%20%22%64%61%74%61%62%61%73%22%20%22%63%6f%6d%6d%61%6e%64%22%20
If you want to create all stuff in the directory c:\db2data. you can create
a instnace name db2data.
then all the database will go to c:
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。