Oracle-DB
文章平均质量分 62
sunny_feng
这个作者很懒,什么都没留下…
展开
-
ORA-01031: insufficient privileges as sysdba
Problem:[oracle@l360cn31 ~]$ sqlplus / as sysdbaSQL*Plus: Release 10.2.0.1.0 - Production on Fri Jan 15 10:21:54 2010Copyright (c) 1982, 2005, Oracle. All rights reserved.ERROR:ORA-01...原创 2010-01-15 11:00:58 · 164 阅读 · 0 评论 -
Oracle DB 10g+ Backup and Restore
Here's the steps for backupa db schema, which just applies to oracle database. Suppose the osl schema is osl/welcome1, and the ORACLE_SID=orcl, then:Export Schema (backup)First,create...原创 2010-01-20 17:31:51 · 78 阅读 · 0 评论 -
Report table columns and comments
Report table columns and comments:select tc.table_name, tc.column_name, tc. data_type, tc.nullable, nullif(cc.comments, '')from all_tab_columns tc, all_col_comments ccwhere tc.owner = cc.owner...2009-08-12 17:34:00 · 87 阅读 · 0 评论 -
Remove OLD SID registration
If oracle DB instance installed, there is registration in the file: /etc/oratab.if you happed to remove the instance and re-install it. then it will promt: The SID you have specified already exists...2010-05-17 12:43:35 · 106 阅读 · 0 评论 -
START WITH/CONNECT BY issue in DB 11.1.x
If you run recursive sql in the oracle db 11.1.x, you probably meet issue like this:Internal Exception: java.sql.SQLException: Closed Connection, it is a bug in this DB version. you have 2 optio...原创 2010-06-18 09:11:58 · 93 阅读 · 0 评论 -
Oracle DB tips
If you are always prompted the DB is still in use ... alter system enable restricted session; select sid,serial# from v$session where username = 'XXX'; alter system kill sess...原创 2011-11-10 10:25:43 · 113 阅读 · 0 评论