WL7.0 ignores connection properties

I'm trying to use the Sybase XA driver with WL7.0 and can't seem to get all
of the connection properties passed on to the driver. Specifically, I need
to have the CHARSET=iso_1 set in order to connect to the server. The
properties string looks like this:
DriverName="com.sybase.jdbc2.jdbc.SybXADataSource"
Properties="url=jdbc:sybase:Tds:sfohp7:5055;
NetworkProtocol=Tds;
DatabaseName=theDatabaseName;
dataSourceName=jtaXAPool;
user=theuser;
CHARSET=iso_1;
PortNumber=5055;
password=welcome;
ServerName=ipaddress"
I have a test program which uses the XA driver and can successfully connect
when given the CHARSET property, and which fails without. This would seem to
verify that the XA driver will respect this property. However, specifying
this property in the above connect string for WL7.0 has no effect, causing
the following exception:
<Jun 10, 2002 12:52:33 PM EDT> <Error> <JDBC> <001060> <Cannot startup
connection pool "jtaXAPool" weblogic.common.ResourceException:
weblogic.common.ResourceException: java.sql.SQLException: JZ006: Caught
IOException: java.io.IOException: JZ0I6: An error occured converting UNICODE
to the charset used by the server. Error message:
java.io.CharConversionException: java.io.UnsupportedEncodingException:
hp-roman8
The same CHARSET property passed to the non-XA sybase driver DOES remedy
this problem. I can't figure out why Weblogic would pick and choose which
properties to send to the driver, but I can't explain why my sample program
can connect fine using the same connection string. Any suggestions would be
greatly appreciated.
-Aaron

Fei,
Attached is my test program (hopefully, it will attach correctly...if not
here is the snippet of connection code). This came from a Sybase rep while
we were trying to validate the DTM/XA configuration was correct on the
server. The relevant connection code reads:
<-------snip------------>
com.sybase.jdbcx.SybDataSource sds = new
com.sybase.jdbc2.jdbc.SybXADataSource();
sds.setServerName(SERVERHOST);
sds.setPortNumber(SERVERPORT);
Properties props = new Properties();
props.put("user", USER);
props.put("password", PASSWORD);
props.put("CHARSET", "iso_1");
sds.setConnectionProperties(props);
//... etc... and connection properties also go here.
// -- this is equivalent to getting the
// XADataSource back from JNDI, a la
// XADataSource sds = (XADataSource) ctx.lookup(...);
// downcast to expose the getXAConnection method
// let's use a couple different xa connections to make things
// more complicated
xaconn1 = ((XADataSource)sds).getXAConnection();
<------snip-------------->
If I remove the props.put("CHARSET", "iso_1") from my test program, it fails
with the UnsupportedEncodingException as expected. However, adding this
CHARSET to the Properties in the connection pool does not seem to fix the
same issue within Weblogic.
Thanks for taking a look..
-Aaron
"Fei Luo" <[email protected]> wrote in message
news:[email protected]...
>
Aaron,
Could you please attach your test program that works? Thanks.
"Aaron" <[email protected]> wrote:
I'm trying to use the Sybase XA driver with WL7.0 and can't seem to get
all
of the connection properties passed on to the driver. Specifically, I
need
to have the CHARSET=iso_1 set in order to connect to the server. The
properties string looks like this:
DriverName="com.sybase.jdbc2.jdbc.SybXADataSource"
Properties="url=jdbc:sybase:Tds:sfohp7:5055;
NetworkProtocol=Tds;
DatabaseName=theDatabaseName;
dataSourceName=jtaXAPool;
user=theuser;
CHARSET=iso_1;
PortNumber=5055;
password=welcome;
ServerName=ipaddress"
I have a test program which uses the XA driver and can successfullyconnect
when given the CHARSET property, and which fails without. This would seem
to
verify that the XA driver will respect this property. However, specifying
this property in the above connect string for WL7.0 has no effect,causing
the following exception:
<Jun 10, 2002 12:52:33 PM EDT> <Error> <JDBC> <001060> <Cannot startup
connection pool "jtaXAPool" weblogic.common.ResourceException:
weblogic.common.ResourceException: java.sql.SQLException: JZ006: Caught
IOException: java.io.IOException: JZ0I6: An error occured convertingUNICODE
to the charset used by the server. Error message:
java.io.CharConversionException: java.io.UnsupportedEncodingException:
hp-roman8
The same CHARSET property passed to the non-XA sybase driver DOES remedy
this problem. I can't figure out why Weblogic would pick and choose which
properties to send to the driver, but I can't explain why my sampleprogram
can connect fine using the same connection string. Any suggestions would
be
greatly appreciated.
-Aaron
[SimpleDtmTest.java]

