oracle-sqldeveloper

So how is `ROLLBACK` in Oracle exception handler different from my `ROLLBACK`?

末鹿安然 提交于 2020-01-05 04:18:11
问题 How Oracle Database rollback to the beginning of the PL/SQL block, but not the earlier DML instructions (I think all this come under one single transaction). Because when I try to ROLLBACK creating an exception handler all the instructions until last COMMIT are rolled back. create table mytable (num int not null primary key); insert into mytable values(1); // My ROLLBACK, rollbacks to here. begin // Oracle exception handler rollbacks to here. insert into mytable values(3); begin insert into

Insert bulk records in to remote database (dblink) using Bulk Collect

大兔子大兔子 提交于 2020-01-04 07:42:07
问题 I want to insert huge records from different tables in to a destination remote table 'Audition_Detail' using DBLINK - @FMATLINK. I have used Bulk collect, but its throwing errors. I have gone through some links too: Overcoming the restriction on bulk inserts over a database link PLS-00394: Wrong number of values in the INTO list of a fetch statement The code is as follows: DECLARE TYPE FETCH_ARRAY IS TABLE OF AUDITION_DETAIL@FMATLINK%ROWTYPE; A_DATA FETCH_ARRAY; CURSOR A_CUR IS --------------

Generate DDL with Oracle Sql Developer to include Foreign keys

房东的猫 提交于 2020-01-04 05:48:19
问题 I Tried a few options to generate DDL from oracle database using SQL Developer and none of them fit the purpose. The Quick DDL option results in DDL without Foreign Key constraints. I do like the format The Edit on table results in DDL including storage and loggings which I cannot get rid of. Just wondering anyone have better way of generating DDL using SQL Developer? Thanks 回答1: The Quick DDL doesn't use any sort of preferences, it does it by what we think is appropriate - which is totally

How to view blob data in Oracle SQL Developer

情到浓时终转凉″ 提交于 2020-01-03 07:39:07
问题 How can I read blob data in Oracle SQL Developer. It is stored in byte[] format. Is there any possibility to read in string format. 回答1: Follow these steps in Oracle SQL Developer - Open data window of your table. The BLOB cell will be named as (BLOB) . Right click the cell. You will see a pencil icon. Click on it. It will open a blob editor window. You would find two check boxes against the option View as : Image or Text . Select the appropriate check box. If above step is still convincing,

PLSQL generate random integer

我们两清 提交于 2020-01-01 03:37:21
问题 In Oracle Sql developer 11g, how do I generate a random integer and assign it to a variable? This is what I've tried so far: S_TB := SELECT dbms_random.value(1,10) num FROM dual; With this code I got error: S_TB := SELECT dbms_random.value(1,10) num FROM dual Error report - Unknown Command What is the proper way to solve my issue? 回答1: Variables require PL/SQL; it's not clear from your question whether your code is a proper PL/SQL block. In PL/SQL variables are populated from queries using

The full pathname of a JDK installation for Oracle SQL Developer

旧城冷巷雨未停 提交于 2019-12-31 10:46:07
问题 I want to run Oracle SQL Devloper on Ubuntu with this command: sh sqldeveloper/sqldeveloper.sh Then I got this message: Type the full pathname of a JDK installation (or Ctrl-C to quit), the path will be stored in /home/aimad/.sqldeveloper/4.0.0/product.conf So I gave the path of jdk as the following: /usr/lib/jvm/java-7-openjdk-i386/ But then I got this message: Error: Java home /usr/lib/jvm/java-7-openjdk-i386//bin/java is not a JDK. Running SQL Developer under a JRE is not supported. 回答1:

SQL Developer with JDK (64 bit) cannot find JVM

邮差的信 提交于 2019-12-31 08:47:14
问题 I just wasted one morning trying to get SQL developer to work on my current setup: OS: Windows 8.1 virtual machine running on mac via Parallels. No oracle client or instant client installed No Java installed The reproducible steps are I downloaded SQL Developer for Windows with JDK (all 64-bit) and unzipped it to C:/Program Files/. I double clicked on C:/Program Files/sqldeveloper/sqldeveloper.exe I get the following message: Unable to launch the Java Virtual Machine Located at path: C:

SQL Developer with JDK (64 bit) cannot find JVM

亡梦爱人 提交于 2019-12-31 08:46:05
问题 I just wasted one morning trying to get SQL developer to work on my current setup: OS: Windows 8.1 virtual machine running on mac via Parallels. No oracle client or instant client installed No Java installed The reproducible steps are I downloaded SQL Developer for Windows with JDK (all 64-bit) and unzipped it to C:/Program Files/. I double clicked on C:/Program Files/sqldeveloper/sqldeveloper.exe I get the following message: Unable to launch the Java Virtual Machine Located at path: C:

how to make sql developer display non-English character correctly instread of displaying squares?

柔情痞子 提交于 2019-12-31 00:59:13
问题 in sql developer--preference Environment--encoding is already set to 'UTF-8' Code Editor--fonts was set to 'Verdana' Database--NLS--Language was set to 'American' The data in db was written by Java in UTF-8 encoding (95% percent sure) What else I need to do to make it displayed correctly? Note: the squares characters are actually Chinese characters. 回答1: Problem solved. Using font 'Microsoft YaHei' 回答2: sqldeveloper uses the system fonts from the host machine. On my Win8 system there is a

SQL Developer failed to start

做~自己de王妃 提交于 2019-12-30 17:29:09
问题 I've just installed SQL Developer 4.1.1 64-bit on a Windows Vista machine, in directory c:\sqldeveloper . My Java installation is in c:\program files\java and I have two sub- directories: c:\program files\java\jdk1.8.0_31 c:\program files\java\jdk1.8.0_25 I have modified the jdf.conf and sqldeveloper.conf files in the c/sqldeveloper/sqldeveloper/bin directory. jdf.conf was empty and I added the following line: SetJavaHome c:\program files\java\jdk1.8.0_31 sqldeveloper.conf: #SetJavaHome ../..