关于plsql命令行的问题
我在命令行中执行sql文件,文件中有以下一段一直会报错,但是在plsql的sql界面执行是没有问题的。
语句:
declare
tm_i integer:=0;
begin
select count(*) into tm_i from user_tables where lower(table_name) = lower('LOG_SYSINIT') ;
if tm_i>0 then
execute immediate ' drop table LOG_SYSINIT';
end if;
end;
/
create table LOG_SYSINIT
(
VC_USER VARCHAR2(30),
VC_LOGTEXT VARCHAR2(2000),
DT_LOGTIME TIMESTAMP(6)
)
tablespace ASSETDB
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 64
minextents 1
maxextents unlimited
);
/
[color=#FF0000]错误信息:[/color]
Table created
create table LOG_SYSINIT
(
VC_USER VARCHAR2(30),
VC_LOGTEXT VARCHAR2(2000),
DT_LOGTIME TIMESTAMP(6)
)
tablespace ASSETDB
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 64
minextents 1
maxextents unlimited
)
ORA-00955: 名称已由现有对象使用