有时候难免没有工具,得自己手动输入sqlplus命令
执行SQL文件:
@sql文件,例如:@/home/myuser/sql/test.sql查看数据库存在的存储过程:Select object_name From user_objects Where object_type='PROCEDURE';查看数据库存在的触发器:Select object_name From user_objects Where object_type='TRIGGER';查看数据库存在的视图:Select object_name From user_objects Where object_type='VIEW';禁止触发器:ALTERR TRIGGER tr_check_sal DISABLE;激活触发器:ALTERR TRIGGER tr_check_sal ENABLE;禁止或激活表所有触发器:ALTER TABLE emp DISABLE ALL TRIGGERS;ALTER TABLE emp ENABLE ALL TRIGGER;重新编译触发器:ALTER TRIGGER tr_check_sal COMPILE;重新编译视图:ALTER VIEW view_source_data COMPILE;重新编译存储过程:ALTER PROCEDURE process_derecount COMPILE;