摘要: 查了很多地方,下面这个写法是对的,以oracle hr用户为例。参考:http://www.veryhuo.com/a/view/16095.htmldeclare c char(8); lc_sql char(4000); lc_job_rec jobs%rowtype; type cur_type is ref cursor; cur_jobs cur_type;begin c := 'pu'; dbms_output.put_line(c); lc_sql := 'select j.* from jobs j where lower(j.job_title) li 阅读全文
posted @ 2013-02-07 13:48 valleylord 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 今天在登录oracle hr的时候,做select,报错“ORA-00376”,数据文件不能读写。用下面的语句看了下status,发现example表空间(FILE# 6)处于OFFLINE状态。1 select file#,status from v$datafile; FILE# STATUS---------- --------------------- 1 SYSTEM 2 ONLINE 3 ONLINE 4 ONLINE 5 ONLINE 6 OFFLINE用下面语句使表空间文件online。1 alter database datafile '/....../example 阅读全文
posted @ 2013-02-07 12:52 valleylord 阅读(991) 评论(0) 推荐(0) 编辑