Category "oracle"

How can I SELECT the first row with MAX(Column value)?

I want to select only one row from a table. This row holds the maximum number in the table. I have tried to use MAX Fun but it didn't work for me. I use two ta

Oracle 12c: TNS-12535: TNS:operation timed out

We have a new database server on RHEL 7 and Oracle 12c. The old database server is RHEL 4 and Oracle 10g. I need to dump the data using the 12c client from the

Oracle SQL query to list weeks between two dates

I have one requirement START_DATE : 03/01/2018 END_DATE : 31/01/2018 I need a query which will list all the weeks starting date and end date between these two

Oracle cloud instance cannot communicate with each other via private ip within the same VCN subnet

I am really curious why this happen: Oracle cloud instances cannot communicate by default with each other via private ip within the same VCN subnet. Is it again

ORA-03150: end-of-file on communication channel for database link

In an Oracle database there's a big PL/SQL procedure being executed periodically that copies data from one DB to another one through a database link and it is f

Error while trying to retrieve text for error ORA-01019 in VB6

I'm getting this error on vb6 when trying to connect to an oracle database, debugging puts me in this line, oracon.Open, here's my connection string. Provider=

Parameterizing a raw Oracle SQL query in Entity Framework

I'm trying to parameterize a raw SQL query for an Oracle synonym (non-entity) in EF 4 and I am having some problems. Currently I am doing something like the co

Invalid Json from Oracle Apex

I have a problem with returning a json object from a REST method in Oracle Apex. Apex puts an escape character in front of every quotation mark and hence the js

How to prettify the output coming from the SELECT query in command prompt?

I ran the simple select query in the command prompt,but the output rows are not coming in a single line. See below: SQL> set pagesize 2000 SQL> select *

Oracle SQL query to convert a string into a comma separated string with comma after every n characters

How can we convert a string of any length into a comma separated string with comma after every n characters. I am using Oracle 10g and above. I tried with REGEX

ORACLE, UTL_HTTP and SSL

I try to reach a WebService provide by a secured site with a TLS 1.2 certificate encrypted that i exported and add in a wallet. First i try to reach the site wi

SQL error "ORA-01722: invalid number"

A very easy one for someone, The following insert is giving me the ORA-01722: invalid number why? INSERT INTO CUSTOMER VALUES (1,'MALADY','Claire','27 S

how to save oracle SQL queries automatically when a query is executed?

I want to save SQL/PLSQL queries, which are being executed by a user. I use the below, and have to use append at the end of the statement as well as saving at

Is there an equivalent to concat_ws in oracle?

I have a ton of columns I am trying to aggregate together and most of them have NULL values. I want to separate values that do appear with a ';' but I cannot fi

Using REGEXP_Substr in db for more than one condition

Hi i'm using SQL Query in ORACLE db. How can i use the function REGEXP_SUBSTR (oracle SQL) to create a new column with name "VOIE" that contains just the type o

How to pass multiple values into one parameter in stored procedure (Oracle)

I have a parameter created for a stored procedure looking to allow user to pass in multiple inputs. create procedure sp1 (p1 in varchar2) as begin select proc

how to pass a java object to oracle stored procedure with following details

I have my ORACLE table with structure as desc extraction_log1 Name Null

How to convert timestamp with milliseconds to date in Oracle

I have MSSTAMP as "timestamp with milliseconds" in Oracle, format: 1483228800000. How can I cast that milliseconds timestamp into a date format "YYYY-MM", in or

Semicolon and Single Quote Issue in SQL Insert Statements

I am executing a SQL script which has spaces, semicolons, single-quotes, special characters etc. in of the column called prod_desc. I need to execute the script

How To Set Server Output On in DataGrip

How Can I "set server output" on in Jetbrains DataGrip IDE? I am able to do this in SQL Developer and run the SQL script successfully. The same script I try to