Similar Messages

  • Error:Make sure user mapping is correct & all connection properties r right

    Hi,
    I am using SRM 5.0 and EP 7.0 I had imported the verify.der certificate of portal on SRM and changed the profile parameters of SRM to accept tickets.
    And now after creating a system object for Srm on Portal I tried to test the connectivity and it shows the following error.
    "Connection failed. Make sure user mapping is set correctly and all connection properties are correct."
    ANy ideas? Please advice.
    Swetha

    My simple rule is to ignore the message as the test tends to give false negatives. Instead try to access the system with an iView, such as SAP transaction, or use System admin -> support -> SAP application -> scroll down to SAP transaction.
    Cheers

  • How do I get a new value for the service name field and update it in Connection Properties?

    I am running Windows Vista. I just upgraded to Firefox 4. When I try to log on to the internet, it tells me the proxy server is refusing connections. A diagnostic reported Error 815 and said the remote server is not responding because there is an invalid value for the "Service Name" field. It said to get a new value and update it in Connection Properties. How do I do this?

    When you create a new film script, the first page you see is a title page.
    The page after this title page is the one where you generally type in your scenes.
    It looks like you are facing some issue and not able to delete any text.
    Can you please send me this script so that I can have a better look at your issue?
    You can save this script to disk by using option 'File -> Save to disk'. This will create a '.stdoc' file on your system.
    Just mail this '.stdoc' file to me at 'roverma <at> adobe <dot> com'
    Thanks

  • JCA adapter outbound connection properties values are not populating ..

    Hi ,
    I am struggling to find a solution for this problem.
    My managed connection factory impl has all the properties as per the java bean spec. I have also implemented hashcode and equals but i still don't see the custom outbound custom properties information populated into my ManagedConnectionFactoryImpl properties. I checked property names in both weblogic-ra.xml and ra.xml. The names are consistent.
    As per this discussion (BINDING.JCA-12510 JCA Resource Adapter location error in SOA 11g Suite i saved the properties using Keyboard entered. I restarted my server and also i can see the saved values
    I also verified the Plan.xml that gets created when the values are updated. Please find the provided the code snippets. Any help appreciated.
    Please let me know if i need to post this in a different forum. We use weblogic 10.3.5 application server. Let me know for any more details.
    Thanks,
    Sri
    For more information:
    Following is the managed connection factory Impl
    package com.cgi.cml.common.sample.connector.ra.outbound;
    import java.beans.PropertyChangeListener;
    import java.beans.PropertyChangeSupport;
    import java.io.PrintWriter;
    import java.io.Serializable;
    import java.util.Iterator;
    import java.util.Set;
    import javax.resource.ResourceException;
    import javax.resource.spi.ConnectionManager;
    import javax.resource.spi.ConnectionRequestInfo;
    import javax.resource.spi.ManagedConnection;
    import javax.resource.spi.ManagedConnectionFactory;
    import javax.security.auth.Subject;
    public class SampleManagedConnectionFactoryImpl
         implements ManagedConnectionFactory, Serializable {
    private transient PropertyChangeSupport changes =new PropertyChangeSupport(this);
         private String databaseFileName = "";
    private String database = "";
    private String user = "";
    private String password = "";
    private String dtdPath = "";
    private String protocol = "";
    private String serverAddress = "";
    private Boolean debugMode = false;
         private PrintWriter writer;
         * Constructor for SampleManagedConnectionFactoryImpl
         public SampleManagedConnectionFactoryImpl() {
         * @see ManagedConnectionFactory#createConnectionFactory(ConnectionManager)
         @Override
         public Object createConnectionFactory(ConnectionManager cm)
              throws ResourceException {
              return new MomapiConnectionFactoryImpl(this, cm);
         * @see ManagedConnectionFactory#createConnectionFactory()
         @Override
         public Object createConnectionFactory() throws ResourceException {
              return new MomapiConnectionFactoryImpl(this, null);
         * @see ManagedConnectionFactory#createManagedConnection(Subject, ConnectionRequestInfo)
         @Override
         public ManagedConnection createManagedConnection(
              Subject subject,
              ConnectionRequestInfo cxRequestInfo)
              throws ResourceException {
              System.out.println("createdManaged Connection called");
              return new SampleManagedConnectionImpl(subject,cxRequestInfo);
         * @see ManagedConnectionFactory#matchManagedConnections(Set, Subject, ConnectionRequestInfo)
         @Override
         public ManagedConnection matchManagedConnections(
              Set connectionSet,
              Subject subject,
              ConnectionRequestInfo cxRequestInfo)
              throws ResourceException {
              System.out.println("match managed Connections called---->"+getDatabaseFileName());
              ManagedConnection match = null;
              Iterator iterator = connectionSet.iterator();
              if (iterator.hasNext()) {
                   match = (ManagedConnection) iterator.next();
              return match;
         * @see ManagedConnectionFactory#setLogWriter(PrintWriter)
         @Override
         public void setLogWriter(PrintWriter writer) throws ResourceException {
              this.writer = writer;
         * @see ManagedConnectionFactory#getLogWriter()
         @Override
         public PrintWriter getLogWriter() throws ResourceException {
              return writer;
    * Checks whether this instance is equal to another.
    * @param obj other object
    * @return true if the two instances are equal, false otherwise
         @Override
    public boolean equals(Object obj)
              System.out.println("equals method called");          
    boolean equal = false;
    if (obj != null)
    if (obj instanceof MomapiManagedConnectionFactoryImpl)
         SampleManagedConnectionFactoryImpl other = (SampleManagedConnectionFactoryImpl) obj;
    equal = (this.databaseFileName).equals(other.databaseFileName) &&
    (this.database).equals(other.database) &&
    (this.user).equals(other.user) &&
    (this.password).equals(other.password) &&
    (this.dtdPath).equals(other.dtdPath) &&
    (this.protocol).equals(other.protocol) &&
              (this.serverAddress).equals(other.serverAddress) &&
              (this.debugMode==other.debugMode);
              System.out.println("equals method returning -->"+ equal);
    return equal;
    * Returns the hashCode of the ConnectionRequestInfoImpl.
    * @return the hash code of this instance
    public int hashCode()
    //The rule here is that if two objects have the same Id
    //i.e. they are equal and the .equals method returns true
    // then the .hashCode method must return the same
    // hash code for those two objects      
    int hashcode = new String("").hashCode();
    if (databaseFileName != null)
    hashcode += databaseFileName.hashCode();
    if (database != null)
    hashcode += database.hashCode();
    if (user != null)
    hashcode += user.hashCode();
    if (password != null)
    hashcode += password.hashCode();
    if (dtdPath != null)
    hashcode += dtdPath.hashCode();
    if (protocol != null)
    hashcode += protocol.hashCode();
    if (serverAddress != null)
    hashcode += serverAddress.hashCode();
              System.out.println("hascode method called and the value is -->"+hashcode);
    return hashcode;
    * Associate PropertyChangeListener with the ManagedConnectionFactory,
    * in order to notify about properties changes.
    * @param lis the PropertyChangeListener to be associated with the
    * ManagedConnectionFactory
    public void addPropertyChangeListener(PropertyChangeListener lis)
         System.out.println("addPropertyChangeListener called");
    changes.addPropertyChangeListener(lis);
    * Delete association of PropertyChangeListener with the
    * ManagedConnectionFactory.
    * @param lis the PropertyChangeListener to be removed
    public void removePropertyChangeListener(PropertyChangeListener lis)
         System.out.println("removePropertyChangeListener called");      
    changes.removePropertyChangeListener(lis);
    public String getDatabaseFileName() {
              return databaseFileName;
         public void setDatabaseFileName(String databaseFileName) {
              this.databaseFileName = databaseFileName;
         public String getDatabase() {
              return database;
         public void setDatabase(String database) {
              System.out.println("hellloooooooooooo---->"+database);
              this.database = database;
         public String getUser() {
              return user;
         public void setUser(String user) {
              this.user = user;
         public String getPassword() {
              return password;
         public void setPassword(String password) {
              this.password = password;
         public String getDtdPath() {
              return dtdPath;
         public void setDtdPath(String dtdPath) {
              this.dtdPath = dtdPath;
         public String getProtocol() {
              return protocol;
         public void setProtocol(String protocol) {
              this.protocol = protocol;
         public String getServerAddress() {
              return serverAddress;
         public void setServerAddress(String serverAddress) {
              this.serverAddress = serverAddress;
         public Boolean isDebugMode() {
              return debugMode;
         public void setDebugMode(Boolean debugMode) {
              this.debugMode = debugMode;
         public PrintWriter getWriter() {
              return writer;
         public void setWriter(PrintWriter writer) {
              this.writer = writer;
    weblogic-ra.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-connector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
         xmlns:javaee="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-connector/1.0/weblogic-connector.xsd"
         xmlns="http://xmlns.oracle.com/weblogic/weblogic-connector">
         <jndi-name>jca/sampleRA</jndi-name>
         <enable-access-outside-app>true</enable-access-outside-app>
         <outbound-resource-adapter>
              <connection-definition-group>
                   <connection-factory-interface>javax.resource.cci.ConnectionFactory</connection-factory-interface>
                   <connection-instance>
                        <jndi-name>jca/sampleCon</jndi-name>
    <connection-properties>
    <properties>
    <property>
    <name>databaseFileName</name>
    </property>
    <property>
    <name>database</name>
    </property>
    <property>
    <name>user</name>
    </property>
    <property>
    <name>password</name>
    </property>
    <property>
    <name>dtdPath</name>
    </property>
    <property>
    <name>protocol</name>
    </property>
    <property>
    <name>serverAddress</name>
    </property>
    <property>
    <name>debugMode</name>
    </property>
    </properties>
    </connection-properties>                
                   </connection-instance>
              </connection-definition-group>
         </outbound-resource-adapter>
    </weblogic-connector>
    ra.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <connector xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java/sun.com/xml/ns/j2ee/connector_1_5.xsd" version="1.5">
    <display-name>MomapiConnector</display-name>
    <vendor-name>CGI</vendor-name>
    <eis-type>SAMPLE</eis-type>
    <resourceadapter-version>1.0</resourceadapter-version>
    <license>
    <license-required>false</license-required>
    </license>
    <resourceadapter>
    <resourceadapter-class>com.cgi.cml.common.sample.connector.ra.SampleResourceAdapterImpl</resourceadapter-class>
    <outbound-resourceadapter>
    <connection-definition>
    <managedconnectionfactory-class>com.cgi.cml.common.sample.connector.ra.outbound.SampleManagedConnectionFactoryImpl</managedconnectionfactory-class>
              <config-property>
         <config-property-name>databaseFileName</config-property-name>
         <config-property-type>java.lang.String</config-property-type>
         </config-property>
    <config-property>
         <config-property-name>database</config-property-name>
         <config-property-type>java.lang.String</config-property-type>
         </config-property>
              <config-property>
         <config-property-name>user</config-property-name>
         <config-property-type>java.lang.String</config-property-type>
         </config-property>
              <config-property>
         <config-property-name>password</config-property-name>
         <config-property-type>java.lang.String</config-property-type>
         </config-property>
              <config-property>
         <config-property-name>dtdPath</config-property-name>
         <config-property-type>java.lang.String</config-property-type>
         </config-property>
              <config-property>
         <config-property-name>protocol</config-property-name>
         <config-property-type>java.lang.String</config-property-type>
         </config-property>
              <config-property>
         <config-property-name>serverAddress</config-property-name>
         <config-property-type>java.lang.String</config-property-type>
         </config-property>
              <config-property>
         <config-property-name>debugMode</config-property-name>
         <config-property-type>java.lang.Boolean</config-property-type>
         </config-property>
              <connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
    <connectionfactory-impl-class>com.cgi.cml.common.my.connector.ra.outbound.SampleConnectionFactoryImpl</connectionfactory-impl-class>
    <connection-interface>javax.resource.cci.Connection</connection-interface>
    <connection-impl-class>com.cgi.cml.common.sample.connector.ra.outbound.SampleConnectionImpl</connection-impl-class>
    </connection-definition>
    <transaction-support>NoTransaction</transaction-support>
         <reauthentication-support>false</reauthentication-support>
    </outbound-resourceadapter>
    </resourceadapter>
    </connector>
    Edited by: 931395 on May 2, 2012 7:43 AM
    Edited by: 931395 on May 2, 2012 8:15 AM

    Arun,
    I tried, no luck and it is giving me the following error. Once the Plan.xml is created I am usinng "update" button on the console to redeploy the application using Plan.xml. When I take this route it gives me 2 options (1. update this application in place with new deployment plan 2. redploy this application using the following deployment files).
    When I use the second option eventhough there is a change in the Plan.xml nothing happens. If I use the first option then I am getting the following exception. If I put the module-override for application then only the ear is getting deployed.
    Thanks,
    Sridhar
    [BaseFlow] : No UpdateListener found or none of the found UpdateListeners accepts URI
    <May 9, 2012 9:37:47 AM EDT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1336570667598' for task '10'. Error is: 'weblogic.management.DeploymentException:
    The application SampleApp cannot have the resource META-INF/weblogic-ra.xml updated dynamically. Either:
    1.) The resource does not exist.
    or
    2) The resource cannot be changed dynamically.
    Please ensure the resource uri is correct, and redeploy the entire application for this change to take effect.'
    weblogic.management.DeploymentException:
    The application SampleApp cannot have the resource META-INF/weblogic-ra.xml updated dynamically. Either:
    1.) The resource does not exist.
    or
    2) The resource cannot be changed dynamically.
    Please ensure the resource uri is correct, and redeploy the entire application for this change to take effect.
         at weblogic.application.internal.flow.DeploymentCallbackFlow.addPendingUpdates(DeploymentCallbackFlow.java:375)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.makePendingUpdates(DeploymentCallbackFlow.java:394)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepareUpdate(DeploymentCallbackFlow.java:407)
         at weblogic.application.internal.BaseDeployment$PrepareUpdateStateChange.next(BaseDeployment.java:685)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         Truncated. see log file for complete stacktrace
    >
    <May 9, 2012 9:37:47 AM EDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating update task for application 'SampleApp'.>
    <May 9, 2012 9:37:47 AM EDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.management.DeploymentException:
    The application SampleApp cannot have the resource META-INF/weblogic-ra.xml updated dynamically. Either:
    1.) The resource does not exist.
    or
    2) The resource cannot be changed dynamically.
    Please ensure the resource uri is correct, and redeploy the entire application for this change to take effect.
         at weblogic.application.internal.flow.DeploymentCallbackFlow.addPendingUpdates(DeploymentCallbackFlow.java:375)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.makePendingUpdates(DeploymentCallbackFlow.java:394)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepareUpdate(DeploymentCallbackFlow.java:407)
         at weblogic.application.internal.BaseDeployment$PrepareUpdateStateChange.next(BaseDeployment.java:685)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         Truncated. see log file for complete stacktrace
    >
    <May 9, 2012 9:37:47 AM EDT> <Error> <Console> <BEA-240003> <Console encountered the following error weblogic.management.DeploymentException:
    The application SampleApp cannot have the resource META-INF/weblogic-ra.xml updated dynamically. Either:
    1.) The resource does not exist.
    or
    2) The resource cannot be changed dynamically.
    Please ensure the resource uri is correct, and redeploy the entire application for this change to take effect.
         at weblogic.application.internal.flow.DeploymentCallbackFlow.addPendingUpdates(DeploymentCallbackFlow.java:375)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.makePendingUpdates(DeploymentCallbackFlow.java:394)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepareUpdate(DeploymentCallbackFlow.java:407)
         at weblogic.application.internal.BaseDeployment$PrepareUpdateStateChange.next(BaseDeployment.java:685)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.prepareUpdate(BaseDeployment.java:439)
         at weblogic.application.internal.EarDeployment.prepareUpdate(EarDeployment.java:58)
         at weblogic.application.internal.DeploymentStateChecker.prepareUpdate(DeploymentStateChecker.java:220)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepareUpdate(AppContainerInvoker.java:149)
         at weblogic.deploy.internal.targetserver.operations.DynamicUpdateOperation.doPrepare(DynamicUpdateOperation.java:130)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    >

  • How can i decide the position of "connection.properties"

    hello
    i am a beginner of sqlj,and download a sample code from the oracle website,i find that the sqlj file need to read a "connection.properties" file,that define the database connection information,this file is put in the same directory as the sqlj file (i mean that they are within the same subpackage),i debug it by using the jdeveloper,it works well,but if i move the "connection.properties" file to the parent package,it don't work.and i can't find any config file that is used to define the position of the "connection.properties" file.i wonder whether i must put the "connection.properties" file and the sqlj file within the same package?if yes,consider following scenario:
    if i have several sqlj files,and they are within the different package,all of them connect to the same database,must i copy the same "connection.properties" to every package that the sqlj file reside on?
    thank you!

    with HTML of course!
    if you want it in the center... do <center> appletcode </center>
    if you want it in the bottom right corner use tables to move it there.

  • Jdbc URL & connections properties

    Hello all,
    i would know if it is possible to add connection properties in a jdbc URL ( something like jdbc:oracle:oci8:user/pass@instance_machine:ResultSetMetaDataOptions=1&anotherProp=itsValue ...).
    Thank you in advance
    Loïc

    Loic,
    FAQ that Douglas mentioned is here:
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq_0.htm
    Good Luck,
    Avi.

  • Connection Properties for the BI JDBC Connector

    Hi
    I am trying to configure BW 3.5 java component. In the Connection Properties for the BI JDBC Connector, there are four required properties. (UserName, Password, URL and DRIVERNAME) What should I enter for the URL and DRIVERNAME? I am using Oracle920.
    Please help,
    JW

    I found this info at
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm
    Oracle is replacing the SID mechanism for identifying databases with a new services approach. This has been available in the database since 8.1.7. JDBC now supports services in the connect URL. 
    The basic format of a service URL is:
    jdbc:oracle:thin:[<user>/<password>]@//<host>[:<port>]/<service>
    jdbc:oracle:oci:[<user>/<password>]@//<host>[:<port>]/<service>
    Examples:
    jdbc:oracle:thin:@//myserver.com/customer_db
    jdbc:oracle:oci:scott/tiger@//myserver.com:5521/customer_db

  • Backend connection properties in JDI transporting

    Hi all,
    I tested JDI scinario2+ and it worked fine.
    But I am wondering how I can change backend connection properties in JDI transporting.
    In the DEV system, the application connects to the DEV oracle, in the QA system it conencts to the QA one.
    Does JDI take care of that type of backend-specific properties?
    Best Regards,
    Nash

    Ni Nash,
    if I got you right you are talking about connections to ABAP-Backend systems.
    The NWDI doesn´t know anything about connections to such systems, so it doesn´t adjust them after transporting your application from e.g. DEV to TEST.
    If you are using Web Dynpro (Java) as a frontend to ABAP-applications, and you are using the Adaptive-RFC, you don´t have to care. Then the Web Dynpro framework gives you the possibility to define logical connections, which you then define in each system using the Web Dynpro content administrator (can be found following the Web Dynpro link on the start page of your WebAS).
    If you are talking about Java-applications, then it´s not that easy. Then you somewhere have to store, which backend-systems you want to use with which system, and you have to extract this information at runtime. For example, you can define a Java-system belonging to a ABAP-system in the SLD and then get this info via the API, but this only works with 1:1-relationships.
    It can be easier using the Configuration Manager of the WebAS, but I can´t give you much information about this.
    @Manohar: could you give him the proper links for that?
    Kind regards,
    Timo

  • Connections.properties

    Hi,
    My problem is:
    the connections.properties file is always deploy in my Project.jar even if I do not check the check box "Always include connections.properties files in the generated archive".
    Is it a bug?
    how to create this file outside the archive
    (without unzip the archive...)
    Thanks for your help

    This is a bug

  • What is the safest way for a connection to a db...connect.properties vs ?

    Hi,
    Currently all my sqlj beans use a connect.properties file. So i have something like
    oracle.connect(myclass.class,"connect.properties"); I find this not so secure. If someone ever gets in my box, they have the password in clear text. Is there a way around it? Also if i embed the connection string into the comiled objects of the beans, is that safer? I mean its a pain to then change the password since it has to be changed in all the programs. But then all developers also see the password too, so is it really safer. Does anyone know a way that I can connect securely,
    Thanks for you time in reading this. Im a bit confused.

    They will be able to download everything that was bought with their Apple ID. If they all shared an ID then they switched to their own ID they won't be able to use any apps or music bought with another Apple ID. As I explained in my previous response. There is only one way to share apps and content across multiple Apple ID's and that is home share. So, NO there isn't a "Smooth" way to do it.

  • Connection.properties

    Hi,
    I am trying to connect to Oracle via Thin Client "classes12.zip" or "classes12.jar", it is working fine when I have all the java, class and connection.properties file are in the same folder, but it is not working when I am deploying it in jboss.
    My question is where should the Connection.properties file reside in the application directory structure.
    my structure is as follows.
    /dev/ecom/servlet
    /dev/ecom/servlet/src
    /dev/ecom/servlet/src/dboperation --source file for db operation
    /dev/ecom/servlet/src/parsexml --source files for parsing xml
    /dev/ecom/servlet/build
    /dev/ecom/servlet/build/ear
    /dev/ecom/servlet/build/jar
    /dev/ecom/servlet/build/src
    /dev/ecom/servlet/build/war
    regards
    arup

    it should reside in /
    Rob

  • SQL - Database access using Oracle.connect(getCLass(), "connect.properties")..IM LOST

    Hi,
    I use Oracle.connect(getClass(),"connect.properties") before all of my #sql statements. If there are a bunch of methods with #sql statements, I use the connection method. I think this is my problem and Id like some feedback from other people.
    1) Should i be using an Oracle.connect statement before every #sql?
    2) If so, does it create new connections all the time or does it just know there is a current connection so it doesnt keep adding new connections?
    3) Is there a way to get one connection and then test to see if there is a connection so that i dont keep getting new connections?
    4) Do I have to close the connections? I tried Oracle.close(); but got some wierd errors. I read somewhere that If autocommit is true, you dont have to close jdbc connections.
    Thanks for your time and I appreciate any feedback that anyone has to offer.

    Hi Adam,
    Please find the answers inline.
    I use Oracle.connect(getClass(),"connect.properties") before all of my #sql statements. If there are a bunch of methods with #sql statements, I use the connection method. I think this is my problem and Id like some feedback from other people.
    1) Should i be using an Oracle.connect statement before every #sql?No, you don't have to call this each time, just call this once to intialize your DefaultContext and from then on, whenever
    #sql is used, it would fetch the connection from the DefaultContext.
    2) If so, does it create new connections all the time or does it just know there is a current connection so it doesnt keep adding new connections?No, it doesn't create connections each time.
    3) Is there a way to get one connection and then test to see if there is a connection so that i dont keep getting new connections?There would be only one connection
    4) Do I have to close the connections? I tried Oracle.close(); but got some wierd errors. I read somewhere that If autocommit is true, you dont have to close jdbc connections.The connection has to be closed explicitly using Oracle.close();
    For samples on using connect.properties refer to,
    http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/9i_sqlj/9i_sqlj.html#BatchingAndREFCursorSample
    Regards
    Elango.

  • Cannot save modified connection properties

    SQL Developer 2.1.1.64. I create a database connection and use it for some time. Now I right click on connection to modify its properties. Then I click on Save but the changes are never saved. No matter what I do, the connection keeps pointing to original parameters. When I press Connect, nothing happens. The only way to change is to delete and create a new one. Is there something I am doing wrong?
    Thanks...
    Arun

    There is no output in the console window.
    I will give an example. I have a connection entry like
    Connection Name: ORCL_system
    Username: system
    Password: abcdefg
    Save Password is checked
    Role: default
    Connection type: Basic
    Hostname: server1.abc.com
    Port: 1521
    Service Name: orcl.abc.com
    Now I want to change this entry to use TNS. I right click on ORCL_system and select "Properties" from context menu. I change these properties as:
    Connection Name: ORCL_system
    Username: system
    Password: abcdefg
    Save Password is checked
    Role: default
    Connection type: TNS
    Network alias : ORCL (select this from the drop down list which is generated from my tnsnames.ora file)
    Now I click "Test". I get a success message. This means that SQL Developer has established the connection. I do either of the following actions and they fail:
    a) I click "Save". The changed properties are not saved. If I close SQL Deveoper and start it again, the connection goes back to using "Basic".
    b) I click "Connect" and nothing happens. The SQL Worksheet does not open. The connection properties are not saved if I close SQL Developer.
    I am very sure that this used to work in earlier versions.

  • Changing connection properties

    Can I deploy a jar file with connection properties in a separate, editable file as I wouldnt know the username, SID name. These will be different for each installation?

    Thanks for your reply. When I create the jar file it automatically includes the connections.properties in that file. How do How do I:
    a: deploy the jar with no connections in it
    b: create a separate connections.properties file. When, where and how does this file gets generated?

  • Can't view connection properties

    Hi,
    I am unable to view my connection properties after upgrading to version 1.1.2.25. I've tried deleting ~/.sqldeveloper/ but the problem persists.
    If I right click on a connection and select 'Properties...' I get...
    Exception while performing action Properties...
    java.lang.AbstractMethodError: oracle.dbtools.raptor.connections.IConnectionPanel.setDefaultPrompts()V
    at oracle.dbtools.raptor.connections.ConnectionDialog.setActivePanel(ConnectionDialog.java:325)
    at oracle.dbtools.raptor.connections.ConnectionDialog.setConnectionName(ConnectionDialog.java:685)
    at oracle.dbtools.raptor.connections.ConnectionDialog.launch(ConnectionDialog.java:517)
    at oracle.dbtools.raptor.explorer.jdev.ConnectionEditorImpl.runConnectionEditor(ConnectionEditorImpl.java:34)
    at oracle.jdeveloper.cm.dt.ConnectionEditor.runConnectionEditor(ConnectionEditor.java:156)
    at oracle.dbtools.raptor.navigator.DatabaseNavigatorController.runNewConnectionDialog(DatabaseNavigatorController.java:1053)
    at oracle.dbtools.raptor.navigator.DatabaseNavigatorController.handleEvent(DatabaseNavigatorController.java:302)
    at oracle.ide.controller.IdeAction.performAction(IdeAction.java:551)
    at oracle.ide.controller.IdeAction$2.run(IdeAction.java:804)
    at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:823)
    at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:521)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
    at java.awt.Component.processMouseEvent(Component.java:5488)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1778)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    I'm not sure if it is related, but I do get an exception on startup due to...
    Missing class: oracle.dbtools.logging.ILoggingPage
    Any help would be appreciated

    Thanks for your reply. Here it goes:
    reloadBuffers(): 50 nodes checked in 8.88381E-4 second(s)
    oracle.ide.natives.registry.RegistryException: Impossibile trovare il file speci
    ficato.
            at oracle.ide.natives.registry.RegistryKey.openKey(Native Method)
            at oracle.dbtools.raptor.timesten.connection.TTConnectionPanel.init(TTCo
    nnectionPanel.java:68)
            at oracle.dbtools.raptor.timesten.connection.TTConnectionPanel.<init>(TT
    ConnectionPanel.java:35)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
            at java.lang.Class.newInstance0(Class.java:350)
            at java.lang.Class.newInstance(Class.java:303)
            at oracle.dbtools.raptor.connections.ConnectionTypeRegistry.getPanelFor(
    ConnectionTypeRegistry.java:30)
            at oracle.dbtools.raptor.connections.ConnectionDialog.<init>(ConnectionD
    ialog.java:209)
            at oracle.dbtools.raptor.connections.ConnectionDialog.launch(ConnectionD
    ialog.java:515)
            at oracle.dbtools.raptor.explorer.jdev.ConnectionEditorImpl.runConnectio
    nEditor(ConnectionEditorImpl.java:34)
            at oracle.jdeveloper.cm.dt.ConnectionEditor.runConnectionEditor(Connecti
    onEditor.java:156)
            at oracle.dbtools.raptor.navigator.DatabaseNavigatorController.runNewCon
    nectionDialog(DatabaseNavigatorController.java:1053)
            at oracle.dbtools.raptor.navigator.DatabaseNavigatorController.handleEve
    nt(DatabaseNavigatorController.java:302)
            at oracle.ide.controller.IdeAction.performAction(IdeAction.java:551)
            at oracle.ide.controller.IdeAction$2.run(IdeAction.java:804)
            at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:82
    3)
            at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:521)
            at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:18
    49)
            at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
    a:2169)
            at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
    .java:420)
            at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
            at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
            at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1
    000)
            at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMen
    uItemUI.java:1041)
            at java.awt.Component.processMouseEvent(Component.java:5488)
            at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
            at java.awt.Component.processEvent(Component.java:5253)
            at java.awt.Container.processEvent(Container.java:1966)
            at java.awt.Component.dispatchEventImpl(Component.java:3955)
            at java.awt.Container.dispatchEventImpl(Container.java:2024)
            at java.awt.Component.dispatchEvent(Component.java:3803)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
            at java.awt.Container.dispatchEventImpl(Container.java:2010)
            at java.awt.Window.dispatchEventImpl(Window.java:1774)
            at java.awt.Component.dispatchEvent(Component.java:3803)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:242)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:163)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Exception while performing action Properties...
    java.lang.AbstractMethodError
            at oracle.dbtools.raptor.connections.ConnectionDialog.setActivePanel(Con
    nectionDialog.java:325)
            at oracle.dbtools.raptor.connections.ConnectionDialog.setConnectionName(
    ConnectionDialog.java:685)
            at oracle.dbtools.raptor.connections.ConnectionDialog.launch(ConnectionD
    ialog.java:517)
            at oracle.dbtools.raptor.explorer.jdev.ConnectionEditorImpl.runConnectio
    nEditor(ConnectionEditorImpl.java:34)
            at oracle.jdeveloper.cm.dt.ConnectionEditor.runConnectionEditor(Connecti
    onEditor.java:156)
            at oracle.dbtools.raptor.navigator.DatabaseNavigatorController.runNewCon
    nectionDialog(DatabaseNavigatorController.java:1053)
            at oracle.dbtools.raptor.navigator.DatabaseNavigatorController.handleEve
    nt(DatabaseNavigatorController.java:302)
            at oracle.ide.controller.IdeAction.performAction(IdeAction.java:551)
            at oracle.ide.controller.IdeAction$2.run(IdeAction.java:804)
            at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:82
    3)
            at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:521)
            at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:18
    49)
            at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
    a:2169)
            at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
    .java:420)
            at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
            at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
            at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1
    000)
            at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMen
    uItemUI.java:1041)
            at java.awt.Component.processMouseEvent(Component.java:5488)
            at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
            at java.awt.Component.processEvent(Component.java:5253)
            at java.awt.Container.processEvent(Container.java:1966)
            at java.awt.Component.dispatchEventImpl(Component.java:3955)
            at java.awt.Container.dispatchEventImpl(Container.java:2024)
            at java.awt.Component.dispatchEvent(Component.java:3803)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
            at java.awt.Container.dispatchEventImpl(Container.java:2010)
            at java.awt.Window.dispatchEventImpl(Window.java:1774)
            at java.awt.Component.dispatchEvent(Component.java:3803)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:242)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:163)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)Alessandro
    [EDIT]Sorry, I posted the startup messages, not what you were actually asking. Corrected now.
    Message was edited by:
    archimede

