oracle10g

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

霸气de小男生 提交于 2019-12-05 19:14:29
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 repackaged. But, when I look at the certificate for the site it says that it's verified by verisign. I'm

Delete tables from database Oracle 10g

ⅰ亾dé卋堺 提交于 2019-12-05 18:45:40
I have deleted some tables from an Oracle 10g database using the drop command. When I list the tables using select * from cat; I get the following : Are the tables deleted or not? Why do I have these BIN$... things? How can I remove them or the tables once and for all? Thanks! They are entries in the Recycle Bin, created by the deletion of a table. They can be purged if required. http://docs.oracle.com/cd/B28359_01/server.111/b28310/tables011.htm The tables prefixed with BIN$ are tables placed in the recycle bin for easy recovery. You can completely remove them by purging it. Either

Why do I get PLS-00302: component must be declared when it exists?

老子叫甜甜 提交于 2019-12-05 18:02:41
问题 I am using Oracle 10.2. I am working in some scripts to move some ORACLE Objects from one SCHEMA (S1) to another (S2). I am creating the functions with DBA role. When moved, one of my functions becomes invalid, but I don't understand why. Its code goes along these lines: MY_FUNC CREATE OR REPLACE FUNCTION S2."MY_FUNC" RETURN VARCHAR2 IS something VARCHAR2; othervar VARCHAR2 (50):= 'TEST'; BEGIN something := S2.MY_FUNC2(); /*some code*/ return othervar; END; / If I use MY_FUNC2 without the

SQL - Multiple Values comma separated when using GROUP BY [duplicate]

孤人 提交于 2019-12-05 17:22:32
问题 This question already has answers here : How can I combine multiple rows into a comma-delimited list in Oracle? [duplicate] (11 answers) Closed 5 years ago . I have data that looks like CUSTOMER, CUSTOMER_ID, PRODUCT ABC INC 1 XYX ABC INC 1 ZZZ DEF CO 2 XYX DEF CO 2 ZZZ DEF CO 2 WWW GHI LLC 3 ZYX I'd like to write a query that'd make the data look like this: CUSTOMER, CUSTOMER_ID, PRODUCTS ABC INC 1 XYX, ZZZ DEF CO 2 XYX, ZZZ, WWW GHI LLC 3 ZYX Using Oracle 10g if helps. I saw something that

Maximum of averages

帅比萌擦擦* 提交于 2019-12-05 15:59:00
I'm supposed to get every departments average wage and only show the department with the highest average wage. I figured out this query, but it doesn't work. Anyone got some ideas? SELECT department, max(avg(wage)) FROM employees GROUP BY department; I get this error: ERROR at line 1: ORA-00937: not a single-group group function Without CTEs you can do: Select Z.Department, Z.AvgWage From ( Select Department, Avg(Wage) AvgWage From Employees Group By Department ) As Z Where AvgWage = ( Select Max(Z1.AvgWage) From ( Select Department, Avg(Wage) AvgWage From Employees Group By Department ) Z1 )

How to resolve ORA 00936 Missing Expression Error?

Deadly 提交于 2019-12-05 15:56:48
问题 Select /*+USE_HASH( a b ) */ to_char(date, 'MM/DD/YYYY HH24:MI:SS') as LABEL, ltrim(rtrim(substr(oled, 9, 16))) as VALUE, from rrfh a, rrf b, where ltrim(rtrim(substr(oled, 1, 9))) = 'stata kish' and a.xyz = b.xyz The "from " (3rd line) part of the above query is giving me ORA-00936 Missing EXPRESSION error . Please Help me NOTE :: rrfh table contains no data. 回答1: Remove the comma? select /*+USE_HASH( a b ) */ to_char(date, 'MM/DD/YYYY HH24:MI:SS') as LABEL, ltrim(rtrim(substr(oled, 9, 16)))

Concatenate Over Oracle

最后都变了- 提交于 2019-12-05 15:35:28
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! 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_NUMBER() and SYS_CONNECT_BY_PATH functions. SELECT fruit, LTRIM(MAX(SYS_CONNECT_BY_PATH(number,',')) KEEP

Invalid Number Error! Can't seem to get around it

不羁的心 提交于 2019-12-05 14:06:48
Oracle 10g DB. I have a table called s_contact . This table has a field called person_uid . This person_uid field is a varchar2 but contains valid numbers for some rows and in-valid numbers for other rows. For instance, one row might have a person_uid of '2-lkjsdf' and another might be 1234567890. I want to return just the rows with valid numbers in person_uid. The SQL I am trying is... select person_uid from s_contact where decode(trim(translate(person_uid, '1234567890', ' ')), null, 'n', 'c') = 'n' The translate replaces all numbers with spaces so that a trim will result in null if the field

How to do SQL injection on Oracle

半腔热情 提交于 2019-12-05 13:47:25
I'm doing an audit of a system, which the developers insist is SQL injection proof. This they achieve by stripping out the single-quotes in the login form - but the code behind is not parameterized; it's still using literal SQL like so: username = username.Replace("'", ""); var sql = "select * from user where username = '" + username + "'"; Is this really secure? Is there another way of inserting a single quote, perhaps by using an escape character? The DB in use is Oracle 10g. Have a look at the testing guide here: http://www.owasp.org/index.php/Main_Page That should give you more devious

Oracle Function: Replicate wm_concat

前提是你 提交于 2019-12-05 11:57:19
I currently am working on a project within Crystal Reports that refuses to use the undocumented function WM_CONCAT, which is allowable within Oracle 10g. Here is the WM_CONCAT header information WM_CONCAT(p1 IN VARCHAR2) RETURN VARCHAR2 To use WM_CONCAT I pass it the following: WM_CONCAT(column1); This function seems to accept a column of type varchar2, and returns a comma delimited list of values from the column. I currently have a custom version of this function that works (on my work computer), but it is not optimal and lacks re-usability. Could anyone provide a good, re-usable function