Migration issue in SQL Developer (from SQL Server to Oracle)
Dear All,
I am using SQL Developer 3.0 to migrate data from SQL Server 2008 to Oracle 11gR2. I used Quick Migration Wizard for migrating and everything was Ok but when it was running migration process, I got this message: “Migration actions have failed. Check the migration reports for details. : null”
But there was not any report to check. Does anyone know how I can do it without any problem?
Thanks in advance.
I am working on a project to migrate from SQL Server 2008 to Oracle 11gR2. It includes some tables, views, indexes, triggers and store procedures. At first I worked on SQL Developer 2.1.1.64 but it doesn’t support SQL Server 2008 (I had to use SQL Server 2005 in its offline options). I got a lot of error when I used the offline options. I know that I may be having some problem in table or view definition in my SQL Server but if I don’t have any log file I can’t solve them.
Unfortunately, in SQL Developer 3.0 there isn’t any option to generate a SQL comments from objects (convert to Oracle) because I need to rewrite comments if they have problem. For example I have a filed named USER that it’s a reserved word in Oracle so I have to change this field name.
I also can’t use “Translation Scratch Editor” because it has some error to convert. For example when I use it for the following code:
CREATE TABLE [dbo].[Table1](
[ID1] [int] IDENTITY(1,1) NOT NULL,
[Name1] [varchar](50) NULL,
CONSTRAINT [PK_Table1] PRIMARY KEY CLUSTERED
[ID1] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
CREATE TABLE [dbo].[Table2](
[ID2] [int] IDENTITY(1,1) NOT NULL,
[Name1] [varchar](50) NULL,
CONSTRAINT [PK_Table2] PRIMARY KEY CLUSTERED
[ID2] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
I receive a wrong code like this:
CREATE SEQUENCE Table1_ID1
START WITH 1
INCREMENT BY 1;
CREATE TABLE Table1
ID1 NUMBER(10,0) NOT NULL,
Name1 VARCHAR2(50) ,
CONSTRAINT PK_Table1 PRIMARY KEY( ID1 )
CREATE OR REPLACE TRIGGER Table1_ID1_TRG
BEFORE INSERT
ON Table1
FOR EACH ROW
BEGIN
SELECT Table1_ID1.NEXTVAL INTO :NEW.ID1
FROM DUAL;
END;
CREATE SEQUENCE Table1_ID1
START WITH 1
INCREMENT BY 1;
CREATE SEQUENCE Table2_ID2
START WITH 1
INCREMENT BY 1;
CREATE TABLE Table2
ID2 NUMBER(10,0) NOT NULL,
Name1 VARCHAR2(50) ,
CONSTRAINT PK_Table2 PRIMARY KEY( ID2 )
CREATE OR REPLACE TRIGGER Table1_ID1_TRG
BEFORE INSERT
ON Table1
FOR EACH ROW
BEGIN
SELECT Table1_ID1.NEXTVAL INTO :NEW.ID1
FROM DUAL;
ENDCREATE OR REPLACE TRIGGER Table2_ID2_TRG
BEFORE INSERT
ON Table2
FOR EACH ROW
BEGIN
SELECT Table2_ID2.NEXTVAL INTO :NEW.ID2
FROM DUAL;
END;
Similar Messages
-
Error while running SQL Developer from a network drive.
I get following error when I start SQL Developer from an un-mapped network drive
java.lang.NoClassDefFoundError: oracle/classloader/util/AnnotatedNoClassDefFoundError
at oracle.dmt.dataminer.mviewer.dtree.DecisionTreeEditorAddin.getEditorWeight(Unknown Source)
at oracle.ideimpl.editor.EditorAddinRegistry.getAddinsImpl(EditorAddinRegistry.java:182)
at oracle.ideimpl.editor.EditorAddinRegistry.getAddins(EditorAddinRegistry.java:154)
at oracle.ideimpl.editor.EditorManagerImpl.getAddins(EditorManagerImpl.java:828)
at oracle.ideimpl.editor.TabGroupState.loadStateInfo(TabGroupState.java:958)
at oracle.ideimpl.editor.TabGroup.loadLayout(TabGroup.java:1959)
at oracle.ideimpl.editor.TabGroupXMLLayoutPersistence.loadComponent(TabGroupXMLLayoutPersistence.java:31)
at oracle.ideimpl.controls.dockLayout.DockLayoutInfoLeaf.loadLayout(DockLayoutInfoLeaf.java:123)
at oracle.ideimpl.controls.dockLayout.AbstractDockLayoutInfoNode.loadLayout(AbstractDockLayoutInfoNode.java:631)
at oracle.ideimpl.controls.dockLayout.AbstractDockLayoutInfoNode.loadLayout(AbstractDockLayoutInfoNode.java:628)
at oracle.ideimpl.controls.dockLayout.AbstractDockLayoutInfoNode.loadLayout(AbstractDockLayoutInfoNode.java:614)
at oracle.ideimpl.controls.dockLayout.DockLayout.loadLayout(DockLayout.java:302)
at oracle.ideimpl.controls.dockLayout.DockLayoutPanel.loadLayout(DockLayoutPanel.java:128)
at oracle.ideimpl.editor.Desktop.loadLayout(Desktop.java:406)
at oracle.ideimpl.editor.Desktop.loadLayout(Desktop.java:430)
at oracle.ideimpl.editor.EditorManagerImpl.init(EditorManagerImpl.java:2022)
at oracle.ide.layout.Layouts.activate(Layouts.java:814)
at oracle.ide.layout.Layouts.activateLayout(Layouts.java:195)
at oracle.ideimpl.MainWindowImpl$6.runImpl(MainWindowImpl.java:728)
at oracle.javatools.util.SwingClosure$1Closure.run(SwingClosure.java:50)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Below I am also attaching the long console log if I run
\\mt000xvrpt91\tools\SQLDeveloper\sqldeveloper\bin\sqldeveloper.exe
One thing I noticed in that log is the file path
file:////mt000xvrpt91/tools/SQLDeveloper/ide/extensions/oracle.ide.db.jar
that is wrong it should be file://///mt000xvrpt91/tools/SQLDeveloper/ide/extensions/oracle.ide.db.jar
ie, 5 "/" after "file:" instead of 4 "/"
If I run SQL developer after Mapping the network drive to "S" I get following.
S:\SQLDeveloper\sqldeveloper\bin>sqldeveloper
Registered TimesTen
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: S:\SQLDeveloper\sqldeveloper\extensions\oracle.datamodeler\log\datamodeler.log (Access is denied)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:273)
at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:156)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:152)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:210)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:140)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:153)
at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:415)
at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:384)
at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:783)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:666)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:113)
at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:697)
at oracle.dbtools.crest.util.logging.Logger.init(Unknown Source)
at oracle.dbtools.crest.util.logging.Logger.<init>(Unknown Source)
at oracle.dbtools.crest.fcp.DataModelerAddin.<clinit>(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at oracle.ideimpl.extension.AddinManagerImpl.createAddin(AddinManagerImpl.java:433)
at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins(AddinManagerImpl.java:212)
at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(AddinManagerImpl.java:128)
at oracle.ide.IdeCore.initProductAndUserAddins(IdeCore.java:1949)
at oracle.ide.IdeCore.startupImpl(IdeCore.java:1573)
at oracle.ide.Ide.startup(Ide.java:703)
at oracle.ideimpl.DefaultIdeStarter.startIde(DefaultIdeStarter.java:35)
at oracle.ideimpl.Main.start(Main.java:184)
at oracle.ideimpl.Main.main(Main.java:146)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.ide.boot.PCLMain.callMain(PCLMain.java:62)
at oracle.ide.boot.PCLMain.main(PCLMain.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.classloader.util.MainClass.invoke(MainClass.java:128)
at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain(IdeLauncher.java:189)
at oracle.ide.boot.IdeLauncher.launchImpl(IdeLauncher.java:89)
at oracle.ide.boot.IdeLauncher.launch(IdeLauncher.java:65)
at oracle.ide.boot.IdeLauncher.main(IdeLauncher.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.ide.boot.Launcher.invokeMain(Launcher.java:713)
at oracle.ide.boot.Launcher.launchImpl(Launcher.java:115)
at oracle.ide.boot.Launcher.launch(Launcher.java:68)
at oracle.ide.boot.Launcher.main(Launcher.java:57)
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: S:\SQLDeveloper\sqldeveloper\extensions\oracle.datamodeler\log\datamodeler.log (Access is denied)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:273)
at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:156)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:152)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:210)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:140)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:153)
at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:415)
at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:384)
at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:783)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:666)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602)
at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:697)
at oracle.dbtools.crest.util.logging.Logger.init(Unknown Source)
at oracle.dbtools.crest.util.logging.Logger.<init>(Unknown Source)
at oracle.dbtools.crest.fcp.DataModelerAddin.<clinit>(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at oracle.ideimpl.extension.AddinManagerImpl.createAddin(AddinManagerImpl.java:433)
at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins(AddinManagerImpl.java:212)
at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(AddinManagerImpl.java:128)
at oracle.ide.IdeCore.initProductAndUserAddins(IdeCore.java:1949)
at oracle.ide.IdeCore.startupImpl(IdeCore.java:1573)
at oracle.ide.Ide.startup(Ide.java:703)
at oracle.ideimpl.DefaultIdeStarter.startIde(DefaultIdeStarter.java:35)
at oracle.ideimpl.Main.start(Main.java:184)
at oracle.ideimpl.Main.main(Main.java:146)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.ide.boot.PCLMain.callMain(PCLMain.java:62)
at oracle.ide.boot.PCLMain.main(PCLMain.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.classloader.util.MainClass.invoke(MainClass.java:128)
at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain(IdeLauncher.java:189)
at oracle.ide.boot.IdeLauncher.launchImpl(IdeLauncher.java:89)
at oracle.ide.boot.IdeLauncher.launch(IdeLauncher.java:65)
at oracle.ide.boot.IdeLauncher.main(IdeLauncher.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.ide.boot.Launcher.invokeMain(Launcher.java:713)
at oracle.ide.boot.Launcher.launchImpl(Launcher.java:115)
at oracle.ide.boot.Launcher.launch(Launcher.java:68)
at oracle.ide.boot.Launcher.main(Launcher.java:57)
===================================================================
Console Log if I run
\\mt000xvrpt91\tools\SQLDeveloper\sqldeveloper\bin\sqldeveloper.exe
========================================================================
Mar 30, 2011 4:36:37 PM javax.ide.extension.spi.DefaultElementContext getMacroValue
SEVERE: jar:/file:////mt000xvrpt91/tools/SQLDeveloper/ide/extensions/oracle.ide.db.jar!/META-INF/extension.xml:22: Unable to find resource bundle class: oracle.ideimpl.db.resource.UIBundle
Mar 30, 2011 4:36:37 PM javax.ide.extension.spi.DefaultElementContext getMacroValue
SEVERE: jar:/file:////mt000xvrpt91/tools/SQLDeveloper/ide/extensions/oracle.ide.db.jar!/META-INF/extension.xml:23: Unable to find resource bundle class: oracle.ideimpl.db.resource.UIBundle
Mar 30, 2011 4:36:37 PM javax.ide.extension.spi.DefaultElementContext getMacroValue
SEVERE: jar:/file:////mt000xvrpt91/tools/SQLDeveloper/ide/extensions/oracle.ide.db.jar!/META-INF/extension.xml:26: Unable to find resource bundle class: oracle.ideimpl.db.resource.UIBundle
Mar 30, 2011 4:36:37 PM javax.ide.extension.spi.DefaultElementContext getMacroValue
SEVERE: jar:/file:////mt000xvrpt91/tools/SQLDeveloper/ide/extensions/oracle.ide.db.jar!/META-INF/extension.xml:26: Unable to find resource bundle class: oracle.ideimpl.db.resource.UIBundle
Mar 30, 2011 4:36:37 PM javax.ide.extension.spi.DefaultElementContext getMacroValue
SEVERE: jar:/file:////mt000xvrpt91/tools/SQLDeveloper/ide/extensions/oracle.ide.db.jar!/META-INF/extension.xml:43: Unable to find resource bundle class: oracle.ideimpl.db.resource.UIBundle
Mar 30, 2011 4:36:37 PM javax.ide.extension.spi.DefaultElementContext getMacroValue
SEVERE: jar:/file:////mt000xvrpt91/tools/SQLDeveloper/ide/extensions/oracle.ide.db.jar!/META-INF/extension.xml:46: Unable to find resource bundle class: oracle.ideimpl.db.resource.UIBundle
Mar 30, 2011 4:36:37 PM javax.ide.extension.spi.DefaultElementContext getMacroValue
SEVERE: jar:/file:////mt000xvrpt91/tools/SQLDeveloper/ide/extensions/oracle.ide.db.jar!/META-INF/extension.xml:50: Unable to find resource bundle class: oracle.ideimpl.db.resource.UIBundle
Mar 30, 2011 4:36:38 PM javax.ide.extension.spi.SAXManifestParser$Handler endElement
SEVERE: jar:/file:////mt000xvrpt91/tools/SQLDeveloper/sqldeveloper/extensions/oracle.sqldeveloper.jar!/META-INF/extension.xml:316: Exception processing manifest: oracle.classloader.util.AnnotatedNoClassDefFoundError:
Missing class: oracle.dbtools.raptor.controls.grid.IRaptorGridModel
Dependent class: oracle.dbtools.raptor.controls.grid.IResultSetTableModel
Loader: ide-global:11.1.1.0.0
Code-Source: //mt000xvrpt91/tools/SQLDeveloper/sqldeveloper/extensions/oracle.sqldeveloper.jar
Configuration: extension jar in \\mt000xvrpt91\tools\SQLDeveloper\sqldeveloper\extensions
The missing class is not available from any code-source or loader in the system.
oracle.classloader.util.AnnotatedNoClassDefFoundError:
Missing class: oracle.dbtools.raptor.controls.grid.IRaptorGridModel
Dependent class: oracle.dbtools.raptor.controls.grid.IResultSetTableModel
Loader: ide-global:11.1.1.0.0
Code-Source: //mt000xvrpt91/tools/SQLDeveloper/sqldeveloper/extensions/oracle.sqldeveloper.jar
Configuration: extension jar in \\mt000xvrpt91\tools\SQLDeveloper\sqldeveloper\extensions
The missing class is not available from any code-source or loader in the system.
at oracle.classloader.PolicyClassLoader.defineClass(PolicyClassLoader.java:2387)
at oracle.classloader.PolicyClassLoader.findLocalClass(PolicyClassLoader.java:1546)
at oracle.classloader.SearchPolicy$FindLocal.getClass(SearchPolicy.java:226)
at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1728)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1689)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1674)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at oracle.classloader.PolicyClassLoader.defineClass(PolicyClassLoader.java:2364)
at oracle.classloader.PolicyClassLoader.findLocalClass(PolicyClassLoader.java:1546)
at oracle.classloader.SearchPolicy$FindLocal.getClass(SearchPolicy.java:226)
at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1728)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1689)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1674)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at oracle.classloader.PolicyClassLoader.defineClass(PolicyClassLoader.java:2364)
at oracle.classloader.PolicyClassLoader.findLocalClass(PolicyClassLoader.java:1546)
at oracle.classloader.SearchPolicy$FindLocal.getClass(SearchPolicy.java:226)
at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1728)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1689)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1674)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at oracle.dbtools.raptor.controls.grid.RSTModelHook$ProviderChildVisitor.end(RSTModelHook.java:64)
at javax.ide.extension.spi.SAXManifestParser$Handler.endElement(SAXManifestParser.java:138)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1359)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:376)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:322)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:226)
at javax.ide.extension.spi.SAXManifestParser.parse(SAXManifestParser.java:87)
at javax.ide.extension.spi.SAXManifestParser.parse(SAXManifestParser.java:57)
at javax.ide.extension.ExtensionRegistry.loadExtension(ExtensionRegistry.java:295)
at oracle.ideimpl.extension.ExtensionManagerImpl.loadExtension(ExtensionManagerImpl.java:701)
at javax.ide.extension.ExtensionRegistry.loadExtensions(ExtensionRegistry.java:275)
at oracle.ideimpl.extension.ExtensionManagerImpl.loadExtensions(ExtensionManagerImpl.java:612)
at javax.ide.extension.ExtensionRegistry.loadExtensions(ExtensionRegistry.java:171)
at oracle.ideimpl.extension.ExtensionManagerImpl.loadExtensions(ExtensionManagerImpl.java:510)
at javax.ide.extension.ExtensionRegistry.initialize(ExtensionRegistry.java:381)
at oracle.ideimpl.extension.ExtensionManagerImpl.initialize(ExtensionManagerImpl.java:954)
at javax.ide.Service.getService(Service.java:68)
at javax.ide.extension.ExtensionRegistry.getExtensionRegistry(ExtensionRegistry.java:400)
at oracle.ide.ExtensionRegistry.getExtensionRegistry(ExtensionRegistry.java:191)
at oracle.ide.IdeCore.startupImpl(IdeCore.java:1384)
at oracle.ide.Ide.startup(Ide.java:703)
at oracle.ideimpl.DefaultIdeStarter.startIde(DefaultIdeStarter.java:35)
at oracle.ideimpl.Main.start(Main.java:184)
at oracle.ideimpl.Main.main(Main.java:146)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.ide.boot.PCLMain.callMain(PCLMain.java:62)
at oracle.ide.boot.PCLMain.main(PCLMain.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.classloader.util.MainClass.invoke(MainClass.java:128)
at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain(IdeLauncher.java:189)
at oracle.ide.boot.IdeLauncher.launchImpl(IdeLauncher.java:89)
at oracle.ide.boot.IdeLauncher.launch(IdeLauncher.java:65)
at oracle.ide.boot.IdeLauncher.main(IdeLauncher.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.ide.boot.Launcher.invokeMain(Launcher.java:713)
at oracle.ide.boot.Launcher.launchImpl(Launcher.java:115)
at oracle.ide.boot.Launcher.launch(Launcher.java:68)
at oracle.ide.boot.Launcher.main(Launcher.java:57)
And more........... I exceeded 30000 character limit at this formI am OK to ignore the error. But better option will be SQL Developer take care of this situation.
My intention is to keep SQL Developer on a readonly share folder and send the path to end users.
Ideally I wish I could use UNC path so that I dont have to worry about the drive mapping. -
Help with translating SQL query from SQL Server syntax to Oracle syntax
Hi,
is it someone that can help me translate following SQL query from SQL Server syntax to Oracle syntax.
SELECT ID,
[LMT(MTR)] = MAX(case when TYPE = 'LMT' then VALUE end),
[AAD(KGM)] = MAX(case when TYPE = 'AAD' then VALUE end),
[VOL(MTQ)] = MAX(case when TYPE = 'VOL' then VALUE end)
FROM yourtable
GROUP BY ID
Your help is highly appreciated, thanks in advance.Like this,
SELECT ID,
MAX(case when TYPE = 'LMT' then VALUE end) LMT_MTR,
MAX(case when TYPE = 'AAD' then VALUE end) AAD_KGM ,
MAX(case when TYPE = 'VOL' then VALUE end) VOL_MTQ
FROM yourtable
GROUP BY ID-Arun -
Background
1. Weblogic 10.3.6.0 running on Oracle Linux 6.5 with Oracle JRockit(R) (build R28.2.3-13-149708-1.6.0_31-20120327-1523-linux-x86_64, compiled mode)
2. Oracle Apex 4.2.1
3. Apex Listener 1.1.3
4. Apex and Apex Listener running on the Weblogic box above
5. SQL Developer 4.0.2 running on Windows 7 64 bit / Java 1.7.0_55
Updated Apex to 4.2.5 via p17966818_425_Generic.zip patchset. Apex environment running fine as do all applications via Listener 1.1.3
Updated Oracle Listener to the latest version of Oracle REST Data Services 2.0.7
Current Status
Apex Applications and RESTful services are running fine.
Problem
Unable to connect SQL Developer 4.0.2 to Oracle REST Data Services 2.0.7
Error message in SQL Developer - Cannot connect to DEV. HTTP/1.1 403 Target service not allowed
Additional Information
Steps followed -
1. The oracle users APEX_LISTENER and APEX_REST_PUBLIC_USER did not exist, so I ran apex_rest_config.sql from the APEX 2.4.1 patchset whilst connected sys as sysdba and provided the same password as APEX_PUBLIC_USER for both users.
2. I also ran
grant insert, delete on APEX_040200.wwv_flow_rt$privilege_groups to APEX_LISTENER;
alter session set current_schema = APEX_LISTENER;
create or replace synonym wwv_flow_rt$privilege_groups for APEX_040200.wwv_flow_rt$privilege_groups;
as per Oracle SQL Developer User's Guide Release 4.0
3. copied ords.war to apex.war
4. java -jar apex.war configdir /u01/app/oracle/admin/apex/devdomain1/
5. java -jar apex.war
Jun 5, 2014 5:15:31 PM oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
INFO: Using configuration folder: /u01/app/oracle/admin/apex/devdomain1/apex
Enter the name of the database server [localhost]:dbservername
Enter the database listen port [1521]:
Enter 1 to specify the database service name, or 2 to specify the database SID [1]:1
Enter the database service name:dbservicename
Enter the database user name [APEX_PUBLIC_USER]:
Enter the database password for APEX_PUBLIC_USER:
Confirm password:
Enter 1 to enter passwords for the RESTful Services database users (APEX_LISTENER,APEX_REST_PUBLIC_USER), 2 to use the same password as used for APEX_PUBLIC_USER or, 3 to skip this step [1]:2
Jun 5, 2014 5:16:52 PM oracle.dbtools.common.config.file.ConfigurationFiles update
INFO: Updated configurations: defaults, apex, apex_al, apex_rt
Enter 1 if you wish to start in standalone mode or 2 to exit [1]:2
6. java -jar apex.war user adminlistener "Listener Administrator"
Jun 5, 2014 5:18:52 PM oracle.dbtools.common.config.file.ConfigurationFolder logConfigFolder
INFO: Using configuration folder: /u01/app/oracle/admin/apex/devdomain1/apex
Enter a password for user adminlistener:
Confirm password for user adminlistener:
Jun 6, 2014 5:19:12 PM AM oracle.dbtools.standalone.ModifyUser execute
INFO: Created user: adminlistener in file: /u01/app/oracle/admin/apex/devdomain1/apex/credentials
7. Updated the defaults.xml file
Added
<entry key="apex.security.user.roles">RESTful Services</entry>
<entry key="apex.security.developer.roles">OAuth2 Client Developer, SQL Developer</entry>
as per Oracle SQL Developer User's Guide Release 4.0
Changed
<entry key="debug.printDebugToScreen">false</entry>
to
<entry key="debug.printDebugToScreen">true</entry>
for RESTful debugging
Added
<entry key="security.verifySSL">false</entry>
to use OAuth2 in Non HTTPS Environment as per Oracle® REST Data Services Installation and Configuration Guide, Release 2.0
8. Deleted the Admin and Manager Roles within the apex application deployment which were part of the Apex Listener 1.1.3 install
9. Deployed the apex.war in weblogic
10. Stopped and started the weblogic server to which apex.war was deployed
11. In SQL Developer, View, RESTful Services. In the RESTful services windows hit connect, Create a new connection,
Connection Name DEV
Username adminlistener
selected http protocol
Hostname weblogicservername
Port 7250
Server Path /apex
Workspace (blank)
On the Authentication dialog
Username adminlistener
Password passwordsuppliedabove in step 6
Response is a dialog box titled Authentication Failed
message - Cannot connect to DEV. HTTP/1.1 403 Target service not allowed
NOTHING UNUSUAL IN ANY OF THE WEBLOGIC LOG FILES, EXCEPT THAT IT STATES
'Oracle REST Data Services version : 2.0.6.27.18.06' when I've installed 2.0.7.
Any help much appreciatedFurther to the above post, I thought I'd simplify my Apex Listener install just to see if I can connect to it via SQL Developer
So downloaded the latest version 2.0.8 and decided to configure and run the Listener on my pc whilst still connecting to the same database.
Operating system : Window 7 Pro 64 bit
Oracle Apex Listener 2.0.8
Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
Went through the configuration as above, once started I tried again to access the listener via SQL Developer. This time I received this output from the listener:
INFO: Error: ORA-02291: integrity constraint (APEX_040200.WWV_FLOW_RT$APPROVALS_SGID_FK) violated - parent key not found, occurred during execution of: [CALL, insert into wwv_flow_rt$approvals (user_name,status,client_id,security_group_id,created_by,created_on,updated_by,updated_on) values(/*in:user_id*/?,/*in:status*/?,/*in:client_id*/?,/*in:tenant_id*/?,upper(/*in:user_id*/?),/*in:created*/?,upper(/*in:user_id*/?),/*in:created*/?), [tenant_id, in, class java.math.BigInteger], [client_id, in, class java.math.BigInteger], [user_id, in, class java.lang.String], [status, in, class oracle.dbtools.rt.oauth.ApprovalRequest$Status], [created, in, class java.sql.Timestamp]]with values: [adminlistener, APPROVED, 3858401374580004, -1, adminlistener, 2014-06-23 12:19:18.785, adminlistener, 2014-06-23 12:19:18.785]
SQL Developer responded with an Authentication Failed titled dialog with the following displayed in the body of the dialog
Cannot connect to DEV.
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie6"> <![endif]-->
<!--[if IE 7 ]> <html class="ie7 no-css3"> <![endif]-->
<!--[if IE 8 ]> <html class="ie8 no-css3"> <![endif]-->
<!--[if IE 9 ]> <html class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html>
<!--<![endif]-->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<style type="text/css" media="screen">html,body,div,span,h3,p,ol,ul,li,header,hgroup{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}header,hgroup{display:block}body{font:normal 12px/16px Arial,sans-serif;margin:0 auto;background:#6a9cda}header#xHeader{border-bottom:1px solid #8fa4c0;position:relative;z-index:10;background:none #000}header#xHeader hgroup{width:974px;margin:0 auto;position:relative;height:36px;background:none #000}header#xHeader a#uLogo{margin:8px 0;display:inline-block;font:bold 14px/20px Arial,sans-serif;color:#AAA;text-decoration:none}header#xHeader a#uLogo span.logo{color:#F00}.no-css3 div#xContentContainer div.xContent{padding-top:14px}.no-css3 div#xContentContainer div.xContent div.xMainLeft h2{margin-top:0}div#xWhiteContentContainer{margin-bottom:30px}div#xWhiteContentContainer.xContentWide{background:#FFF;margin-bottom:0}div#xWhiteContentContainer.xContentWide div.xWhiteContent{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}div#xWhiteContentContainer div.xWhiteContent{width:974px;margin:0 auto;padding:0 0 20px 0;background:#FFF;min-height:500px;-moz-border-radius:0 4px 4px 4px;-webkit-border-radius:0 4px 4px 4px;border-radius:0 4px 4px 4px;-moz-box-shadow:0 1px 2px rgba(0,0,0,0.15);-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.15);box-shadow:0 1px 2px rgba(0,0,0,0.15)}div#xContentHeaderContainer{background:#6a9cda;-moz-box-shadow:0 -1px 0 rgba(0,0,0,0.15) inset;-webkit-box-shadow:0 -1px 0 rgba(0,0,0,0.15) inset;box-shadow:0 -1px 0 rgba(0,0,0,0.15) inset}div#xContentHeaderContainer div.xContentHeader{width:974px;margin:0 auto;padding:30px 0 32px 0;position:relative;min-height:60px}div#xContentHeaderContainer div.xContentHeader h3{font:bold 24px/24px Arial,sans-serif;color:#fff;text-shadow:0 2px 1px rgba(0,0,0,0.25);margin:0 0 20px 0}div#xFooterContainer{min-height:200px;border-top:1px solid rgba(0,0,0,0.15);background:#6a9cda}body.errorPage div#xContentHeaderContainer div.xContentHeader{min-height:30px}body.errorPage div#xContentHeaderContainer div.xContentHeader h3{font:bold 30px/30px Arial,sans-serif;color:#FFF;text-shadow:0 1px 2px rgba(0,0,0,0.25);margin:0}div.errorPage p{font:normal 14px/20px Arial,sans-seri;color:#666;padding:0 0 10px 0}div.errorPage ul{list-style:disc outside;padding:0 10px 0;margin:0 0 20px 0}div.errorPage ul li{font:normal 12px/16px Arial,sans-serif;color:#666;margin:0 0 8px 10px}pre{font-family:Consolas,"Lucida Console","Courier New",Courier,monospace}
</style>
<script type="text/javascript" charset="utf-8">
'header hgroup'.replace(/\w+/g,
function(n) {
document.createElement(n)
</script>
<title>Internal Server Error</title>
</head>
<body class="errorPage">
<header id="xHeader">
<hgroup>
<a id="uLogo" href="./"><span class="logo">ORACLE</span>
REST DATA SERVICES</a>
</hgroup>
</header>
<div id="xContentHeaderContainer">
<div class="xContentHeader">
<h3>
<span class="statusCode">500</span> - <span
class="statusMessage">Internal Server Error</span>
</h3>
</div>
</div>
<div id="xWhiteContentContainer" class="xContentWide">
<div class="xWhiteContent">
<div class="errorPage">
<p>
<ul class="reasons">
</ul>
</p>
<p>
<pre>Request Path passes syntax validation
Mapping request to database pool: PoolMap [_failed=false, _lastUpdate=-1, _pattern=null, _poolName=apex, _regex=null, _type=REGEX, _workspaceIdentifier=null, _serviceName=null]
Applied database connection info
Attempting to process with PL/SQL Gateway
Not processed as PL/SQL Gateway request
Attempting to process as a RESTful Service
Choosing: oracle.dbtools.rt.oauth.TokenHandler as current candidate with score: Score [handle=null, score=0, scope=SecurityConfig [constraint=secure, realm=OAUTH_CLIENT, logonConfig=NONE], originsAllowed=[], corsEnabled=true]
Determining if request can be dispatched as a Tenanted RESTful Service
Request path has one path segment, continuing processing
No Tenant Principal established yet, continuing processing
APEX_LISTENER pool exists, continuing processing
No matching tenant found for: oauth2, cannot dispatch
Chose oracle.dbtools.rt.oauth.TokenHandler as the final candidate with score: Score [handle=null, score=0, scope=SecurityConfig [constraint=secure, realm=OAUTH_CLIENT, logonConfig=NONE], originsAllowed=[], corsEnabled=true] for: POST oauth2/token
oauth2/token authorized as: p6xycV-2QceFnFHkWyJlnA..
</pre>
</p>
<p>
<pre>WebException [statusCode=500]
at oracle.dbtools.rt.web.WebException.webException(WebException.java:343)
at oracle.dbtools.rt.web.WebException.internalError(WebException.java:262)
at oracle.dbtools.rt.oauth.jdbc.JDBCOAuthDataAccess.createApproval(JDBCOAuthDataAccess.java:514)
at oracle.dbtools.rt.oauth.jdbc.JDBCOAuthDataAccess.createApprovedRequest(JDBCOAuthDataAccess.java:181)
at oracle.dbtools.rt.oauth.OAuthAuthorization.resourceOwnerCredentials(OAuthAuthorization.java:654)
at oracle.dbtools.rt.oauth.OAuthAuthorization.tokenRequest(OAuthAuthorization.java:273)
at oracle.dbtools.rt.oauth.TokenHandler.post(TokenHandler.java:44)
at oracle.dbtools.rt.web.RequestHandler.response(RequestHandler.java:268)
at oracle.dbtools.rt.web.RequestHandler.dispatch(RequestHandler.java:361)
at oracle.dbtools.rt.web.RequestHandler.dispatch(RequestHandler.java:85)
at oracle.dbtools.rt.web.RequestDispatchers.dispatch(RequestDispatchers.java:93)
at oracle.dbtools.rt.web.ETags.checkPrecondition(ETags.java:93)
at oracle.dbtools.rt.web.HttpEndpointBase.restfulServices(HttpEndpointBase.java:426)
at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:164)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.doFilter(ServletAdapter.java:1059)
at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.invokeFilterChain(ServletAdapter.java:999)
at com.sun.grizzly.http.servlet.ServletAdapter.doService(ServletAdapter.java:434)
at oracle.dbtools.standalone.SecureServletAdapter.doService(SecureServletAdapter.java:91)
at com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.java:379)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
at com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.service(GrizzlyAdapterChain.java:196)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-02291: integrity constraint (APEX_040200.WWV_FLOW_RT$APPROVALS_SGID_FK) violated - parent key not found
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:505)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:223)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:208)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1046)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1336)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3612)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3713)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1378)
at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at oracle.ucp.jdbc.proxy.StatementProxyFactory.invoke(StatementProxyFactory.java:230)
at oracle.ucp.jdbc.proxy.PreparedStatementProxyFactory.invoke(PreparedStatementProxyFactory.java:124)
at com.sun.proxy.$Proxy44.execute(Unknown Source)
at oracle.dbtools.common.jdbc.JDBCInsert.execute(JDBCInsert.java:58)
at oracle.dbtools.rt.oauth.jdbc.JDBCOAuthDataAccess.createApproval(JDBCOAuthDataAccess.java:487)
... 34 more
</pre>
</p>
</div>
</div>
</div>
<div id="xFooterContainer">
</div>
</body>
</html>
I am assuming this must be part of the problem I am seeing this the Weblogic deployment in my original post.
Does anyone have any suggestions on how best to tackle this?
Regards,
Derek -
AUTOTRACE stats different in SQL Developer vs SQL Plus
Using SQL Developer 3.2.20.09, database is 11.2 on Linux. I'd like to know why I get different stats when using AUTOTRACE in SQL Developer vs SQL Plus. If I do the following in SQL Developer and in SQL Plus I get a very different set of stats:
set autotrace on
select * from emp;
set autotrace off
I run this with "run worksheet" in SQL Developer and I see this set of stats:
Statistics
4 user calls
0 physical read total multi block requests
0 physical read total bytes
0 cell physical IO interconnect bytes
0 commit cleanout failures: block lost
0 IMU commits
0 IMU Flushes
0 IMU contention
0 IMU bind flushes
0 IMU mbu flush
I do the same in SQL Plus and I see these stats:
Statistics
0 recursive calls
0 db block gets
7 consistent gets
0 physical reads
0 redo size
1722 bytes sent via SQL*Net to client
519 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
14 rows processed
A very different set of stats. The stats in shown in SQL Plus seem to be much more useful to performance optimization over the one shown in SQL Developer. Why the different set of stats for each? Thanks.Cross-referencing to another recent thread on this topic:
Re: set autotrace on statistics in sqldeveloper (oracle 11g) is wrong -
Need command to run sql script from sql prompt
Hi,
I am beginner in sql i need a command to run sql file from sql prompt.In notepad i have write 10 to 15 tables creation and saved as .sql i want to run this file from sql promp pls some one help.I am very great full to all users in this forum.You can also use the 'start' command.
You may also want to look in the SQLPlus User Guide and Reference (for your release) at the set command for commands to set the number of lines per page, turn headings on or off, and so on:
http://download.oracle.com/docs/cd/E11882_01/server.112/e10823/toc.htm
HTH -- Mark D Powell -- -
Migration on existing EJB System from a server to other.
How can i migrate my existing "EJB system" from a server to an other server without lose data ?
Data were modeled using CMP model.
(The servers are the same but not on the same machine)right !
The data stored in the database from my CMP ...
(or the persistence layer) -
Select from in SQL Developer fails - SQL*Plus works
Hello All,
I've got the HS connection to MySLQ working correctly and most of the requirements I have with respect to the data is working.
However, i"m only able to test my procedures and functions in SQL*PLus. IN SQL Developer 4.0.0.12 there is always a problem and query results are never displayed.
Thanks in advance for any advice.
Sincerely
JSActually Mike,
The white spaces are appended to the end of the resulting string. I've included the NLS setting for bother Oracle adn MySQL as well as my odbc.ini file
select '"'|| "User" ||'"' as Username from "user"@MYODBC5;
Results (there is white spaces added right after the username, as the result shoudl have been "intm","root" as opposed to "intm "
===============================================================================================================
USERNAME
"intm
USERNAME
"root
NLS _SETTINGS ORACLE
==============================================================
Oracle:
======
NAME
VALUE$
NLS_LANGUAGE
AMERICAN
NLS_TERRITORY
AMERICA
NLS_CURRENCY
$
NLS_ISO_CURRENCY
AMERICA
NLS_NUMERIC_CHARACTERS
NLS_CHARACTERSET
AL32UTF8
NLS_CALENDAR
GREGORIAN
NLS_DATE_FORMAT
DD-MON-RR
NLS_DATE_LANGUAGE
AMERICAN
NLS_SORT
BINARY
NLS_TIME_FORMAT
HH.MI.SSXFF AM
NAME
VALUE$
NLS_TIMESTAMP_FORMAT
DD-MON-RR HH.MI.SSXF
F AM
NLS_TIME_TZ_FORMAT
HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT
DD-MON-RR HH.MI.SSXF
F AM TZR
NLS_DUAL_CURRENCY
$
NLS_COMP
BINARY
NLS_LENGTH_SEMANTICS
BYTE
NLS_NCHAR_CONV_EXCP
FALSE
NAME
VALUE$
NLS_NCHAR_CHARACTERSET
AL16UTF16
NLS_RDBMS_VERSION
11.2.0.2.0
NLS _SETTINGS MYSQL
==============================================================
Oracle:
======
NAME :
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | latin1 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | latin1 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
===========================================================ODBC INI
[myodbc5]
Driver = /usr/lib64/libmyodbc5a.so
Description = Connector/ODBC 5.3.4 Driver DSN
SERVER = 127.0.0.1
PORT = 3306
USER = intm
PASSWORD = *********
DATABASE = mysql
OPTION = 0
TRACE = OFF -
HOW TO CONNECT SQL DEVELOPER FROM REMOTE DATADASE 11g SEREVER
HI
WE ARE USEING ORACLE 11g AS PRODUCTION DATA BASE SERVER ON (O.S -WINDOWS SERVER 2008 WITH JAVA 1.5)
I WANT TO CONNECT ORACLE 11g(PRODUCTION DATA BASE) FROM THE SQL DEVELOPER(VERSION -sqldeveloper-3.0.03.45)--- installed on (WINDOWS XP PROFESSIONAL VERSION 2002 SP 3) but iam connect ing iam getting error like THIS
AFTER ENTERING USERNAME,PASSWORD,HOSTNAME,PORT,SID
THEN
I CLICK TEST
I FOUND THIS STATUS :FAILURE -TEST FAILED:IO EXCEPTION:BREAK PACKET WAS RECEIVED.
CAN ANY ONE PLEASE PROVIDE SOLUTION FOR THIS PROBLEM
THANK AND REGARDS.
ANJANEYULU.n
DBA-UEPL.
Edited by: 794752 on May 16, 2011 11:06 PMHi 794752,
-Does remote sqlplus work from the same XP machine?
-Have you tried thin (default) or thick (with 11.2 instant client) in SQLDeveloper?
-Have you other Oracle software on the XP machine? If so you may have to set ORACLE_HOME in your cmd session to the SQLdeveloper software such that %ORACLE_HOME%\jdbc\lib exists, (so SQLDeveloper does not try your existing ORACLE_HOME).
Please do not use all CAPITALS.
-Turloch
SQLDeveloper Team -
SQL developer on remote server
I am connecting through SQL developer installed on my machine to a remote Oracle DB. I get an error ORA-30687 when I try the debugging function on SQL Developer. I set the Debugger port in Preferences to 4000. Is there something I need to set on the remote server as well? I am asking this because I do not see any debugger service running on the remote DB server. Debugger function works well if I run SQL developer on remote machine itself and it seems it using random ports every time I run a script. No firewall between the two hosts, they are just in different subnets. How can I let my users use debugger function on a remote DB is basically my question.
Thanks!You don't say what sqldeveloper version you are using but I assume recent one which uses the 11g JDBC drivers. Connection to 8.1.6 is not supported wit that JDBC drivers
Your only chance is to download an older version of sqldeveloper, 1.5 or perhaps 2.1.
I realise it probably isn't in your control, but 8.1.6 has been out of support for many years and you really ought to upgrade., -
Converting SQL statements from MS server 2000 to Oracle 10g
We are moving over from MS server 2000 to Oracle 10g as our database for Peoplesoft system.
There are several embedded SQL statements that I need to investigate to see what needs converting.
So far I can see a need to convert the following:
Dates. GetDate() to ?
Outer joins. *= to LEFT OUTER JOIN
Has anyone else done a similar exercise and what other functions do I need to convert?
Thanks.Hello
A quick google search (http://www.google.co.uk/search?hl=en&q=ms+sql+server+oracle+differences&spell=1)
came up with this:
http://dba-oracle.com/oracle_news/2005_12_16_sql_syntax_differences.htm
There's a quite a few more sites listed.
HTH
David -
Is it possible to return a data grid in sql developer from package?
Hi, I am in need of some help in returning a datagrid rather than just a list from a package. This is my package:
CREATE OR REPLACE PACKAGE BODY C_1
as
PROCEDURE COUNTING1 (C_YEARFROM IN NUMBER, C_TABLE_NAME IN VARCHAR2) is
yearCount NUMBER;
c_sql long;
BEGIN
execute immediate 'SELECT COUNT(DISTINCT SPECIES) FROM '||C_TABLE_NAME ||' WHERE year >2007' into yearCount;
dbms_output.put_line('Distinct species count: ' ||yearCount);
end counting1;
end c_1;
Is it possible to get the results of these in a table or data grid in sql developer, e.g. I would like to sort results etc rather than just a flat list? Something a bit more elegant then dbms_output.put_line?
Thanksyes, I copied the wrong code into the example - what I actually want to display in a grid is the following:
CREATE OR REPLACE PACKAGE RSET_CURSOR IS
cursor rs_cursor is select species, location from ot;
r_c rs_cursor%rowtype;
end;
create or replace package rset_cursor2
is
procedure printSpecies;
end rset_cursor2;
create or replace package body rset_cursor2
is
procedure printSpecies is
begin
open rset_cursor.rs_cursor;
loop
fetch rset_cursor.rs_cursor into rset_cursor.r_c;
exit when rset_cursor.rs_cursor%notfound;
dbms_output.put_line(rset_cursor.r_c.species);
end loop;
close rset_cursor.rs_cursor;
end;
end;
I have also just noticed the list I am getting is only including one column of data where it should include 2, have I omitted something?
Thanks -
How to upgrade SQL Developer from 1.1. to 1.5?
Hello,
I downloaded 1.5 and tried starting it in order to upgrade from 1.1 which came with the Oracle 11g package.
It shows the splash screen briefly then it disappears.
How can I install/upgrade it?
Thanks,
GaborHello Jim,
Thanks for the response.
I did what you suggested. Yes, it does open the console window and tons of messages scroll through it while the splash screen is shown. The both the console window and the splash screen disappear and that's it.
The OS is XP SP2.
The exact version of SQL Developer is 1.5.1.54.40.
Regards,
Gabor -
I am doing the « Database Development with JDeveloper » tutorial. In the tutorial we create two SQL scripts that we can run with SQL*PLUS from inside JDEV. The tutorial asks us to use sqlplusw.exe. However I dont have sqlplusw, I only have sqlplus.exe, the command line version.
When I saw SQL Developer was claiming Oracle SQL Developer is a graphical version of SQL*Plus (First sentence of Online Help), I naively thought that I could use sqldeveloper.exe instead of sqlplusw.exe.
When I try to run the SQL script from JDEV, it seems to open an empty SQL Developer window in JDEV, with no possibilities of running scripts.
I know that in the next version of JDev SQL Developer should be integrated but, in the mean time does anyone know a way to open and run a SQL script from JDEV using SQL Developer as the tutorial requires it?
I'm not sure if this makes sense.
Message was edited by:
dfullumYou can use the sqlplus.exe instead of the sqlplusw.exe the results should be the same.
-
How to uninstall SQL Developer from XP
I tried using "Add/Remove Programs" from the Control Panel, but SQL Developer does not show up.
Thank you ANUP_SLIM, both of your suggestions were helpful and accurate. I performed a search on "sqldeveloper.exe" and the executable is in the obscure directory that I unzipped it in, and was nowhere near my OracleHome. There was also a similarly named file in "C:\Windows\Prefetch". Not sure why that one is there, but my plan is to remove it. However; I will wait and see if anyone provides reasons not to.
Not sure how to be clearer SOMEONEELSE, that in my situation the default behavior WAS NOT to create and ICON or shortcut. Are you suggesting that any and every time a person simply unzips a file, that the default behavior is for some "Magic Thingy" to create ICON's on your desktop?
I apologize if my response seems negative, but there is a generation that seems to feel that it is OK to respond disrespecfully to a sincere question, even when the offendin party doesn't know what they are talking about. I am merely combating these types of occurences as neither SHOBLOCK's nor ANUP_SLIM's advise was applicable or accurate in this specific situation.
Maybe you are looking for
-
Hello, My program send a table to a method that save table values in disk ".doc", there is a way to format some strings to be bold in the end file?? Here is the Code: import java.io.*; import javax.swing.*; public class test{ public test( JTabl
-
Can you install the Java PDK in the portal that runs on Unix?
Our Netweaver Portal (EP6 sp20) is running on a Unix box. Can I not install Portal Development Kit (PDK) - 60.14.0 ???? It says in the installation guide: "The PDK is like the SAP NetWeaver Developer Studio released and supported for Windows platform
-
Why can't i get my songs to download?
I have an iPhone 5 with the latest iOS 7 update. Every time I buy a new album on iTunes or I use the iCloud to download a song it gives me a processing or down load error. What should I do? My hard drive is not full and I have a strong internet con
-
Hi, I made a very involved 75 page photobook, and I want to purchase now, so, I cick buy now, all my info is verified and 1-click is set up, but as soon as the upload (assembling book) begins, it gets to page three and hangs (beachball). Page three w
-
Files in itunes Library always in use, even when itunes is not running.
I get this error message when I try to copy my itunes library to a new external hd: One or more items in "Macbook Pro Music Library" can't be changed because they are in use. Does anyone know how to fix this? I lose a bit of my library everytime I co