Maybe you are looking for

  • Can't add E-Mail Alias to my Apple ID - no E-Mail to confirm

    I got two Apple ID's (#1 & #2) and both are signed up for iCloud. One of them (#2) got a E-Mail Alias. I want to add this Alias to my Facetime and iMessage E-Mails. Its always saying that this E-Mail already used by an other Apple ID. But the point i

  • SQL Server 2k - Pulling from 2 fact tables causes error

    Trying to create a simple RPD as follows: 1 Dimension with Key Fund_ID 2 Fact tables, each with a Key Fund_ID Created a Physical Layer, connecting Dimension to each Facts based off Fund_ID (One to Many) Business Model Layer, connected Dimension to ea

  • PMW-EX1

    I shot an interview on a Sony PMW-EX1 in the 1080/24p SP mode. I understand that the camera records all the footage in 29.97 and flags the frames to cut for either FCP or the software that's importing the clips. I setup final cut pro to the easy setu

  • Upgrade PHP and Apache on 10.6.8

    I'm thinking of upgrading PHP and Apache that were installed as part of 10.6.8 (Snow Leopard) to their current versions. How do I do it?   - nello

  • Pages for iOS is crashing my phone when I try and open documents. Help!

    I just got an iPhone 5S. I have had pages on my iPhone 5 and iPad mini with no issues but when I try and interact with any document on my phone now, the entire phone crashes - I get a blue screen of death - and my phone restarts. I have tried to dele