Category "oracle"

PL/SQL - I want to test if a character string contains 1 or more lower-case letters

Using PL/SQL (Oracle 11gR2) I want an IF statement that tests if a string contains 1 or more lower-case letters. PL/SQL pseudo-code: declare v_string varchar2

how to enable partitioning option true after installing the Oracle?

I have installed oracle 10G XE but in the time of installation i may have not enabled the partion option.now when i am running the command select * from v$opt

When using TOAD on Windows 7, it pops up an error: ORA-06413 : Connection Not Open

When using TOAD on Windows 7, it pops up an error: ORA-06413 : Connection Not Open I have Windows 7 64-bit and i can ping to the db ip .

Oracle SELECT granted but still can't access table across users

Can any one see what's wrong with this: User ABC: create table def.something ( id number, ref number references def.anotherTable(id) ); create role ROUse

lsnrctl command not found oracle enterprise database 11g ubuntu

i have an issue with the environment variables for oracle 11g enterprise edition on ubuntu. I tried this, but didn't work Add the following lines to /etc/profi

Use dbms_output.put_line in Datagrip for .sql files

I started to use Datagrip for my PL/SQL (school) projects that need the use of DBMS_OUTPUT.PUT_LINE. Before this I was using Oracle SQL developer and I was able

When logging in to Oracle Enterprise Manager, it is asking me for the credentials again. Why?

I'm trying to log in to: https://localhost:5500/em/login First, I entered my credentials at the bottom right area. Then, I clicked the button. After that, a po

using cursor attributes in a CURSOR FOR LOOP

I am running the following in the Scott schema: SET serveroutput ON; BEGIN FOR c_Emp IN (SELECT * FROM emp) LOOP dbms_output.put_line('The record processed by

Import data from excel to oracle SQL

When I'm trying to import data from excel to Oracle SQL. I keep getting an error Data is not compatible with column definition or is not available for a not n

Query to order by the last three characters of a column

Query the name of any student in STUDENTS who scored higher than 75 marks. Order your output by the last three characters of each name. If two or more students

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