CR4E - JDBC Connection Properties - How do I set GenericJDBCDriver to Yes

Hi,
I need to setup my JDBC connection in CR4E like I would in my CRConfig.xml
For example, I need to add this to my connection properties:
<GenericJDBCDriver>
  <Option>Yes</Option>
  <DatabaseStructure>catalogs,schemas,tables</DatabaseStructure>
  <StoredProcType>Standard</StoredProcType>
  <LogonStyle>SQLServer</LogonStyle>
</GenericJDBCDriver>
Without setting these properties for my JDBC connection things do not work. I guess I need to use the Optional properites, but I do not know what the syntax would be for what I want.
Please help.
Thanks,
Nick

Please find below an example of setting the JDBC tags for Ms Sql 2000 (sp4)
<JDBC>
     <CacheRowSetSize>100</CacheRowSetSize>
     <JDBCURL>jdbc:microsoft:sqlserver://vm-5akouassiwk2:1433</JDBCURL>
     <JDBCClassName>com.microsoft.jdbc.sqlserver.SQLServerDriver</JDBCClassName>
     <JDBCUserName>sa</JDBCUserName>
     <JNDIURL></JNDIURL>
     <JNDIConnectionFactory></JNDIConnectionFactory>
     <JNDIInitContext>/</JNDIInitContext>
     <JNDIUserName>weblogic</JNDIUserName>
     <GenericJDBCDriver>
          <Option>No</Option>
          <DatabaseStructure>catalogs,tables</DatabaseStructure>
          <StoredProcType>Standard</StoredProcType>
          <LogonStyle>SQLServer</LogonStyle>
     </GenericJDBCDriver>
</JDBC>

