Questions tagged as 'oracle'

1
answer

How to select columns in which years are the same in Oracle?

I have a table called Clientes , and in it I have the following columns: id_cliente nm_cliente dt_nascimento I need to select and count all clients that were born in the same year. I already tried some things, but they do not return b...
asked by 21.11.2017 / 00:37
1
answer

How to calculate the distance between X and Y with points of Intersection

In the image above I have mapped the separation positions inside the warehouse where I work. I need to calculate the distance that the person who is separating goes through the warehouse. For example if the person is separating in position...
asked by 30.06.2016 / 14:59
1
answer

Problem installing OCI8 on a vm of Vagrant

I've created a VM with Laravel Homestead I need to install OCI8 on it: Run the command sudo pecl install oci8 as reported here But I get this error:    ERROR: '/ tmp / pear / temp / oci8 / configure    - with-php-confi...
asked by 30.01.2017 / 19:33
1
answer

Delete all objects in a schema

I have a database on oracle where I need it delete all objects from a particular Schema , I can not delete the Schema , since the system validation is done based on an algorithm that takes into account the Schema ID .     
asked by 08.03.2016 / 13:53
2
answers

JdbcTemplate - How to commit and rollback?

I'm working with a Desktop application and I use spring to hold my inserts in the database. The object I'm using is the JdbcTemplate, which has the encapsulated datasource inside it. I would like to know how to start new transactions with Jdb...
asked by 28.01.2016 / 20:17
1
answer

Difference between varchar2 and nvarchar2

In Oracle, there are two types of data I can use to represent text, varchar2 and nvarchar2 . What's the difference between these two types of data?     
asked by 15.10.2015 / 20:14
2
answers

SQL Query to select student and student name

I have this simple relational model, and I need a query that selects the student and the student's name.     
asked by 13.05.2018 / 00:34
1
answer

Performance with Exists

One colleague mentioned that when doing EXISTS in SQL, it is recommended to use DISTINCT 1 to improve performance. For example, instead of doing: SELECT * FROM CLIENTES WHERE NOT EXISTS (SELECT CODCLI...
asked by 03.04.2018 / 15:23
1
answer

What would be Pro * C / C ++?

From what I saw it is using in Oracle, but can I use it with another bank? Pro * C / C ++ is useful today? Could you pass an example code? Does it have PL / SQL difference? Or are they used together?     
asked by 08.08.2017 / 13:47
1
answer

Django and Oracle database (accessing your views via ORM)

Hello, despite the self explanatory title. I'll detail my doubt below. I have a pre-existing Oracle database, I integrated it with django by configuring the default connection in settings and running manage.py inspectdb > _models.py. So cr...
asked by 24.05.2017 / 04:58