610
questions
0
votes
0
answers
39
views
Databricks spark read table ignoring option oracle.jdbc.mapDateToTimestamp false when assigned "shared" Access mode
Im trying to read an oracle9 table with date type columns, but for some reason i can't read all date columns with the standard 'yyyy-MM-dd' format, even using the option oracle.jdbc.mapDateToTimestamp ...
0
votes
0
answers
14
views
Missing Keyword - Oracle9i [duplicate]
I originally wrote a query to generate a result when the OBJECT_NUMBER was greater than a specific value. A change in the requirements for the query now require checking if the OBJECT_NUMBER is one ...
0
votes
1
answer
346
views
Merge multiple .dmp files to one.dmp file
I use Oracle 9i under windows server 2003, I have multiple .dmp files and I want to merge them into one (one .dmp file), knowing that all the files have the same schema but different data. how can I ...
0
votes
1
answer
308
views
Connect Oracle with PHP
I have php project running on php version 8.1, installed on locale server ubuntu 20.4, in the server there is oracle 9i, Ive instlaled oracle instant client and im trting to connect php project to ...
0
votes
1
answer
52
views
Using Oracle 9i, how can I extract the first number from a string?
I need to extract the first integer number found in a column of a database. Unfortunately, I am stuck using data from an Oracle 9i database, which doesn't support regex.
Some data examples:
'Count 1,2,...
1
vote
0
answers
555
views
How can I get data from a stored procedure that contains a Cursor with another Cursor inside it
How can I get data from a stored procedure that contains a cursor with another cursor inside it in ASP.NET ?
When I try this code, I get the following error:
Unsupported Oracle data type RSET ...
0
votes
1
answer
93
views
Oracle : cannot perform a DML operation inside a query error
I have following query which works but in one part of it I want to call this function pbweb.adposter.MakeDeepLinkEx and get the value back as url1 but i get the following error:
EE in pbk26w60....
0
votes
2
answers
1k
views
.NET 5 reference from a .NET Framework Oracle 9i Data Access
I am developing a small web application that needs to reference an existing .NET Framework(4.6) class library. This library is from an old project which connects to an Oracle 9i database for the data ...
0
votes
1
answer
48
views
Printing data from sub-queries SQL
I have 2 tables: SalesPeople and Customers that have snum and cnum as primary key respectively; both tables have city column as well.
Without using joins, we have to tell the names of customers and ...
0
votes
1
answer
62
views
How can I retrieve the value of an attribute supported by Oracle?
Tablespace FlashBack
CREATE TABLESPACE TS_Physical
DATAFILE
'\physical_df.dbf'
SIZE 1024000
AUTOEXTEND OFF
BLOCKSIZE 8192
LOGGING
FORCE LOGGING
...
0
votes
2
answers
304
views
Why my program written with Visual studio 2019 cannot read from Oracle 9i database
I am using Visual studio 2019 and the .Net framework 4.5, I am trying to read an old database made with Oracle 9i but it does not work.
I used two libraries
Oracle.ManagedDataAccess:
I receive an ...
3
votes
1
answer
11k
views
PHP Warning: PHP Startup: Unable to load dynamic library 'oci8_12c'
I'm trying to enable oci8_12c extension with Instant client 12.2 in PHP 8.0.7. on windows x64
I've uncommented extension=oci8_12c in my php.ini file.
Downloaded and placed php_oci8-3.0.1-8.0-ts-vs16-...
1
vote
2
answers
215
views
How to access an Oracle 9.2 *and* Oracle 12c DB with Kotlin running on Java 10+?
I'm developing an application, written in Kotlin on JDK 10+, that has to:
access a legacy Oracle DB version 9.2
stores the data on Oracle DB 12c
Is there anyway in which a JDK 10+ application can ...
0
votes
0
answers
20
views
Dealing with quoted string within a where IN clause Oracle 9i [duplicate]
I have the following query which works apart from when one of the values I need to search for has a single quote in the string. Its the only one like this and its breaking the query and i cant find a ...
1
vote
1
answer
32
views
Oracle group by client and date
I have the fallowing query which works:
SELECT count(cand_id) as candidates, SB.client_id as client
FROM REPLIES r
JOIN clients sb on sb.main_acc_id = r.acc_id
...
0
votes
2
answers
790
views
Unable to connect to Oracle 9 (Powerbuilder 12.5) - ORA-12154 error
after 10+ hours of trying I'd like to ask for your help.
I'm trying to connect to Oracle database "O90 Oracle 9i" in Powerbuilder 12.5.
My machine is a little bit messy regarding Oracle (I ...
-1
votes
4
answers
122
views
A query that shows the cost within $2 of the most expensive film
TITLE GEN DURATION PRODUCTION_YEAR MED PURCHASE_PRICE PURCHASE_ MOVIE_ID
those are my columns
I am using oracle 9i
Thanks to anyone who can help
0
votes
0
answers
18
views
PHP How to get rid of white spaces on Oracle 9i? [duplicate]
I am using Oracle 9i as my database. My problem is the columns of the this database supplies an ample amount of white spaces.
For Example:
Username with Char(100) if I insert a 5 character inside this ...
1
vote
0
answers
619
views
PHP connection string to remote database ORA-12154
I have 2 computers:
PC 1 - Here is where I installed the XAMPP.
PC 2 - Here is where my database which is Oracle 9i is installed.
I am using PHP 7 and already added PDO_OCI extension.
Here is my ...
0
votes
1
answer
197
views
Difference in Salary in Oracle Select Statement
I have below table having three columns(Empno,Ename,Salary)
Empno Ename Salary
101 Ashok 1000
102 Kumar 2000
103 Mani 3000
I need below Output by displaying difference in salary.
...
0
votes
2
answers
38
views
Cumulative calculation in Oracle
I have below Emp table that contains three columns (empno, ename, salary).
empno ename salary
---------------------
101 Ram 2000
102 Kumar 1000
103 Mani 3000
I need below output ...
0
votes
1
answer
680
views
Is it possible to use a variable to reference a column in an Oracle trigger?
I have a table in a legacy Oracle 9 database. I'm trying to write a trigger that, given an update to a row in that table, will loop through table columns, and for each column C check whether :old[C] = ...
0
votes
0
answers
4k
views
How to install oci8 in php 7.4.9 in windows 10
I am using windows 10(x64). an using php 7.4 and download from here...
https://windows.php.net/download#php-7.4
I unzip it and placed in c:\php7.4.9 and uncomment some extension in php.ini
I need to ...
0
votes
1
answer
93
views
SQL query keeps telling me I am missing a right parenthesis but I am not
Can anyone see what is wrong with this query:
INSERT INTO CAND_SEARCH_RESULT_IDS (csr_id, sort_seq, cand_id)
SELECT
358572 csr, rownum sort_seq,
c.cand_id
FROM
...
1
vote
1
answer
75
views
Find out what pattern was matched when using a LIKE query?
If I was to perform a normal query with a bunch of LIKE statements in it. Would it be possible to return which search term actually resulted in the row being returned?
So if I ran :
select cand_id
...
0
votes
2
answers
219
views
Oracle query: WHERE NOT LIKE is not excluding record when only one record exists
I have the following query
select cand_id
from cand_kw
WHERE client_id='mamasandpapas' AND UPPER(kw) LIKE '%MARAH%' OR UPPER(kw) LIKE '%ANDREW%' AND UPPER(kw) NOT LIKE '%KOCH%'
In the database ...
0
votes
1
answer
327
views
Best approach to migrate huge amounts of data from Oracle 9i to Azure Hyperscale
We have a requirement to transfer huge amounts of data from On-premise Oracle 9i to Hyperscale. I am trying to find the best possible approach to get this transfer happen. At the moment, I am using ...
1
vote
0
answers
724
views
How to create a search query button in oracle form builder using go_block?
i have a master detail block which has course it shows course_id and call_id and displays course name.
i have another block(STUD_GRADE_VIEW_BLOCK) in the same form which displays student names and ...
0
votes
0
answers
1k
views
Is there any solution for unreadable Arabic characters in PDF
please I need help with PDF file that have Arabic characters ,it is old document exported from old version from oracle , when i open the document all characters are unreadable , I tried to add many ...
0
votes
2
answers
40
views
Sum up data from joined table for specific columns (oracle 9i)
I have two tables:
replies_referred and advert_view_hits
replies_referred contains a lot of fields but the relevant ones are:
ad_id, acc_id and referrer
advert_view_hits contains (sb_id is the ...
0
votes
3
answers
101
views
Group data by part of string in oracle sql ( Oracle9i Enterprise Edition Release 9.2.0.4.0)
I have the following query:
select referrer, count(distinct ad_id) as Adverts,
sum(case f when 'Y' then hits else 0 end) as clicks,
sum(case f when 'N' then hits else 0 end) as views
...
1
vote
1
answer
67
views
Oracle merge sql doesn't work when update with where condtions
My problem is that an error occurred when I update with where conditions.
The error message is 00936. 00000 - "missing expression"
If I remove this line where q1.SALE_QTY <> -9 , then that ...
0
votes
1
answer
107
views
Oracle 9.2 - Order By Ignored If Order By Columns Not First
I'm new to Oracle SQL, and have recently discovered that my 'Order By' statement is ignored in P/L SQL scripts when creating temp tables if I don't put the order by columns at the front of the list of ...
1
vote
0
answers
58
views
Oracle database rollback
I accidentally used imp instead of exp which replaced my database with a very old backup. My oracle version is 9i. Any help to get the data back.
1
vote
1
answer
339
views
PHP 7.2 OCI8 Oracle 9i Error on PL/SQL Code: ORA-06550: line 1, column 7: PLS-00103: Encountered the symbol ""
Thanks for the help you can give me.
I am having a problem using OCI8 in PHP 7.2 with PL/SQL statements in Oracle 9i. I am using oracle instant client 11.2.
SQL:
BEGIN
DBMS_OUTPUT.put_line('¡...
0
votes
2
answers
83
views
Missing keyword Oracle SQL
I have this SQL query and I am getting "MISSING KEYWORD" error.
SELECT SUM(CASE WHEN DUECD = 'PRI' THEN DUEAMT ELSE '0') AS LATESTPRIN, SUM(CASE WHEN DUECD != 'PRI' THEN DUEAMT ELSE '0') AS LATESTINT ...
0
votes
1
answer
2k
views
Oracle Database Migration from 9i to 12c
I am working in one use case where I have to migrate Oracle 9i Database to Oracle 12c, but as I am new in the Oracle database I wanted to know what sort of consequences might be there or what type of ...
1
vote
1
answer
279
views
SQL Developer failing to open table in old db version
We've connected to an old 9i database with SQL Developer 18.2, and every table we attempt to open the description of returns the following, instead of displaying data/indexes/constraints etc.
A ...
0
votes
0
answers
390
views
How to properly count number of rows in Oracle using PHP?
I am trying to count the number of rows using PHP. Here is my problem when I test my SQL statement directly to my database it returns three(3) rows, but when I use my PHP script it only returns one(1)....
-3
votes
2
answers
884
views
calling Stored Procedure String via Rest API returns empty instead of valid String
As a back-end developer, I would like to call stored procedure connecting Oracle 9i database to fetch the single output string.
In reality, the result of the output parameter as string, returns ...
0
votes
2
answers
376
views
How to delete datetime value using update?
I have a row with datetime. What I want to achieve is delete the datetime in just a blank. Is that possible with using update? If possible I don't want to delete and re-insert the data because this is ...
0
votes
1
answer
156
views
comma separated value to loop working with Hardcoded value but not with parameter value
My main problem is : i want to pass comma separated string in to oracle 9i stored proc and inside it, i want to iterate through it and use each value in insert statements. Oracle 9i above version ...
0
votes
0
answers
290
views
Index performance degrades unless they are rebuilt routinely
I have Oracle 9i on Oracle 9iAS with Forms 6i on a virtual environment. Performance remains good for 2-4 hours when we rebuild the index, but degrades after while. Then we rebuild, then performance ...
0
votes
1
answer
142
views
how to extract date from string in sql oracle 9i
I have column Explanation (VARCHAR2) in table:
No| Explanation
1 | Shipment of cabbage by agreement 29.04.2019 TAX Free
2 | Payment for screws (01.04.19) Tax: 13.55 %
3 | For reserch by deal ...
0
votes
1
answer
553
views
ORA-01461: can bind a LONG value
I'm setting up a test server and i get this problem ORA-01461: can bind a LONG value only for insert into a LONG column when i try execute Select from database, the error is when code call persist() ...
0
votes
1
answer
291
views
Duplicate rows using Connect by level
I wish to duplicate rows based on a column value using CONNECT BY LEVEL.
This is the code I used:
SELECT
tbl1.*,
(tbl1.START_WEEK - tbl1.END_WEEK) wks_inbtwn
FROM
My_SQL_table tbl1 ...
0
votes
1
answer
41
views
Can I request previous sample time more efficiently in this Oracle SQL statement?
I have a fairly simple Oracle 9 table made up of a timestamp, itemid number and value.
DT_RECORDDATE ITEMID SYSTEMID VALUE
2019-04-04 25 97 1
2019-04-05 19 ...
1
vote
1
answer
786
views
Oracle 9 database as data source in SSRS 2017 ver 14.0
We recently install SSRS report server on a Windows Server 2016. We are trying to add a Oracle 9 instance as a data source of SSRS but we have not been succesful to do so. We installed:
Oracle ...
0
votes
2
answers
61
views
Retrieve multiple lines of a column in a single row in Oracle 9i
Using Oracle 9i
Desc mtitem0 (table)
Materailcd Char(10),
Technicalspecs VarChar2(1000)
Query:
Select Materailcd, TechnicalSpecs
From Mtitem0
Where Materailcd = '0100000121'
...
1
vote
1
answer
339
views
Oracle query to show change of status in each row with previous status
I have a table with following rows
Need to write an oracle sql query to get the output as:
P.S: I am using Oracle 9i. Let me know if this can be done by just using oracle 9i sql.