exp也可以到出表结构呀!把ROW=N加上,得到的文件用文本编辑器打开也可以编辑。
不知道是这个吗!还有就是使工具plsql developer,里面有导表结构和数据的。
不知道是这个吗!还有就是使工具plsql developer,里面有导表结构和数据的。
解决方案 »
- Oracle动态执行sql插入表的过程,怎么总是出现错误,可以这样写吗
- oracle表添加表字段
- 游标问题!
- RMAN的配置参数如何修改问题???
- 如果我给一个job里的inveterval要设置成每2个小时发生一次,应该怎么写?
- 请问,怎样用sql语句获得某个user下、某个表的关键字字段信息?
- 初次来aracle社区,以后请各位多多指教!
- 库中所有表的表名和该表的主关键字(有外关键字就更好了)存放在哪个系统表里面?
- 为什么我不能访问用sqlserver的dts工具导过来的数据?
- 请问安装oracle前是否一定要安装Java Runtime Environment,我的机器是win2000 professional.
- 请问oci的慨念是指什么?
- 高高手请进!超难问题,亟待解决!在线等!!!!
create database link dlyx_link CONNECT TO dlyx USING 'local';再作一个存储过程比较:
create procedure pro
as
cursor t_sor is
select * from ind a where not exists(select 1 from dlyx_link.ind b where a.INDEX_NAME=b.INDEX_NAME);
begin
...
end;
/
大概是这种方式,比较分清谁有谁没
to beckhambobo(beckham) 你的方法正是我想要的,可以写的具体一些嘛,就是要对比主键,索引和约束的差异!!
user_tables,user_tab_columns,
user_constraints,user_cons_columns,
user_indexes,user_ind_columns写起来挺烦琐的,自己写喽
as
cursor t_sor_ind is
select * from ind a where not exists(select 1 from ind@dlyx_link b where a.INDEX_NAME=b.INDEX_NAME);
cursor t_sor_tab is
select * from tab a where not exists(select 1 from tab@dlyx_link b where a.table_name=b.table_name);
cursor t_sor_cols is
select * from cols a where not exists(select 1 from cols@dlyx_link b where a.table_name=b.table_name);
....
begin
for v_sor in t_sor_ind loop
dbms_output.put_line(v_sor.index_name);
end loop;
for v_sor in t_sor_tab loop
...
end loop;
for v_sor in t_sor_cols loop
dbms_output.put_line(v_sor.column_name);
end loop;
end;
/
如果要知道每个字段的类型、长度,索引内的每个字段的匹配、索引内字段的顺序等等
还要复杂好多