標籤:1、製造資料時出現錯誤 ORA-30009問題 計劃任務:insert into test select rownum,sysdate from dualconnect by rownum<100000會出現ORA-30009 connect-by出錯 修改任務:insert into test select rownum,sysdate from xmltable(‘1 to 100000‘)使用xmltable來進行累計 2、TNS:NO
標籤:Description當一個不是 MY_TABLE 這個表的 Owner - NOT_OWNER_USER 試圖 grant MY_TABLE 的許可權時,報錯:Error report:SQL Error: ORA-01720: grant option does not exist for ‘OWNER_SCHEMA".MY_TABLE‘01720. 00000 - "grant option does not exist for ‘%s.%s‘"*Cause:
標籤:截取部分日誌資訊:2015-09-01 14:48:47,132 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]2015-09-01 14:48:47,178 INFO
標籤:1.分析表與索引(analyze 不會重建索引) analyze table tablename compute statistics 等同於 analyze table tablename compute statistics for table for all indexes for all columnsfor table 的統計資訊存在於視圖:user_tables 、all_tables、dba_tablesfor all indexes
標籤:你可以包括實際的字元“%”或“_”模式中利用例外條款,其中確定的逸出字元。如果逸出字元出現在模式在字元“%”或“_“Oracle將解釋這個字元上的模式,而不是作為一種特殊的模式比對字元。搜尋的模式a_b在他們名字的員工: SELECT last_name FROM employees WHERE last_name LIKE ‘%A\_B%‘ ESCAPE
標籤:create table tb ([id] int,[name] varchar(2))insert into tbselect 1,‘aa‘ union allselect 2,‘bb‘ union allselect 1,‘cc‘ union allselect 3,‘dd‘ union allselect 2,‘ee‘ select * from tb--查詢select id, name=stuff((select ‘,‘+name from tb where