一、linux安装oracle报错:
1、linux install oracle 11g Error in invoking target ‘agent nmhs’ of makefile ‘../ins_emagent.mk’
解决过程
vi $ORACLE_HOME/sysman/lib/ins_emagent.mk
Search for the line
$(MK_EMAGENT_NMECTL)
Change it to:
$(MK_EMAGENT_NMECTL) -lnnz11
2、oracle 11g 空表不能导出问题:
1插入一条数据(或者再删除),浪费时间,有时几百张表会累死的。
2创建数据库之前
使用代码:
Sql代码
alter system set deferred_segment_creation=false;
调整再建表
3、先查询一下哪些表是空的:
Sql代码
select table_name from user_tables where NUM_ROWS=0;
下面我们通过select 来生成修改语句:
Sql代码
select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0
然后就在结果窗口里面生成了下面那些东西:
Sql代码
alter table E2USER_STATE allocate extent;
alter table ENTERPRISE_E2USER allocate extent;
alter table ENTERPRISE_INFO_TYPE allocate extent;
ok 执行上面那些sql,之后再exp吧,那就是见证奇迹的深刻。
4、oracle锁表问题:
查看被锁的表:
select p.spid,c.object_name,b.session_id,b.oracle_username,b.os_user_name from v$process p,v$session a, v$locked_object b,all_objects c where p.addr=a.paddr and a.process=b.process and c.object_id=b.object_id
解锁:
alter system kill session ‘146’;(其中146为锁住的进程号)