oracle10g

Viewing oracle app and getting: java.lang.ClassNotFoundException: oracle.forms.engine.Main

梦想的初衷 提交于 2019-12-07 08:15:10
问题 I'm trying to debug an oracle forms application. In production, when I load the application I get an error: java.lang.ClassNotFoundException: oracle.forms.engine.Main I'm uncertain as to what is causing this issue. I've been searching forums for a bout half a day now, and it seems like it may have something to do with a java versioning issue. I've included the (slightly modified to protect my company) java console output, and if I'm reading it right, it looks like a certificate needs to be

Concatenate Over Oracle

只愿长相守 提交于 2019-12-07 07:54:58
问题 This is a sample table data Fruit Number Apple 1 Apple 2 Apple 3 Kiwi 6 Kiwi 10 I try to concatenate the table column values to get the following Fruit Number Apple 1-2-3 Kiwi 6-10 Is there a way to query this or store procedure? Something like Concatenate over(partition by) , I don't know much about stored procedures. Thanks! 回答1: OP is on Oracle 10g , and LISTAGG was introduced in 11g Release 2 . Therefore, in Oracle version prior to 11g where LISTAGG is not supported, you could use ROW

handling HTML data in Oracle query

三世轮回 提交于 2019-12-07 05:46:25
I have a table with ID,TEXT,etc columns Here TEXT is clob column which contains data in HTML FORMAT SELECT ID,TEXT FROM TABLE WHERE ID=1000 I'm getting output for text column as below <p>NAME:  XXX<br />Company Name:  YYYYY<br />Location: ZZZ, 22 Z1Z1Z1, Z2Z2Z2,Z3Z3Z3, 0000024, IND<br />Type: PrePA<br /> Team: Team1, Dues tamble <br />Date: January 25 – 26, 2016<br />Rating:  Tr 2<br />Number: 8554342</p> <p><u>Observ: <br /></u>There were (6) major and (2) minor .<br /> <br />MAJOR</p><ul> <li>Sample Text_1.</li> <li>Sample Text_2.</li> <li>Sample Text_33.</li> <li>Sample Text_4.</li> <li

difference between “tab” table and all_tables in oracle

寵の児 提交于 2019-12-07 05:02:27
问题 what tables are returned by using (in oracle) select * from tab and select * from all_tables I would like to know the difference between two. 回答1: tab is an ancient data dictionary table that should never be used. It exists solely to provide backwards compatibility for scripts that were written potentially decades ago. tab does not get updated as new object types and new features get added. all_tables gives you information about all the tables that you have access to. tab gives you

“ORA-01012” error message when trying to connect to an Oracle database

為{幸葍}努か 提交于 2019-12-07 04:13:45
问题 Using C# and Oracle Data Provider for .NET (ODP) I made a long query to the database, then I end the connection on the server side using TOAD. After that, the subsequent calls to the database, even creating a new OracleConnection object, throw the following error: ORA-01012: not logged on Process ID: xxx Session ID: yyy Serial number: zzz Where Process ID and Session ID are the identifiers I used to end the connection. It seems like when I end the connection to the Oracle database on the

How can you see what transaction isolation level an arbitrary oracle session is using

雨燕双飞 提交于 2019-12-07 00:51:34
问题 I am trying to find out what isolation level a particular session (not my own) has on an oracle server. Is there a v$.. view to get this? 回答1: You can test bit 28 in the flag column in v$transaction [1]. SELECT s.sid, s.serial#, CASE BITAND(t.flag, POWER(2, 28)) WHEN 0 THEN 'READ COMMITTED' ELSE 'SERIALIZABLE' END AS isolation_level FROM v$transaction t, v$session s WHERE t.addr = s.taddr AND s.sid = :sid AND s.serial# = :serial; Just remember that v$transaction only lists active transactions

Getting SQLPlus to spool out Unicode characters, are being output as?

早过忘川 提交于 2019-12-07 00:34:30
问题 I am attempting to get Oracle sqlplus (10.2) to spool out Unicode data on a Linux machine. I have found several discussions of this issue, but no clear answers, other than to check locale settings and set NLS_LANG to AL32UTF8. All locale info is set to "en_US.UTF-8", I'll post the full output upon request. The OS (vi, etc.), will recognize and accept Unicode characters without issue. However, when using sqlplus, all non-ASCII characters are changed to ? characters. The Oracle DB has NLS

java.lang.AbstractMethodError: oracle.jdbc.driver.T4CPreparedStatement.setCharacterStream(ILjava/io/Reader;J)V

青春壹個敷衍的年華 提交于 2019-12-06 23:47:18
问题 I'm getting the following exception when trying to insert the contents of a CKEditor (for CMS - Contents Management System) into Oracle database - Oracle 10g . The field in the Oracle table is of type clob. java.lang.AbstractMethodError: oracle.jdbc.driver.T4CPreparedStatement.setCharacterStream(ILjava/io/Reader;J)V The opposite side is that this exception is not caused when I try to insert the same contents into the database via AJAX using JSON. I'm using Spring 3.2.0 Hibernate 4.2.0.CR1

How can I call Oracle stored procedure which has one out parameter as sysrefcursor using Hibernate?

笑着哭i 提交于 2019-12-06 22:14:35
Here is my stored procedure which has one out parameter: create or replace PROCEDURE CITYMST_LIST ( P_CURSOR OUT sys_refcursor ,CMPID IN NUMBER , STSTATUS IN NUMBER ) AS BEGIN OPEN P_CURSOR FOR SELECT * FROM city_master WHERE citycmp_id=CMPID AND city_status=STSTATUS; END CITYMST_LIST; In my hbm configuration I have mapped stored procedure: <sql-query name="CITYMST_LIST" callable="true"> <return class="CityMaster"> </return> { ? = call CITYMST_LIST(?,?) } </sql-query> I have also tried : { call CITYMST_LIST(?,?) } Here is my java code : Query query = session.getNamedQuery("CITYMST_LIST");

GROUP BY ignoring an attribute

大憨熊 提交于 2019-12-06 21:33:45
问题 for example i have this table: itemgroup | description | price A, a, 10 A, b, 12 A, c, 14 B, g, 11 B, h, 16 now i want to select the rows with the highest price in one group like this: A, c, 14 B, h, 16 The SQL query (is fully functional) wich gets me near this is: SELECT itemgroup, MAX( price ) FROM table GROUP BY itemgroup A, 14 B, 16 By trying this I get an "not a GROUP BY expression"-error: SELECT itemgroup, description, MAX( price ) FROM table GROUP BY itemgroup I need something like