SQL prob
sorry to ask this question here. how to compare a TEXT field in procedure??
Hi:
I am guessing you are actually doing the comparison in
your Java app though, are you? if you are, then Why
don't you use the getString() of the ResultSet
class,,,,
what he mean was
let's say you have already selected the two fields
String 1stString = ResultSet.getString("Name");
String 2ndString = ResultSet.getString("Nickname");
if(1stString.equals (2ndString))
code
Similar Messages
-
Need some help on why my SQL Probe is not working. Thx
probe tcp MS-SQL
description TO-RBSQL1
ip address 10.15.160.3
port 1433
interval 2
faildetect 2
passdetect interval 2
passdetect count 2
rserver host RBWEB1
ip address 10.15.177.11
rserver host RBWEB3
ip address 10.15.177.13
inservice
serverfarm host RBWEB
description TO-VLAN-177-RBWEB-SERVERS
predictor leastconns
probe WWW-RISKBROWSER
probe PING
rserver RBWEB1
rserver RBWEB3
inservice
Ace1/RISKBROWSER# sh probe MS-SQL
probe : MS-SQL
type : TCP, state : ACTIVE
port : 1433 address : 10.15.160.3 addr type : TRANSPARENT
interval : 2 pass intvl : 2 pass count : 2
fail count: 2 recv timeout: 10
--------------------- probe results --------------------
probe association probed-address probes failed passed health
------------------- ---------------+----------+----------+----------+-------
serverfarm : RBWEB
real : RBWEB1[0]
10.15.160.3 0 0 0 DISABLED
real : RBWEB3[0]
Ace1/RISKBROWSER# 10.15.160.3 21 21 0 FAILEDThis is a simply TCP probe.
If it is down, only one reason : the server did not respond or responded with a RST.
Get a sniffer trace and check what the server does.
Gilles. -
We're trying to deploy the create_portlet_definition.sql on a UDB DB2
6.1.
However, we encountered some problems:
"COLUMN_ORDER" cannot be a part of the primary key because it can contain
null values:
CREATE TABLE "COLUMN_INFORMATION"
("PORTAL_NAME" VARCHAR(100) NOT NULL,
"CATEGORY_NAME" VARCHAR(100) NOT NULL,
"COLUMN_WIDTH" INT,
"COLUMN_ORDER" INT,
PRIMARY KEY(PORTAL_NAME, CATEGORY_NAME, COLUMN_ORDER));
"GROUP_ID" cannot be a part of the primary key because it can contain
null values:
CREATE TABLE "GROUP_PERSONALIZATION"
("PORTAL_NAME" VARCHAR(100) NOT NULL,
"CATEGORY_NAME" VARCHAR(100) NOT NULL,
"PORTLET_NAME" VARCHAR(100) NOT NULL,
"GROUP_ID" VARCHAR(100),
"AVAILABLE" INT,
"MANDATORY" INT,
"EDITABLE" INT,
"MOVEABLE" INT,
"MINIMIZEABLE" INT,
"MAXIMIZEABLE" INT,
"FLOATABLE" INT,
"VISIBLE" INT,
"X" INT,
"Y" INT,
"MINIMIZED" INT,
PRIMARY KEY(PORTAL_NAME, CATEGORY_NAME, PORTLET_NAME, GROUP_ID))
Will these two columns ever contain a null value ?
Anders B. Jensen
Consultant, Research & Development
[email protected]
LEC AS
Denmark
Remove the SPAMLESS to mail me.any value that can contain null should not be a part of the primary key ever.
I would just change the script so that the columns are not nullable - however,
somebody from weblogic should confirm that this is ok.
Filip
In article <[email protected]>,
[email protected] says...
>
We're trying to deploy the create_portlet_definition.sql on a UDB DB2
6.1.
However, we encountered some problems:
"COLUMN_ORDER" cannot be a part of the primary key because it can contain
null values:
CREATE TABLE "COLUMN_INFORMATION"
("PORTAL_NAME" VARCHAR(100) NOT NULL,
"CATEGORY_NAME" VARCHAR(100) NOT NULL,
"COLUMN_WIDTH" INT,
"COLUMN_ORDER" INT,
PRIMARY KEY(PORTAL_NAME, CATEGORY_NAME, COLUMN_ORDER));
"GROUP_ID" cannot be a part of the primary key because it can contain
null values:
CREATE TABLE "GROUP_PERSONALIZATION"
("PORTAL_NAME" VARCHAR(100) NOT NULL,
"CATEGORY_NAME" VARCHAR(100) NOT NULL,
"PORTLET_NAME" VARCHAR(100) NOT NULL,
"GROUP_ID" VARCHAR(100),
"AVAILABLE" INT,
"MANDATORY" INT,
"EDITABLE" INT,
"MOVEABLE" INT,
"MINIMIZEABLE" INT,
"MAXIMIZEABLE" INT,
"FLOATABLE" INT,
"VISIBLE" INT,
"X" INT,
"Y" INT,
"MINIMIZED" INT,
PRIMARY KEY(PORTAL_NAME, CATEGORY_NAME, PORTLET_NAME, GROUP_ID))
Will these two columns ever contain a null value ?
Anders B. Jensen
Consultant, Research & Development
[email protected]
LEC AS
Denmark
Remove the SPAMLESS to mail me.--
Filip Hanik
Software Architect
XMarkstheSpot.com
[email protected] -
Hi,
I have a question re: Cursors. Can you reference the previous and next cursor record in FOR loops?
I have two data, value (either 1 or 0) & time the value was recorded. I need to determine x = sum(length of time the value was 1). Ex.
v1 = 1; t1 = 1
v2 = 1; t2 = 2.2
v3 = 0; t3 = 2.7
v4 = 1; t4 = 3
v5 = 1; t5 = 3.5
x = (t2 - t1) + (t5 - t4)
I was thinking of using a cursor to select the values and time and then using a LOOP
FOR curr_rec IN cursor1 LOOP
IF (curr_rec.value = 1 and prev_rec.value <> 1) THEN
v_start_time := curr_rec.time;
ELSE
v_start_time := v_start_time;
IF (curr_rec.value = 1 and next_rec.value <> 1) THEN
v_end_time := curr_rec.time;
v_diff_time := v_end_time - v_start_time;
v_total_time := v_total_time + v_diff_time;
END LOOP;
I need to know how do i declare prev_rec and next_rec.
Is there a better way to get the desired results?
Thanks !
nullE,
Define cursor and populate all the records in to PL/SQL table and in PL/SQL table you can refer next and previous records - PL/SQL table is noting but array in C
Good luck -
How would you approach this SQL prob?
Suppose we have an accounts system
An account is simplistically defined by its ID
All spends of money are logged with that ID, on a date
ID, Date, Spend
1, 01-jan-2007, 200
1, 01-feb-2007, 200
1, 01-mar-2007, 200
1, 01-apr-2007, 200
1, 01-may-2007, 200
1, 01-jun-2007, 200
Marketing want to see a report that looks like:
ID, Opened, DateSpendReached500, DateSpendReached1000
So for account 1, the first time spend went over 500 was in 01 march, when their total spend to date was 600, and they reached 1000 spend in may.
I was thinking of doing this pseudocode:
SELECT
ID,
date_acc_opened,
MIN(When RunningTotal >= 500 Then date_of_spend Else 01 Jan 2099) as Reached500,
MIN(When RunningTotal >= 1000 Then date_of_spend Else 01 Jan 2099) as Reached1000
FROM
SELECT ID, date_acc_opened, Date_of_spend, Sum(spend) OVER(prt by id, order by date asc) as RunningTotal
) tots
GROUP BY ID, date_acc_openedYour thoughts?Another way all as one query...
SQL> With T as (select 1 as id, to_date('01-jan-2007','dd-mon-yyyy') as dt, 200 as spend from dual union all
2 select 1, to_date('01-feb-2007','dd-mon-yyyy'), 200 from dual union all
3 select 1, to_date('01-mar-2007','dd-mon-yyyy'), 200 from dual union all
4 select 1, to_date('01-apr-2007','dd-mon-yyyy'), 200 from dual union all
5 select 1, to_date('01-may-2007','dd-mon-yyyy'), 200 from dual union all
6 select 1, to_date('01-jun-2007','dd-mon-yyyy'), 200 from dual union all
7 select 2, to_date('01-feb-2007','dd-mon-yyyy'), 50 from dual union all
8 select 2, to_date('01-mar-2007','dd-mon-yyyy'), 100 from dual union all
9 select 2, to_date('01-apr-2007','dd-mon-yyyy'), 100 from dual union all
10 select 2, to_date('01-may-2007','dd-mon-yyyy'), 75 from dual union all
11 select 2, to_date('01-jun-2007','dd-mon-yyyy'), 100 from dual union all
12 select 2, to_date('01-jul-2007','dd-mon-yyyy'), 70 from dual union all
13 select 2, to_date('01-aug-2007','dd-mon-yyyy'), 75 from dual union all
14 select 2, to_date('01-sep-2007','dd-mon-yyyy'), 100 from dual)
15 -- end of test data
16 select id
17 ,acc_opened
18 ,max(decode(fh_plus, 1, dt)) as spend_500_plus
19 ,max(decode(th_plus, 1, dt)) as spend_1000_plus
20 from (
21 select id, acc_opened, dt
22 ,CASE WHEN lag(tot) over (partition by id order by dt) < 500 AND tot >= 500 THEN 1 ELSE 0 END AS fh_plus
23 ,CASE WHEN lag(tot) over (partition by id order by dt) < 1000 AND tot >= 1000 THEN 1 ELSE 0 END AS th_plus
24 from (
25 select id
26 ,min(dt) over (partition by id order by id) as acc_opened
27 ,dt
28 ,sum(spend) over (partition by id order by dt) as tot
29 from t
30 )
31 )
32 group by id, acc_opened
33 order by id
34 /
ID ACC_OPENED SPEND_500_P SPEND_1000_
1 01-jan-2007 01-mar-2007 01-may-2007
2 01-feb-2007 01-aug-2007
SQL> -
Bug - Error when installing Oracle Rdb Extension (7.3)
Hi, hope I come to he right place to fill a bug report.
I'm getting an error message when trying to install the Oracle Rdb Extension (7.3).
Steps:
1. Download sqldeveloper 4
2. Unpack/Start sqldeveloper
3. Select from menu Help
-> Check for updates...
-> mark Oracle Extensions
-> click next button
-> mark Oracle Rdb Extension
-> click next button
-> click finish button.
-> At this point the error occures.
Error message details:
An error has occurred. Click Details for information that may be useful when diagnosing or reporting this problem.
java.lang.StringIndexOutOfBoundsException: String index out of range: 82
at java.lang.String.charAt(String.java:658)
at java.util.regex.Matcher.appendReplacement(Matcher.java:762)
at java.util.regex.Matcher.replaceAll(Matcher.java:906)
at java.lang.String.replaceAll(String.java:2162)
at oracle.ideimpl.webupdate.commandline.PreInstaller.replaceBundleInstallLocation(PreInstaller.java:239)
at oracle.ideimpl.webupdate.commandline.PreInstaller.getDesitinationDirIDE(PreInstaller.java:281)
at oracle.ideimpl.webupdate.commandline.PreInstaller.getDestinationDir(PreInstaller.java:250)
at oracle.ideimpl.webupdate.commandline.PreInstaller.seedInstaller(PreInstaller.java:180)
at oracle.ideimpl.webupdate.commandline.PreInstaller.commit(PreInstaller.java:120)
at oracle.ideimpl.webupdate.wizard.UpdateWizard.commit(UpdateWizard.java:296)
at oracle.ideimpl.webupdate.wizard.UpdateWizard.access$000(UpdateWizard.java:55)
at oracle.ideimpl.webupdate.wizard.UpdateWizard$1.commit(UpdateWizard.java:245)
at oracle.ide.wizard.FSMWizard.finishImpl(FSMWizard.java:902)
at oracle.ide.wizard.FSMWizard._validateFSMState(FSMWizard.java:643)
at oracle.ide.wizard.FSMWizard.doFinish(FSMWizard.java:351)
at oracle.bali.ewt.wizard.BaseWizard$Action$1.run(BaseWizard.java:4029)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:154)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:182)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:221)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:219)
at java.awt.Dialog.show(Dialog.java:1082)
at java.awt.Component.show(Component.java:1651)
at java.awt.Component.setVisible(Component.java:1603)
at java.awt.Window.setVisible(Window.java:1014)
at java.awt.Dialog.setVisible(Dialog.java:1005)
at oracle.bali.ewt.wizard.WizardDialog.runDialog(WizardDialog.java:382)
at oracle.bali.ewt.wizard.WizardDialog.runDialog(WizardDialog.java:298)
at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:51)
at oracle.ideimpl.webupdate.wizard.UpdateWizard.runWizard(UpdateWizard.java:261)
at oracle.ideimpl.webupdate.WebUpdateController.checkForUpdates(WebUpdateController.java:24)
at oracle.ideimpl.webupdate.WebUpdateController.handleEvent(WebUpdateController.java:31)
at oracle.ideimpl.controller.MetaClassController.handleEvent(MetaClassController.java:53)
at oracle.ide.controller.IdeAction$ControllerDelegatingController.handleEvent(IdeAction.java:1482)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:663)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:1153)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:618)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:708)
at java.awt.EventQueue$4.run(EventQueue.java:706)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
From Help->About
About
Oracle SQL Developer 4.0.0.13
Version 4.0.0.13
Build MAIN-13.80
IDE Version: 12.1.3.0.41.131202.1730
Product ID: oracle.sqldeveloper
Product Version: 12.2.0.13.80
Version
Component Version
========= =======
Oracle IDE 4.0.0.13.80
Java(TM) Platform 1.7.0_45
Extensions
Name Identifier Version Status Registration Time Initialization Time Total Time
==== ========== ======= ====== ================= =================== ==========
Integrated Development Environment (IDE) Platform Core oracle.ide 12.1.3.0.41.131202.1730 Fully Loaded 112ms 139ms 251ms
Peek oracle.ideimpl.peek 12.1.3.0.41.131202.1730 Fully Loaded 3ms 49ms 52ms
Code Editor oracle.ide.ceditor 12.1.3.0.41.131202.1730 Fully Loaded 19ms 57ms 76ms
Persistent Storage oracle.ide.persistence 12.1.3.0.41.131202.1730 Fully Loaded 0ms 4ms 4ms
File Change Monitor oracle.ide.file 12.1.3.0.41.131202.1730 Fully Loaded 0ms 5ms 5ms
Web Browser and Proxy oracle.ide.webbrowser 12.1.3.0.41.131202.1730 Fully Loaded 2ms 14ms 16ms
Indexing Service oracle.ide.indexing 12.1.3.0.41.131202.1730 Fully Loaded 1ms 2ms 3ms
Property Inspector oracle.ide.inspector 12.1.3.0.41.131202.1730 Fully Loaded 10ms 14ms 24ms
Markers oracle.ide.markers 12.1.3.0.41.131202.1730 Fully Loaded 1ms 0ms 1ms
Audit Core Framework oracle.ide.audit 12.1.3.0.41.131202.1730 Fully Loaded 3ms 14ms 17ms
Status and Background Audit oracle.ide.status 12.1.3.0.41.131202.1730 Fully Loaded 3ms 13ms 16ms
IDE macros oracle.ide.macros 12.1.3.0.41.131202.1730 Fully Loaded 1ms 0ms 1ms
Libraries oracle.ide.library 12.1.3.0.41.131202.1730 Fully Loaded 30ms 16ms 46ms
Virtual File System oracle.ide.vfs 12.1.3.0.41.131202.1730 Fully Loaded 1ms 2ms 3ms
Navigator oracle.ide.navigator 12.1.3.0.41.131202.1730 Fully Loaded 2ms 9ms 11ms
Runner oracle.ide.runner 12.1.3.0.41.131202.1730 Fully Loaded 6ms 9ms 15ms
External Tools oracle.ide.externaltools 12.1.3.0.41.131202.1730 Fully Loaded 3ms 3ms 6ms
File Support oracle.ide.files 12.1.3.0.41.131202.1730 Fully Loaded 2ms 0ms 2ms
Palette 2 oracle.ide.palette2 12.1.3.0.41.131202.1730 Fully Loaded 7ms 1ms 8ms
Insight oracle.ide.insight 12.1.3.0.41.131202.1730 Fully Loaded 6ms 3ms 9ms
Object Gallery oracle.ide.gallery 12.1.3.0.41.131202.1730 Fully Loaded 11ms 5ms 16ms
Import/Export Support oracle.ide.importexport 12.1.3.0.41.131202.1730 Fully Loaded 2ms 0ms 2ms
Technology oracle.jdeveloper.technology 12.1.3.0.41.131202.1730 Fully Loaded 5ms 2ms 7ms
Extended IDE Platform oracle.jdeveloper.common 12.1.3.0.41.131202.1730 Fully Loaded 19ms 22ms 41ms
JDeveloper Runner Core oracle.jdeveloper.runner.core 12.1.3.0.41.131202.1730 Fully Loaded 0ms 21ms 21ms
JavaCore oracle.jdeveloper.java.core 12.1.3.0.41.131202.1730 Fully Loaded 18ms 29ms 47ms
JDeveloper Runner oracle.jdeveloper.runner 12.1.3.0.41.131202.1730 Fully Loaded 12ms 115ms 127ms
Code Editor Save Actions oracle.ide.ceditor-saveactions 12.1.3.0.41.131202.1730 Fully Loaded 2ms 3ms 5ms
Oracle Deployment Core Module oracle.deploy.core 12.1.3.0.41.131202.1730 Fully Loaded 4ms 14ms 18ms
Make and Rebuild oracle.jdeveloper.build 12.1.3.0.41.131202.1730 Fully Loaded 12ms 7ms 19ms
PL/SQL Probe Debugger oracle.jdeveloper.db.debug.probe 12.1.3.0.41.131202.1730 Fully Loaded 0ms 0ms 0ms
Database UI oracle.ide.db 12.1.3.0.41.131202.1730 Fully Loaded 18ms 53ms 71ms
Database Connections oracle.jdeveloper.db.connection 12.1.3.0.41.131202.1730 Fully Loaded 5ms 28ms 33ms
Database Object Explorers oracle.ide.db.explorer 12.1.3.0.41.131202.1730 Fully Loaded 0ms 12ms 12ms
Compare API oracle.ide.compareapi 12.1.3.0.41.131202.1730 Fully Loaded 3ms 0ms 3ms
Help System oracle.ide.help 12.1.3.0.41.131202.1730 Fully Loaded 8ms 4ms 12ms
Local History oracle.ide.localhistory 12.1.3.0.41.131202.1730 Fully Loaded 0ms 133ms 133ms
History Support oracle.jdeveloper.history 12.1.3.0.41.131202.1730 Fully Loaded 8ms 21ms 29ms
Check For Updates oracle.ide.webupdate 12.1.3.0.41.131202.1730 Fully Loaded 3ms 2ms 5ms
Core Database Development oracle.sqldeveloper 12.2.0.13.80 Fully Loaded 45ms 437ms 482ms
SQL Worksheet oracle.sqldeveloper.worksheet 12.2.0.13.80 Fully Loaded 10ms 24ms 34ms
Database Reports oracle.sqldeveloper.report 12.2.0.13.80 Fully Loaded 3ms 12ms 15ms
Oracle SQL Developer Data Modeler - Reports oracle.sqldeveloper.datamodeler_reports 12.2.0.13.80 Fully Loaded 0ms 0ms 0ms
Replace With oracle.ide.replace 12.1.3.0.41.131202.1730 Triggers Loaded 1ms 0ms 1ms
JViews Registration Addin oracle.diagram.registration 12.1.3.0.41.131202.1730 Triggers Loaded 0ms 0ms 0ms
Log Window oracle.ide.log 12.1.3.0.41.131202.1730 Fully Loaded 1ms 0ms 1ms
Oracle SQL Developer - File Navigator oracle.sqldeveloper.filenavigator 12.2.0.13.80 Triggers Loaded 4ms 0ms 4ms
Oracle SQL Developer - Migrations T-SQL Translator oracle.sqldeveloper.migration.translation.core 12.2.0.13.80 Fully Loaded 0ms 0ms 0ms
Oracle SQL Developer - Extras oracle.sqldeveloper.extras 12.2.0.13.80 Fully Loaded 2ms 65ms 67ms
Third Party Database Development oracle.sqldeveloper.thirdparty.browsers 12.2.0.13.80 Fully Loaded 0ms 8ms 8ms
Oracle SQL Developer - Migrations Core oracle.sqldeveloper.migration 12.2.0.13.80 Fully Loaded 8ms 67ms 75ms
Oracle SQL Developer - Migrations MySQL oracle.sqldeveloper.migration.mysql 12.2.0.13.80 Triggers Loaded 0ms 0ms 0ms
TimesTen Integration oracle.ide.db.timesten 12.1.3.0.41.131202.1730 Fully Loaded 0ms 0ms 0ms
Help Oracle Start Page oracle.ide.helpstartpage 12.1.3.0.41.131202.1730 Fully Loaded 3ms 0ms 3ms
Versioning Support oracle.ide.vcscore 12.1.3.0.41.131202.1730 Triggers Loaded 2ms 0ms 2ms
Patch Support oracle.jdeveloper.patch 12.1.3.0.41.131202.1730 Triggers Loaded 3ms 0ms 3ms
IDE Thumbnail oracle.ide.thumbnail 12.1.3.0.41.131202.1730 Triggers Loaded 1ms 0ms 1ms
VHV oracle.ide.vhv 12.1.3.0.41.131202.1730 Triggers Loaded 0ms 0ms 0ms
QuickDiff oracle.ide.quickdiff 12.1.3.0.41.131202.1730 Triggers Loaded 0ms 0ms 0ms
Versioning Support oracle.jdeveloper.vcs 12.1.3.0.41.131202.1730 Triggers Loaded 1ms 0ms 1ms
Oracle SQL Developer - Migrations MySQL SQL Translator oracle.sqldeveloper.migration.translation.mysql_translator 12.2.0.13.80 Triggers Loaded 0ms 0ms 0ms
Oracle SQL Developer - Security oracle.sqldeveloper.security 12.2.0.13.80 Triggers Loaded 0ms 0ms 0ms
Component Palette oracle.ide.palette1 12.1.3.0.41.131202.1730 Fully Loaded 7ms 0ms 7ms
Oracle SQL Developer - Unit Test oracle.sqldeveloper.unit_test 12.2.0.13.80 Triggers Loaded 4ms 0ms 4ms
Oracle SQL Developer - Migrations Application Migration oracle.sqldeveloper.migration.application 12.2.0.13.80 Triggers Loaded 1ms 0ms 1ms
Oracle SQL Developer - Migrations PostgreSQL oracle.sqldeveloper.migration.postgresql 12.2.0.13.80 Triggers Loaded 0ms 0ms 0ms
Code Editor Find oracle.ide.ceditor-find 12.1.3.0.41.131202.1730 Fully Loaded 2ms 0ms 2ms
Oracle SQL Developer - RESTful Services Administration oracle.sqldeveloper.rest 12.2.0.13.80 Triggers Loaded 2ms 0ms 2ms
Oracle SQL Developer - Change Mangement oracle.sqldeveloper.em_cm 12.2.0.13.80 Fully Loaded 2ms 5ms 7ms
Versioning Support for Subversion oracle.jdeveloper.subversion 12.1.3.0.41.131202.1730 Triggers Loaded 4ms 0ms 4ms
Oracle SQL Developer - Migrations Translation UI oracle.sqldeveloper.migration.translation.gui 12.2.0.13.80 Triggers Loaded 1ms 0ms 1ms
Oracle SQL Developer Data Modeler oracle.datamodeler 4.0.0.833 Triggers Loaded 29ms 0ms 29ms
Oracle SQL Developer - Migrations DB2 Translator oracle.sqldeveloper.migration.translation.db2 12.2.0.13.80 Triggers Loaded 0ms 0ms 0ms
Oracle SQL Developer - Migrations Microsoft SQL Server oracle.sqldeveloper.migration.sqlserver 12.2.0.13.80 Triggers Loaded 0ms 0ms 0ms
Oracle SQL Developer - Migrations Teradata SQL Translator oracle.sqldeveloper.migration.translation.teradata 12.2.0.13.80 Triggers Loaded 0ms 0ms 0ms
Oracle SQL Developer - Real Time SQL Monitoring oracle.sqldeveloper.sqlmonitor 12.2.0.13.80 Triggers Loaded 3ms 0ms 3ms
Oracle SQL Developer - Database Cart oracle.sqldeveloper.dbcart 12.2.0.13.80 Triggers Loaded 1ms 0ms 1ms
Bookmarks oracle.ide.bookmarks 12.1.3.0.41.131202.1730 Fully Loaded 6ms 4ms 10ms
Code Editor Tint oracle.ide.ceditor-tint 12.1.3.0.41.131202.1730 Fully Loaded 2ms 0ms 2ms
Oracle SQL Developer - DBA Navigator oracle.sqldeveloper.dbanavigator 12.2.0.13.80 Fully Loaded 3ms 108ms 111ms
Oracle SQL Developer - TimesTen oracle.sqldeveloper.timesten 12.2.0.13.80 Fully Loaded 1ms 38ms 39ms
Protocol Handler Classpath oracle.jdeveloper.classpath 12.1.3.0.41.131202.1730 Fully Loaded 1ms 0ms 1ms
BM Share oracle.bm.jdukshare 12.1.3.0.41.131202.1730 Triggers Loaded 0ms 0ms 0ms
MOF XMI oracle.mof.xmi 12.1.3.0.41.131202.1730 Triggers Loaded 0ms 0ms 0ms
Database Snippets oracle.sqldeveloper.snippet 12.2.0.13.80 Fully Loaded 0ms 7ms 7ms
Usage Tracking oracle.ide.usages-tracking 12.1.3.0.41.131202.1730 Fully Loaded 0ms 1ms 1ms
ToDo Tasks Markers oracle.jdeveloper.markers.todo 12.1.3.0.41.131202.1730 Fully Loaded 1ms 0ms 1ms
Versioning Support for Git oracle.jdeveloper.git 12.1.3.0.41.131202.1730 Triggers Loaded 4ms 0ms 4ms
Oracle SQL Developer - Migrations Teradata oracle.sqldeveloper.migration.teradata 12.2.0.13.80 Triggers Loaded 1ms 0ms 1ms
Searchbar oracle.ide.searchbar 12.1.3.0.41.131202.1730 Fully Loaded 2ms 0ms 2ms
(Name Unavailable) oracle.sqldeveloper.tuning 12.2.0.13.80 Triggers Loaded 3ms 0ms 3ms
Dependency Tracking oracle.ide.dependency 12.1.3.0.41.131202.1730 Fully Loaded 0ms 0ms 0ms
Code Style oracle.jdeveloper.style 12.1.3.0.41.131202.1730 Fully Loaded 3ms 12ms 15ms
XML Editing Framework oracle.ide.xmlef 12.1.3.0.41.131202.1730 Fully Loaded 18ms 55ms 73ms
Mac OS X Adapter oracle.ideimpl.apple 12.1.3.0.41.131202.1730 Fully Loaded 0ms 0ms 0ms
Diagram Framework oracle.diagram 12.1.3.0.41.131202.1730 Triggers Loaded 4ms 0ms 4ms
OLAP oracle.olap 12.2.0.13.80 Fully Loaded 10ms 324ms 334ms
Database UI Extras oracle.jdeveloper.db.extras 12.1.3.0.41.131202.1730 Triggers Loaded 0ms 0ms 0ms
Oracle SQL Developer - Migrations Sybase Adaptive Server oracle.sqldeveloper.migration.sybase 12.2.0.13.80 Triggers Loaded 0ms 0ms 0ms
Oracle SQL Developer - Migrations Microsoft Access oracle.sqldeveloper.migration.msaccess 12.2.0.13.80 Triggers Loaded 0ms 0ms 0ms
Database XML Schema oracle.sqldeveloper.xmlschema 12.2.0.13.80 Fully Loaded 0ms 0ms 0ms
Oracle SQL Developer - APEX Listener Administration oracle.sqldeveloper.listener 12.2.0.13.80 Triggers Loaded 3ms 0ms 3ms
Oracle SQL Developer - Scheduler oracle.sqldeveloper.scheduler 12.2.0.13.80 Fully Loaded 0ms 134ms 134ms
Oracle SQL Developer - Spatial oracle.sqldeveloper.spatial 12.2.0.13.80 Triggers Loaded 2ms 0ms 2ms
Oracle SQL Developer - Schema Browser oracle.sqldeveloper.schemabrowser 12.2.0.13.80 Triggers Loaded 1ms 0ms 1ms
Code Editor Bookmarks oracle.ide.ceditor-bookmarks 12.1.3.0.41.131202.1730 Fully Loaded 0ms 7ms 7ms
Oracle SQL Developer - Migrations DB2 oracle.sqldeveloper.migration.db2 12.2.0.13.80 Triggers Loaded 0ms 0ms 0ms
Data Miner oracle.dmt.dataminer 12.2.0.13.80 Triggers Loaded 12ms 0ms 12ms
Print System oracle.ide.print 12.1.3.0.41.131202.1730 Triggers Loaded 2ms 0ms 2msI'm getting an error message when trying to install the Oracle Rdb Extension (7.3).
I'm not sure if that extension has been upgraded for sql developer 4. Extensions written for previous versions won't work in sql developer 4 - they need to be modified to support the OSGI framework.
Leave the thread open until one of the sql developer team members can answer this.
Here is the note from the sql developer exchange home page
http://www.oracle.com/technetwork/developer-tools/sql-developer/extensions-083825.html
Special Note Regarding Extensions Developed Prior to SQL Developer
v4.0:
With the new release of SQL
Developer 4.0, an extension that was written for a previous version of SQL
Developer will no longer work. SQL Developer is built on the JDeveloper
Framework. We have updated the framework to be current with the JDeveloper 12c
release. With JDeveloper 11gR2, they switched to an OSGI framework. The JDeveloper team has published instructions for updating your extensions to be compatible with
the new framework and SQL Developer v4.0.
The Check for Updates interface
has been updated to hide any 3rd party extensions to avoid confusion with
extensions not loading. Once you have updated your extension for version 4 and
beyond, let us know, and we'll update the system to make it available again. For
questions regarding the process of going from the old to new framework, we have
started a dedicated
thread on the Forums. You can also email the Product Manager, Jeff Smith, to
setup a call with one of our developers for additional assistance.
As that note says if that extension is NOT for version 4 it shouldn't show up on the list of updates. -
Prob in sql application forgotten paword
I dont have much idea how to set the sql.
i forgotten my password how i will set the pasword fro the sql application please tell me.got it prob is there only i am having only application acces not db.thats why cant login as sqlplus "/as sysdba"
-
Hi frnds,
These many days i was using toad in my office and am very much comfortable with it.But now am forced to use SQLDeveloper.
When am using Toad, whenever i want to change the data i would just press F4 on table name and a window appears and then change in it directly so that i no need to write a update statement to modify the data..
where as in SQLDeveloper am not finding a source to do like that ...
can any1 please tell me wheater its possible in SQLDeveloper
Thanks in Advance...>
but am not getting help in that so changed to this...
If u know just give the info...
>
Re: Having prob in sql developer... -
Hi All,
Has anyone seen sample TCL code for probing a generic SQL server?
Thanks,
DaveYou can use the following configuration:
probe tcp MS-SQL
description TO-RBSQL1
ip address 10.15.160.3
port 1433
interval 2
faildetect 2
passdetect interval 2
passdetect count 2
rserver host RBWEB1
ip address 10.15.177.11
rserver host RBWEB3
ip address 10.15.177.13
inservice
serverfarm host RBWEB
description TO-VLAN-177-RBWEB-SERVERS
predictor leastconns
probe WWW-RISKBROWSER
probe PING
rserver RBWEB1
rserver RBWEB3
inservice
And also you can use the command sh probe MS-SQL, to know probe association probed-address probes health. Sure that the server respond or responded with a RST. -
Prob in using rank in pl/sql ,need logic same of rank function in any way
I have a query as of the following <br>
<br>
SELECT sr_no,cod_acct_no,dat_arrears_due,amt_arrear_due<br>
FROM ( select cod_acct_no,dat_arrears_due,sum(amt_arrears_due) <br>amt_arrear_due,rank() over (partition by cod_acct_no order by <br>dat_arrears_due asc) sr_no<br>
from arrears_table <br>
where amt_arrears_due > 0<br>
and dat_arrears_due <= to_date('31/10/2006','dd/mm/yyyy')<br>
and COD_ARREAR_TYPE = 'C'<br>
group by cod_acct_no,dat_arrears_due<br>
) Z <br>
WHERE z.sr_no <=5 <br>
<br>
I have to use this in a cursor in pl/sql but because i have rank analytic function <br>
I am facing a compilation error ORA-06550: error <br>
<br>
Can you give me a logic which gives same output as of above <br>
<br>
Regards<br>
vamsi krishna<br>
<br>
<br>[1]: (Error): ORA-06550: line 5, column 28: PLS-00103: Encountered the <br>symbol "(" when expecting one of the following: , from <br>
<br>
My oracle version is <br>
Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production<br>
PL/SQL Release 8.1.6.0.0 - Production<br>
CORE 8.1.6.0.0 Production<br>
TNS for 32-bit Windows: Version 8.1.6.0.0 - Production<br>
NLSRTL Version 3.4.1.0.0 - Production<br>
<br>I think it is comming for rank function it self <br>
<br> will this version support analytic (rank) function's in pl/sql cursors<br>
Regards<br>
vamsi krishna<br> -
Hi All,
DB:oracle 9i R2
OS:sun solaris 8
Below is the Sql Query taking very long time to complete
Could any one help me out regarding this.
SELECT MAX (md1.ID) ID, md1.request_id, md1.jlpp_transaction_id,
md1.transaction_version
FROM transaction_data_arc md1
WHERE md1.transaction_name = :b2
AND md1.transaction_type = 'REQUEST'
AND md1.message_type_code = :b1
AND NOT EXISTS (
SELECT NULL
FROM transaction_data_arc tdar2
WHERE tdar2.request_id = md1.request_id
AND tdar2.jlpp_transaction_id != md1.jlpp_transaction_id
AND tdar2.ID > md1.ID)
GROUP BY md1.request_id,
md1.jlpp_transaction_id,
md1.transaction_version
Any alternate query to get the same results?
kindly let me know if any one knows.
regards,
kk.
Edited by: kk001 on Apr 28, 2011 4:09 PMThis SQL performance question should go to the SQL forum.
PL/SQL
Before repost please check the FAQ post.
http://forums.oracle.com/forums/ann.jspa?annID=1535
especially
3. How can improve the performance of my query? / My query is running slow.
SQL and PL/SQL FAQ
HTH, Zoltan
ah found that you did post it earlier there too:
Re: Sql Query taking very long time to complete
why did you repost?
why did not post answer for available indexes, description, explain plan?
did you read tuning request help/faq?
Edited by: Kecskemethy on Apr 28, 2011 4:34
Added repost link and questions. -
Probs Debugging PL/SQL proc JDev903
Im trying to debug PL/SQL functions in JDeveloper 9.0.3.
Issue N1. In Run PL/SQL window JDev adds schema name to my function and PL/SQL block fails to compile. Im manually deleting prefix from my function and block is compiled successfully.
Then an error happened: PLS-00302: component 'JDEV_TMP_PROC_1' must be declared
Please advice
Debugger attempting to connect to database.
Executing PL/SQL: ALTER SESSION SET PLSQL_DEBUG=TRUE
Executing PL/SQL: DECLARE
id VARCHAR2( 30 );
BEGIN
id := DBMS_DEBUG.initialize( '24.27.75.30:1036303964414', 1 );
DBMS_DEBUG.debug_on( TRUE );
END;
Debugger connected to database.
Deadlock detection is not supported by the debuggee virtual machine.
Executing PL/SQL: BEGIN MY_SCHEMA."JDEV_TMP_PROC_1"(); END;
ORA-06550: line 1, column 11:
PLS-00302: component 'JDEV_TMP_PROC_1' must be declared
ORA-06550: line 1, column 7:JDev can debug with Oracle 8.1.7 or later.
Is the PL/SQL you want to debug in the same schema as you are connecting? Because you mentioned schema names, I wonder if there may be a bug with trying to debug PL/SQL in a schema other than the one you are connected to. If so, can you try creating connection as the owner of the PL/SQL and see if that works?
Thanks!
-- Brian (JDev Team) -
SQL Server 2000 connectivity probs
hi frnds
i wanna do the database connectivity with Microsoft SQL Server 2000 and for this i got the driver from the site of Microsoft ,named Microsoft SQL Server 2000 JDBC Driver .
But on testing this driver i am getting the following errors which shows the compiler isnt getting the driver class for connectivity..please do guide me about this...what can be the possible solution.
Exception in thread "main" java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at Main.main(Main.java:21)
please reply ASAP
thanks n regards
Melindano i am not calling the createStatement.
this is the code i am using to test the driver
import java.sql.*;
* Microsoft SQL Server JDBC test program
public class Main {
public static void main (String args[]) throws Exception {
// Get connection
//DriverManager.registerDriver(new
// com.microsoft.jdbc.sqlserver.SQLServerDriver());
Driver d = (Driver)Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
Connection connection = DriverManager.getConnection(
"jdbc:microsoft:sqlserver://local:1433","sa","sa");
if (connection != null) {
System.out.println();
System.out.println("Successfully connected");
System.out.println();
// Meta data
DatabaseMetaData meta = connection.getMetaData();
System.out.println("\nDriver Information");
System.out.println("Driver Name: "
+ meta.getDriverName());
System.out.println("Driver Version: "
+ meta.getDriverVersion());
System.out.println("\nDatabase Information ");
System.out.println("Database Name: "
+ meta.getDatabaseProductName());
System.out.println("Database Version: "+
meta.getDatabaseProductVersion());
n this is the error that i m getting now
Exception in thread "main" java.lang.ClassNotFoundException: com.microsoft.jdbc.
sqlserver.SQLServerDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at Main.main(Main.java:18) -
Probs with XMLParser for PL/SQL
Oracle 8.1.6, Solaris.
XMLParser v 1.0.2.
While loading the java archive named xmlparserv2.jar with the loadjava command, I constantly get the message
ORA-29547: Java system class not available: oracle/aurora/rdbms/Compiler
for some classes
can somebody tell me why?
I've pointed my CLASSPATH to the aurora.zip archive, but it won't work!
Please help, thanx!It sounds like you have not properly run initjvm.sql to initialize the Oracle 8i JVM.
This needs to be done first before LoadJava will work.
Oracle XML Team
null -
Hi,
how can i put an attribute to my root node like this? in PL/SQL
<?xml version='1.0'>
<ROOT xmlns = 'schema.xsd'> <-------
</ROOT>
ThanksClarification:
I am in fact trying to use xmldom.replaceChild().
The scenario I'm trying to implement is as follows.
- Extract a master xml based on some query
- Parse master xml and get master DOM tree
- For each node of specific type in this DOM tree
a) Extract detail XML based on another query
b) Parse detail xml and get detail DOM tree
c) Replace corresponding node in master DOM tree with node from detail DOM tree.
- Return the merged XML by extracting from the master DOM tree
The reason I'm doing this is that I cannot generate the whole master-detail XML at once due to the following error:
ORA-29532: Java call terminated by uncaught Java exception: oracle.jdbc.driver.OracleSQLException: ORA-22813: operand value exceeds system limits
I'm using DBMS_XMLQUERY to try and generate the XML. The underlying SQL query is very complex with 4 levels of nested cast(multiset (select...)some_type) constructs. I'm unable to figure out what "system limits" are exceeded and therefore forced to re-structure the original query and implement the "master-detail prune&graft" workaround scenario described above.
Maybe you are looking for
-
Test java applet not working in ie8
I'm new to Java and I'm doing some tutorials from a Java programming book. I created an HTML document with the following applet code: <applet name="HelloWeb" code="HelloWeb.class" width=150 height=100> </applet> It's a simple document meant to test a
-
What is the use of dropdown box in wad in bi-7
what is the use of dropdown box in wad in bi-7
-
some PDFs which are displayed in iTunes (and work correctly in iTunes) are shown on the iPad as blank sheets - i think it is a problem of ibooks
-
Newsbie : JTable relate to database
Dear all: I want to write a program , which display all database record in the JTable I dont know how to start as I am fresh . so that anyone help. getter thank
-
Automatic whole object selection with lasso or magic wand tool.
Here I have a circle pattern, all the fills are the same, all have the same appearance, when I try selecting all the internal scattered objects with the lasso tool, it only partially selects them, its slow getting around their borders while trying no