Questions tagged [oracle8i]

A relational Database Management System released in 1999. See also: oracle, oracle9i, oracle10g, oracle11g

oracle8i
Filter by
Sorted by
Tagged with
45 votes
2 answers
98k views

Oracle : select maximum value from different columns of the same row

The whole question is pretty much in the title. For each row of the table I'd like to select the maximum of a subset of columns. For example, from this table name m1 m2 m3 m4 A 1 2 3 4 B 6 ...
gregseth's user avatar
  • 13.2k
7 votes
4 answers
65k views

Subtracting n Days from a date using SQL

I am quite a beginner when it comes to Oracle. I am having trouble figuring out how to do something similar to this : SELECT ID, NAME, TO_CHAR(DATEBIRTH, 'DD/MM/YYYY HH24:MI:SS') FROM PEOPLE WHERE ...
MrMokari's user avatar
  • 125
5 votes
3 answers
1k views

explicitly select jdbc driver when connecting to oracle database

I'm working on some software that sometimes needs to connect to an oracle 8.1.7 database, and sometimes to an oracle 10g database in order to perform some queries. When connecting to the 8.1.7 ...
Alexander Kjäll's user avatar
4 votes
1 answer
2k views

Either possible? 1) Connection to Oracle 8i w/ ojdbc5 or ojdbc6 2) Multiple ojdbc jars

I'm building an application which is collating data from multiple data sources. Of these data sources, we have multiple instances of Oracle running. I find that the only way I can connect to my ...
Neil McF's user avatar
  • 259
3 votes
3 answers
809 views

How to check, that we are using oracle 8i database in jdbc?

In jdbc, how to check, that we are using oracle 8i database?
sidslog's user avatar
  • 654
3 votes
2 answers
8k views

Split a string based on hyphen

