Problem connecting to Sybase

I tried to connect to Sybase as below in Unix environment as below
Class.forName("net.sourceforge.jtds.jdbc.Driver");
Connection conn = DriverManager.getConnection("jdbc:jtds:sybase://INFUNDREF:7100/arch_db;TDS=7.0");
I get an ERROR message as below
An exception occurred.java.sql.SQLException: Unknown server host name 'INFUNDREF'.
The INFUNDREF is a valid database(Sybase) server name, but still I get this error.
Can any one please help?

mannikavum wrote:
BalusC wrote:
Try using its IP address instead. Etcetera. It is just an ordinary networking problem,.Thank you. Can you please tell me how do we find the ip address of the Unix machine we are inAsk someone who has more knowledge about unix than you. This is not related to Java at all.
Could please also tell where to inser the ip address in the codeIs it really hard to think logically?

Similar Messages

  • Problem connecting to Sybase Server using Crystal XI-Version-11.0.0.1994

    Dear All,
    I have Crystal Reports XI (Version-11.0.0.1994) and Sybase Adaptive Server Enterprise 12.5  installed in my machine.
    Now Im trying to connect to Sybase Server As ,  File > Log On or Off Server  > Create New Connection > More Data Sources > Sybase. But am not Able to. It takes me to the installation wizard and ends with "No items found" error message.
    How ever Im able to create an ODBC Connection to the sybase server. But I want to create a connection using Sybase Native Driver. Could you anyone please throw some light on this
    Thanks

    Hello,
    Go into Add/Remove Programs and Change and then select Custom install and expand the database drivers. Verify you have selected Sybase, if not select it and then OK.
    If it's there then make sure the client is installed and path to the Sybase Client is in the PATH statement. Sorry I don't recall what it should be but you should see Sybase there somewhere. If not add it, typically it also has a \bin folder.
    Thank you
    Don

  • Problem connecting (read only) to Sybase Server using Crystal XI

    Hi,
    I'm having a very similar problem to Renuha in the thread 'Problem connecting to Sybase Server using Crystal XI-Version-11.0.0.1994'
    The thread is marked as assumed answered but I suspect not!
    I am experiencing this issue in Crystal XI R1 11.0.0.2495, post SP4 install.
    Though the issue was exactly the same pre SP4 install, when it was a vanilla install @ version 11.0.0.1282.
    I am trying to connect to a Sybase database via Crystal > Start Page > Standard Report Wizard > Standard Report Creation Wizard > Sybase Server > Make New Connection
    I enter the details, of my read only user account, and select my desired database, from the (successfully) populated 'Database' drop down.
    After some time, in the 'Standard Report Creation Wizard' window I get the server listed under the Sybase Server branch, but, on expanding the server I only get '...no items found...'. However ,if I use the sa account, after selecting a particular database, I can see all the available database objects under the Sybase Server > [server] node.
    I am on Windows XP Pro SP3, with Sybase Open Client v12.5.2
    I assume my Sybase Open client is correctly installed as I am able to successfully connect using the sa account.
    I am trying to connect to a Solaris 10 (5.10) system running Sybase @@version= Adaptive Server Enterprise/15.0.3/EBF 16548 ESD#1/P/Sun_svr4/OS 5.8/ase1503/268
    Our database vendor/supplier has said:
    "...Crystal reports is not handling the granularity of the Sybase revoke permissions and assuming we've revoked all access to any table where we have revoked only write access.
    Is anyone able to assist?
    Thanks,
    Matt

    Don,
    Thanks again for the response and my apologies for the delay in reply - they keep giving me other work to do!!
    Anyway.
    CR XI R2 SP6 successfully installed.
    Same outcome on Sybase connect, with a full read/write sa account
    i.e. successfull connect and sight of all database objects within my chosen database.
    Same outcome on my restricted read only account
    i.e. I am able to successfully authenticate and choose which database I wish to select but subsequently, still, 'no items found' is displayed when I expand my database node.
    I believe it is a problem with the read only account as both accounts are able to connect, as shown by the availablilty of the dropdown, listing the available databases within the specified Sybase instance.
    The reasons for going down this path are as you suspect - I've been asked to provide access which is not full!
    As far as the testing via test tbl creation.
    I know very little of Sybase (?!) and all our Sybase DBA activities are carried out by our system/dB vendor/supplier.
    To do further testing I would have to go back to our dB vendor/supplier but, as mentioned, (I get the impression) they already beleive they have carried out all required of them by providing locked down read only access.
    I ought to mention that the database trying to be accessed is a restored copy of "the previous days" live data, on an MIS server. The read-only account comes over as with full privileges, and it is a script, subsequent to database restore, which knocks down the accounts privs, to read-only. Given this scenario what would I have to ask of them re further testing/troubleshooting?
    Thanks,
    Matt

  • Corrupted Chinese characters shown while connecting to Sybase

    SQL Developer experts,
    While I connect to Sybase DB 11 via SQL developer 2.1.1 with 'jtds-1.2.5' JDBC driver, but I see corrupted Chinese characters from SQL developer, the Sybase DB is using 'iso_1' charset. Can anyone advise me how to solve the problem ? Any configuratioin should I do for the JDBC connection string and where to configure it ? Thanks in advance.

    Hi,
    When you browse your Sybase connection do you see the corrupt characters in the table name, column name the data or both.
    Is the corrupt character a ? or an upsidedown ?
    You say that you are using 'iso_1' charset in Sybase. Is this not just for western european languages ? in which case I wouldnt expect it to manage chinese characters.
    When you log your Sybase instance using Sybase Central, do you see the correct characters?
    Just to note I can browse I chinese (GBK) Sybase database where the tablenames, columnnames and data are in chinese.
    Also that we currently only support jtds-1.2.jar .
    Regards,
    Dermot
    SQL Developer Team

  • Connecting to sybase

    Hi,
    Could someone help me with this problem.
    I am trying to copy data from sybase to oracle.
    The table structures(contains long datatype) for the two db are similar.
    But when i try using the copy command in sqlplus, i get the error message:end of communication file end channel.
    I am using heterogenous service to connect to sybase.I already created a dblink and tested it, works fine.
    I added the tnsname: amos_sql and tried to connect straight to sybase using sqlplus:
    conn username/password@amos_sql but it also had the same error : end of communication....
    What is wrong,please help.
    Thanks.

    <<the Copy command doesn't support long columns>>
    It does. Please check the following link for details.
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a90842/apb.htm#634269

  • 10g Form Developer Quits on compiling Forms connected to Sybase tables.

    Dear Experts,
    We have configured the connectivity for Sybase database with our oracle 9i database. using Hetero Geneous Service i.e using System_dsn ..etc.
    On this Sybase connectivity 6i Forms are compiling and running successfully But with 10g Forms while compling it just close the 10g form developer.
    For example....!
    In 6i forms On Button Press trigger below insert command works perfectly.
    But In 10g forms it say nothing and Just Quit.
    begin     
    insert into *"sybase_table"@SYBASE_DSN_DBLINK*
    ("colum1","colum2")
    values
    ('value1','value2');                         
    commit;
    end;
    Please help to resolve this problem.
    Thanks
    Eidy

    Hello,
    1.) does it with with the forms compiler (frmcmp)?
    2.) did you try creating a synonym for your object:
    create synonym my_syn for sybase_table@SYBASE_DSN_DBLINK;and use this synonym?
    3.) Did you try it with the latest patchsets if you didn't apply them (10.1.2.3 for forms)?
    4.) Did you try it with another database version (9i reached sustaining support btw. so you might try it with e.g. 10.2)?
    5.) If everything fails you can put your logic in a database procedure and use that?
    cheers

  • Error connecting to Sybase database through WSAD

    In my jsp page I am trying to connect to Sybase database within WSAD.
    Here is my code:
    InitialContext ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup("jdbc/AimDB");
    Connection con = ds.getConnection();
    It is giving an error message:
    Error 500: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object.
    On console below error message is coming:
    E SRVE0026E: [Servlet Error]-[Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object.]: com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is java.lang.Exception: Failed security check. Client is not permitted to create connection factory jdbc/AimDB
         at com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.createMCFandPM(ConnectionFactoryBuilderImpl.java:1566)
         at com.ibm.ejs.j2c.ConnectionFactoryBuilderImpl.getObjectInstance(ConnectionFactoryBuilderImpl.java:1188)
         at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:313)
         at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:884)
         at com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.java:1762)
         at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1615)
         at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1525)
         at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1225)
         at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)
         at javax.naming.InitialContext.lookup(InitialContext.java:359)
         at org.apache.jsp._Test1._jspService(_Test1.java:89)
    Thanks,
    Vineet

    Hi ,
    Any body have this solution ??? I am using wsad -5.1.2 .When I try to access datasource from test server I got this same problems....
    I tried whatever instructs in above link.But after that I got same problem ....
    Sorry,for bad english
    advance thanks

  • I'm trying to set up my Ipod, but when I go to sign in with an apple ID it says 'Could not sign in: there was a problem connecting to the server'.

    I just bought a 3rd generation ipod touch. It was professionally refurbished. I'm trying to set it up, and everything seems to be working fine, until we get to the wifi. I live on campus and our wifi is username and password protected. I signed in and everything seemed to work fine, and in the top left hand corner I have all the bars for wifi. However, when I go to sign in with an apple ID it says 'Could no sign in: there was a problem connecting to the server'. I've tried turning it on and off again, tried signing on to our wifi again, but it all isn't working. What can I do?

    I also encountered the same problem. Try using a different email address or try signing in later.

  • I am having problems connecting to home wifi.  It was working, but now all I get is a blank white screen.  I re-booted with no success.

    I am having problems connecting to home wifi.  It was working, but now all I get is a blank white screen.  I re-booted with no success.

    Hi, blank white screen where exactly?
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    10.5, 10.6, 10.7 & 10.8…
    System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
    10.5.x/10.6.x/10.7.x/10.8.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    If using Wifi/Airport...
    Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.
    For 10.5/10.6/10.7/10.8, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
    208.67.222.222
    208.67.220.220
    (There may be better or faster DNS numbers in your area, but these should be a good test).
    Click OK.

  • Problems connecting multiple macs to an Airport Extreme network.

    I think this problem is similar to a previous post, but is individual in some ways.
    I have 2 Airport Extreme basestations covering a large flat connected by Ethernet extending a single network. I did try to extend the network wirelessly, but this was plagued with problems where the network would work for 10 mins, then drop out as I think the basestations are slightly too far apart.
    Connected to the network are a number of machines:
    Wirelessly we have 3x iPhones, 1x G4 Cube, 1x iMac (current model), 2x MacBook Pro (previous model) & 1x PC.
    Wired via a hub is an Apple TV, PS3, Nintendo Wii, Denon Home Cinema Amp, PS2
    For aprox 6 months I have had major problems connecting all the wireless machines at the same time. I have played around with the security as per previous posts with varying degrees of success.
    I seem to have the most problems with the iMac. The iMac will not join the network when there is any form of wireless security. Every time I try to set up a password it hangs when trying to join and I finally get the "There was a error joining xxxx network".
    After more playing around I managed to get all the machines working by having no security on the network and locking the network down by MAC addresses.
    Since last Thursday I now have a new problem. The iMac joins and stays on the network perfectly, but the second my second MacBook Pro is switched on and joins the network, the internet connection on the iMac drops out. In addition, as we use the iMac as a media server, all other machines connected to the iMac for either file sharing or iTunes sharing then get the error "the remote machine is failing to respond. Please check firewall settings if there are any". What is strange is that the iMac remains on the network, full signal, independent IP address and the second the MacBook Pro is switched off, works perfectly again.
    I have tried wiping both the iMac & the MacBook Pro and re-installing their operating systems, but this only solves the problem for aprox 24 hours then all of a sudden the issue re-appears.
    Can anyone out there help?

    Let's double-check the AirPort Express Base Station's (AX) settings ...
    Perform a "factory default" reset of the AX
    o (ref: http://docs.info.apple.com/article.html?artnum=108044)
    Either connect to the AX's wireless network or connect directly, using an Ethernet cable, to the Ethernet port of the AX, and then using the AirPort Utility in "Manual Setup" mode, check the following settings:
    AirPort > Base Station
    o Base Station Name: <rename or leave default>
    o Base Station Password: <enter desired password>
    o Verify Password: <re-enter desired password>
    o Remember this password in my keychain: (optional)
    o Set time automatically: (unchecked)
    AirPort > Wireless
    o Wireless Mode: Join a wireless network
    o Network Name: <existing AEBSn's wireless network>
    o Wireless Security: <select the encryption type of the existing wireless network>
    o Wireless Password: <enter the existing wireless network password>
    o Verify Password: <re-enter the existing wireless network password>
    Music
    o Enable AirTunes (checked)
    o iTunes Speaker Name: <enter desired speaker name>
    o iTunes Speaker Password: (optional)
    o Verify Password: (optional)
    o Click Update to write the new settings to the AX
    In iTunes:
    iTunes > Preferences... > Advanced > General
    o Look for remote speakers connected with AirTunes (checked)

  • TS3048 My early 2009 Mac Pro does not connect via bluetooth to my sound bar or bluetooth mini speakers. Both my wireless keyboard and mouse have no problems connecting. What do I need to do to connect to external bluetooth devices?

    My early 2009 Mac Pro does not connect via bluetooth to my sound bar or bluetooth mini speakers. Both my wireless keyboard and mouse have no problems connecting. What do I need to do to connect to external bluetooth devices?

    I would always have a wired keyboard and mouse on hand (need not be expensive ... any cheap wired devices will work).  "Emergency recovery" procedures can activate features in random order, so the opportunity to select a recovery partition may pass before the wireless devices are recognized.
    That will let you select the "turn on Bluetooth" icon.

  • Problem connecting MacBook to a Sharp video projector

    One of the great things I like about Macs is the easy way they (usually) connect to a video projector. Unlike a lot of my friends who run PCs with Windows I never had any problems whatsoever connecting my MacBook to a projector at the university and start my presentations.
    Until today that is.
    I tried to connect my MacBook with Apple's mini-DVI to VGA adapter to a Sharp ("Notevision") video projector and although the MacBook had the projector (even with its correct name "PG-M20X" and available resolution settings) listed under "Displays" immediately, I couldn't get the projector to show any more than "no signal" whatever input source I chose...
    What did I do wrong? Or is it the projector that is somehow "incompatible"?! Please help!
    MacBook Mac OS X (10.4.9) Core Duo 2GHz, July 2006
    MacBook   Mac OS X (10.4.9)   Core Duo 2GHz, July 2006

    Maybe this could help as well:
    After we tried several things with the MacBook (reboot, "detect displays" etc.), we successfully connected a Powerbook (15", FireWire 800, late 2003) to the projector, using Apple's DVI-VGA Adapter.
    So that did work out fine, but the MacBook didn't work on the projector. The cable that came with the projector was a VGA--DVI-A cable: there were only a few pins on the DVI-end of it going into the DVI-Connector on the projector. Could it have something to do with that? But why didn't the Powerbook have any problems connecting to the projector then?
    MacBook Mac OS X (10.4.9) Core Duo 2GHz, July 2006

  • Having problems connecting a late 2011 Macbook Pro 2.2ghz i7 to a Sony KDL-32L5000 using a display miniport to DVI adapter (DVI to VGA cord). The TV is not detecting the macbook. Anyone have this problem?

    Having problems connecting a late 2011 Macbook Pro 2.2ghz i7 to a Sony KDL-32L5000 using a display miniport to DVI adapter (DVI to VGA cord). The TV is not detecting the macbook. Anyone have this problem?

    You really have to mess with the resoluton, espescially the refresh rate, as it varies from projector to projector, monitor to monitor. Even within the same brand! Because so many manufacturers are trying so many different things to become the next cool kid on the block, and the way the formats are being configured that's now part of the game.
    That's why so many professionally produced corporate shows hire a dedicated projectionist for the video presentations. Too many bugs in the honey.
    Refresh & sesolution are the first things to look at.
    Just so you know that colors in PowerPoint PC, and PowerPoint Mac, don't exactly match... go figure.
    I forgot to mention another thing, sometimes it's the projector that needs to be tweaked.

  • Having problems connecting MacBook Pro 2010 TO vizio 60 " tv

    having problems connecting MacBook Pro 2010 TO vizio 60 " tv using mini displayport to VGA adapter
    non support warning appears pn tv monitor

    However, I still don't get a view of anything on the desktop except for the standard Apple swirl.
    Can you drag windows to the other display?
    In the "Arrangement" tab of "Displays" system preference, you can drag the display pictures to match the actual arrangement, drag the menu bar to the other display, or enable mirroring.

  • Problem connecting my macbook pro to a wired internet connection via ethernet cable adapter

    I am having a problem connecting my macbook to a wired internet connection in an area in my workplace where there is no wifi.  The macbook works fine on the same internet connection via wifi in other parts but when I add it as a wired connection it doesn't show any connection.  I have turned off wifi to make sure that it is not trying to pick up a poor connection but I still can't get this to work.  I think I am trying to set up the connection properly but can't be completely sure.  Any help would be appreciated.

    Open System Preferences>Network and make sure Ethernet is selected. If it is, open Advanced Settings (at the bottom of the Network window). Click on the TCP/IP tab. Configure IPv4 should be set to "Using  DHCP".
    Configure IPv6 should be set to "Automatically". When those are set click the "Renew DHCP Lease" button

Maybe you are looking for