oracle-sqldeveloper

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

风格不统一 提交于 2019-12-05 12:46:18
问题 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

Sql Developer connector to Sql Server 2012 - error “Vendor code 207”

╄→尐↘猪︶ㄣ 提交于 2019-12-05 07:02:53
I am trying to connect from Sql Develper 4.0.3.16 to Sql Server 2012, with jTDS connector jtds-1.3.1.jar. OS: Ubuntu 14.04 Java: ~$ java -version java version "1.7.0_72" Java(TM) SE Runtime Environment (build 1.7.0_72-b14) Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode) In the create connection window, when I test the connection it is successful. When I open the connection I can see all the databases. When I try to open a database that I am supposed to have a permission to open, I am getting the following error window: Any ideas? P.S. if Microsoft has a JDBC driver sqljdbc4-4.0

Accessing a table without specifying the schema name

半城伤御伤魂 提交于 2019-12-05 03:41:59
I have a schema called GBO_ARC_SCHEMA , in which I have one table called TEST_EMP , and I have two users say USER_A and USER_B . First I connected to USER_A and fired below query select count(*)from TEST_EMP; count ----- 20 After that I connected as USER_b and fired below query but it is giving an error, saying that table or view does not exit select count(*)from TEST_EMP; But if I use scma.object name it is allowing me to query like below select count(*)from GBO_ARC_SCHEMA.TEST_EMP; but as per my requirement I don't want to specify schema name. can somebody help me out? If you want all users

sqlplus stuck on delete query

旧时模样 提交于 2019-12-05 02:59:26
问题 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

Access and Filter predicates in Oracle execution plan

蹲街弑〆低调 提交于 2019-12-05 02:21:17
What is the difference between Access and Filter predicates in Oracle execution plan? If I understand correctly, "access" is used to determine which data blocks need to be read, and "filter" is applied after the blocks are read. Hence, filtering is "evil". In the example of Predicate Information section of the execution plan below: 10 - access("DOMAIN_CODE"='BLCOLLSTS' AND "CURRENT_VERSION_IND"='Y') filter("CURRENT_VERSION_IND"='Y') why "CURRENT_VERSION_IND" is repeated in both Access and Filter sections? The corresponding operation is INDEX RANGE scan on index, which is defined on fields

Script output to file when using SQL-Developer

徘徊边缘 提交于 2019-12-05 01:13:17
I have a select query producing a big output and I want to execute it in sqldeveloper, and get all the results into a file. Sql-developer does not allow a result bigger than 5000 lines, and I have 100 000 lines to fetch... I know i could use SQL+, but let's assume I want to do this in sqldeveloper. Instead of using Run Script (F5) , use Run Statement (Ctrl+Enter) . Run Statement fetches 50 records at a time and displays them as you scroll through the results...but you can save the entire output to a file by right-clicking over the results and selecting Export Data -> csv/html/etc . I'm a

SQL Developer error Unable to find Java Virtual Machine [duplicate]

我只是一个虾纸丫 提交于 2019-12-05 01:02:09
This question already has an answer here: How to change settings for SQL Developer to correctly recognize current version of SDK 11 answers After installing Oracle 11g client, when I tried to run SQL Developer it's asked me to give it java.exe path. As I didn't know I gave it the wrong path to program files java installation. Which I later found out that I should have given the path to java.exe inside oracle folder. Now every time I run it doesn't ask me for java.exe path, but shows the next error: Unable to find Java Virtual Machine . I think to correct this I need to give Java path to it in

Query two databases with Oracle SQL Developer

不羁岁月 提交于 2019-12-04 18:49:29
问题 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

Script to run other scripts in sqldeveloper

早过忘川 提交于 2019-12-04 18:30:28
问题 I have a number of scripts used to build a database. These need to be executed in a certain order. Is it possible to create a script to run other scripts in SQL Developer (1.5.3)? I know I can do this with sqlplus, but I was hoping there's a similar ability I just don't know about. 回答1: The SQL*Plus synthax works (with run script ): @script arg1 arg2 ... argn or @"/path/to/directory/script" arg1 arg2 ... argn 回答2: SqlDeveloper should be able to use the same syntax as SqlPlus, i.e. @@ script1

How to connect to Azure Oracle 12c Database using sqlplus or sql developer cloud connection

♀尐吖头ヾ 提交于 2019-12-04 17:17:56
I have 2 VM in azure one is a DB server and the other is a web server. I can get remote desktop connection for both these servers and web server can connect to Database wih sqlplus user/password@internal_network_ip:port/sid But however I cannot connect to Cloud DB from my local system. I tried sqlplus user/password@internal_ip:8552/sid ORA-12170: TNS:Connect timeout occurred sqlplus user/password@xxxx.something.net:8552/sid -- oracle port ORA-12170: TNS:Connect timeout occurred sqlplus user/password@xxxx.something.net:54955/sid -- port for cloud system used when taking remote desktop