I have a string like this XX0099-X01 I would like to split the string into two based on the hyphen, i.e. XX0099 and X01 I have tried as SELECT 'XX0099-X01', SUBSTR('XX0099-X01', ...
Jacob's user avatar
  • 14.6k
3 votes
5 answers
6k views

How can I check if a procedure exists in a package in Oracle 8?

I see some solutions here for checking for a procedure in a package, but they only work for oracle 9 or 10+. But is it possible to do this check in Oracle 8i? In Oracle 8 you don't have ...
Bartb's user avatar
  • 65
3 votes
2 answers
9k views

add a comma (,) in Oracle

Given this query: select distinct subject_key from mytable Result: subject_key ----------- 90896959 90895823 90690171 90669265 90671321 How do i write a query in Oracle (using Aqua Data Studio ...
joe's user avatar
  • 1,483
3 votes
2 answers
3k views

Alternative for DBMS_METADATA.GET_DLL in Oracle 8i

In our project we have one database running on oracle 8i (i know this version is ancient but ...) I want to check the DDL statement for one PUBLIC database link i tried : select dbms_metadata....
Nagendra Nigade's user avatar
3 votes
2 answers
16k views

sqlplus remove \r \n \t from spool

Is there any sql*plus command to remove \r \n and\t from the result set that's going out to the spool file? That is, "trim" every record? We've used set trim on in the past, but it doesn't seem to ...
Tom's user avatar
  • 44.4k
3 votes
2 answers
214 views

Limit row output

I am having some trouble figuring out the correct syntax for what I need to output from my query. Here is my data (no these are not the correct column names, I'm trying to make it easier to read) The ...
Michelle's user avatar
3 votes
2 answers
4k views

Oracle forms 6i

Complete Oracle n00b here. I have to maintain a legacy form that was developed using Oracle forms 6i and runs on an Oracle 8i backend. Is there any location on the web from where I can still download ...
kartikq's user avatar
  • 651
2 votes
4 answers
13k views

How to use symbols in SQL column names?

I tried to use column names with symbols like minus, dot and a few others. Oracle SQL parser doesn't except them. Like this: select a.ID as Article-Number, a.Name as Name from Articles a ...
Bitterblue's user avatar
  • 13.7k
2 votes
3 answers
5k views

Oracle : Alternative of REGEXP_LIKE function in Oracle 8i

I have a SQL that uses REGEXP_LIKE function in the where clause, now i need the equivalent of that function which will run in Oracle 8i. The regex look like this: where REGEXP_LIKE(parm, '^[PMF][[:...
Ianthe's user avatar
  • 5,639
2 votes
2 answers
628 views

Oracle 8i says PLS-00382: expression is of wrong type, but I don't see it

The following code is based on a popular thread from AskTom, Export to CSV I did amend the original script with some code in the inner loop to handle embedded commas and quote characters. I cannot ...
Mophilly's user avatar
  • 143
2 votes
1 answer
4k views

STUFF function in SQL Server and in ORACLE

I have two STUFF questions for this topic. First question is STUFF function in SQL Server. 2nd question is about the STUFF function in Oracle (8i). Question 1: How can I remove the , from the ...
joe's user avatar
  • 1,483
2 votes
3 answers
4k views

ORA-00933: SQL command not properly ended in subquery with join

It's been a while for me since the last time I did Oracle SQL, hope someone can tell me why I get a 933 on: SELECT TRIM(A.ACCOUNTNUMBER) AS INDBDebnmbr , TRIM(A.VOUCHER) AS INinvoicenmbr , A.DATE_ ...
Mike Dole's user avatar
  • 687
2 votes
1 answer
408 views

DSS cannot connect to different Oracle database versions

I'm using the WSO2 Data Services (3.5.1) Server to connect with some Oracle 12c databases. However, to support the legacy, I also need to connect to different versions like 10g and 8i. There's ...
elias's user avatar
  • 15.2k
2 votes
3 answers
340 views

Splitting string into multiple rows in Oracle 8i

I have a table consisting a list of names separated by comma. My goal is to separated them by rooms. Room | Name room1 | Anne,Amy room2 | Ben,Bryan My goal: Room | Name room1 | Anne ...
abigal689's user avatar
2 votes
3 answers
494 views

Query giving error ora-00923 from keyword not found where expected

I am using Oracle 8i. When I tried to run this below script I am getting the error ora-00923 from keyword not found where expected. Please find the below query which I am using. select i.siid, ...
Karthi Palanisamy's user avatar
2 votes
0 answers
173 views

Solaris Client 8.1.7 Can't connect to Oracle 12C R1

In grace of this parameter of Oracle 12c R1 sqlnet.ora SQLNET.ALLOWED_LOGON_VERSION_SERVER=8 I can connect from a 8.1.7 Windows client without issues. However, trying to do the same from Solaris 8....
Osy's user avatar
  • 1,623
2 votes
3 answers
1k views

How to use SELECT result record as DECODE parameters?

Is it possible to use SELECT result as DECODE parameters when this SELECT returns only one record with prepared string? For example: SELECT replace(replace(serialized_data)..)..) as result FROM ...
mack80's user avatar
  • 23
1 vote
4 answers
4k views

NOT HAVING (inverse HAVING) clause with aggregation in Oracle

I am trying to filter the results of a GROUP BY CUBE using the HAVING clause. However I need to keep rows that do not meet a combination of conditions. I intuitively tried: SELECT [...] FROM [...] ...
mach128x's user avatar
  • 340
1 vote
2 answers
43 views

Simple join query giving ORA 00933 on Oracle8i Release 8.1.7.0.1

Environment used - Oracle8i Release 8.1.7.0.1 PL/SQL Release 8.1.7.0.0 TNS for Linux: Version 8.1.7.0.0 NLSRTL Version 3.4.1.0.0 Following simple query is giving me an error : ORA-00933:SQL command ...
Ora Aff's user avatar
  • 642
1 vote
2 answers
35 views

Eliminate Records Without Combination

I have the following data in TEMP_DATA table From these records, I would like to get only those records which are having CAT_NO 36 and 39 combination of records, ideally my expected results are as ...
Jacob's user avatar
  • 14.6k
1 vote
2 answers
1k views

Error when connecting via jdbc to Oracle 8i database using ojdbc6 driver

I want to connect to Oracle database via jdbc using ojdbc6 driver. I have Oracle 10g in virtual machine, and Oracle 8i at work. I'm trying to create a java application that allows me to connect to ...
Charaf Eddine Mechalikh's user avatar
1 vote
1 answer
433 views

Retrieve data from Oracle Database at specific datetime then post them to firebase in php

Describe the project idea: I am working on system that is running on Oracle database 8i version. where I would like to execute a query that is running automatically monthly (using php or java) to ...
Ahmad Saleh's user avatar
1 vote
2 answers
1k views

how to join two tables in oracle on blob column?

how to join two tables in oracle on blob column when this query is executed "SQL command not properly ended" error message is appearing select name,photo from tbl1 join tbl2 on tbl1.photo = tbl2....
faraaz's user avatar
  • 124
1 vote
2 answers
2k views

Oracle 11g 64-bit client connecting to 8i

So here's the problem. I have to connect to both Oracle 8i and 11g databases. I have a 64-bit OS. Can I use the same 11g 64-bit client to connect to 8i? If this doesn't work, is there any other client ...
esanez's user avatar
  • 13
1 vote
1 answer
5k views

How can I get the value of array inside an array in for loop ORACLE

Can anyone help me how can I get the value of array inside an array in for loop ORACLE. This is a example IN PARAMETER Array. I want to get the value of array is the array [3] in "ID" and VALUE of ...
josiie cayton's user avatar
1 vote
2 answers
1k views

Oracle 8i Replace Linefeed characters in CLOB

I have a CLOB which I'm trying to replace the linefeed chars in with \r or \n as appropriate. This is because I'm using SQL*Plus to export the data and it exports the linefeeds raw meaning my parser ...
deed02392's user avatar
  • 4,937
1 vote
2 answers
3k views

Subquery return more than one value

I have the following query which gives gives req_no and order_no. order_no is a from a sub_query which you can see from below sql. For a few req_no there are more than one order_no's and because of ...
Jacob's user avatar
  • 14.6k
1 vote
3 answers
914 views

Need to learn Oracle Forms 6.0, can't setup environment

I have Oracle Forms Interactive Workbook, and it looks like a good tutorial, but I can't setup environment to do exercises (book uses Oracle Developer 6.0 & Oracle8). I installed Oracle Forms 6i ...
avj's user avatar
  • 1,636
1 vote
1 answer
186 views

Oracle old Lelft Join syntax (+) usage with the Like operator in the join condition

This is on Oracle 8i (see the note at the bottom of the question). I am matching keywords on strings. A specific string will result in two or more rows if it matches more than one of the keywords. ...
mach128x's user avatar
  • 340
1 vote
1 answer
132 views

Connect By clause works on 11g but not on Oracle 8i : "ORA-01436: CONNECT BY loop in user data"

I found the code for a row generator from this question Create View with 365 days CREATE VIEW year_days (the_day) AS SELECT TRUNC(SYSDATE, 'YYYY') + (LEVEL-1) AS the_day FROM DUAL CONNECT BY LEVEL &...
mach128x's user avatar
  • 340
1 vote
2 answers
3k views

Is there a easy way to convert strings in a Sentence Case on Oracle 8? Or should I use regex?

I know that in Oracle some string functions like UPPER, LOWER, INITCAP. But I need just the first letter of the sentence (or phrase) in uppercase, all other letters in lowercase, considering that ...
Andre Araujo's user avatar
  • 2,300
1 vote
1 answer
82 views

ORACLE - Indexes not used in join

I'm having a headache understanding why my indexes are not used in one of my queries. I've no problem with these two following queries. The first one here SELECT XHHA.* , XSAIL.* FROM TABLE_A ...
Tontonmox's user avatar
1 vote
1 answer
409 views

ora 00979: not a group by expression

In Oracle 8i I want the single value of trntotamt having max(trndt) by grouping of trnmemenrolno. I am trying with following sql query, but its giving error- ora 00979: not a group by expression ...
MAHESH A SONI's user avatar
1 vote
0 answers
146 views

How can I control the timeout for an Oracle database link connection?

I have a system with two computers (x86 servers running Solaris 11), each hosting an Oracle 8i database (old stuff, I know!). The two databases access each others data by means of database links. ...
Martin's user avatar
  • 31
1 vote
0 answers
245 views

How to manage Foreign Keys in JPA with an Oracle 8i database that does not support the JOIN keyword

I am having to write an application to communicate with a legacy Oracle 8i database. I am doing this using Spring Boot/JPA, but I have a question around mapping foreign key relationships. Usually with ...
R Walet's user avatar
  • 41
1 vote
2 answers
3k views

How to connect SQL developer/Toad to Oracle 8i

Please let me know if there's a way to connect SQL developer/toad to Oracle 8i version. Currently I get unsupported Oracle version error in both the IDEs. OR if there's any IDE that supports Oracle ...
826dna's user avatar
  • 173
1 vote
1 answer
3k views

How to connect Java with oracle 8i database on local network

I want to connect to Oracle 8i Database with java, where the database is on server on local network 10.3.1.1 at port I have followed the example tutorial to make the connection from Oracle website ...
Ahmad Saleh's user avatar
1 vote
1 answer
57 views

Oracle 8i select query from multi row dataset with same ID but different status

I have been trying to write the correct query to get me the correct results and hours later still no luck. I feel I'm close but I ran out of tricks... Take a look at this screen shot for example: ...
M5er's user avatar
  • 39
1 vote
1 answer
2k views

How to extract data from LONG datatype field using only SQL (without using PL/SQL block)?

How to extract data from LONG datatype field using only SQL (without using PL/SQL)? Getting error while concatenating with other columns- ORA00932: inconsistent datatypes DB: Oracle 8i enterprise ...
Soumya 's user avatar
1 vote
2 answers
129 views

rowcount query in Oracle 8i

I have a table Department_history and here is the count of records for each department. select department_name, Id, count(1) total_rows_COUNT from Department_history where group by ...
user5001305's user avatar
1 vote
1 answer
853 views

How to create a synonym to a different database without a dblink

I've two databases, one Oracle 11g and another Oracle 8i. Since they are such different versions, a dblink is not possible. In my application, I've managed to downgrade the driver version to 10g, so ...
zedascouves's user avatar
1 vote
0 answers
410 views

Oracle changing decimal values on insertion

So, I'm having some trouble with Oracle doing this strange thing with my decimal number values that I'm insertting into it. I have the oracle field value as "Number", and the number I'm insertting is ...
Dunador's user avatar
  • 21
1 vote
1 answer
5k views

Oracle TNS-12505 Error

I am working with Oracle and what I had to do was to export the existing database to new installation. I have installed new oracle client 8.1 (Previous was 8.0), I have successfully imported all the ...
Bibi Tahira's user avatar
  • 1,082
1 vote
0 answers
136 views

ASP Retrieving a trigger-populated field value - worked with earlier version of Oracle

The below sample ASP classic code that I have modified so it can be run via cscript or wscript, communicating with Oracle 8i and using Oracle ODBC Driver 8.01.07.00 running on Windows 2000, returns a ...
Andrew's user avatar
  • 11
1 vote
0 answers
3k views

Complete refresh to a materialized view every minute

I am creating a mv with the next sentence: create materialized view Vinculaciones_Activas_dos REFRESH COMPLETE START WITH (SYSDATE) NEXT (SYSDATE + (1/1440)) WITH ROWID as select bla,bla,bal ...
Manuel's user avatar
  • 347