ConnectionPool & ASA Sybase

Hi All,
I've tried connect to Adaptive Server Anywhere by using ConnectionPool.
WebLogic returns error:
weblogic.jws.control.ControlException: Invalid @jws: connection
data-source-jndi-name: cgPlantDataSource. The list of configured data
sources can be found in the JDBC section of the Weblogic console using
the DataSources and Tx DataSources links. The value of this attribute
must be the value of the JNDI Name column for a configured data
source.[Unable to resolve 'cgPlantDataSource' Resolved: ''
Unresolved:'cgPlantDataSource' ] at
weblogic.knex.control.DatabaseControlImpl.acquireResources(DatabaseControlImpl.java:250)
at
weblogic.knex.context.JwsInternalContext.acquireResources(JwsInternalContext.java:220)
at weblogic.knex.control.ControlHandler.invoke(ControlHandler.java:260)
at testRaport.controlDBControl.select_K_PLANT(controlDBControl.ctrl) at
testRaport.testRaport.getAllPlantArray(testRaport.jws:81)
Service Response
my ConnectionPool:
<JDBCConnectionPool ACLName="DBA"
DriverName="com.sybase.jdbc.SybDriver" InitialCapacity="5"
Name="PlantatorPool_pl2002" Password="{3DES}S47R7Xnrh6M="
Properties="user=DBA;pass=SQL" Targets="cgServer"
TestConnectionsOnReserve="false"                          
URL="jdbc:sybase:Tds:localhost:2638"/>
<JDBCDataSource JNDIName="cgPlantDataSource"
Name="cgPlantDataSource" PoolName="PlantatorPool_pl2002"      
Targets="cgServer"/>
Where did I make mistakes?
Thanks for any answers,
Michal Lelek

