SQLJ on Rdb ?
My customer is planning to start development of J2EE applications to be deployed on VMS / Oracle-Rdb.
Question 1: when is planned the official release of native JDBC for Rdb ?
Question 2: is there any plan to have SQLJ for Rdb ?
Thanks,
Bernard
Let us know if the following is/is not the issue.
Note that the deploying the resulting .java file is not sufficient. If your SQLJ source contains SQL statements, it will also produce one or more resource (.ser) files.
For example:
Foo.sqlj might produce Foo.java and Foo_SJProfile0.ser
The .ser file contains a description of the SQL code that is to be executed and thus is absolutely essential. You can either deploy this as a resource, or convert it to a class file (with the SQLJ command line option -ser2class), or convert it to a .java file (with the command line "tool": java sqlj.runtime.profile.util.SerProfileToClass).
This gives you a plethora of choices for deploying SQLJ applications (e.g. with the loadjava tool):
(1) % loadjava <options> Foo.sqlj
(2) % sqlj Foo.sqlj
% loadjava <options> Foo.java Foo_SJProfile0.ser
(3) % sqlj -ser2class Foo.sqlj
% loadjava <options> Foo*.class
(4) % sqlj Foo.sqlj
% java sqlj.runtime.profile.util.SerProfileToClass Foo_SJProfile0.ser
% loadjava <options> Foo.java Foo_SJProfile0.java
One caveat: if you deploy with one of these methods you want to drop the sources/resources/classes you deployed before redeploying with a different method. Otherwise you encounter conflicts during deployment.
(One of these days we'll make life easier and eliminate the need for .ser's)
I'll defer to the JDeveloper folks for what/how you could reasonably accomplish this within the JDeveloper environment (what version are you using?).
Similar Messages
-
A J2EE problem from an International Bank EJB-RDB remapping problem
Background Information:
We are going to deploy a J2EE project with DB2 V7.1 as the backend database server. However, the project is developed using WSED and initially assumed DB2 V.8 will be used as the database server. The inconsistency of DB2 version have us to make some amendments on the project. To simplify the scenario, what we do is to truncate the table/column name with length >18 to 18 defined in all .tblxmi, ... for EJB-RDB mapping. After we rebuild the project and deploy it in WAS 5.1, the following error occured,
CNTR0020E: Non-application exception occurred while processing method "populateSystemCache" on bean "BeanId(eFOSt
0#eFOS-Session.jar#SystemService, null)". Exception data: javax.ejb.TransactionRolledbackLocalException: ; nested exception is: com
.ibm.db2.jcc.DB2SQLException: DB2JDBCCursor Received Error in Method prepare:SQLCODE==> -107 SQLSTATE ==> 42622 Error Tokens ==> <<D
B2 7.1 SQLJ/JDBC>> "ACTUAL_MONTH_END_DATE" 18
com.ibm.db2.jcc.DB2SQLException: DB2JDBCCursor Received Error in Method prepare:SQLCODE==> -107 SQLSTATE ==> 42622 Error Tokens ==>
<<DB2 7.1 SQLJ/JDBC>> "ACTUAL_MONTH_END_DATE" 18
at COM.ibm.db2os390.sqlj.jdbc.DB2SQLJJDBCCursor.setError(DB2SQLJJDBCCursor.java:1232)
at COM.ibm.db2os390.sqlj.jdbc.DB2SQLJJDBCSection.prepare(DB2SQLJJDBCSection.java:767)
at COM.ibm.db2os390.sqlj.jdbc.DB2SQLJConnection.prepareStatement(DB2SQLJConnection.java:1470)
at COM.ibm.db2os390.sqlj.jdbc.DB2SQLJConnection.prepareStatement(DB2SQLJConnection.java:1580)
We are sure that we have made all the necessary truncations for the table/column. We discovered that some of the .class file, e.g. SystemBeanFunctionSet_71684028.class, was generated under the directory ../websphere_deploy/DB2UDBOS390_V71_1 after we rebuild the project. Many column names with length >18 were found there, such as ACTUAL_MONTH_END_DATE.
PreparedStatement pstmt = null;
try
pstmt = prepareStatement(connection, "INSERT INTO FAK.SYSTEM (SYSTEM_CODE, ACTIVE_FLAG, SYSTEM_NAME, BUSINESS_DATE, LAST_BUSINESS_DATE, NEXT_BUSINESS_DATE, REGION_CODE, MONTH_FLAG, ACTUAL_MONTH_END_DATE, LOCAL_COMPANY_CODE, LOCAL_BRANCH_CODE, LOCAL_COUNTRY_CODE, LOCAL_CURRENCY_CODE, FUNDING_CURRENCY_CODE) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
String tempString = (String)inputRecord.get(0);
May I know what those .class file (with number prefix in the file name)for and how can we solve the problem?
Thanks a lotPut it simply, is there any method using WSED to
deploy the project using DB2 V.7.2 if the project is
assembled using DB2 V8 and no java source is
available ???If you are not making use of any functions specific to DB2 V8 how does it matter for you? The difference only lies in the DataSource configuration or something like that but certainly not on your java code(If you have not done anything specific to V8).Your problem sounds me like as suggested you have an extra/lesser parameters(?) or checkout the parameter that you are passing in is not overflowing any columns. -
Error while calling a stored procedure using SQLJ
I am calling a stored procedure defined inside a package through a SQLJ script. The first parameter of that procedure is a IN OUT parameter which is used as a ROWID for creating a cursor. That ROWID value is the same for every record in the table, thereby enabling us to create a cursor.
When I give a hard-coded value as a parameter, I get an error stating that the assignment is not correct as the query is expecting a variable and not a literal. Hence I removed the hard-coded value and included a dymanic value in the SQLJ call.
String strVal = "A";
#sql{CALL ASSIGNMENTS_PKG.INSERT_ROW :{strVal},'SALARY_CODE_GROUP','BU',3,105,sysdate,1,sysdate,1,1)};
Here "ASSIGNMENTS_PKG" is a package name and INSERT_ROW is the procedure.
When the SQLJ program is run, I get an error stating:
"PLS-00201: identifier 'A' must be declared"
I read the error message, but I am not able to understand where I need to give the GRANT permission to.If you're using Oracle Provider for OLE DB (OraOLEDB) to execute this stored procedure, you need to set PLSQLRSet attribute. This attribute can be set in registry, connection string, or command object. Please refer to User Documentation for more information.
-
Oracle Rdb Driver 3.1.0.0 problem with blobs
I am trying to convert an MsAccess application to use an MsAccess front end and an Oracle Rdb back end.
I've created the test database under VMS and can successfully link to the Oracle Rdb tables from MSAccess 2000. One of the main reasons for converting to Oracle Rdb is to be able to store large word documents in the database. I was able to do that using Oracle rdb Driver v 3.00.02.06. I recently converted to Oracle Rdb Driver version 3.1.0.0 and can no longer access the Blob field containing the Word document. MsAccess now sees this field as type Binary and I keep getting an invalid field type error. (with 3.00.02.06 this field was seen by MsAccess as an Ole Object and the getchunk and appendchunk functions for getting and saving a blob worked reasonably well).
Is this a bug in 3.1.0.0 or is there some way to get MsAccess to recognize this Binary field type?I suspect you'll need to contact Oracle support on this. There aren't, to my knowledge, any RDB folks around here.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
How Can I Run A SQLJ Normal Project In SAP NWDS
I have a question about SQLJ in SAP NWDS.
1.I created a java dictionary project,and then create the table , then depoly it.it's ok.
2.I created a java normal project including the above java dictionary project.
3.I used the SQLJ tech in the java normal project,exporting the opensqllib.jar,sqljapi.jar,sqljc.jar,sqljimpl.jar.
4.I coded the normal project,and export the project .jar,everything is ok.
<b>5.But when i runed the project in NWDS,the error appeared:java.lang.NoClassDefFoundError: com/sap/sql/log/OpenSQLException
at com.ezkj.deom.sqlj.MainApp.main(MainApp.java:21)
Exception in thread "main"</b>
How Can I Run A SQLJ Normal Project In SAP NWDS?
PLS Help me and don't let me alone!Tony,
Why not try to import your SQLJ project in SAP NWDS. Add all the jars mentioned to the project path both for compile time as well as runtime. Now try running he project. Once you are able to bypass java.lang.NoClassDefFoundError, you will get other errors related to SQL statements. These Oracle SQL statements needs to be converted to OpenSQL format.
Chill out!!!
Sukanta Rudra
Note: If helpful, plz donate some points. -
OdbcDataAdapter.Fill() not getting all rows from RDB using 64bit driver
I am using VS2012 Pro on Windows 7 (64-bit). I am migrating an older 32-bit VS2008 app to the new environment. I'm building for the .NET Framework 4.5.
The app queries an RDB database and uses the Oracle RDB drivers version 3.3.2.0. When I build as a 32-bit app and use the 32-bit Oracle RDB Driver, the query succeeds and returns all 341 data rows. When I built it as 64-bit and use the 64-bit driver, I only
get the first 101 rows.
Oracle says the problem is in the OdbcDataAdapter.Fill() method. I was able to confirm this. I created an OdbcDataReader and used the debugger to see what was being read, I can see all 341 rows, but when I use the DataAdapter.Fill (or DataSet.Load) method,
the results are truncated to 101 rows. Changing the SQL to query different tables does not change the problem. Below is a code sample:
private DataSet runQuery()
string connString32 = @"PROVIDER=MSDASQL;DRIVER={Oracle RDB Driver};SVR=myserver;DATABASE=ATTACH 'filename mydatabase';CLS=myclassname;uid=myusername;pwd=mypassword;xpt=2";
string connString64 = @"PROVIDER=MSDASQL;DRIVER={Oracle RDB Driver 64 Bit};SVR=myserver;DATABASE=ATTACH 'filename mydatabase';CLS=myclassname;uid=myusername;pwd=mypassword;xpt=2";
string sql = "SELECT person_id FROM person_tab";
DataSet ds = new DataSet();
using (OdbcConnection conn = new OdbcConnection(connString64))
OdbcCommand cmd = new OdbcCommand(sql, conn);
OdbcDataAdapter da = new OdbcDataAdapter();
da.SelectCommand = cmd;
conn.Open();
da.Fill(ds, "myDataSet");
return ds;
Has anyone else encountered this problem? If so, how did you get around it?Hello,
Since I do not have the RDB database, I made a test with both 32bit and 64bit ODBC Driver 11 for SQL Server and query for 1000 records, however, both of them can work fine.
As far as I know, the ODBC is just a component as a bridge to connect the driver and the application and since you are use the Oracle RDB driver, I suggest you posting it to the Oracle forum:
https://community.oracle.com/community/developer/english
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hi I'm new to SQLJ. How to achieve this following in SQLJ --
String runQuery(String st_dt, String en_dt, String flt_nr) throws SQLException
#sql rs1 = {
select to_char(to_date(:st_dt,'DD-MON-YYYY'),'YYYY-MM-DD') st_d,
to_char(to_date(:en_dt,'DD-MON-YYYY'),'YYYY-MM-DD') en_d
from dual
I want to use that rs1.st_d and rs1.en_d later in my program inside this runQuery. Now, It is not working - nor it is giving any error. Actually it is returning null values. How to do this?
Or, please give me any link or refer any forum regarding this topic.
Thanks in advance for your reply.
Regards.
Satyaki De.Can anyone have any idea? How to implement this?
Regards.
Satyaki De. -
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. -
How can i use connection pool within the sqlj?
hello
i am a beginner to sqlj,i find all of the sample code from the oracle DON'T use connectionpool,they only write the database url to "connection.properties" file,but i think in the production environment we should use the connectionpool to optimise the querying,i usually use the weblogic connection pool.
how can i use the connection pool within the sqlj?
thank you very much!Im not sure if I understand. :)
English is not my best language...
Looking up the connection again? Do you mean I have to create new DataSource object and bind it again to ServletContext? -
Why is it so hard to deploy EJBs that contain SQLJ???
The SQLJ translator creates _SJProfilex.ser files by default that
contain the SQL statements the SQLJ file uses. When trying to
use a SQLJ file for an EJB, I can't get it to deploy right--in
fact I'm thrawted at every turn! (THIS SHOULD BE EASY!)
1) .ser files aren't deployed by default. O.K., I added the .ser
rule in the deployment file. No dice, still doesn't show up in
the JAR file!
2) Even if I force the .ser file to be in the JAR (by including
it in the project), still no dice! After deployment, the .ser
file doesn't make it to the server.
3) O.K., there's a nice -ser2class option to SQLJ that turns it
into a class file instead of a .ser file. But where to add that
option? It's not in the SQLJ options of the project properties.
I also tried an SQLJ_OPTIONS environment variable, and putting an
sqlj.properties file in all the suggested places. Nothing works!
The only way I've been able to get it to work is to manually JAR
the .ser file, ftp it to the server, and run loadjava on it.
THERE HAS GOT TO BE AN EASIER WAY! ...so much for one-click
deployment.
Please help!
nullHi John,
There is an issue with deploying SQLJ files in 8.1.5.
The doc (help sytem ) gives more details on how to deploy them.
Open Online Help system
Double click on the Sample Applications book icon
Double click on the "web Application for Oracle8i" book
Open "Deploying the EJB's"
On the right hand window you will find a topic
"Deploying the SQLJ files used by the Rentals EJB"
this should take you through the deployment of SQLJ files.
regards
raghu
John K. Peterson (guest) wrote:
: The SQLJ translator creates _SJProfilex.ser files by default
that
: contain the SQL statements the SQLJ file uses. When trying to
: use a SQLJ file for an EJB, I can't get it to deploy right--in
: fact I'm thrawted at every turn! (THIS SHOULD BE EASY!)
: 1) .ser files aren't deployed by default. O.K., I added the
.ser
: rule in the deployment file. No dice, still doesn't show up in
: the JAR file!
: 2) Even if I force the .ser file to be in the JAR (by including
: it in the project), still no dice! After deployment, the .ser
: file doesn't make it to the server.
: 3) O.K., there's a nice -ser2class option to SQLJ that turns it
: into a class file instead of a .ser file. But where to add
that
: option? It's not in the SQLJ options of the project
properties.
: I also tried an SQLJ_OPTIONS environment variable, and putting
an
: sqlj.properties file in all the suggested places. Nothing
works!
: The only way I've been able to get it to work is to manually
JAR
: the .ser file, ftp it to the server, and run loadjava on it.
: THERE HAS GOT TO BE AN EASIER WAY! ...so much for one-click
: deployment.
: Please help!
null -
SQLJ-JPublisher - J2T-153, Invalid value for -context:while generating the
Hi All,
I am trying to generate the java code for the oracle types defined for one of the module in our project.for that i have defined a new context by extending the 'DefaultContext'
provided by SQLJ and as mentioned in the below URL.
http://docs.oracle.com/cd/A91202_01/901_doc/java.901/a90214/jpub.htm
Topic : JPublisher Generation of SQLJ Classes
MyContext:-
import java.sql.Connection;
import java.sql.SQLException;
import sqlj.runtime.ref.DefaultContext;
public class MyContext extends sqlj.runtime.ref.DefaultContext{
static {
DefaultContext defaultContext = null;
try {
defaultContext = new DefaultContext(<datasource>);
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
DefaultContext.setDefaultContext(defaultContext);
public MyContext(Connection arg0) throws SQLException {
super(arg0);
public Connection getConnection(){
Connection con = null;
try {
con = <datasource>getConnection();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return con;
JPub command:
jpub -user=usr/pwd -context=com.test.context.MyContext -sql=<My Types Here> -compile=false
I am getting the below error while running the jpub command in dos prompt.
Error Log:
J2T-153, Invalid value for -context: com.test.context.MyContext. This must be set to generated or to DefaultContext.
Please let me know if anybody has come across this problem before.
Thanks,
Vijay
Edited by: 905698 on 03-Jan-2012 09:53Hi Vijay,
This post DOES NOT correspond to this forum.
The current forum is for BI Publisher. Your question is for JPublisher and believe it corresponds to PL/SQL forums.
Please close the thread
thanks
Jorge -
Unable to use SQLJ OCI driver in weblogic 5.1
Hi,I am trying to use SQLJ OCI driver instead of JDriver on solaries but always get an error "java.sql.SQLException: Error while trying to retrieve text for error ORA-12545" when connection pool is being created.The same works fine if I use JDriver.Moreover when I try with a standalone application which loads SQLJ OCI Driver it also works fine. Is there anything to be done/added in weblogic properties file or startWeblogic.sh for this to work on solaries? ORACLE_HOME is set properly! if not JDRIVER would have thrown the same error!!On NT it works great!!
To us, a JDBC driver is just a JDBC driver provided that it is JDBC complaint. Make sure that you have the ORACLE_HOME set to point to the base directory where the Oracle client is installed and LD_LIBRARY_PATH includes the $ORACLE_HOME/lib directory. If this still doesn't help, can you post the relevant section of the weblogic.properties file and the complete error message including the stack trace?
Samprathi wrote:
Hi,I am trying to use SQLJ OCI driver instead of JDriver on solaries but always get an error "java.sql.SQLException: Error while trying to retrieve text for error ORA-12545" when connection pool is being created.The same works fine if I use JDriver.Moreover when I try with a standalone application which loads SQLJ OCI Driver it also works fine. Is there anything to be done/added in weblogic properties file or startWeblogic.sh for this to work on solaries? ORACLE_HOME is set properly! if not JDRIVER would have thrown the same error!!On NT it works great!! -
Deploying SQLJ classes as Java Stored Procedures using JDeveloper 10g
Hello,
I have defined a SQLJ class, MwaSqljDao.sqlj, in JDeveloper. When I right click on the SQLJ class and "make" the class. It appears to succeed.
However when I attempt to build the project in which the SQLJ class is a member of, a class that uses the SQLJ class has the following compile error:
- MwaSqljDao not found.
After a little digging it appears JDeveloper is able to compile the .sqlj file to a .java file in the classes output directory. However it does not take it to the next step of compiling the .java file into a .class file.
Is SQLJ still a main stream Oracle technology? Or has it been cast to way side to make way for other technology?
If SQLJ is still a supported Oracle technology how do go about compiling the SQLJ class using JDeveloper?
My goal is to deploy SQLJ into JServer as a Java Stored Procedure class.
Thank you,
RobExcellent.
Especially that you resolved it and even more so that you posted the solution.
I do wonder whether you would have gotten help (faster) has you asked in a JDeveloper-related forum such as " Forum Home » Developer Tools » JDeveloper and ADF" at JDeveloper and ADF -
Maximum open cursors in SQLJ, ORA-01000
Hello,
Can someone please help me with the following: I have a java application that does 7000 insert statements, but I get ORA-01000 after only 200-300 inserts. The error message is:
Exception: java.sql.SQLException: ORA-01000: maximum open cursors exceeded
A simplified version of my insert in sqlj:
try {
#sql [_ctx] {
insert into TABLE_X
( name, addr ) values
(:m_name,m_addr)
} catch(SQLException e){
m_mgr.GetErrorLog().logError("Critical",
"Failed to insert user into TABLE_X","","Program aborting","?",e );
m_mgr.SystemErrorExit();
1. The only answers I can find in the forums is either to increase max open cursors in inti.ora, or to close your statements correctly. I'v tried increasing max open cursors but this does not help..(its not a very god approach anyway), and I can't see why I should close my statements from SQLJ: This error did not occur in the same application on a different platform 10 months ago.
2. Could it have something to do with the thin driver version I'm using. Either in JDev or in the database. I use JDev 903 (on win 2000) and a 8.1.7.4 database (on solaris).
3. I tried using oci8 connectoin, but could not get it working. Using oci8 i got the error
java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path
Feedback appreciated.
/AndersFor oci to work you should have Oracle or SQL client installed on your machine.
You should also have ORACLE_HOME\bin in you path.
ocijdbc9.dll is available in the above directory.
Chandar -
Error while running SQLJ program
I got the following error message when i execute a SQLJ program.
C:\Oracle\oracle8i\sqlj\demo>java TestInstallSQLJ
Error running the example: java.sql.SQLException: No suitable driver
Expecting help from anyone.
ThanksCould you post your sample program and what your classpath is? Most likely the oracle drivers are not in the classpath, or if running the oci driver, the shared libraries (or dlls) are not in your library path or (path).
Maybe you are looking for
-
No video support with iPad lightning-VGA adapter (iOS 8.3)
Just subscribed to HBO NOW and bought a lightning-to-VGA adapter ($55!) to watch HBO on my computer monitor (no HDMI, only VGA) from my iPad mini. Worked fine on iOS 8.2, but then when upgraded to 8.3 I could no longer get video support. Still have i
-
How can I create a drawing like the one pictured from a photo?
How can I create a drawing like the one pictured from a photo?
-
How do I wipe my mac it is really slow and i'm getting to the point where i would like to switch back to a windows computer
-
Creative Suite 6 Design Standard Trial - AAAGGGHHH!
I have had adobe creative suite for a year or two with no problems. Last month, the trial window popped up and has been annoying me for 30 days. Today is the last of the trial days and now I CAN'T OPEN PHOTOSHOP AT ALL!!!! It is telling me to purchas
-
Outside In:Converting attachment present in the .msg to PDF
Hi, I looked in the Oracle outside in documentation where it is mentioned that message file (.msg) can be converted to pdf.But i am unable to find any sample C\C++ code to convert the attachment present in that files. I was under the impression that