oracle-sqldeveloper

Oracle “SQL Error: Missing IN or OUT parameter at index:: 1”

末鹿安然 提交于 2019-12-04 05:03:54
I have an Oracle script that looks like the following: variable L_kSite number; variable L_kPage number; exec SomeStoredProcedureThatReturnsASite( :L_kSite ); exec SomeStoredProcedureThatAddsAPageToTheSite( :L_kSite, :L_kPage ); update SiteToPageLinkingTable set HomePage = 1 where kSite = :L_kSite and kPage = :L_kPage; Supposedly the last statement is a valid use of a bind variable but when I try to run the script I get this on the last line: SQL Error: Missing IN or OUT parameter at index:: 1 I'm not sure how to proceed here as I'm not especially proficient in Oracle. I had a similar error on

Oracle date seems equals

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 03:43:57
问题 there is a table INCASSO in my database: CREATE TABLE "GEC_AP"."INCASSO" ("ID_INCASSO" VARCHAR2(50 BYTE) NOT NULL ENABLE, "ID_FATTURA" VARCHAR2(50 BYTE) NOT NULL ENABLE, "ID_PIANO_RATE" VARCHAR2(22 BYTE) DEFAULT -1 NOT NULL ENABLE, "DATA_ESECUZIONE" DATE DEFAULT SYSDATE NOT NULL ENABLE, ...) The primary key includes four fields: CONSTRAINT "PK_INCASSO" PRIMARY KEY ("ID_INCASSO", "ID_FATTURA", "ID_PIANO_RATE", "DATA_ESECUZIONE") It seems there is a duplicated record when I run the following

display select results inside anonymous block

橙三吉。 提交于 2019-12-04 03:11:55
I'm trying to debug a SELECT inside a procedure, and I'm trying to this using a anonymous block. I would like that SQL Developer simply return the last SELECT statement, but I get the error: ORA-06550: line 21, column 5: PLS-00428: an INTO clause is expected in this SELECT statement Inside the procedure, I have an INTO for that select, but is there a simple way that I can simply get the results for the last SELECT statement for my debugging? I'm using anonymous block and variables so that the code is as similar as possible from what's actually inside the procedure, so that I don't have to

Oracle SQLDeveloper on MacOS won't open after installation of correct Java

一笑奈何 提交于 2019-12-03 23:36:32
I downloaded the Oracle SQLDeveloper, but when I opened it, it said that it requires a minimum of Java 8 and gave me the website for the download. I went on and downloaded Java 10.0.1, but when I went back on to open SQL, it continued saying it required a minimum of Java 8. I checked that the Java 10.0.1 had installed correctly, and I'm pretty sure it has. It shows up in System Preferences and when clicked, it opens the Java Control Panel fine. I had also found someone recommending trying this command: c:\Program Files\Oracle\sqlcl\17.3\sqlcl\bin>java -version After trying this in the Terminal

sqlplus stuck on delete query

我只是一个虾纸丫 提交于 2019-12-03 20:13:52
I'm experiencing a strange issue while using a an anonymous PL/SQL block launched by SQL*Plus. This block contains a delete statement and it works as expected if launched by the oracle sql developer interface. It gets stuck if I launch it from the cmd through sqlplus. I discovered the delete statement is the problem... I have the same situation with a simpler code like that: set serveroutput on size 1000000 begin DELETE FROM USER_LEAD; dbms_output.put_line('test'); end; / exit; If I remove the delete statement everything works and it's the same with my real anonymous block. I want to point out

Oracle DB & SQL Developer: “Error report: execution completed with warning” - How do I *see* the warning?

假装没事ソ 提交于 2019-12-03 17:30:48
问题 I'm setting up a local oracle (11g) database - a clone of another database we have running already. I'm running a bunch of generated PL/SQL commands in SQL Developer. I get the output Error starting at line x in command: *long-ass SQL statement here* Error report: SQL Command: force view "someViewName" Failed: Warning: execution completed with warning How do I read the warning that has been generated without modifying the script? when I use the show errors immediately after this command, I

Query two databases with Oracle SQL Developer

杀马特。学长 韩版系。学妹 提交于 2019-12-03 12:18:31
Is there a way to query two databases (in a single query) in Oracle SQL Developer? I'm not very familiar with Oracle -- aside from standard CRUD syntax at any rate. I'm trying to do an insert into an Oracle table from a SQL Server table. Would like to do something like this: INSERT INTO OracleDB.table (field1, 2, ...) SELECT ... FROM SQLServerDB.schema.table I've got (working) connections created for both databases in Oracle SQL Developer. Thanks --EDIT-- I have no admin privileges to the databases themselves. (Cannot create linked servers, etc.) Yes, that's possible. Connections in SQL

SQLDeveloper: execute current line without highlighting

北慕城南 提交于 2019-12-03 11:55:15
In Toad one can easily execute current line without highlighting it. Let say, you have a worksheet like this: select * from item -- cursor here select * from product When I click on CTRL+Enter I want only the line where the cursor is to be executed. In SQLDeveloper, if there is no second line, CTRL+Enter works as I want. Basically, I want to do the same as described here , but for some reason, I can't find the Tools -> Preferences -> Window Types -> SQL Window and check "AutoSelect statement" in the version of the SQLDeveloper I am using: 4.0.0.13 , build Build MAIN: 13.80 . Seems like, this

How to align query in sqldeveloper 4.0?

大憨熊 提交于 2019-12-03 11:27:49
问题 I have query written in sqldeveloper but I don't know how to align or format the query in neat order. P.S: I don't know whether this question can be asked here. Kindly answer if any knows the answer here. 回答1: I have used Ctrl + f7 to format or align my query in sqldeveloper 4.7 with reference to the above comment from leo. 回答2: Just right click, select FORMAT option, or, use Ctrl + f7 shortcut to format. If you have not set your own formatting rules, then it would take the default formatting

When SQL Developer is idle I lose my connection

徘徊边缘 提交于 2019-12-03 10:36:07
My problem is this: I am running Oracle 10G on windows 98 on a virtual machine using VMWare on my desktop computer. I can connect to several users (SYS, HR, OE, ... ) with SQL Developer (which is on my desktop not on the virtual machine) but if a don't run any SQL statement for a short while, say about 2 minutes, I lose my connection and get an error like connection closed or IO-fault:connection reset by peer. Could this have anything to do with the sp_reset_connection? When I open SQL Plus on my virtual machine itself I don't lose the connection at all, even if it has been idle for 30 minutes