still the same error :(
Rajesh Mirchandani wrote:
Add the following ACLs in the filerealm.properies file under your domain.
acl.shrink.weblogic.jdbc=Administrators,guest
acl.reserve.weblogic.jdbc=Administrators,guest
acl.reset.weblogic.jdbc=Administrators,guest
Michas wrote:
I created ConnectionPool, but server returns below error:
getAllPlantArray
weblogic.jws.control.ControlException: Unable to obtain connection to
database[weblogic.common.ResourceException: Access not allowed] at
weblogic.knex.control.DatabaseControlImpl.acquireResources(DatabaseControlImpl.java:261)
at
weblogic.knex.context.JwsInternalContext.acquireResources(JwsInternalContext.java:220)
at weblogic.knex.control.ControlHandler.invoke(ControlHandler.java:260)
at testRaport.controlDBControl.select_K_PLANT(controlDBControl.ctrl) at
testRaport.testRaport.getAllPlantArray(testRaport.jws:81)
Service Response Submitted at Thu Jan 09 17:43:08 CET 2003
How set up properties in ConnectionPool?
<JDBCConnectionPool ACLName="DBA"
DriverName="com.sybase.jdbc.SybDriver" InitialCapacity="5"
MaxCapacity="5" Name="PlantatorPool_pl2002"
Password="{3DES}S47R7Xnrh6M="
Properties="user=DBA;password=SQL;DataBAseName=pl2002"
Targets="cgServer" TestConnectionsOnReserve="true"
TestTableName="DBA.K_PLANT"
URL="jdbc:sybase:Tds:192.168.1.2:2638"/>
thanks for any ideas,
(ml)
Joseph Weinstein wrote:
Michas wrote:
Hi All,
I've tried connect to Adaptive Server Anywhere by using ConnectionPool.
WebLogic returns error:
weblogic.jws.control.ControlException: Invalid @jws: connection
data-source-jndi-name: cgPlantDataSource. The list of configured data
sources can be found in the JDBC section of the Weblogic console using
the DataSources and Tx DataSources links. The value of this attribute
must be the value of the JNDI Name column for a configured data
source.[Unable to resolve 'cgPlantDataSource' Resolved: ''
Unresolved:'cgPlantDataSource' ] at
weblogic.knex.control.DatabaseControlImpl.acquireResources(DatabaseControlImpl.java:250)
at
weblogic.knex.context.JwsInternalContext.acquireResources(JwsInternalContext.java:220)
at weblogic.knex.control.ControlHandler.invoke(ControlHandler.java:260)
at testRaport.controlDBControl.select_K_PLANT(controlDBControl.ctrl) at
testRaport.testRaport.getAllPlantArray(testRaport.jws:81)
Service Response
my ConnectionPool:
<JDBCConnectionPool ACLName="DBA"
DriverName="com.sybase.jdbc.SybDriver" InitialCapacity="5"
Name="PlantatorPool_pl2002" Password="{3DES}S47R7Xnrh6M="
Properties="user=DBA;pass=SQL" Targets="cgServer"
TestConnectionsOnReserve="false"
URL="jdbc:sybase:Tds:localhost:2638"/>
<JDBCDataSource JNDIName="cgPlantDataSource"
Name="cgPlantDataSource" PoolName="PlantatorPool_pl2002"
Targets="cgServer"/>
Where did I make mistakes?
Thanks for any answers,
Michal LelekHi. Would you please open the console to the server, and let me know if
the pool actually got created? You don't need to specify the database context
in the properties...
Rajesh Mirchandani
Developer Relations Engineer
BEA Support

Similar Messages

  • Connecting to ASA / Sybase database

    I was so excited to work on the Creator, until lately due to the lack of database drivers. I am using ASA Adaptive Server Anywhere or SQL Anywhere 6.0.3 all the way up to the latest version 9.x. I have tried all kind of drivers and it seems that the only one that I could get a hold on cost 15 times more than the creator, not to mention that I will need to migrate in the next few months to Linux and again will have to buy another license for a Linux box. I think that SUN ought to design a JDBC-ODBC bridge that is compliant with JDBC 3.0 at least to allow developers to move slowly until all db vendors have a solid JDBC 3.0 compliant drivers.
    Still, if any one was able to connect and get the data from an ASA database, I would appreciate if they could tell me which driver to use.
    Thank you.

    The problem is that the current Sybase drivers (Jconnect) are not compliant with JDBC 3.0 and so far I did not get any answer regarding when Jconnect 6.0 will be compliant. The only documentation that I have says that Jconnect 6.0 is not and that in the future it will be compliant with JDBC 3.0. My suggestion is for SUN to upgrade the JDBC-ODBC bridge to be compliant with JDBC 3.0 to provide the existing users with a way out. We have been delaying our projects to use JSC for 2 months, and eventually, we will be forced to move to .NET which we did not want right from the start.

  • Sybase-ConnectionPool

    hello, I need an example of how to set a connectionPool of sybase for weblogic8.sp2.
    and the dataSource.
    thanks

    There are lots of permutations but I took this from a working configuration
    file. If you are using 8.1, you should
    try to use the console. The JDBC configuration assistant in the console
    does most of this for you.
    <!-- NON-XA JDBC Connection Pool -->
    <JDBCConnectionPool
    Name="jdbcPool"
    Targets="jdbctest"
    DriverName="weblogic.jdbc.sybase.SybaseDriver"
    URL="jdbc:bea:sybase://machine:4100"
    InitialCapacity="5"
    MaxCapacity="100"
    CapacityIncrement="10"
    Password="password"
    Properties="user=lcqasyb;url=jdbc:bea:sybase://machine:4100;PortNumber=4100;
    ServerName=machine;DatabaseName=wl"
    />
    <JDBCDataSource Name="jdbcDataSource" Targets="jdbctest"
    JNDIName="jdbcDataSource" PoolName="jdbcPool" />
    <!-- XA JDBC Connection Pool -->
    <JDBCConnectionPool
    Name="jdbcXAPool"
    Targets="jdbctest"
    DriverName="weblogic.jdbcx.sybase.SybaseDataSource"
    URL="jdbc:bea:sybase://machine:4100"
    InitialCapacity="5"
    MaxCapacity="100"
    CapacityIncrement="10"
    Password="password"
    Properties="user=lcqasyb;url=jdbc:bea:sybase://machine:4100;PortNumber=4100;
    ServerName=machine;DatabaseName=wl"
    />
    <JDBCTxDataSource Name="jdbcXADataSource" Targets="jdbctest"
    JNDIName="jdbcXADataSource" PoolName="jdbcXAPool" />
    "zou" <[email protected]> wrote in message
    news:4005782b$[email protected]..
    >
    hello, I need an example of how to set a connectionPool of sybase forweblogic8.sp2.
    and the dataSource.
    thanks

  • New SF300-24P 10/100 POE Switch effecting Sybase App

    I recently moved my office. I am running a small Network on Windows 8.1. The main program for my Business no longer has tech support. The program uses sybase sql anywhere 9.0 to network. When I moved from one location to another the only thing that changed is that I started using the above 24 port switch. I have a static IP with my Comcast Internet provider too. Now this program no longer works over the network. I can't seem to establish the ASA Sybase connection anymore. Is there anything in this switch that would be preventing this from happening. I have other network programs that are running properly, it's just this one. I have all the sharing on and security through Windows has all been configured. Any help would be greatly appreciated. 

    Hi Jose, please upgrade software of the switch to 1.3.5.58 then factory default it. I recommend do not use a back up config, config from scratch. This should resolve that.
    -Tom
    Please mark answered for helpful posts

  • Problem when add the subject

    hi.. i'm trying to send email from a ASA Sybase database.. i register the class or the jar and call to the java method wrapper.. easy.. the problem is when adding the subject or the text of the email.. the proccess stuck there and don't send the mail.. but i try send outside the database from the main method and the mail is sended..
    which could be the problem?
    appreciate your help
    miguel

    i'm sure.. no exceptions.. i set to true the debug option in the session object and i log everywhere.. after all the statements.. and all are wrapped between a huge try/catch.. when i set the subject or the text the execution only stop and wait there like a infinite loop.. i say stop because the execution of the method don't log anymore.. the last tree statements of my send method is: add the subject, add the text and send the email via the Transport class.. the static method send.. when i comment the lines that add the subject and the text, the execution stuck when try to send the email without a subject and text.. is strange.. because i try outside the database and the email is sended.. i don't think that is a security problem.. is the same user that run the class and the same jvm..
    any ideas?
    thanks..

  • Prob. CF7 using jConnect to Sybase ASA 9  on Win2K3 Srv.

    hi there
    I have this setup: Standard CF7.0.2 running on Win2K3.
    Database ist Sybase ASA 9.
    In other messages, I wrote about CFs ODBC server not working.
    So I was told to use jConnect which I tried.
    Neiher the CF Admin can use that jConnect mounting nor would
    the cf application work.
    The following happens now:
    - creating a new database with ASA.
    - I fire up a new db-engine and mount the database
    - I add a new non-dba user
    - in CF's data sources Admin I use other driver to declare
    the jConnect parameters to that DB.
    - I let CF validate the parameters. It succeeds woth both,
    the dba and the non-dba user
    - I stop the database engine and mount the same database to
    the database server running as a service on that machine
    - I let CF revalidate the connections and CF fails with
    " java.sql.SQLException: JZ00L: Login failed."
    Sybase Admin Tool is a native Java application and it has
    never problems connecting to the db regardless how it is mounted.
    So, it seems that the failure has something to do with access
    rights. When doing the interactive tests, I am logged in as a
    Win2K3 Administrator. When the database is mounted to the server
    running as a service, it won't work.
    Adobe, any clues what ACLs must be applied or are required?
    Any pointers to that?
    It's quite urgent, because we cannot migrate from an CFMX 6.1
    to the CF7 because of this.
    Thank you

    Hi Ken
    Thank you for your post: I tried it immediately.
    FYI: it does not work and both ways give me the same result:
    However, I *KNOW" that the supplied data were correct. The stack
    trace:
    java.sql.SQLWarning: ASA Error -103: Invalid user ID or
    password at
    com.sybase.jdbc2.jdbc.SybConnection.getAllTheWarnings(SybConnection.java:1791)
    at
    com.sybase.jdbc2.jdbc.SybConnection.handleSQLE(SybConnection.java:1707)
    at
    com.sybase.jdbc2.jdbc.SybConnection.tryLogin(SybConnection.java:320)
    at
    com.sybase.jdbc2.jdbc.SybConnection.regularConnect(SybConnection.java:230)
    at
    com.sybase.jdbc2.jdbc.SybConnection.<init>(SybConnection.java:200)
    at
    com.sybase.jdbc2.jdbc.SybConnection.<init>(SybConnection.java:134)
    at com.sybase.jdbc2.jdbc.SybDriver.connect(SybDriver.java:179) at
    java.sql.DriverManager.getConnection(DriverManager.java:512) at
    java.sql.DriverManager.getConnection(DriverManager.java:171) at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324) at
    coldfusion.runtime.java.JavaProxy.invoke(JavaProxy.java:74) at
    coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1634) at
    cftestJDBC2ecfm1170909034.runPage(X:\WWWroot\mindpower.com\_test_\testJDBC.cfm:31)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152) at
    coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
    at
    coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
    at
    coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:225)
    at
    coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at
    coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115)
    at coldfusion.CfmServlet.service(CfmServlet.java:107) at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    What I really don't understand is: WHAT could cause the
    uid/pwd transmitted to be empty, incorrect, wrong charset etc. etc.
    I DID post the probelm to Sybase but they also have no idea yet..
    Thanks for helping!
    Martin
    PS: Nice error on that box:
    The description for Event ID ( 0 ) in Source ( ColdFusion MX
    7 ODBC Server ) cannot be found. The local computer may not have
    the necessary registry information or message DLL files to display
    messages from a remote computer. You may be able to use the
    /AUXSOURCE= flag to retrieve this description; see Help and Support
    for details. The following information is part of the event:
    ColdFusion MX 7 ODBC
    Server@LOCALHOST,ErrorCode=3004,ErrorMessage=sched.swschd.1774.
    Internal error, an unexpected exception was detected..

  • Sybase ASA 8 HELP HELP HELP

    Hi,
    I have a problem capturing the schema information for a sybase ASA 8 database. I created a new database and included the JConnect Metadata in the table. When I connect from Sun One Studio and capture the schema it does not have the primary keys or indexes. It appears to not retrieve the metadata. In the database explorer the column is red which means it is getting the primary key info there on the connection but not when I capture the schema. I have tried to upgrade the database by hand with the scripts but there is no change.. I am using the JConnect 5_5 that came with the install of ASA 8. What do I need to do to get this to work, Without this PK information we cannot use CMP.

    Have you installed the meta data stored procedures and tables? The file is 'sql_asa.sql' in the JConnect5.5 zip under the "sp" directory.
    Check the documentation for details.
    You can look for these to see if it has been done yet:
    ** Tables created:
    ** Name
    ** dbo.spt_jdatatype_info
    ** dbo.jdbc_function_escapes
    ** dbo.spt_mda
    ** dbo.spt_jtext
    ** dbo.spt_collation_map
    ** Global temporary tables created:
    ** Name
    ** dbo.jdbc_helpkeys
    ** dbo.spt_jdbc_conversion
    ** dbo.jdbc_tableprivileges
    ** dbo.jdbc_columnprivileges
    ** dbo.jdbc_indexhelp
    ** dbo.jdbc_procedurecolumns
    ** Stored procedures created:
    ** Name
    ** dbo.sp_mda
    ** dbo.sp_jdbc_fkeys
    ** dbo.sp_jdbc_convert_datatype
    ** dbo.sp_jdbc_getprocedurecolumns
    ** dbo.sp_jdbc_primarykey
    ** dbo.sp_jdbc_stored_procedures
    ** dbo.sp_jdbc_gettableprivileges
    ** dbo.sp_jdbc_getcolumnprivileges
    ** dbo.sp_jdbc_getbestrowidentifier
    ** dbo.sp_jdbc_getversioncolumns
    ** dbo.sp_jdbc_getindexinfo
    ** dbo.sp_default_charset
    ** dbo.sp_jdbc_datatype_info
    ** dbo.sp_jdbc_function_escapes
    ** dbo.sp_jdbc_escapeliteralforlike
    ** dbo.sp_jdbc_tables
    ** dbo.sp_jdbc_getudts
    ** dbo.sp_jdbc_class_for_name
    ** dbo.sp_jdbc_classes_in_jar

  • Teststand/​SyBase ASA database problem

    We have a SyBase SQL Anywhere Studio 8.0.1 database for Teststand.
    We use the default schema with recordset(SELECT) with the ASA ODBC driver (dbodbc8.dll).
    When running our Teststand application against the SyBase database, a new row is inserted OK in the parent table UUT_RESULT, but it's not able to retrieve the foreign key value for the next recordset from UUT_RESULT.ID (It tries to create a new row with FK-value 0, wich violates the RI constrict).
    We get the following Run-Time Error dialog:
    Details:
    An exception occurred calling 'LogResults' in 'ITSDBLog' of 'DBLog 1.0 Type Library'
    An error occurred executing a statement.
    Schema: ASA Recordset.
    Statement: STEP_RESULT.
    Error in rowIntegrity constraint violation: No prim
    ary key value for foreign key 'UUT_RESULT_FK' in table 'STEP_RESULT'
    Source: TSDBLog
    Error Code:
    -2147467259; User-defined error code.
    Location:
    Step 'Log Results to Database' of sequence 'Log To Database' in 'Database.seq'
    Any hints on what's wrong, or where to look for help?
    Best regards
    Ola Fjellheim
    Company: Vestfold Engineering as
    Work: (+47) 3308 4409
    Fax: (+47) 3308 4401
    e-mail: [email protected]

    Hello Ola -
    There are only a few things that I can think of to try in your case as I am not familiar with your database. The first thing to check is on the 'Statements' tab for your table, investigate the settings of your 'Cursor Location' to make sure it is pointing to the server. This way you can guarantee that whatever you're seeing will be what the server sees. If you toggle this setting to 'server' and behavior doesn't change, or if your database is already working with a server cursor, then you may want to consider having the client side define the key via a GUI ID. Unfortunately we at National Instruments cannot provide much advice about how to build keys for databases, we recommend you look into the tools provided with your database software to find fun
    ctions / procedures that could help. One additional item is, it sounds as though you are using the ODBC driver when talking to your database, it might be worth it to try communicating with your database via the provider's specific driver.
    Regards,
    Elaine R.
    National Instruments
    http://www.ni.com/support

  • Teststand database RI problem against Sybase ASA 8.0 database

    When running our Teststand application against the SyBase Adaptive Server Anywhere 8.0.1 database,
    test results are saved to the parent table UUT_RESULT, but then I get the following Run-Time Error dialog:
    Details:
    An exception occurred calling 'LogResults' in 'ITSDBLog' of 'DBLog 1.0 Type Library'
    An error occurred executing a statement.
    Schema: Adaptive Server Anywhere 8.0.
    Statement: STEP_RESULT.
    Error in rowIntegrity constraint violation: No primary key value for foreign key 'UUT_RESULT_FK' in table 'STEP_RESULT'
    Source: TSDBLog
    -2147467259; User-defined error code.
    Location:
    Step 'Log Results to Database' of sequence 'Log To Database' in 'Database.seq'
    (code -2147467259 => 80004005 hex)
    Attachments:
    ASA_Generic_Recordset_Result_db.sql ‏10 KB
    TestStandDatabaseOptions.ini ‏201 KB

    Olafjell -
    Which schema are you using, recordset(SELECT) or command(INSERT), and are you using and ODBC driver or a specific OLE-DB provider?
    If you are using a select statement then when the UUT record is created, the database logger tries to find out what the value was so that it can write that value for the foreign key for the steps. Make sure that the statements in the schema are using a server side cursor for your tables so that if the database ODBC driver or provider that you are using can retrieve the key value from the database right after it creates the UUT record. If you are using server side cursors and this problem still occurs, it may be that the database ODBC driver or provider does not support getting the key value after the record is cre
    ated.
    Your only option might be to use command(INSERT) schema that generates key values in someway. The built in support is using an generated GUID value.
    Also with some work, if supported, you could use stored procedures to generate the key.
    Scott Richardson (NI)
    Scott Richardson
    National Instruments

  • How do I connect to a Sybase database from Crystal?

    I have never tried to connect to Sybase data before and I am having difficulty figuring out how.  I am using CR XIR2 from my desktop and trying to connect to what I am told is a Sybase database (voicemail system).  I believe Sybase vers 12.5, but not entirely sure yet.  Postings on the forum and other sites appear to be directed toward sdk developers or other development and were not helpful.  Most of what I am reading points toward an Adaptive Server® Enterprise (ASE) ODBC Driver by Sybase.  However, I was told that was not true but the person promising to forward the information never came through. Are there additional drivers I need to install or can someone point me in the right direction?  Thanks!

    Hi Wendy,
    32-bit NATIVE DRIVERS
    CRDB_P2SSYB10.DLL is the native driver for Sybase ASE.  It is used with Sybase ASE 12.5
    NOTE:  The native driver for Sybase ASE cannot be used to connect to Sybase ASA (Adaptive Server Anywhere) or Sybase ASIQ (Adaptive Server IQ).  Sybase ASA and Sybase ASIQ include their own ODBC drivers as part of their installation package.  These drivers provide the only means of connecting to Sybase ASA and Sybase ASIQ databases.
    I hope this helps you.
    Regards,
    Prashant
    Edited by: Prashant Saduwale on Oct 10, 2008 4:19 PM

  • Sybase JDBC driver & Invalid column name error

    I submitted a note a year ago concerning JDBC-ODBC bridge and SQL Server db. Same Invalid column name error. The resolution was a bug in the XSU code.
    This time the error is with a jconnect5 JDBC driver from Sybase to a Sybase ASA db. ASA is Adaptive Server Anywhere.
    <ERROR xsql-timing="140">oracle.xml.sql.OracleXMLSQLException: S0022: Invalid column name 'name'.</ERROR>
    However if I use a Sybase JDBC driver from INet Software of Germany, I get the desired result of my query.
    Below are sample XSQLConfig.xml definitions.
    INet Software Sybase JDBC driver definition:
    - <connection name="deasa">
    <username>dba</username>
    <password>sql</password>
    <dburl>jdbc:inetsyb:LEMKAU:2638?database=asademo</dburl>
    <driver>com.inet.syb.SybDriver</driver>
    <autocommit>true</autocommit>
    </connection>
    Sybase jconnect5 Sybase JDBC driver definition:
    - <connection name="asa">
    <username>dba</username>
    <password>sql</password>
    <dburl>jdbc:sybase:Tds:lemkau:2638?ServiceName=asademo</dburl>
    <driver>com.sybase.jdbc.SybDriver</driver>
    <autocommit>true</autocommit>
    </connection>
    I believe the bug has to do with the numeric codes that the drivers use to determine data types are not properly interpreted.
    See XML General note title "insert-request, xsu 2.1.0 beta & SQL Server" for reference.
    Steve.

    Thanks for the notification. We will look into this issue...

  • Sybase JDBC Connection - OWB11gr2 Issue

    Hi All,
    We are uning OWB11gr2 on 64-bit linux box. Database is Oracle 11.1.0.6. We are trying to connect to Sybase database is ASA 9.0.
    Added the JAR files "jconn2.jar" and "jodbc.jar" under OWB_HOME/owb/lib/ext.
    Restarted Control Centre Agent and OWB client.
    Created a new platform for Sybase database connection.
    Under location Details -
    I entered Username and Password.
    Port Number of the database.
    I kept Schema option Blank.
    Driver Class - com.sybase.jdbc2.jdbc.SysDriver
    Url - jdbc:sybase:Tds:machine-name:port-number/databasename
    When I hit the test connection button it returns as Successful.
    But When i try to import database objects , I cannot see any database objects.
    After testing connection(successfully) when i hit the browse button to get schema names i get the following error -
    Failed: java.sql.SQLException:jZ0sj:Metadata accessor information was not found on this database. Please install the required tables as mentioned in the jconnect documentation.
    What could be the issue ?? I am not sure whether this problem is related to OWB or Sybase.
    When I use the ODBC connection on windows box with same username and password for the same database i see few views and tables.
    Any help is appreciated.
    Regards,
    Samurai.

    Hi David,
    I just edited the script. Since there are no tables( user just has read rights over few views) for the user I am trying to run , i modified the script to run against the views.
    The following is the output for the view which had the text column -
    DataType : varchar Column : nfsExportName Table : nfsExportView
    DataType : varchar Column : nfsExportActualPath Table : nfsExportView
    DataType : varchar Column : nfsExportAnonymousUserID Table : nfsExportView
    DataType : varchar Column : nfsExportNoSUID Table : nfsExportView
    DataType : long varchar Column : nfsExportReadOnlyAccess Table : nfsExportView
    DataType : long varchar Column : nfsExportReadWriteAccess Table : nfsExportView
    DataType : long varchar Column : nfsExportRootAccess Table : nfsExportView
    DataType : long varchar Column : nfsExportSecurity Table : nfsExportView
    DataType : unsigned int Column : nfsExportHostId Table : nfsExportView
    DataType : unsigned int Column : nfsExportVolId Table : nfsExportView
    DataType : unsigned int Column : nfsExportQtreeId Table : nfsExportView
    If you need the entire output please let me know , i will paste it.
    It looks like text is subsititued by long varchar. What can be done to overcome this situation ?
    Thanks,
    Samurai.

  • Problem creating connection pool for Sybase

    I'm trying to create a connection pool with Sybase as the database, as follows:
    weblogic.jdbc.connectionPool.demoPool=\
    url=jdbc:sybase:Tds:10.20.30.50:4100/dbsrvr,\
    driver=com.sybase.jdbc.SybDriver
    initialCapacity=1,\
    maxCapacity=2,\
    capacityIncrement=1,\
    props=user=dbdev;password=dbdev,\
    allow=system
    I get the following error:
    java.sql.SQLException: JZ004: User name property missing in DriverManager.getCon
    nection(..., Properties).
    Any pointers on what's wrong?
    Rgds

    Hi. there's no line continuation stuff after the driver line.
    Try:
    weblogic.jdbc.connectionPool.demoPool=\
    url=jdbc:sybase:Tds:10.20.30.50:4100/dbsrvr,\
    driver=com.sybase.jdbc.SybDriver,\
    initialCapacity=1,\
    maxCapacity=2,\
    capacityIncrement=1,\
    props=user=dbdev;password=dbdev,\
    allow=system
    and make sure there's no whitespace in the properties file after any of
    the '\'s in these lines.
    Joe
    Eeshan wrote:
    >
    I'm trying to create a connection pool with Sybase as the database, as follows:
    weblogic.jdbc.connectionPool.demoPool=\
    url=jdbc:sybase:Tds:10.20.30.50:4100/dbsrvr,\
    driver=com.sybase.jdbc.SybDriver
    initialCapacity=1,\
    maxCapacity=2,\
    capacityIncrement=1,\
    props=user=dbdev;password=dbdev,\
    allow=system
    I get the following error:
    java.sql.SQLException: JZ004: User name property missing in DriverManager.getCon
    nection(..., Properties).
    Any pointers on what's wrong?
    Rgds

  • Sybase jdbc throws Resource PermissionsException wls8.1 sp2

    HI,
    I just upgraded from wls 6.1 to wls 8.1 sp2. My Connection pools are not working
    anymore.
    I am using sybase server 11.5.1 with the jconnect 5. I am making database calls
    (that
    used to work). Here's the strange thing, I have a startup class that runs an
    sql query when weblogic server comes up (in the main thread i am assuming) and
    it works. But calling the same exact sql query fails when i click on my webapp
    that leads to the same query (it is called from a different thread).
    Any ideas? I am assuming it's a security issue where the main thread uses the
    correct username and password and the other threads don't. Heres my config file
    and my exception trace:
    <JDBCTxDataSource JNDIName="FOO" Name="MyJDBC Data Source"
    PoolName="MyJDBC Connection Pool-1" Targets="portal"/>
    <JDBCConnectionPool DriverName="com.sybase.jdbc2.jdbc.SybDriver"
    Name="MyJDBC Connection Pool-1" Password="xxx"
    Properties="user=vwap;url=jdbc:sybase:Tds:myhost:9501/vwap;networkProtocol=Tds;portNumber=9501;userName=vwap;databaseName=vwap;serverName=myhost"
    Targets="portal"
    TestTableName="SQL SELECT COUNT(*) FROM sysobjects" URL="jdbc:sybase:Tds:myhost:9501/vwap"/>
    I also tried it with weblogic sybase driver and same results:
    <JDBCConnectionPool DriverName="weblogic.jdbc.sybase.SybaseDriver"
    Name="MyJDBC Connection Pool" Password="xxx"
    Properties="user=vwap;url=jdbc:bea:sybase://myhost:9501;portNumber=9501;databaseName=vwap;serverName=myhost"
    Targets="portal"
    TestTableName="SQL SELECT COUNT(*) FROM sysobjects" URL="jdbc:bea:sybase://myhost:9501"/>
    error.weblogic.common.resourcepool.ResourcePermissionsException: User "<anonymous>"
    does not have permission to perform operation "reserve" on resource "MyJDBC Connection
    Pool-1" of application "null" of type "ConnectionPool"
    weblogic.jdbc.extensions.PoolPermissionsSQLException: weblogic.common.resourcepool.ResourcePermissionsException:
    User "<anonymous>" does not have permission to perform operation "reserve" on
    resource "MyJDBC Connection Pool-1" of application "null" of type "ConnectionPool"
         at weblogic.jdbc.common.internal.JDBCUtil.wrapAndThrowResourceException(JDBCUtil.java:157)
         at weblogic.jdbc.pool.Driver.connect(Driver.java:156)
         at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:444)
         at weblogic.jdbc.jts.Driver.connect(Driver.java:138)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:305)
         at com.itginc.strategyServers.common.database.Database.initializeUserCache(Database.java:729)
         at com.itginc.strategyServers.common.database.Database.connect(Database.java:104)
         at com.itginc.strategyServers.common.database.Database.getClients(Database.java:157)
         at com.itginc.strategyServers.common.servlets.ClientsServlet.doPost(ClientsServlet.java:41)
         at com.itginc.strategyServers.common.servlets.BaseServlet.doGet(BaseServlet.java:110)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at com.itginc.strategyServers.common.servlets.BaseServlet.service(BaseServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:301)
         at com.itginc.strategyServers.common.servlets.LoginServlet.doPost(LoginServlet.java:230)
         at com.itginc.strategyServers.common.servlets.LoginServlet.doGet(LoginServlet.java:242)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

    farnaz wrote:
    I changed the following line in my fileRealm.properties and fixed the problem.
    Is this the correct thing to do?
    acl.reserve.weblogic.jdbc.connectionPool=system
    changed to
    acl.reserve.weblogic.jdbc.connectionPool=everyoneyes.
    Joe
    >
    >
    >
    >
    "farnaz" <[email protected]> wrote:
    A few issues, i've been stuck on this problem for 2 days now, please
    HELP!
    1. My acl settings (i looked at them via the console) seems to have "everyone"
    permission for all jdbc operations: reserve, shrink, etc.
    2. If acl is not the way to set security policies why is it shown in
    the console?
    3. I cannot find anywhere in the wls8.1 documentation on how to set security
    policies
    for jdbc.
    Can i see an example?
    4. I was not using any java securtiy when i got that error, so then I
    added the
    -Djava.security.manager to my startup cmd line for starting weblogic
    using the
    default weblogic policy in $WLSHOME/server/lib/weblogic policy (unmodified)
    and
    got the following exception on startup, help!
    The Horizon Portal could not be started, because the Application Manager
    failed
    to initialize. access denied (java.lang.RuntimePermission weblogic.kernelPermission)
    java.security.AccessControlException: access denied (java.lang.RuntimePermission
    weblogic.kernelPermission)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
         at java.security.AccessController.checkPermission(AccessController.java:401)
         at weblogic.security.service.SubjectManagerImpl.checkKernelPermission(SubjectManagerImpl.java:202)
         at weblogic.security.service.SubjectManagerImpl.getKernelIdentity(SubjectManagerImpl.java:181)
         at weblogic.security.subject.SubjectManager.isKernelIdentity(SubjectManager.java:102)
         at weblogic.security.service.SubjectManagerImpl.checkKernelIdentity(SubjectManagerImpl.java:214)
         at weblogic.security.subject.DelegatingSubjectStack.getCurrentSubject(DelegatingSubjectStack.java:31)
         at weblogic.security.service.SubjectManagerImpl.getCurrentSubject(SubjectManagerImpl.java:61)
         at weblogic.security.service.SecurityManager.getCurrentSubject(SecurityManager.java:43)
         at weblogic.jndi.internal.ServerNamingNode.checkPermission(ServerNamingNode.java:330)
         at weblogic.jndi.internal.ServerNamingNode.checkModify(ServerNamingNode.java:306)
         at weblogic.jndi.internal.ServerNamingNode.rebindHere(ServerNamingNode.java:166)
         at weblogic.jndi.internal.BasicNamingNode.rebind(BasicNamingNode.java:382)
         at weblogic.jndi.internal.WLEventContextImpl.rebind(WLEventContextImpl.java:118)
         at javax.naming.InitialContext.rebind(InitialContext.java:363)
         at com.itginc.strategyServers.common.database.DatabaseLookup.bind(DatabaseLookup.java:45)
         at com.itginc.strategyServers.horizon.services.AppManager.Initialize(AppManager.java:66)
         at com.itginc.strategyServers.horizon.services.AppManager.<init>(AppManager.java:44)
         at com.itginc.strategyServers.horizon.services.AppManager.makeClass(AppManager.java:22)
         at com.itginc.strategyServers.horizon.services.Startup.startup(Startup.java:27)
         at weblogic.t3.srvr.StartupClassService.invokeStartup(StartupClassService.java:177)
         at weblogic.t3.srvr.StartupClassService.invokeClass(StartupClassService.java:158)
         at weblogic.t3.srvr.StartupClassService.access$000(StartupClassService.java:36)
         at weblogic.t3.srvr.StartupClassService$1.run(StartupClassService.java:121)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.t3.srvr.StartupClassService.invokeStartupClass(StartupClassService.java:116)
         at weblogic.t3.srvr.PostDeploymentStartupService.resume(PostDeploymentStartupService.java:22)
         at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
         at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
         at weblogic.Server.main(Server.java:32)
    Joe Weinstein <[email protected]> wrote:
    Hi. Two things:
    Your test table SQL is wasteful. sysobjects is a big table. No needto
    count everything
    in it every time to check the connections. Try "SQL select 1" for abetter
    one.
    The problem isn't in the pool definition. It's a security issue. You
    should edit your
    weblogic.policy file to allow jdbc access to everyone.
    Joe
    farnaz wrote:
    HI,
    I just upgraded from wls 6.1 to wls 8.1 sp2. My Connection pools
    are
    not working
    anymore.
    I am using sybase server 11.5.1 with the jconnect 5. I am making
    database
    calls
    (that
    used to work). Here's the strange thing, I have a startup class thatruns an
    sql query when weblogic server comes up (in the main thread i am assuming)and
    it works. But calling the same exact sql query fails when i clickon my webapp
    that leads to the same query (it is called from a different thread).
    Any ideas? I am assuming it's a security issue where the main threaduses the
    correct username and password and the other threads don't. Heres
    my
    config file
    and my exception trace:
    <JDBCTxDataSource JNDIName="FOO" Name="MyJDBC Data Source"
    PoolName="MyJDBC Connection Pool-1" Targets="portal"/>
    <JDBCConnectionPool DriverName="com.sybase.jdbc2.jdbc.SybDriver"
    Name="MyJDBC Connection Pool-1" Password="xxx"
    Properties="user=vwap;url=jdbc:sybase:Tds:myhost:9501/vwap;networkProtocol=Tds;portNumber=9501;userName=vwap;databaseName=vwap;serverName=myhost"
    Targets="portal"
    TestTableName="SQL SELECT COUNT(*) FROM sysobjects" URL="jdbc:sybase:Tds:myhost:9501/vwap"/>
    I also tried it with weblogic sybase driver and same results:
    <JDBCConnectionPool DriverName="weblogic.jdbc.sybase.SybaseDriver"
    Name="MyJDBC Connection Pool" Password="xxx"
    Properties="user=vwap;url=jdbc:bea:sybase://myhost:9501;portNumber=9501;databaseName=vwap;serverName=myhost"
    Targets="portal"
    TestTableName="SQL SELECT COUNT(*) FROM sysobjects" URL="jdbc:bea:sybase://myhost:9501"/>
    error.weblogic.common.resourcepool.ResourcePermissionsException: User"<anonymous>"
    does not have permission to perform operation "reserve" on resource"MyJDBC Connection
    Pool-1" of application "null" of type "ConnectionPool"
    weblogic.jdbc.extensions.PoolPermissionsSQLException: weblogic.common.resourcepool.ResourcePermissionsException:
    User "<anonymous>" does not have permission to perform operation "reserve"on
    resource "MyJDBC Connection Pool-1" of application "null" of type
    "ConnectionPool"
         at weblogic.jdbc.common.internal.JDBCUtil.wrapAndThrowResourceException(JDBCUtil.java:157)
         at weblogic.jdbc.pool.Driver.connect(Driver.java:156)
         at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:444)
         at weblogic.jdbc.jts.Driver.connect(Driver.java:138)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:305)
         at com.itginc.strategyServers.common.database.Database.initializeUserCache(Database.java:729)
         at com.itginc.strategyServers.common.database.Database.connect(Database.java:104)
         at com.itginc.strategyServers.common.database.Database.getClients(Database.java:157)
         at com.itginc.strategyServers.common.servlets.ClientsServlet.doPost(ClientsServlet.java:41)
         at com.itginc.strategyServers.common.servlets.BaseServlet.doGet(BaseServlet.java:110)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at com.itginc.strategyServers.common.servlets.BaseServlet.service(BaseServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:301)
         at com.itginc.strategyServers.common.servlets.LoginServlet.doPost(LoginServlet.java:230)
         at com.itginc.strategyServers.common.servlets.LoginServlet.doGet(LoginServlet.java:242)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

  • Migrating from Sybase Anywhere to ASE

    I am in process of migrating from Sybase Anywhere to ASE and trying to import a table from Anywhere to ASE, I getting following error message that could not find appropriate data type for column - now this column from Anywhere has data type of datetime.

    ASE does not have any wizards so you must be using some sort of GUI/tool/application.
    What GUI/tool/application are you using? PowerDesigner? Sybase Central? Sybase Control Center? Something else?
    Can you *connect* to the ASA and ASE instances with this GUI/tool/application? [Forget the 'import' operation for the moment ... and verify you can just *connect* to both ASA and ASE.]
    Also, what is the actual/complete error message?
    NOTE: I don't use GUI/tools so depending on the error there may not be much more I can assist with.

Maybe you are looking for

  • Data usage and tracking

    i just recently got a nokia n73, and just wondering if there is anyway to track the amount of data usage that i am using per month so i dont get an outrageous bill in the mail for going over

  • Bold Text

    I often have trouble getting text to bold in dreamweaver. I have copied some text from Word text document (and I am using a .txt extension). I have bolded some of the words, the html adds the "strong" code, yet when I test it in a browser, the words

  • Strange Parameter behavior - can anyone explain or enlighten?

    I have 27 Crystral Reports that are fed data through 27 SQL Stored Procedures.  Recently my boss had me add two more parameters to all 27 Procedures and update the Crystal Reports.  I went through all 27 Reports, ran the Set Datasource Location and V

  • FlashPaper PDF...

    I turned a pdf into an swf with FlashPaper. The flashpaper swf did not preserve any of the links that were in the pdf. How can I create links in my FlashPaper? Is there anyway to bring my flashpaper into flash and maybe even just stick some invisible

  • A little arrow under my battery

    i was recently driving and when i looked down at my phone there was a little blue arrow under my battery, Does anyone know what this is i have never seen it b4, it was charging in my car, but after i unplugged it, it was still there, although i love