Not able to connect mysql server from java program

Hi
I have mysql server running in one machine and I am accessing from another machine using java program. I have added an user from the server and given all the permission. But its not working. But when I hav java program locally its working.
The following is my program
private Connection getConnection(){
Connection con=null;
try{
Class.forName("com.mysql.jdbc.Driver");
String url="jdbc:mysql://10.5.18.135:3306/test";
con = DriverManager.getConnection(url,"new","");
System.out.println("Connected");
}catch(Exception e){
System.out.println("Not Connected"+e);
e.printStackTrace();
return con;
its throwing me the follwoing exceptioon
Not Connectedjava.sql.SQLException: Unable to connect to any hosts due to exce
ion: java.net.ConnectException: Connection timed out: connect
java.sql.SQLException: Unable to connect to any hosts due to exception: java.n
.ConnectException: Connection timed out: connect
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1690)
Thanks in advance
Sathish

Try this way I think you will need the user and password.
Connection con=null;
try{
  Class.forName("com.mysql.jdbc.Driver");
  // assuming database test
  // assuming user is root
  // assuming user password is me
  String connectionString="jdbc:mysql://10.5.18.135:3306/test?user=root&password=me"
  con = DriverManager.getConnection(connectionString);
[code/]
rykk                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Not able to connect to server from word 2003

    Able to connect directly thru the web but not via the Microsoft word.
    The BI Publisher link is displayed
    After entering the user name,Password and Report Server Name
    When trying to click LOGIN Nothing happens
    Could anyone answer this please. Is it related to Microsoft word version , Do i have to install any plugins.

    Hello Sandeep Ji,
    In my system having java environment, Oracle 10g database and OC4J with Oracle 10g developer suite.
    I want to learn to use Oracle BI publisher for making reports.
    Today i have installed Oracle BI publisher desktop for making reports in ms-word 2007. when i try to log on in BI Publisher option in ms-word. It ask for username, password & report server url.
    Should i need to download & install BI Publisher Enterprise server (Stand Alone) to fill up the report server url details?
    Thanks!

  • Not able to connect RAC database from client

    Hi there
    Recently I have configured RAC in test environment. version 11.2.0.1. OS Redhat 5.9. Everything seems to be fine except not able to connect rac database from client.  Error is as under :
    C:\Documents and Settings\pbl>sqlplus test1/test1@myrac
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Nov 17 14:29:06 2014
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    Enter user-name:
    myrac =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = racdb.testdb.com.bd)
    Please give me your valuable suggestion to  overcome the issue.
    Regards
    Jewel

    user13134974 wrote:
    ORA-12545: Connect failed because target host or object does not exist
    This error means that the hostname or IP address used in the TNS connection string, failed to resolve or connect.
    Your client is making two connections. The first connection is to the SCAN listener. It matches a db instance for your connection request based on service requested, available registered service handlers, load balancing, and so on. It then send a redirect to your client informing it of the handler for that service.
    Your client then does a second connection to this service (a local RAC listener that will provide you with a connection to the local RAC instance). This is what seems to be failing in your case.
    The SCAN listener's redirect uses the hostname of the server that the local listener is running on. Your client needs to resolve that hostname (of a RAC node) to an IP address. This likely fails.
    You can add the RAC node hostnames to your client platforms hosts file. The appropriate action however would be to ensure that DNS is used for name resolution instead.

  • Not able to connect to database from Form builer

    Hi ,
    I installed oracle 10 g in my machine and is accessable from SQLPLUS & TOAD.
    In the same drive i installed Form builder, i am getting the below error when i tried to connect DB from form builder.
    ORA- 12154 : TNS : could not resolve service name.
    Kindly do the needfull.

    not able to connect to database from Form builder

  • Not Able To Connect Internet Using Ethernet Getting Not Able To Connect PPP Server

    I was able to connect to internet using ethernet,but suddenly it is not working when i try to connect it says not able to connect ppp server but i am able to connect same ppoe to windows machine

    Hello vivek.palamkar,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Solutions for connecting to the Internet, setting up a small network, and troubleshooting
    http://support.apple.com/kb/ht1714
    Mac OS X: Connecting to the Internet With PPPoE
    Mac OS X: Troubleshooting a PPPoE Internet Connection
    Best of luck,
    Mario

  • DataSource at Report Server is not able to connect another server

    Hi All,
    I am having two servers on different Domain; One where my default SQL 2012 database Instance is present (say: Server 1), and another server where Report Server 2012 is installed (say Server 2).
    From Management Studio, I am able to connect database server 1 from server 2. Even I am able to Ping server 1 from server 2.
    But when I am creating Data Source at Report Server (Server 2), to connect Database Server (Server 1), I am getting below error:
    "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.
    (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"
    I using below connection string in Data Source:
    Data Source=SERVER1;Initial Catalog=msdb
    Below are the additional information:
    Server Instance Protocols on Server 1: Named Pipe, TCP/IP and Shared Memory are Enabled
    SQL Services on Server 1: SQL Server, SQL Browser are running
    Please help me on this.
    Thanks ,
    Avi
    -Regards Avi | Please kindly don’t forget to mark the post(s) that answered your question

    Are you really connecting to the msdb database in your connection string?  What is the user you are connecting to the database as when you are in Management Studio?  Is it an SQL user or a Windows user?  Maybe whatever credentials you are
    using in your datasource does not have access to the sql server?
    And is it Server 1 or Server1? or is that just an example server name.  I agree with trying the ip address but make sure you are using the same credentials as you do in Management Studio

  • Bb Traffic not able to connect to server

    Has anyone else had problems using Traffic over the last week or so? I keep getting the message Unable to reach server.
    At first I thought it might be weather related, but it is also happening when the weather is clear and visibility high, so now I am not so sure, as it could be a server outage of some kind.
    Any suggestions? I've called Verizon and got the usual ' We don't see any issues on our side to account for this' message, I.e., they are pointing back to RIM.
    /Bill

    I have schema whose name is touchpoint and password is touchpoint1.This particular schema is on the server as described previously.When I am tring to connect this schema from sequel developer It is working fine but the same thing when I am tring to connect from the sequle*Plus env by **touchpoint/touchpoint1@dev1** I am not able to connect.
    I am using 10g only.This is the error I am getting
    SQL> connect touchpoint/touchpoint1@dev1;
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    Warning: You are no longer connected to ORACLE.
    SQL>
    Please tell me if U need any more clarifications
    Thanks
    Edited by: Prafulla on Jan 19, 2011 4:19 AM

  • Starting weblogic server from java program

    Runtime r=Runtime.getRuntime();
    Process p=r.exec("cmd /c d:/bea/weblogic700/server/bin/setWLSEnv.cmd");
    when ihave given like this it is working.
    now i want to start weblogicserver from jav program
    String s="-Dweblogic.Domain=mydomain weblogic.Server"
    Process p=r.exec("cmd /c d:/bea/weblogic700/server/bin/setWLSEnv.cmd java "+s);
    when i gave like this weblogicserver should start with specified domain
    but no output is comming.please tellme where the problem is

    no - nothing happened. it perform the next java code - and there is nothing else happen on the windows.
    maybe i don't check in the right place for the error you are talking about?
    i also tried i simple cmd file that does nothing - but still nothing...
    for any other file types it works properly.

  • Sun Solaris 5.10 - SSH 1.1.3-Not able to connect to server with ssh -Urgent

    Hi,
    I am not able to coonect to a server using the using the below code.
    If i try the same code on the server to connect it self, it is working fine. But when i try to connect from other server it give the below error. And i am using the IBM Jdk while getting this error. Is there some setting to avoid this error.
    Error:
    INFO: Adding /usr/jdk/instances/jdk1.6.0/jre/lib/ext/sunpkcs11.jar to the extension classpath
    ConfigurationLoader
    Nov 30, 2010 4:33:12 PM com.sshtools.j2ssh.transport.publickey.SshKeyPairFactory <clinit>
    INFO: Loading public key algorithms
    Error While SFTP
    java.util.NoSuchElementException
    at java.util.StringTokenizer.nextToken(StringTokenizer.java:332)
    at java.util.StringTokenizer.nextElement(StringTokenizer.java:390)
    at com.sshtools.j2ssh.transport.AbstractKnownHostsKeyVerification.<init>(Unknown Source)
    at com.sshtools.j2ssh.transport.ConsoleKnownHostsKeyVerification.<init>(Unknown Source)
    at com.sshtools.j2ssh.SshClient.connect(Unknown Source)
    at fileTransfer.connectToServer(fileTransfer.java:18)
    at fileTransfer.main(fileTransfer.java:56)
    Code:
    public static boolean connectToServer(String serverIp, int serverPort, String userId, String password)
    SshClient sfc = null;
    try {
    System.out.println("inside Try of as its SFTP");
    ConfigurationLoader.initialize(false);
    System.out.println("ConfigurationLoader");
    sfc = new SshClient();
    sfc.connect(serverIp, serverPort);
    System.out.println("sfc.connect");
    PasswordAuthenticationClient pwd = new PasswordAuthenticationClient();
    pwd.setUsername(userId);
    pwd.setPassword(password);
    int checkAuth = sfc.authenticate(pwd);
    System.out.println("checkAuth " + checkAuth);
    if (checkAuth == 4) {
    System.out.println("AuthenticationProtocolState.COMPLETE");
    SftpClient sftp = sfc.openSftpClient();
    sftp.quit();
    sfc.disconnect();
    else
    throw new Exception("Invalid User Name or Password for user");
    catch (Exception e)
    System.out.println("Error While SFTP ");
    sfc.disconnect();
    e.getStackTrace();
    return false;
    return true;
    }

    Could it be that you are missing the SSH certificate on the computer where you're experience the problem?
    From what I understand, you need to copy the valid certificate from our server to the other computer. Perhaps the following example will be useful:
    http://www.sun.com/bigadmin/content/submitted/ssh_setting.jsp
    http://www.lifelinux.com/setting-up-an-ssh-certificate/
    Edited by: Dude on Nov 30, 2010 12:12 PM

  • Un able to connect HP QC from JAva API

    I have benn trying to connect the HP Quality center from Java client .But I am unable to connect from 64bit windows os .
    I am getting the below error: I did lot of search no where i couldn't find the solution. Please kindly help me in this
    Exception in thread "main" com4j.ExecutionException: com4j.ComException: 80040154 CoCreateInstance failed : Class not registered : .\com4j.cpp:153
    at com4j.ComThread.execute(ComThread.java:203)
    at com4j.Task.execute(Task.java:25)
    at com4j.COM4J.createInstance(COM4J.java:97)
    at com4j.COM4J.createInstance(COM4J.java:72)
    at com.mercury.qualitycenter.otaclient.ClassFactory.createTDConnection(Unknown Source)
    at Qcconnect.main(Qcconnect.java:17)
    Caused by: com4j.ComException: 80040154 CoCreateInstance failed : Class not registered : .\com4j.cpp:153
    at com4j.Native.createInstance(Native Method)
    at com4j.COM4J$CreateInstanceTask.call(COM4J.java:117)
    at com4j.COM4J$CreateInstanceTask.call(COM4J.java:104)
    at com4j.Task.invoke(Task.java:51)
    at com4j.ComThread.run0(ComThread.java:153)
    at com4j.ComThread.run(ComThread.java:134)

    Try this way I think you will need the user and password.
    Connection con=null;
    try{
      Class.forName("com.mysql.jdbc.Driver");
      // assuming database test
      // assuming user is root
      // assuming user password is me
      String connectionString="jdbc:mysql://10.5.18.135:3306/test?user=root&password=me"
      con = DriverManager.getConnection(connectionString);
    [code/]
    rykk                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • I am not able to connect my icloud from my iphone

    Hi there,
    I have just updated my IOS to IOS 7,
    and when it was completed, I was asked to Accept the new Agreement for ICLOUD..
    But when i was trying to reach there, it was unavalaible,
    so, I deleted my icloud account, and try to resign-in..
    And until now, everytime i try to sign in with my icloud on my device (email : [email protected]), it says "cannot connect to server"
    I tried to create new apple ID, using different email ([email protected]), and it works...
    And here I am writing this discussion through my Laptop, and I am able to log-in in www.icloud.com with my previous apple ID ([email protected])
    What should I do then ?
    Regards,
    Dani

    Hi there,
    So far there is one thing that worked for more then one persone.
    Download from AppStore: https://itunes.apple.com/us/app/find-my-friends/id466122094?mt=8
    Accept the TOS and then it will automaticly accept the TOS for iCloud aswell.
    Let me know if helped,

  • Help Please!! Not able to connect to database from servlets

    Hi all,
    I hava placed a servlet which connects to a database in examples\web-inf\classes dir. I have specified everything in web.xml. But when I run the servlet it says no suitable driver found even though I have placed the driver tomcat/common\lib\classes12.zip in my classpath . I have also trtied converting the file to jar and running the servlet but I am not able to get the connection to database.
    I get the following error.
    Starting service Tomcat-Standalone
    Apache Tomcat/4.0.6
    Starting service Tomcat-Apache
    Apache Tomcat/4.0.6
    Error in init:oracle.jdbc.driver.OracleDriver
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1406)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1254)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:120)
    at testConnectionServlet.init(testConnectionServlet.java:19)
    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918)
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
    at java.lang.Thread.run(Thread.java:484)
    Error in init:No suitable driver
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(DriverManager.java:537)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at testConnectionServlet.init(testConnectionServlet.java:27)
    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918)
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
    at java.lang.Thread.run(Thread.java:484)

    after inserting the line in the classpath for classes12.zip try the whole proc again. if it does not work then u should try putting it in the jdk lib dir and if ok can put it also in the \jdk1.3\jre\lib and \jdk1.3\jre\lib\ext dirs....
    it has worked perfectly for me and i dont c any reason that it should not do for u also.

  • Not able to start managed server from command prompt

    Hi,
    I am trying to start manged server from command prompt. The command i am using is as follows:
    startManagedWebLogic.cmd MS1 [http://]&lt;Listen_Address&gt;:&lt;Admin_port&gt;
    Where MS1 is the name of my managed server.
    But i am getting following exceptions:
    There are 1 nested errors:
    weblogic.management.ManagementException: Unable to obtain lock on C:\bea\user_pr
    ojects\domains\PB530Domain\servers\AdminServer\tmp\AdminServer.lok. Server may a
    lready be running
    at weblogic.management.internal.ServerLocks.getServerLock(ServerLocks.ja
    va:159)
    at weblogic.management.internal.ServerLocks.getServerLock(ServerLocks.ja
    va:58)
    at weblogic.management.internal.DomainDirectoryService.start(DomainDirec
    toryService.java:73)
    at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesMan
    ager.java:459)
    at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServ
    icesManager.java:164)
    at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:711)
    at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:482)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:440)
    at weblogic.Server.main(Server.java:67)
    >
    <Feb 10, 2009 6:48:16 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server sta
    te changed to FAILED>
    <Feb 10, 2009 6:48:16 PM IST> <Error> <WebLogicServer> <BEA-000383> <A critical
    service failed. The server will shut itself down>
    <Feb 10, 2009 6:48:16 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server sta
    te changed to FORCE_SHUTTING_DOWN>
    Please help me to resolve this issue.
    thanks,
    Sonal
    Edited by: [email protected] on Feb 10, 2009 5:16 AM

    Looking at your error message a little closer, I don't believe it has anything to do with port conflicts but rather that even though you are executing the startManagedWeblogic.cmd with your managed server name (MS1), the error indicates that it is trying to start the Admin Server (not MS1). Note in your error message the following: Unable to obtain lock on C:\bea\user_pr
    ojects\domains\PB530Domain\servers\AdminServer\tmp\AdminServer.lok. Server may a
    lready be running
    It is saying that it cannot start the Admin Server because it is already running (which is probably true in your case). Have you made any changes to the startManagedWeblogic.cmd or the startWeblogic.cmd scripts? I would start debugging there and try to figure out why the script is trying to start your admin server instead of MS1 as you requested on the cmd line.

  • Not able to connect Oracle DB from Local Desktop.

    Hi Experts,
    I am getting below error when i tried to connect to Oracle datebase from my local desktop
    **Status : Failure-ORA-01017:invalid username/password; login denied**
    If I am connecting to Same Db using same username and Credentials from Citrix Box I am able to connect with out any issues.
    Please provide us the solution..Thanks in advance.
    Regards
    Sarika.

    989470 wrote:
    Hi Experts,
    I am getting below error when i tried to connect to Oracle datebase from my local desktop
    **Status : Failure-ORA-01017:invalid username/password; login denied**
    If I am connecting to Same Db using same username and Credentials from Citrix Box I am able to connect with out any issues.
    Please provide us the solution..Thanks in advance.What proof exists that you are REALLY attempting to connect to the same DB?
    Problem Exists Between Keyboard And Chair!
    when was the last time this worked without error?
    What changed since then?

  • Import ServerBatch not able to connect to server

    I am trying to use import server batch to update some customer master recprds.
    I am using xml schema  and an xml file with data.  These are succesfully processed through import manager.
    I tried import server using the same and hit a bug in MDM import server we are MDM SP04 pck1.  our os is 64 bit. this I am following in another thread.
    As work around I am trying to use importmanager batch to automate my imports.
    I am getting an error in the log unable to connect repository.  I am giving my ini file and log getting generated   Helpful answers will be rewarded.
    The command I am using to execute is
    ImportManagerBatch.exe /INI abc.ini
    INI file
    [Source]
    Type=XML
    XML Schema="PR5 BAPI Response CREATE 22JAN"
    File name="\TEST_INBND_SINGLE_DOUBLE.xml"
    //DSN=
    //DBMS Server=
    //Database=
    //User=
    //Password=
    //possible values are: True or False
    Read-only=False
    [Destination]
    Repository="BP US FUELS CUSTOMER MASTER"
    Server="XXXXYYY"
    Port=12345
    User=Admin
    Password=
    ClientSystem="SAP PR5"
    Map="CM_CR_INBND_PR5_22JAN"
    Language=English [US]
    [Batch Import Default Option]
    //possible values are: Yes or No
    Automap Batch Unmapped Value=Yes
    //possible values are: Add or Ignore
    Batch Unmapped Value Handling=Add
    //possible values are: Yes or No
    Always Use Batch Unmapped Value Handling=No
    LOG FILE
    <?xml version="1.0" encoding="utf-8"?>
    <?xml-stylesheet type="text/xsl" href="MDM_Log.xsl"?>
    <MDM_Log version="1.0" path="I:\Program Files\SAP MDM 5.5\Import Manager Batch\ImportManagerBat@@U@[email protected]"
    >
            <Open ts-long="22:35:36 GMT, Tuesday, January 23, 2007" ts="2007/01/23 22:35:36.588 GMT" pid="7284" compile-type="RELEASE_32">
                    <Trace ts="2007/01/23 22:35:36.573 GMT" tid="6440" entry-no="0">Import Server job started</Trace>
                    <Trace ts="2007/01/23 22:35:36.588 GMT" tid="6440" entry-no="1">Command line parsed</Trace>
                    <Trace ts="2007/01/23 22:35:36.588 GMT" tid="6440" entry-no="2">OLE and socket initialized</Trace>
                    <Failure ts="2007/01/23 22:35:38.994 GMT" tid="6440" entry-no="3" operation="Cannot connect to server: &apos;&quot;BP1TULAP454&quot;&apos;"/>
                    <Trace ts="2007/01/23 22:35:39.026 GMT" tid="6440" entry-no="4">ImportManager Batch End</Trace>
            </Open>
    </MDM_Log>

    Add a passwrod to your Admin role, and try with the password.  I encountered this problem once...
    Here is my ini file:
    [Source]
    Type=XML
    File name=C:\Conversion Files\Source Files\CategoryLevel2ByDivisions.xml
    DBMS Server=
    Database=
    User=
    Password=
    Read-Only=false
    [Destination]
    Repository=CT_MOC1.3
    Server=MDMD1
    Port=2600
    User=CONV
    Password=cleanup
    Automap Batch Unmapped Value=Yes
    Batch Unmapped Value Handling=Add
    Always Use Batch Unmapped Value Handling=No
    Let me know
    Thanks
    Savi