Similar Messages

  • Set JDBC connection properties somewhere?

    Hi:
    I have BI Publisher 10.1.3.4 in Oracle WLS 10.3.3 and I'm using JDBC connections to get the report data. I'd like to set up the JDBC properties so that they encrypt things (and doing it here would mean no SSL database connection setup, no wallets, etc.) Where would I set these values (e.g. SQLNET.ENCRYPTION_CLIENT, SQLNET.ENCRYPTION_TYPES_CLIENT, SQLNET.CRYPTO_CHECKSUM_CLIENT, SQLNET.CRYPTO_CHECKSUM_TYPES_CLIENT).
    If I can't do it in BI Publisher somehow, perhaps it is possible (or desirable?) to do it in the WLS connection pool properties somehow?
    Thanks.

    FYI - this information can be entered via the weblogic server db connection pool creation wizard.

  • Acrobat Properties - How can I set a default group of properties?

    I have been unable to determine how to create a default set of properties. Every time I create a pdf, I have to go into the properties and set the document to open with a set of properties specific to my needs. It requires me to change the Description and all of the settings in Initial View and Security. Surely I can do this once and save it as a default. Can anyone advise?
    Thanks in Advance,
    Brad Brusenhan

    Set the defaults in the printer properties. Not within a program as they only change for that use of the program, but in the properties of the printer (Start>Printers> right click on your printer and select properties). Some properties can be set in Distiller, but generally the printer properties overrides the choices in Distiller.
    I am not sure if there is any other way to make the PDF Maker selections stick - they may be kept according to the preferences set within the application, but I am not sure (I don't use PDF Maker much).

  • How to have remote jdbc connection to timeten?

    I think our admin have set up a timeten daemon , can I connect it remotely using JDBC connection? How the connection should be? Is it like
    jdbc:timesten:192.168.1.2:dsn=my_dsn
    ??

    To create a JDBC connection, you need to specify a TimesTen connection URL. The format of a TimesTen connection URL is: </br></br>
    jdbc:timesten:{direct | client}:dsn=DSNname;[DSNattributes;]
    </br></br>
    For example, to create a client connection to the demo data store, the URL looks similar to the following:
    String URL = "jdbc:timesten:client:dsn=demoCS";
    </br></br>
    For more information, please refer to the section "Connecting to a TimesTen data store" in the Oracle TimesTen In-Memory Database Java Developer's and Reference Guide.

  • JDBC Connection Reset when using many processes on 64 bit system

    Hi,
    we've a annoying JDBC connection problem since we migrated our Java server to a 64 bit operating system. Here our environment.
    Database Machine:
    Oracle 10g
    Linux 32 Bit (but same problem on 64 Bit)
    Application Servers Machine:
    JDBC driver 11.1.0.6
    SUN Java 1.6.0_06 64bit
    Linux 64 bit (SLES 10 SP2)
    We have 6 different Java server processes (but with the same code) which all create some connections to the same database (running on a different Hardware). All 6 Java server processes starting at the same time (via scripts).
    Everything was fine, until we migrated the application server machine from 32 bit Linux to 64 bit Linux. From this day on, the half (or one more or less) of our application server processes can't longer connect to the database. The application server processes which have the problem product the following stack trace:
    java.sql.SQLRecoverableException: I/O Exception: Connection reset
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:281)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:118)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:224)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:296)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:611)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:455)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:494)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:199)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:30)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:154)
    at com.aaaa.utils.db.DbConnectionPool.<init>(DbConnectionPool.java:130)
    It looks like a network problem with the system but all other network stuff works without problems, between the two machines.
    - We use the thin JDBC driver (no OCI)
    - No firewalls are active on both systems
    - Both systems are in the same subnet connected to the same switch
    - The DNS configuration on both systems are ok (forward and reverse)
    - We've found the same problem on different application-server/database-server pairs with 64 bit application server hardware - but not all of our 64 bit server systems have this problem.
    - When running application server process and database on the same system (connecting via localhost) the problem does not longer appear.
    - The same database machine connected from a 32 bit application server (with 6 different java processes starting at the same time) works without a problem.
    We've tried a lot of things to isolate the problem - but with no success.
    - Same problem with SUN Java 1.6.0_06 32 bit (on 64 bit Linux)
    - Same problem with SUN Java 1.6.0_15 (32 and 64 bit)
    - Played with some JDBC connection properties (oracle.jdbc.TcpNoDelay, oracle.jdbc.ReadTimeout, oracle.net.CONNECT_TIMEOUT, oracle.net.disableOob, oracle.jdbc.RetainV9LongBindBehavior, oracle.jdbc.StreamChunkSize) without a positive result.
    - We've updated Linux network driver
    - We've changed to an completeky other NIC
    - We've tried an other Linux 64 distribution
    - We've increased the PROCESSES parameter in the init.ora
    - We've tried the JDBC driver 11.1.0.6
    - We've tried the _g version of the JDBC driver, but the debugging output simply tell us "Connection Reset" without a hint why.
    - We've tried a more complex JDBC connect string (
    "jdbc:oracle:thin:@(DESCRIPTION=" +
    "(ADDRESS_LIST=" +
    "(ADDRESS=(PROTOCOL=TCP)" +
    "(HOST=host)" + =
    "(PORT=port)" +
    ")" +
    ")" +
    "(CONNECT_DATA=" +
    "(SERVICE_NAME=sid)" +
    "(SERVER=DEDICATED)" +
    ")" +
    Nothing of this things helped us to isolate the problem.
    When we start our application server processes with a long pause (>1 min) between every process start. The problem does not occure. When we start only one application server with the same number of connections as the 6 different application server processes, everything works fine.
    We have absolute no idea why
    - this only occures on 64 bit Linux
    - independent if it's a 32 bit or 64 bit JVM
    - does not occure on all 64 bit application server machines / database machine pairs
    - never occure on the same 64 bit app server hardware when using a 32 bit Linux
    - using the Oracle JDBC 10g driver (10.xxx) there is no problem (but because of other issues, we need to use the JDBC 11g driver)
    Does anybody has an idea what our problem is?
    Thanks in advance,
    greetings

    I was recently struggling with this exact same problem. I opened a ticket with Oracle and this is what they told me.
    java.security.SecureRandom is a standard API provided by sun. Among various methods offered by this class void
    nextBytes(byte[])
    is one. This method is used for generating random bytes. Oracle 11g JDBC drivers use this API to generate random number during
    login. Users using Linux have been encountering SQLException("Io exception: Connection
    reset").
    The problem is two fold
    1. The JVM tries to list all the files in the /tmp (or alternate tmp directory set by -Djava.io.tmpdir) when
    SecureRandom.nextBytes(byte[]) is invoked. If the number of files is large the
    method takes a long time
    to respond and hence cause the server to timeout
    2. The method void nextBytes(byte[]) uses /dev/random on Linux and on some machines which lack the random
    number generating hardware the operation slows down to the extent of bringing the whole login process to
    a halt. Ultimately the the user encounters SQLException("Io exception:
    Connection reset")
    Users upgrading to 11g can encounter this issue if the underlying OS is Linux which is running on a faulty hardware.
    Cause
    The cause of this has not yet been determined exactly. It could either be a problem in
    your hardware or the fact
    that for some reason the software cannot read from dev/random
    Solution
    Change the setup for your application, so you add the next parameter to the java command:
    -Djava.security.egd=file:/dev/../dev/urandom
    We made this change in our java.security file and it has gotten rid of the error.

  • JBO-3003 Application pool, Error JDBC connection

    Hi, I'm trying to run a simple webapp but get this error:
    JBO-30003: The application pool (model.RoomReservationsAppModuleLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
    Anyone know what to do?
    Regards ,
    Ketil
    I

    Hi Erik,
    The solution of having the two root ApplicationModules share a single JDBC connection violates some assumptions of the BC4J architecture and could result in some strange race conditions in JDBC.
    We should focus your solution on how the panels are released. It ought to be possible to release the BindingContainer for the panel without releasing the underlying DataControl. With this solution you would only require one root ApplicationModule and one JDBC connection.
    How are you releasing the ADF and BC4J references when you close the panel? I would expect you to be invoking release on the DCBindingContainer instance only. If you are already doing this then what is causing the commit/rollback?
    Hope this helps,
    JR

  • I want the complete JDBC Connection details

    Hi
    I want to have a complete JDBC Connection like how to insert records, update/edit records and deleting records. Do u know a website or can anybody give an entire code having all the functions of JDBC.

    I'm a Nigerian diplomat. If you send me a check for $1000 USD I'll send you $1M and all those code samples.
    It'd be better for you to go read and try them yourself. They're not that hard.
    It'd also be better for you not to be so demanding. This is a volunteer forum, and nobody owes you anything. Your manners are appalling.
    %

  • Configure JDBC connection ERROR: no ocijdbc9 in java.library.path

    ERROR: no ocijdbc9 in java.library.path
    step 6 is where I need help!? thanx.
    When configuring a database connection, I chose
    1. Oracle JDBC (connection type)
    2. Authentication (username/password of my D2K repository)
    3. Driver: oci8
    4. Hostname: pmurphy1 (my local machine where my db is)
    5. Port: 1521 default (odbc works on this)
    * 6. Enter custom JDBC url (? please help ?) left blank!!
    I really wanna get started with this cool toy!!!
    Cheers,
    Paully

    I am assuming you are using JDeveloper 3.2x
    Please see the online help for additional details.
    Search help for "JDBC Connection Properties" - With the
    quotations and you will find a page names "JDBC Connection
    Properties"
    This page contains the following info and additional links.
    -John
    ------------- COPIED FROM HELP ---------------
    Oracle JDBC-OCI8 Driver
    Use this type 2 driver when creating a Java application that
    runs against an Oracle8i server. This is a thick driver
    optimized for the Oracle8i database: it cannot be used with
    applets. This driver handles any database protocol (TCP, IPX,
    BEQ, and so on). It is required for applications which are run
    from the machine they are stored on. It can also be used against
    an Oracle7 database.
    This driver requires client software installation. The project
    must also include the correct version of the driver in a library
    and include no other Oracle JDBC library. This driver is
    included in the default Oracle JDBC library for all projects.
    The library is named Oracle 8.1.7 JDBC and it includes both the
    Thin JDBC and JDBC-OCI8 driver library components. For all OCI
    and type 2 JDBC drivers, see Connection Requirements for OCI and
    Type 2 JDBC Drivers.
    ------------- COPIED FROM HELP ---------------

  • Adworker using wrong JDBC connect string during upgrade to 12.1.3

    Our env
    APPS - 12.1.2 - running on SLES 11
    DB 11.2.0.3 - running on IMB System z
    We cloned PROD to a new host (instance was previously on DB host - debsdb01 and app host debsap03)
    The clone was made to debsdb04 - and app was reconfigured on debsap03
    I got the app to start up and run before taking it down to apply the 12.1.3 patch.
    However, in the process of the 12.1.3 patch, I see the following entry in the ADworker log files.
    JDBC connect string from AD_APPS_JDBC_URL is
    (DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=hostname1.companyname.com)(PORT=1549)))(CONNECT_DATA=(SID=DEV3)))
    where as it should be
    JDBC connect string from AD_APPS_JDBC_URL is
    (DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=hostname4.companyname.com)(PORT=1535)))(CONNECT_DATA=(SID=DEV3)))
    If I do an echo $AD_APPS_JDBC_URL on debspap03, it returns
    JDBC connect string from AD_APPS_JDBC_URL is
    (DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=hostname4.companyname.com)(PORT=1535)))(CONNECT_DATA=(SID=DEV3)))
    Where are the ADWORKERS getting the old value of the DB host name?
    Any help would be appreciated.
    Thanks
    Edited by: 864641 on Sep 16, 2012 7:32 AM

    I believe figured out what the issue was.
    I was (am) running the patch session from a VNC session that was established during the previous version of this instance - so the previous connect string was being used.
    Once I killed the old VNC session and established a new one, I was able to retrieve the correct value for $AD_APPS_JDBC_URL from the command prompt.
    Yes - the value of the $AD_APPS_JDBC_URL was showing the old value in the old VNC session.
    Thanks for all of your input esp on a Saturday - when I thought I would have to wait until Monday to get this figured out.

  • How to set roles from JDBC connections

    Hi guys,
    I have a jdbc connection which purpose is to run queries based on a string that I construct in my program.
    My question is: if I have to run a DCL, like: SET ROLE RL_XXX TO USER1;
    What's the easiest way to do it with my same connection?
    Thanks.

    Hi Marc,
    Sorry for the typo. It's a BDC source, I use a WCF client to access a SQL Database (HR External System) that has 4 fields that are necessary to present in the Sharepoint User Profile. The issue occurs with a Full or a Delta Sync. The problem is that if the
    BDC source is not present the fields are deleted (I get a SPS-Dummy Added and all of the pbjects in the BDC Connector Space are deleted).
    I do not want this to happen. I do not want the User Profile Attributes/Fields to be empty/deleted if there is no connection I simply want them to stay what they are... I have two issues.
    1) Is that the even if i change my data on SQL Server side, the changes do not get picked up by the sync. Since the only field that is being tested for change is an ADid, since the id does not change the BDC does not consider them changes.
    2) If there is no connection I do not want the attributes to be deleted. I have not figured out a way to effectively do this.
    So my issue appears to be simple to solve, but after 4 days and hundreds of tutorial pages read I have yet to figure out a proper way to do this.
    Here is the pseudo-specification
    The Fields that come form the HR System (SQL Server) are to be presented in the user profile. If there is no connection to the BDC file the fields remain as they are until there is a connection and updates can be made. Changes to any of the fields are performed
    manually in the HR system. These changes must be picked up by the daily sync.

  • How to use JDBC Connection Pools in a standalone application?

    Hi, there,
    I have a question about how to use JDBC Connection Pools in an application. I know well about connection pool itself, but I am not quite sure how to keep the pool management object alive all the time to avoid being destroyed by garbage collection.
    for example, at the website: http://www.developer.com/java/other/article.php/626291, there is a simple connection pool implementation. there are three classes:JDBCConnection, the application's gateway to the database; JDBCConnectionImpl, the real class/object to provide connection; and JDBCPool, the management class to manage connection pool composed by JDBCConnectionImpl. JDBCPool is designed by Singleton pattern to make sure only one instance. supposing there is only one client to use connection for many times, I guess it's ok because this client first needs instantiate JDBCPool and JDBCConnectionImpl and then will hold the reference to JDBCPool all the time. but how about many clients want to use this JDBCPool? supposing client1 finishes using JDBCPool and quits, then JDBCPool will be destroyed by garbage collection since there is no reference to it, also all the connections of JDBCConnectionImpl in this pool will be destroyed too. that means the next client needs recreate pool and connections! so my question is that if there is a way to keep pool management instance alive all the time to provide connection to any client at any time. I guess maybe I can set the pool management class as daemon thread to solve this problem, but I am not quite sure. besides, there is some other problems about daemon thread, for example, how to make sure there is only one daemon instance? how to quit it gracefully? because once the whole application quits, the daemon thread also quits by force. in that case, all the connections in the pool won't get chance to close.
    I know there is another solution by JNDI if we develop servlet application. Tomcat provides an easy way to setup JNDI database pooling source that is available to JSP and Servlet. but how about a standalone application? I mean there is no JNDI service provider. it seems a good solution to combine Commons DBCP with JNID or Apache's Naming (http://jakarta.apache.org/commons/dbcp/index.html). but still, I don't know how to keep pool management instance alive all the time. once we create a JNDI enviroment or naming, if it will save in the memory automatically all the time? or we must implement it as a daemon thread?
    any hint will be great apprieciated!
    Sam

    To my knoledge the pool management instance stays alive as long as the pool is alive. What you have to figure out is how to keep a reference to it if you need to later access it.

  • Setting connection properties?

    Hi,
    Is there a way to set properties on the jdbc connection in sql developer? I'm trying to spoof the osuser property by setting the v$session.osuser property to test a procedure.
    Thanks
    Suneel

    Did you ever find a way to do this? I'm looking for a way to set the oracle.jdbc.ReadTimeout property on my connections because SQLDeveloper keeps hanging for long periods of time when a database connection is killed by our firewall.

  • How do i hide the password in my jdbc connection?

    I just want to ask how to hide my password in my jdbc connection because when someone decompile my class and read my code, he can change the content of my database. I want to know the steps behind it.
    my code goes like this
    DriverManager.getConnection("jdbc:mysql://localhost/fruits", "admin", "3xmrk");

    i opened a notepad and write my jdbc properties and save it as database.properties.
    and i tried to test it with the following code but i get a null pointer exception... is my way of creating .properties file is wrong??
    import java.util.*;
    import java.io.*;
    public class Testing2
         public Testing2()
              Properties props = new Properties();
              try
                   InputStream in = getClass().getResourceAsStream("database.properties);
                   if (in == null)
                        throw new NullPointerException("Could not find database.properties");
                   props.load(in);
              catch (IOException e)
                   throw new RuntimeException(
                        "Error loading dbservices.properties from classpath.", e);
              String dbUrl_ = props.getProperty("dbUrl");
              String dbLogin_ = props.getProperty("dbLogin");
              String dbPassword_ = props.getProperty("dbPassword");
         public static void main(String args[])
              new Testing2();
    }

  • Can we set an Alert  for JDBC Connection Failures ?

    Hi friends ,
                      Can we set an alert for JDBC Connection failure as mail as well as Alert ?
                      I am using JDBC Sender adapter to read the data from sql server table.
                      I am not using BPM .
                      I want to set an alert and mail to respective person when JDBC Connection failure .
                      If XI trying to read a database if  connection failure or connection properties lost it won't come ti Integration engine itself  right ?
                     I assume as we have to set alert at system level .
                    Can you please give me the step by step details  to set this kind of alerts ?    
                      Expecting your reply asap .
    Best Regards.,
    V.Rangarajan

    Renga rajan,
    This is what I tried to explain in yuor previous threads.
    >>>If XI trying to read a database if connection failure or connection properties lost it won't come ti Integration engine itself right ?
    In such cases, you will get <b>an error at adapter level</b> and the msg wont come into IE.
    >>>I assume as we have to set alert at system level .
    If you are above SP 14 in XI3.0, then you can raise alerts for adapter errors also.
    No special config required for this.
    To understand this, give it a try and you will get the concept.
    Regards,
    Jai Shankar

  • I have a new MAcBook Air and my photos don't fit on the internal hard drive.  I want to store my photos on an external hard drive which I will connect to my Air when using Iphoto.  How do I set an external hard drive as the default drive?

    I have a new MAcBook Air and my photos don't fit on the internal hard drive.  I want to store my photos on an external hard drive which I will connect to my Air when using Iphoto.  How do I set an external hard drive as the default drive in Iphoto?

    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

