Questions tagged as 'oracle'

1
answer

How to use grant reference

I have 2 schemes in oracle each with their username and password, I have a billing and a payroll of which in the billing scheme I have a table called fct_personas and in payroll I have a table called nomi_employees I would like to know how to u...
asked by 13.11.2017 / 01:01
2
answers

no How to get the last value inserted in the BD Oraclexe?

I am working in JEE, with WebLogic and OracleXE as a database engine, I am using a DataSource (NO JPA), in this database you have to create sequences to generate autoincremental values, I already did it and it works well when I execute it becaus...
asked by 31.10.2017 / 14:31
1
answer

Because when executing my sql script when I get to the part of my autoincrementable triggers it stays in a loop?

Create some triggers so that my primary keys are autoincrementable at the time of inserting but at the time of executing my script everything executes well when you are going to execute the first trigger that is Trigger_idcomisario stays in a lo...
asked by 21.11.2017 / 02:31
1
answer

ORA-02270 assign a fk to a part of the primary key

Hi, I have a problem because a foreign key is part of the primary key of the other table and that is why it gives the error, the model according to the solution of the book is as it is here, so I do not know how do for Oracle to assume it as goo...
asked by 28.10.2017 / 05:01
1
answer

Can I use the return of a stored procedure as part of the where clause?

The idea is that the stored procedure returns a set of identifiers. Ex. pra_id: 303 404 Currently this is what I am trying to do, and it is to use the return of the pra_id as filters: SELECT rea.rea_id, rea.pra_id, etr.etr_id, etr.etr...
asked by 13.10.2017 / 00:02
2
answers

Create a view in sql that collects employee and salary data

I am doing a job for the school, in which they ask me to make a view that collects the following data: ID of the employee, name and surname, salary, maximum salary and% of the current salary with respect to the maximum (I do not understand th...
asked by 15.10.2017 / 11:37
0
answers

JPA Query to login

Good evening, stackOverflow colleagues, I have a problem when creating the next method that validates a login. public Usuarios loginExist(String username, String password) { try { EntityManager em; EntityTransaction t;...
asked by 24.09.2017 / 04:57
1
answer

How to show the repeated elements of a table in Oracle

Friends I have the following table called Scheduling_delivery with the following fields cod_entrega, cod_ordenamiento, cod_centro_atencion, cod_medicamento I need to find when there is only duplicate data on the medication. for example...
asked by 24.09.2017 / 23:41
1
answer

Status: Failure: Failure to test: I / O error: The Network Adapter could not establish the connection

I just installed Oracle Database 12c Release 2 (12.2.0.1.0) on my pc with windows 10. The problem is that I can not create a connection from the Oracle SQL Developer and the message appears in red (see image). When testing the connectiv...
asked by 16.09.2017 / 08:19
1
answer

Sum of oracle columns from php

I have this query from PHP , which does not return values but if I execute it from Oracle SQL Developer it shows me data. $sucursalesaño=[]; $ventasaño=[]; $query ='SELECT S.SUCURSAL , SUM(V.TOTAL_VENTAS) FROM T_VENT...
asked by 08.09.2017 / 18:14