0

I've database with 15 tables. Now due to development process one column has to added to all the tables in the database. This changes should not affect the existing process because some other services are also consuming this database. So to accomplish it I thought of creating a new database. Is there are any other way to do it.

4

3 回答 3

0

通常创建一个新模式(“用户”)并在该新模式中创建表就足够了。在 Oracle 中,同名表可以存在于多个模式中。

CREATE USER xxx IDENTIFIED BY yyy
于 2012-12-06T06:57:01.190 回答
0

您可以为开发创建另一个架构并将表导入新架构。开发人员应该使用开发架构而不是生产架构。您也可以创建新数据库并从当前数据库导入,但这可能是最后一个选项

于 2012-12-06T06:58:10.083 回答
0

有什么问题alter table T add (COL varchar2(5));

当然,依赖存储过程或包变得无效。您可以不理会它们,然后第一次调用将返回异常并自动重新编译被调用的过程。或者你可以alter procedure P compile;

于 2012-12-06T09:08:19.380 回答