Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

How to rename the schema name?

$
0
0
Hi all,

In our setup db2 v9.7 with fixpack 4

Under db2inst1 we have 2 databases.

Database with the name to TIS contains 150 tables it's having schema with name of "db2DWH"

Issue:
=====

Java peoples are not able to call the stored procedure by using this schema name "db2DWH"

They are asking to rename the schema name by "DB2DWH"

create schema with the name "DB2DWH"

db2 create schema DB2DWH

When i tried ADMIN_COPY_SCHEMA"
============================

db2 "call SYSPROC.ADMIN_COPY_SCHEMA ('db2DWH','DB2DWH','COPY', NULL, NULL, NULL, 'COPYSCHEMA', 'COPYERROR')"

The parameter mode OUT or INOUT is not valid for a parameter in the routine named "ADMIN_COPY_SCHEMA" with specific name "ADMIN_COPY_SCHEMA" (parameter number "7", name "ERRORTABSCHEMA").. SQLCODE=-469, SQLSTATE=42886, DRIVER=4.12.79


Create the schema with the name of "DB2DWH"

The name of the object to be created is identical to the existing name "DB2DWH" of type "SCHEMA".. SQLCODE=-601, SQLSTATE=42710, DRIVER=4.12.79

How to create the schema?

:eek:
Thanks,
laxman..

Viewing all articles
Browse latest Browse all 13329

Trending Articles