Maybe you are looking for

  • Can I recover data from a hard drive that has crashed?

    My computer had frozen up so I had to restart it by holding down the power button. After I had done this, I kept getting a recurring kernel panic error. I had taken my MacBook the Apple Store and the tech who looked at it said that my hard drive was

  • Wireless and wired network set up?

    Currently I have one iMac and two PCs connecting wirelessly to my Airport Extreme. One of the PCs found it without any issues...the other PC crashed and had to be rebuilt during the 3 days of trouble shooting. When it was rebuilt it to found the Airp

  • Can one upgrade darwin 10.8 (OSX 10.6.8) to Safari 6?

    Hi, I have a MacBook Pro running on OS X 10.6.8 and kernel  Darwin 10.6.8. I've been trying to update Safari to get Safari 6, but when I make the update,  Apple update "tells" me all my apps are up to date already. But I am still stock with Safari 5.

  • Windows 7 64-bit cannot find Reader 11

    Windows 7 64-bit pops up a message stating Adobe Reader 11 cannot be found. The program was operating fine. I have checked the file path, it's correct. I have given permissions in the registry, uninstalled, re-installed, all to no avail. All PDFs ope

  • Windows 10 Build 10041 start menu not working

    I have installed the Windows 10 Build 10041 update yesterday. But since then I can't leave my computer till it sleep automatically. Otherwise my computer will complete died and I need to press the power bottom to restart Windows. But at that time, th