oracle-sqldeveloper

Execute scripts by relative path in Oracle SQL Developer

ⅰ亾dé卋堺 提交于 2019-12-01 02:16:40
问题 First, this question relates to Oracle SQL Developer 3.2 , not SQL*Plus or iSQL, etc. I've done a bunch of searching but haven't found a straight answer. I have several collections of scripts that I'm trying to automate (and btw, my SQL experience is pretty basic and mostly MS-based). The trouble I'm having is executing them by a relative path. for example, assume this setup: scripts/A/runAll.sql | /A1.sql | /A2.sql | /B/runAll.sql /B1.sql /B2.sql I would like to have a file scripts

ORA-01799: a column may not be outer-joined to a subquery

梦想的初衷 提交于 2019-12-01 02:12:47
Here is my query SELECT COUNT(C.SETID) FROM MYCUSTOMER C LEFT OUTER JOIN MYCUSTOPTION CO ON (C.SETID = CO.SETID AND C.CUST_ID = CO.CUST_ID AND CO.effdt = ( SELECT MAX(COI.EFFDT) FROM MYCUSTOPTION COI WHERE COI.SETID = CO.SETID AND COI.CUST_ID = CO.CUST_ID AND COI.EFFDT <=SYSDATE ) ) and here is the error message that I am getting.. What am I doing wrong??? you can rewrite that by pushing the sub query so that its not outer joined: select Count(C.setid) from mycustomer C left outer join (select * from mycustoption co where co.effdt <= (select Max(COI.effdt) from mycustoption COI where COI.setid

SQL Datatype to use when inserting money

随声附和 提交于 2019-12-01 01:44:41
问题 I am using Oracle SQL database and I have to insert a monetary value(salary) as part of a row. For some strange reason the money command isnt working, is there any alternates that would work with this? Data input format: £00,000.000 CREATE TABLE staff (staffno CHAR(6) NOT NULL , staffsurname VARCHAR(8) NOT NULL , staffforename VARCHAR(7) NOT NULL , salary MONEY NOT NULL , PRIMARY KEY (staffno) ); 回答1: Look at this line salary MONEY NOT NULL There is no existing money datatype. If you are

How to use SQLDeveloper to connect to embedded Derby database

喜你入骨 提交于 2019-11-30 23:06:03
I have a project using derby and JPA. I can connect to the database fine within my application. I would like to connect to the embedded database with SQL Developer so I can easily browse/query the data in the database. Here is the derby dependency I'm using: <dependency> <groupId>org.apache.derby</groupId> <artifactId>derby</artifactId> <version>10.7.1.1</version> </dependency> Here is the the connection info I'm using for JPA: <property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver"/> <property name="javax.persistence.jdbc.url" value="jdbc:derby:fs-hash

Is there any auto commit happens after executing stored procedures in oracle?

末鹿安然 提交于 2019-11-30 21:40:36
I have 3 tables in oracle DB. I am writing one procedure to delete some rows in all the 3 tables based on some conditions. I have used all three delete statements one by one in the procedure. While executing the mentioned stored procedure, is there any auto-commit happening in the at the time of execution? Otherwise, Should I need to manually code the commit at the end? There is no auto-commit on the database level, but the API that you use could potentially have auto-commit functionality. From Tom Kyte . That said, I would like to add: Unless you are doing an autonomous transaction, you

sqldeveloper - DBMS_OUTPUT.PUT_LINE() Doesn't Work

筅森魡賤 提交于 2019-11-30 20:36:17
问题 I am trying to print the value passed to the DBMS_OUTPUT.PUT_LINE() function to the DBMS_OUTPUT screen in SQL Developer. No matter what I pass to the function, nothing gets printed in the output window. I have turned on the DBMS Output window and even connected with an available connection. But on running the following script, only "PL/SQL procedure successfully completed" gets printed in the Script Output window, nothing in the Dbms Output window. Also I have set the buffer size to 30000,

SQL Developer for importing from Excel [duplicate]

柔情痞子 提交于 2019-11-30 20:29:14
This question already has an answer here: How copy data from Excel to a table using Oracle SQL Developer 5 answers I have installed SQL Developer in my system, but how can i utilize the GUI. I am new to this and i want to import datas from Excel to Oracle database using SQL Developer Thanks in advance At what point did you get stuck? A fast track: Create a connection to the database in SQL Developer Create a table as a destination for the xls data save excel data as csv right click on the table from step 2 select 'import data' select csv file use the wizzard and bob is your uncle Folowing

Need to count records and group count by date on oracle db using sql developer

左心房为你撑大大i 提交于 2019-11-30 17:13:20
I have a table like the following ID created sent type ----------------------------------------------------- 0001463583000051783 31-JUL-12 1 270 0081289563000051788 01-AUG-12 1 270 0081289563000051792 01-AUG-12 1 270 0081289563000051791 01-AUG-12 1 270 0081289563000051806 01-AUG-12 1 270 0001421999000051824 06-AUG-12 1 270 0001421999000051826 06-AUG-12 1 270 0001464485000051828 06-AUG-12 1 270 0082162128000051862 09-AUG-12 2 278 0082162128000051861 09-AUG-12 2 278 0022409222082910259 09-AUG-12 3 278 I would like to have the following for output created Count --------------------- 31-JUL-12 1

Is there any auto commit happens after executing stored procedures in oracle?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 17:12:58
问题 I have 3 tables in oracle DB. I am writing one procedure to delete some rows in all the 3 tables based on some conditions. I have used all three delete statements one by one in the procedure. While executing the mentioned stored procedure, is there any auto-commit happening in the at the time of execution? Otherwise, Should I need to manually code the commit at the end? 回答1: There is no auto-commit on the database level, but the API that you use could potentially have auto-commit

Oracle SQLDeveloper Table Name autocompletion setting

此生再无相见时 提交于 2019-11-30 12:47:18
问题 I am using Oracle SQLDeveloper 2.1.1.64 version. Table Name autocompletion is not happening. Checked in autocompletion settings but in vain. Any ideas about it? 回答1: Go to: Tools > Preferences > Code Editor > Completion Insight And make sure your settings are configured properly: 回答2: Though this post is old but still I see many people not able to get real Auto Complete intellisense feature because as soon as Auto Complete values exceeds 10 then autocomplete doesn't work i.e you need to