Oracle 9i +connect by alternative for using NOCYCLE
Hi all,
i struggling with the problem of using a hierarchical query where loop data should be discarded.
upgrade to oracle 10 so i can use nocycle is not an option
is there another way to achieve this?
or is there equivalent for this?
regards
robert
Message was edited by:
robertR
What with people marking their posts as URGENT!!! and bumping them all the time this probably got missed...
For a 9i workaround see...
How to use CONNECT BY,skip the circular loop if found,and keep processing?
Similar Messages
-
DPC3941T USB ports -- connecting USB drive for use by home network ?
Can the DPC3941T USB ports be used to connect / access USB hard drive for use by home network ?
Thanks for the prompt reply --- I had hooked it up but could never access it. COMCAST take notice --- how do I enable these USB ports for home networking use ?
-
1) which SVN for Access dev? 2) alternative for use on peer-to-peer network ?
a - As I understand it typical SVN solutions require a server on your network... true?
b - Which SVN solution should we consider for keeping up with Access development revisions, etc?
c - Is there a solution that will work on a peer-to-peer network?
d - Free alternatives and low coast alternatives are?
thanks for any help.> As I understand it typical SVN solutions require a server on your network
Sure, “typical” means “many”, so yes. However many others are file based and ONLY require a share folder and thus don't require a server. And then from that shared folder you can often use add-ons to sync that folder to web based systems like GitHub. So
you can "mix" such file only systems and then over time use web based server with that system that does not require a server, but only a shared folder.
>Which SVN solution should we consider for keeping up with Access development revisions, etc.?
Actually, you can just simply “copy” the current version to some folder before you “release” that version. So copy and add a “version” number to the accDB file. If you application is MyInvoice.accDB, then copy to server with MyInvoice-1044.accDB (verison
1044). Since Access is a “single” file, then this works rather well compared to other systems that have “many” files. In fact I copy both the accDB, and the compiled version accDE to a folder on the server (with version number added to the file name as per
above). Thus you can go back to any previous version with great ease.
However, you might be talking about source code control in addition to versioning of software. (often the term is interchanged, but it should not be). Source code control (SCC) is a “common” means to achieve versioning of software, but ALSO allows multiple
developers to work on the project at the same time (collaboration). So there is a big difference between SVN, and SCC.
Access for a VERY long time has supported Microsoft “standard” source code control interface. While Access is a “single” file, Access is able to “logically” view each application part as a separate file. So the fact of “one” file, or “many” files does not
matter – say no more then a zip file is “one” file, but inside there are “many” files! So SCC is 100% possible in Access, and since Access has a resolution down to an object by object basis? Then developers can check-in/out individual forms, query
code modules etc.
Access versions all the way up to 2010 support the “standard” Source Code interface.
So:
Using GitHub you see this:
Using VSS, you see this:
Note that using Git, TFS, VSS etc, they ALL give the above UI with check boxes beside each object, and all give a cool "check in/check out" right click context menu not shown above.
The above Git shot is running in "file mode" without a server. Visual Source Safe is also file based, but VERY old and quote hard to find now.
So the great news is that Access has for a very long tie supported SCC, and thus is a great way to “version” your software. And Access will show you OBJECTS that are checked in/out by you as per above with the check mark and lock icon.
So inside of the access GUI you could with any SCC system that supports the standard SCC interface would know what objects are locked and you not taken ownership of. (note the "lock" and "check mark" icon beside each object.
However, Access 2013 dropped support for SCC. So all of the above cool options are NOT available for 2013.
Since Access is a “single” container, then versioning tends to be rather easy. Just copy the file to a folder with a version number appended to the file name, and you are done!
You not distinguished between versioning of your software, and that of source code control – so it not clear if you looking to just keep versions of your software, or allow team development on your application?
While SCC will give you versioning, it also allow multiple developers to work on the same application at the same time (collaboration). SVN does not necessary give you this multiple developer ability.
As noted, versioning for Access is easy - just copy the accDB (front end) to a folder on the server with a version number appended to the file name. Works quite well. I have a table in the front end with a version number, and a version number in the back
end table. My deployment code reads that version number and copies the files to the server for me.
(It is assumed that you have a split database).
However, if for 2013 you need both versioning and SCC (say to allow multiple developers), then you likely have to roll your own. I would suggest using “save-as text” command to export all access objects to a folder, and THEN use one of MANY source code control
systems that operate on that folder. Such a setup could easily be cobbled together in an afternoon of your time. And “many” SCC systems provide a GUI that is external to the developer tools/environment. This would allow you to use free tools like Git and GitHub.
For just versioning of your software? Then SCC is likely overkill, and if you using Access 2013, then you cannot use standard SCC providers anymore anyway.
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada -
Other alternative for using ws_upload/ws-download
Hi ,
in newer version of SAP, ws_download & ws_upload are obselete, is there any other method by which we can do the same .
thanks
bobbyHI,
Use GUI_UPLOAD Function module..
-- Read the File From PC
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = V_FILENAME<-- This should be of type string.
TABLES
DATA_TAB = I_FILE
EXCEPTIONS
OTHERS = 17.
Thanks
mahesh -
Hi.
Is there any way to trick Kodo into using Oracle's CONNECT BY synatx for
fetching tree-like structures? Found DBDictionary useless in this case. The
only thing that comes to my mind is maybe use custom field mapping, that
will obtain the data using hand-crafted SQL. Any clues?
Regards,
Pawel SwierszczYou could either use a custom mapping, or use Kodo's SQL query feature,
and finally you could write your own Query Extension which could embed
the SQL that you would like.
Pawe__ |wierszcz wrote:
Hi.
Is there any way to trick Kodo into using Oracle's CONNECT BY synatx for
fetching tree-like structures? Found DBDictionary useless in this case. The
only thing that comes to my mind is maybe use custom field mapping, that
will obtain the data using hand-crafted SQL. Any clues?
Regards,
Pawel Swierszcz
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com -
Alternatives for play memories
The play memories software seemed to have missed some quality checks. It won't install on fairly standaard and clean MS Windows 7 laptop. It crashes and burns with message:"Cannot continue the PlayMemories Home installation because 'PMB.msi' installation failed. Try installing PlayMemories Home again.0101-1008-1603" Software version is PMHOME_4301DL.exe Are there alternatives for using this software? Can be paid. The software should be working. That is a bottom line requirement.
Hi ostraaten,
Welcome to the Sony Community! Good day and thank you for the comment. Sorry to know that you are experiencing some issues when you install PlayMemories Home.
If you cannot install or start up PlayMemories Home, or if it does not operate properly, you can download the PMH Repair Tool. Here is the link.
http://support.d-imaging.sony.co.jp/www/disoft/int/playmemories-home/download/install_error_win.html
For further assistance regarding your concern, we kindly recommend visiting our Sony Global Web site for information on contacting the Sony Support Center in your region at http://www.sony.net/SonyInfo/Support/.
If my post answers your question, please mark it as "Accept as Solution".
Thanks,
Zander -
Connecting to Remote Database using Debian w/Oracle XE
Hello.
I have managed to install Oracle XE on a Debian box.
I am trying to connect to a remote server located on my network.
I am using the following connection string:
# sqlplus <User>/<Password>@'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<IP>)(PORT=1521)))(CONNECT_DATA=(SID=<SID>)))'
However, I was given both a SID and a Service_name.
I tried connecting with both.
Is it possible to parametrize both? I checked and the remote server is up, and that is the existing port.
Thanks a lot!user603592 wrote:
Hello.
I have managed to install Oracle XE on a Debian box.
I am trying to connect to a remote server located on my network.
I am using the following connection string:
# sqlplus <User>/<Password>@'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=<IP>)(PORT=1521)))(CONNECT_DATA=(SID=<SID>)))'
However, I was given both a SID and a Service_name.
I tried connecting with both.
Is it possible to parametrize both? yes, see below
bcm@bcm-laptop:~$ sqlplus -h
SQL*Plus: Release 11.2.0.1.0 Production
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Use SQL*Plus to execute SQL, PL/SQL and SQL*Plus statements.
Usage 1: sqlplus -H | -V
-H Displays the SQL*Plus version and the
usage help.
-V Displays the SQL*Plus version.
Usage 2: sqlplus [ [<option>] [{logon | /nolog}] [<start>] ]
<option> is: [-C <version>] [-L] [-M "<options>"] [-R <level>] [-S]
-C <version> Sets the compatibility of affected commands to the
version specified by <version>. The version has
the form "x.y[.z]". For example, -C 10.2.0
-L Attempts to log on just once, instead of
reprompting on error.
-M "<options>" Sets automatic HTML markup of output. The options
have the form:
HTML [ON|OFF] [HEAD text] [BODY text] [TABLE text]
[ENTMAP {ON|OFF}] [SPOOL {ON|OFF}] [PRE[FORMAT] {ON|OFF}]
-R <level> Sets restricted mode to disable SQL*Plus commands
that interact with the file system. The level can
be 1, 2 or 3. The most restrictive is -R 3 which
disables all user commands interacting with the
file system.
-S Sets silent mode which suppresses the display of
the SQL*Plus banner, prompts, and echoing of
commands.
<logon> is: {<username>[/<password>][@<connect_identifier>] | / }
[AS {SYSDBA | SYSOPER | SYSASM}] [EDITION=value]
Specifies the database account username, password and connect
identifier for the database connection. Without a connect
identifier, SQL*Plus connects to the default database.
The AS SYSDBA, AS SYSOPER and AS SYSASM options are database
administration privileges.
<connect_identifier> can be in the form of Net Service Name
or Easy Connect.
@[<net_service_name> | [//]Host[:Port]/<service_name>]
<net_service_name> is a simple name for a service that resolves
to a connect descriptor.
Example: Connect to database using Net Service Name and the
database net service name is ORCL.
sqlplus myusername/mypassword@ORCL
Host specifies the host name or IP address of the database
server computer.
Port specifies the listening port on the database server.
<service_name> specifies the service name of the database you
want to access.
Example: Connect to database using Easy Connect and the
Service name is ORCL.
sqlplus myusername/mypassword@Host/ORCL
The /NOLOG option starts SQL*Plus without connecting to a
database.
The EDITION specifies the value for Session Edition.
<start> is: @<URL>|<filename>[.<ext>] [<parameter> ...]
Runs the specified SQL*Plus script from a web server (URL) or the
local file system (filename.ext) with specified parameters that
will be assigned to substitution variables in the script.
When SQL*Plus starts, and after CONNECT commands, the site profile
(e.g. $ORACLE_HOME/sqlplus/admin/glogin.sql) and the user profile
(e.g. login.sql in the working directory) are run. The files may
contain SQL*Plus commands.
Refer to the SQL*Plus User's Guide and Reference for more information.
bcm@bcm-laptop:~$ -
Using predefined JDBC database connection in runtime for BC4J
I've created an aplication using BC4J context, however I want to have several distinct users acessing this aplication, so I create the connection to the database using stantart JDBC 2.0, and now I want my application to use this connection instead of the one defined for BC4J.
The database user owner of the objects must be locked.
Is this possible?
Many thanks.
NunoIn Forms I used the following code to change the user at runtime. I created 3 char fields 'u','p' and 'c' for username, password and connect string respectively.
declare
uname varchar2(10);
begin
uname := get_application_property(username);
-- To display your current username
message(uname);
pause;
logout;
logon(:u,:p| |'@'| |:c);
end;
Have a nice day,
Abhijith Unnikannan,
Oracle Support Services -
Application server Oracle 10g connectivity by using real IP
I have configured the Oracle application server 10g on RHEL update 2 version. It is posible to connet from client pc by using LAN network. But it is not possible to connect from client pc by using real ip over internet.
This is a network related problem. Quite likely a firewall issue. Nothing to do with the Oracle RDBMS product itself.
The only Oracle related issue is the Oracle Listener. It listens for network connections to the IP addresses owned by that Oracle server platform. You can make it listen to only a single address (on a specific NIC). Or on a set or all IP addresses (all NICs) on that server.
It does not care where the originating connection request comes from. If it is to a port and IP address it is listening on, it will accept that connection.
Talk to your network admins. -
Oracle Provider connectivity issues in 2008 server (for Standard Users)
Hi
We're using Windows 2008 R2 server and installed a VB application. The application has the capability to connect to Access, SQL Server or Oracle Datbase using OLEDB providers. When I login as "Administrator", the application connects to all three databases.
But, When I login as "Standard user" in the server and try to connect to the Oracle Database (using Oracle OLEDB provider), the application errors "Database server doesn't exist or Access denied".
We are using Oracle 10g (oraops10.dll, version 1.102.2.20) client. We have also provided the full access rights to "Authenticated Users" and "Users" account in the server and still get this error.
Any suggestions/ideas, why this error occurs?I don't think, you're correct.
As mentioned in my post, the application works fine when I logged as "Administrator". Only for the "Standard users" logins, the application doesn't work.
The Windows Server restricts the oracle database connectivity for the standard users. My questions, does oracle require "special permission" for certain folders, so the standard users can connect to the oracle database.?
Regards, Karthik -
Oracle database connectivity using oledb provider and atl classes in c++
dear friend ,
i m connecting oracle database in c++. i m using ATL classes and oledb provider for oracle. however i m facing some defficulties in stored procedure.
Normally MYSQL and sql server database is resulting result set in stored procedure i.e. we can use " select * from tablename" query in c++ to returning result. but in oracle we can not use this approch as because it dosent support. so how can i execute below stored procedure in c++ code. i have to retuen result set in STP. i m using SYS_REFCURSER in oracle . but how do i execute it in c++ code.
create PROCEDURE stp_getRecord ( p_curser SYS_REFCURSER) as
begin
open p_curser for select * from table_name;
end;
please help me asap.I tried it, commented out the reader.read and have the following connection string
string connectionString = "provider=ORAOLEDB.ORACLE; data source=ORCL; password=****; user id=****; OLEDB.NET=True"
Unfortunately the result is the same.
Edited by: Dino2dy on Nov 24, 2011 12:53 AM -
Workaround for using Oracle JDBC extension with WLS pooling
Reading the newsgroup I saw that many of us encountered the problems
with ClassCastException when tried to use Oracle JDBC extension
with WLS pooling. I also had.
In this case BEA recommends to use dangerous
method getVendorConnection() which exposes
the physical connection object to your code.
Yes it's really dangerous because of unsafe usage may breaks
WLS pooled connection(s).
Moreover, this practice will make your JDBC code
unportable (your JDBC code in addition to Oracle dependence
became Weblogic dependent):
void doSmth() {
Connection con = ...;
Connection vCon = ((WLConnection)con).getVendorConnection();
// + mess of usage con in one places and vCon in others
// (where Oracle extensions are needed)
// !Don't forget to don't close vCon!
Sux.
I found the workaround.
Introduction
============
Yes the real cause of ClassCastException is that
in depth of Oracle driver the casting
to class oracle.jdbc.driver.OracleConnection
(not to interface oracle.jdbc.OracleConnection)
is performed.
Someone can say that this is bug or pure desing.
Weblogic pooled connection provide dynamic
implementation for all public interfaces
which real physical (wrapped) connection object implements.
Great feature!
But I guess that all interface methods implemented
by simple call-delegation to physical (wrapped) connection object.
In case of oracle.jdbc.OracleConnection interface
this approach doesn't work for at least one its method:
public OracleConnection unwrap()
WLS pooled connection shoudn't implement this method by
delegation to physical connection object BUT should
return physical connection object itself!
// Wrong implementation of unwrap()
// delegation is used
public OracleConnection unwrap() {
return physicalConnection.unwrap();
// Right implementation of unwrap()
// physical connection returned
public OracleConnection unwrap() {
return physicalConnection;
Workaround
==========
1. Develop your own OracleConnection wrapper class:
import oracle.jdbc.OracleConnection;
import weblogic.jdbc.extensions.WLConnection;
public class MyOracleConnectionImpl implements OracleConnection {
private OracleConnection con;
public MyOracleConnectionImpl(OracleConnection connection)
throws SQLException
this.con = connection;
public OracleConnection unwrap() {
return (OracleConnection)
((WLConnection)con).getVendorConnection();
/* Implement all other methods by delegation to con object */
2. Don't get Connections directly from DataSource --
develop your own simple (may be static) utility
class which retrives Connections from dataSource
and returns them wrapped into your MyOracleConnectionImpl
to your code from some method:
puclic abstract class MyConnectionSource {
public static Connection getConnection() {
Connection con = // get it from DataSource
return new MyOracleConnectionImpl((OracleConnection)con);
3. Add attribute RemoveInfectedConnectionsEnabled="false"
to definition of your JDBCConnectionPool within config.xml
You may do it because of you `safely` use vendorConnection --
you don't expose it to application code.
4. Enjoy the Oracle JDBC extensions in your code!
Example:
Connection con = MyConnectionSource.getConnection;
ArrayDescriptor add =
ArrayDescriptor.createDescriptor("your_type", con);
Hope it helps to someone.
Best regards,
Eugene VoytitskyHello Eugene Voytitsky,
Thanks Eugene Voytitsky for your idea
I have tried the solution suggested by You, but it did not work.
It still throws ClassCastException.
I am sorry for posting the whole code of two classes below.
I did this to give you more clarity.
I am also indicating the place where the exception was thrown..
Please let me know if I am doing something wrong.
OracleConnection Wrapper class
package ejbTesting;
// sql imports
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.SQLWarning;
import java.sql.Statement;
// util imports
import java.util.Map;
import java.util.Properties;
// imports from Oracle Driver Classes
import oracle.jdbc.OracleConnection;
import oracle.jdbc.OracleOCIFailover;
import oracle.jdbc.OracleSavepoint;
// import from Weblogic extensions
import weblogic.jdbc.extensions.WLConnection;
public class WeblogicConnectionWrapper implements OracleConnection
// oracle connection object
private OracleConnection connection;
public WeblogicConnectionWrapper (OracleConnection orclConnection)
try
this.connection = orclConnection;
catch(Exception unexpected )
unexpected.printStackTrace();
public OracleConnection unwrap()
try
// The datasource returns a weblogic.jdbc.pool.Connection
// This needs to be type casted to weblogic.jdbc.extensions.WLConnection
// Only this weblogic.jdbc.extensions.WLConnection CAN BE type casted
// to OracleConnection
return (OracleConnection) ((WLConnection) connection).getVendorConnection();
catch(Exception sqlException )
sqlException.printStackTrace ();
return null;
/* Implement all other methods by delegation to connection object */
public Connection _getPC()
return connection._getPC();
public void archive(int i, int j, String s)
throws SQLException
connection.archive(i, j, s);
public void assertComplete()
throws SQLException
connection.assertComplete();
public void clearWarnings()
throws SQLException
connection.clearWarnings();
public void close()
throws SQLException
connection.close();
public void commit()
throws SQLException
connection.commit();
public Statement createStatement()
throws SQLException
return connection.createStatement();
public Statement createStatement(int i, int j)
throws SQLException
return connection.createStatement(i, j);
public boolean getAutoClose()
throws SQLException
return connection.getAutoClose();
public boolean getAutoCommit()
throws SQLException
return connection.getAutoCommit();
public CallableStatement getCallWithKey(String s)
throws SQLException
return connection.getCallWithKey(s);
public String getCatalog()
throws SQLException
return connection.getCatalog();
public boolean getCreateStatementAsRefCursor()
return connection.getCreateStatementAsRefCursor();
public int getDefaultExecuteBatch()
return connection.getDefaultExecuteBatch();
public int getDefaultRowPrefetch()
return connection.getDefaultRowPrefetch();
public Object getDescriptor(String s)
return connection.getDescriptor(s);
public boolean getExplicitCachingEnabled()
throws SQLException
return connection.getExplicitCachingEnabled();
public boolean getImplicitCachingEnabled()
throws SQLException
return connection.getImplicitCachingEnabled();
public boolean getIncludeSynonyms()
return connection.getIncludeSynonyms();
public Object getJavaObject(String s)
throws SQLException
return connection.getJavaObject(s);
public DatabaseMetaData getMetaData()
throws SQLException
return connection.getMetaData();
public Properties getProperties()
return connection.getProperties();
public boolean getRemarksReporting()
return connection.getRemarksReporting();
public boolean getRestrictGetTables()
return connection.getRestrictGetTables();
public String getSQLType(Object obj)
throws SQLException
return connection.getSQLType(obj);
public String getSessionTimeZone()
return connection.getSessionTimeZone();
public int getStatementCacheSize()
throws SQLException
return connection.getStatementCacheSize();
public PreparedStatement getStatementWithKey(String s)
throws SQLException
return connection.getStatementWithKey(s);
public int getStmtCacheSize()
return connection.getStmtCacheSize();
public short getStructAttrCsId()
throws SQLException
return connection.getStructAttrCsId();
public boolean getSynchronousMode()
return connection.getSynchronousMode();
public int getTransactionIsolation()
throws SQLException
return connection.getTransactionIsolation();
public Map getTypeMap()
throws SQLException
return connection.getTypeMap();
public String getUserName()
throws SQLException
return connection.getUserName();
public boolean getUsingXAFlag()
return connection.getUsingXAFlag();
public SQLWarning getWarnings()
throws SQLException
return connection.getWarnings();
public boolean getXAErrorFlag()
return connection.getXAErrorFlag();
public boolean isClosed()
throws SQLException
return connection.isClosed();
public boolean isLogicalConnection()
return connection.isLogicalConnection();
public boolean isReadOnly()
throws SQLException
return connection.isReadOnly();
public String nativeSQL(String s)
throws SQLException
return connection.nativeSQL(s);
public Object openJoltConnection(String s, short word0, short word1)
return connection.openJoltConnection(s, word0, word1);
public void oracleReleaseSavepoint(OracleSavepoint oraclesavepoint)
throws SQLException
connection.oracleReleaseSavepoint(oraclesavepoint);
public void oracleRollback(OracleSavepoint oraclesavepoint)
throws SQLException
connection.oracleRollback(oraclesavepoint);
public OracleSavepoint oracleSetSavepoint()
throws SQLException
return connection.oracleSetSavepoint();
public OracleSavepoint oracleSetSavepoint(String s)
throws SQLException
return connection.oracleSetSavepoint(s);
public int pingDatabase(int i)
throws SQLException
return connection.pingDatabase(i);
public CallableStatement prepareCall(String s)
throws SQLException
return connection.prepareCall(s);
public CallableStatement prepareCall(String s, int i, int j)
throws SQLException
return connection.prepareCall(s, i, j);
public CallableStatement prepareCallWithKey(String s)
throws SQLException
return connection.prepareCallWithKey(s);
public PreparedStatement prepareStatement(String s)
throws SQLException
return connection.prepareStatement(s);
public PreparedStatement prepareStatement(String s, int i, int j)
throws SQLException
return connection.prepareStatement(s, i, j);
public PreparedStatement prepareStatementWithKey(String s)
throws SQLException
return connection.prepareStatementWithKey(s);
public void purgeExplicitCache()
throws SQLException
connection.purgeExplicitCache();
public void purgeImplicitCache()
throws SQLException
connection.purgeImplicitCache();
public void putDescriptor(String s, Object obj)
throws SQLException
connection.putDescriptor(s, obj);
public void registerApiDescription(String s, short word0, short word1, String
s1)
connection.registerApiDescription(s, word0, word1, s1);
public void registerSQLType(String s, Class class1)
throws SQLException
connection.registerSQLType(s, class1);
public void registerSQLType(String s, String s1)
throws SQLException
connection.registerSQLType(s, s1);
public void registerTAFCallback(OracleOCIFailover oracleocifailover, Object
obj)
throws SQLException
connection.registerTAFCallback(oracleocifailover, obj);
public void rollback()
throws SQLException
connection.rollback();
public void setAutoClose(boolean flag)
throws SQLException
connection.setAutoClose(flag);
public void setAutoCommit(boolean flag)
throws SQLException
connection.setAutoCommit(flag);
public void setCatalog(String s)
throws SQLException
connection.setCatalog(s);
public void setCreateStatementAsRefCursor(boolean flag)
connection.setCreateStatementAsRefCursor(flag);
public void setDefaultExecuteBatch(int i)
throws SQLException
connection.setDefaultExecuteBatch(i);
public void setDefaultRowPrefetch(int i)
throws SQLException
connection.setDefaultRowPrefetch(i);
public void setExplicitCachingEnabled(boolean flag)
throws SQLException
connection.setExplicitCachingEnabled(flag);
public void setImplicitCachingEnabled(boolean flag)
throws SQLException
connection.setImplicitCachingEnabled(flag);
public void setIncludeSynonyms(boolean flag)
connection.setIncludeSynonyms(flag);
public void setReadOnly(boolean flag)
throws SQLException
connection.setReadOnly(flag);
public void setRemarksReporting(boolean flag)
connection.setRemarksReporting(flag);
public void setRestrictGetTables(boolean flag)
connection.setRestrictGetTables(flag);
public void setSessionTimeZone(String s)
throws SQLException
connection.setSessionTimeZone(s);
public void setStatementCacheSize(int i)
throws SQLException
connection.setStatementCacheSize(i);
public void setStmtCacheSize(int i)
throws SQLException
connection.setStmtCacheSize(i);
public void setStmtCacheSize(int i, boolean flag)
throws SQLException
connection.setStmtCacheSize(i, flag);
public void setSynchronousMode(boolean flag)
connection.setSynchronousMode(flag);
public void setTransactionIsolation(int i)
throws SQLException
connection.setTransactionIsolation(i);
public void setTypeMap(Map map)
throws SQLException
connection.setTypeMap(map);
public void setUsingXAFlag(boolean flag)
connection.setUsingXAFlag(flag);
public void setWrapper(OracleConnection oracleconnection)
connection.setWrapper(oracleconnection);
public void setXAErrorFlag(boolean flag)
connection.setXAErrorFlag(flag);
public void shutdown(int i)
throws SQLException
connection.shutdown(i);
public void startup(String s, int i)
throws SQLException
connection.startup(s, i);
Util class to get Wrapped Connections from
datasource
package ejbTesting;
// j2ee imports
import javax.naming.InitialContext;
import javax.sql.DataSource;
// sql imports
import java.sql.Connection;
// imports from Oracle Driver Classes
import oracle.jdbc.OracleConnection;
* Wrapper class for the DataSource Connection from Weblogic pool
public class DataSourceConnectionWrapper
// datasource variable
private static transient DataSource datasource = null;
private static String dbName = "jdbc/workbench";
* Method that returns the database connection
public static Connection getConnection()
try
// initialsing the datasource object
initialiseDataSource ();
// Getting a connection from the datasource
Connection con = datasource.getConnection( );
// wrapping it custom wrapper class and
// returning the connection object
return new WeblogicConnectionWrapper((OracleConnection)con);
catch(Exception exception )
exception.printStackTrace();
return null;
private static void initialiseDataSource( ) throws Exception
if ( datasource == null )
try
InitialContext ic = new InitialContext( );
datasource = (DataSource) ic.lookup( dbName );
catch (Exception ne )
throw new Exception( "NamingException while looking up DataSource with
JNDI name" +
dbName + ": \n" + ne.getMessage( ) );
Exception Stack Trace
The line 46 in DataSourceConnectionWrapper
corresponds to
return new WeblogicConnectionWrapper((OracleConnection)con);
Which I feel is logical as the connection which we get from Weblogic
datasource cannot be type casted to OracleConnection
java.lang.ClassCastException: weblogic.jdbc.pool.Connection
at ejbTesting.DataSourceConnectionWrapper.getConnection(DataSourceConnectionWrapper.java:46) -
Heterogeneous Services & Oracle Generic Connectivity For DBF file?
Dear All,
Can We Create dbf file directly means without using CSV file?
Can we use Heterogeneous Services & Oracle Generic Connectivity for creating dbase DBF file or Writing in dbase DBF file?
I have used it for Excel and Access for connectivity with Oracle 9i
but I dont have any idea about dbase DBF file?
Any help in this reagards will be highly appriciatalble.
Thanks
RanaHSODBC/DG4ODBC is generic connectivity and you find the generic setup in:
Note.109730.1 How to setup generic connectivity (HSODBC) for 32 bit Windows (Windows NT, Windows 2000, Windows XP, Windows 2003)
There is nothing sepcial for DBF's. Just define a system ODBC DSN using a DBASE ODBC driver pointing to the DBF file.
The rest is absolute similar to the note.
If you have already a running HSODBC/DG4ODBC the quickest test is to just define a new system dsn for the DBF file, then change in the init>hsodbc/dg4odbc>.ora file the HS_FDS_CONNECT_INFO parameter pointing to the newly created system DSN. Last step is within the Oracle db to define a database link. -
Heterogeneous Services & Oracle Generic Connectivity for dbase DBF file
Dear All,
Can we use Heterogeneous Services & Oracle Generic Connectivity for creating dbase DBF file or Writing in dbase DBF file?
I have used it for Excel and Access for connectivity with Oracle 9i
but I dont have any idea about dbase DBF file?
Any help in this reagards will be highly appriciatalble.
Thanks
RanaI wouldn't think so these days ... however, you could try posting this in the heterogeneous services - which is somewhere on OTN.
If it we me, I'd convert the DBF into something easier to use with Oracle : like XML or CSV -
[Oracle JDBC Driver]This driver is locked for use with embedded application
Hi
I installed Sun Java Studio Enterprise 8, and am trying to connect to my Oracle database using the attached tutorial code.
The code compiles fine, but I get the following error whenever I run the file: [Oracle JDBC Driver]This driver is locked for use with embedded application
I don't understand what is happening.
Using the Runtime navigation panel on the upper left of the IDE screen, I can right-click and connect to the database, and navigate database files, using the Oracle JDBC Driver that came with JSE8.
Name: Oracle Driver
Driver: com.sun.sql.jdbc.oracle.OracleDriver
Database URL: jdbc:sun:oracle://JAZZPUP:1521;SID=REPO
If the driver is installed, and can be used to connect to a database by right-clicking on the database definition in the Runtime panel, why can't I connect to it just using java code in the IDE. I would expect both methods to work or to fail, not one of each using the same IDE.
Many thanks and take care,
Shayne
import java.sql.*;
public class CreateCoffees {
public static void main(String args[]) {
//String url = "jdbc:mySubprotocol:myDataSource";
String url = "jdbc:sun:oracle://JAZZPUP:1521;SID=REPO";
Connection con;
String createString;
createString = "create table COFFEES " +
"(COF_NAME VARCHAR(32), " +
"SUP_ID INTEGER, " +
"PRICE FLOAT, " +
"SALES INTEGER, " +
"TOTAL INTEGER)";
Statement stmt;
try {
//Class.forName("myDriver.ClassName");
Class.forName("com.sun.sql.jdbc.oracle.OracleDriver");
} catch(java.lang.ClassNotFoundException e) {
System.err.print("ClassNotFoundException: ");
System.err.println(e.getMessage());
try {
//con = DriverManager.getConnection(url, "myLogin", "myPassword");
con = DriverManager.getConnection(url, "login", "password");
stmt = con.createStatement();
stmt.executeUpdate(createString);
stmt.close();
con.close();
} catch(SQLException ex) {
System.err.println("SQLException: " + ex.getMessage());
} //end class CreateCoffees
---There are two similar threads:
http://swforum.sun.com/jive/thread.jspa?threadID=61327&tstart=0
http://swforum.sun.com/jive/thread.jspa?threadID=51057&messageID=188210
To summarize - the DataDirectDriver that is shipped with the IDE seems to be locked to be used inside the IDE only because of some licensing issues etc..
That's weird, I agree. I will raise a question on reasons for such a behavior.
The solution would be to use Oracle's own driver, that is distributed at no charge from their web site - http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
HTH,
Kirill
Maybe you are looking for
-
Problems with files and a new hard drive...
Hi there... I have maxed out an external hard drive I was using to hold all my photos.... I have bought a 2 new drives with a view to backing up everything I have on file. If I start moving files around LR then can not locate the files and they come
-
When I go to back up my bookmarks and save it as a json file on my desktop, it tells the file is only 30kb, it is highly unlikely as I have many bookmarks. I then tried to export the bookmarks as a HTML file and, it too said the file was only 30kb. y
-
My custom ringtones erased from my phone after syncing and now will not transfer back. I did an update of itunes yesterday. Can someone help me please?
-
No longer to import RAW from canon 5d mk ii
I've been repeatedly trying to import RAW+JPEG from my canon 5d mk ii today with no success. A popup asks me if i'd like to save the "unrecognized files" somewhere, which are the raw files. Then it imports the jpegs. I've looked everywhere for the
-
group messages come out green instead of blue