Maybe you are looking for

  • Error in the assistant of installation of Oracle 9ias 9.0.2 single sing-on

    Install oracle 9ias 9.0.2.0, but when this in the assisting existing Oracle 9ias single singn-on the error that the host or port are not been worth appears. in the host sijita.uptc.edu.co places and in the port 7777. That it can be the error??? one d

  • Not right data when row_number used in inner-view sql query...

    Hi , I use the below sql statement which displays the right data select CODE_FARMAKOU,EMP_NAME,PACKTYPE,PACKSIZE , SUM_POSOTITA , row_number() over(partition by code_farmakou order by sum_posotita desc) from   (SELECT CODE_FARMAKOU,EMP_NAME,PACKTYPE,

  • Syncing with a calendar - please help, I'm at my wits end

    Hi I have a PC running windows Vista, which I bought at the end of October. I then bought an iPhone in mid November. Now, if I'd known I would've just bought a Mac , but I have the hardware now and am trying to make it work for me. I worked out Windo

  • Newly installed oracle 10g express edition database

    Hai to all I have fedora 15 operating system with oracle 10g express edition database installed .. I already have working knowledge in mysql database .. my question is that when i opened oracle database via sql developer , then by expanding tables ta

  • Mega 180. Play DVD without PC ???

    Hi everybody! Is posible to play DVDs (or DivX) movies in a Mega 180 without starting the PC, just like the radio or audio cd?? Thanks in advance.