转载:请教关于dual表的问题

简介: 出自:http://www.itpub.net/351775,2.htmlThe table DUAL is deleted in migrate.bsq when running the Migration Utility.
出自:http://www.itpub.net/351775,2.html

The table DUAL is deleted in migrate.bsq when running the Migration Utility.
 Solution: --------- You need to manually create table DUAL by running the following scripts connected as SYS:
SVRMGR> connect SYS/password
SVRMGR> drop public synonym dual;
Statement processed.
SVRMGR> create table dual (dummy varchar2(1))
2> storage (initial 1);
Statement processed.
SVRMGR> insert into dual values('X');
1 row processed.
SVRMGR> commit;
Statement processed.
SVRMGR> create public synonym dual for dual;
Statement processed. SVRMGR> grant select on dual to public
2> with grant option;
Statement processed.
After creating the table DUAL, the catalog.sql and catproc.sql scripts must be rerun.
SVRMGR> @?/rdbms/admin/catalog.sql
SVRMGR> @?/rdbms/admin/catproc.sql
Solution Explanation:
The table DUAL is referenced in the package body for STANDARD in the script $ORACLE_HOME/rdbms/admin/standard.sql, which is called when catproc.sql is run. The table does not exist because it was dropped by the Migration Utility.




目录
相关文章
|
18天前
|
SQL 数据库
INTO SELECT
【11月更文挑战第10天】
23 3
|
21天前
|
存储 SQL 关系型数据库
SELECT INTO
【11月更文挑战第08天】
25 2
|
1月前
|
前端开发 容器
select
【10月更文挑战第20天】
35 5
|
6月前
|
索引
DUAL表 --- 虚拟表
DUAL表 --- 虚拟表
38 0
|
数据库 索引
SELECT
SELECT
69 0
|
存储 前端开发 JavaScript
select2 使用详解
select2 使用详解
|
关系型数据库 MySQL 数据库
MySQL创建数据库 easyShopping,包括area表、goods表、customer表、orders表、ordersdetall表、test表
MySQL创建数据库 easyShopping,包括area表、goods表、customer表、orders表、ordersdetall表、test表
951 0
MySQL创建数据库 easyShopping,包括area表、goods表、customer表、orders表、ordersdetall表、test表
|
存储 SQL 缓存
到底为什么不建议使用SELECT *?
“不要使用SELECT *”几乎已经成为了MySQL使用的一条金科玉律,就连《阿里Java开发手册》也明确表示不得使用`*`作为查询的字段列表,本文从4个方面给出理由。
到底为什么不建议使用SELECT *?
|
SQL
表复制:SELECT INTO 和 INSERT INTO SELECT
表复制:SELECT INTO 和 INSERT INTO SELECT
163 0