[Microsoft][ODBC driver for Oracle]Syntax error or access violation

Hi,
When I am trying to connect to Oracle 8.1.6 database using Microsoft ODBC driver for Oracle. The connection is established.
But while creating CallableStatement, I am getting error "[Microsoft][ODBC driver for Oracle]Syntax error or access violation".
What I need to do to resolve this problem.
Raj

Hi Satish
It could be an issue with the driver.
You can try with the OLEDB n Oracle native connection to test if the issue persists.
Also you can refer to the [Troubleshooting Database Connectivity for Crystal Reports|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/d05b3bb7-0f28-2c10-4ea3-84dbdc4e414e&overridelayout=true]
Hope this helps!!
Regards
Sourashree

Similar Messages

  • Database Connection Error 42000:[Microsoft][ODBC driver for oracle] Syntax

    Hi,
      This is Sathish, I am trying to create a report and retrieve data through stored procedure using ODBC Connection. When connecting to the Stored Procedure it is showing Database Connection Error 42000:[Microsoft][ODBC driver for oracle] Syntax error or access violation' Error.
    CRXI R2, Oracle 9i.
    What do i do to solve this issue.
    Regards,
    Sathish

    Hi Satish
    It could be an issue with the driver.
    You can try with the OLEDB n Oracle native connection to test if the issue persists.
    Also you can refer to the [Troubleshooting Database Connectivity for Crystal Reports|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/d05b3bb7-0f28-2c10-4ea3-84dbdc4e414e&overridelayout=true]
    Hope this helps!!
    Regards
    Sourashree

  • App failed due to java.sql.SQLException: [Microsoft][ODBC driver for Oracl

    Hello I developed a small applicaion for insert data into database.but i am getting exception in the server like this.
    app failed due to java.sql.SQLException: [Microsoft][ODBC driver for Oracle][Oracle]ORA-01401: inserted value too large for column
    And the code is given below..
    import java.io.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Jdbc1 extends HttpServlet
    public void service(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException
    PrintWriter out=response.getWriter();
    String no=request.getParameter("no");
    String name=request.getParameter("name");
    String age=request.getParameter("age");
    try
    System.out.println("1");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    System.out.println("2");
    Connection con=DriverManager.getConnection("jdbc:odbc:rakesh","scott","tiger");
    System.out.println("3");
    Statement st=con.createStatement();
    System.out.println("4");
    st.executeUpdate("INSERT INTO ind VALUES('+no+','+name+','+age+')" );
    con.commit();
    con.close();
    catch(Exception e)
    System.out.println(" app failed due to "+e);
    }Please give solution for this....

    Hello sir..
    thanks for ur reply...
    for oracle 10g -----> we use XE as datasourse
    name..What?
    now i am using oracle 8i...Not so from the code you posted. Didn't I see "jdbc:odbc:..." in your first post?
    so what should i
    write...in the datasourse name...that means.......
    Connection
    con=DriverManager.getConnection("jdbc:oracle:thin:@loc
    alhost:1521:????????","scott","tiger");Do you really use the default username and password?
    What should i write in place of ?????????..The name of the database you wish to connect to, of course.
    Do you have your tnsnames.ora set up properly? Did you install this database?
    None of this has ANYTHING to do with the error you posted, of course. Fix that first and then worry about the thin driver. At least it appears that the code you posted managed to connect to the database.
    %

  • SQLException:java.sql.SQLException:[Microsoft][Odbc driver for Oracle]

    hi all..im tryin to connect to Oracle db from java application.. i can complile the code but when it comes to executing d cod im gettin d followin error.. pls help me out.. here is d error
    SQLException:java.sql.SQLException:[Microsoft][Odbc driver for Oracle][Oracle]

    henrymania wrote:
    This is d driver im loadin..
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    and this is URL im assiging....
    "jdbc:oracle:thin:@192.168.32.68:1521:test";
    Here test is my sid name....highly unlikely, as that's not an ODBC driver nor is it an ODBC DSN.

  • Result Sets with the Microsoft ODBC Driver for Oracle

    Howdy all.
    I have an Oracle database that I have migrated from MSSQL2K. My front end is mostly VB, and I have many (hundreds) DLL's that use ADO to access the database and execute stored procedures in the database. I cannot seem to get result sets from the Oracle procedures. I have tried passing a SYS_REFCURSOR as an IN OUT parameter, and I have tried returning a SYS_REFCURSOR in a function. The Microsoft ODBC Driver for Oracle does not seem to handle the ref cursors. If I use the Oracle ODBC driver, then ref cursors are handled sort of magically. Just like the result sets are in MSSQL with the SQL Server ODBC Driver.
    The question that I would like to pose to anybody willing to answer is this: Is there any way to use the Microsoft ODBC Driver for Oracle without changing the way I do the database access (using ADO connection/command/recordset objects)? I need the same DLL's to work on top of both MSSQL and Oracle.
    I know that what I want to do is possible using the Oracle ODBC driver, but this will take some major changes to some of my DB components. I am trying to stay away from this, but it looks like I am going to have to go that route - that is unless somebody wows me with a good answer to this post.
    wally

    As you are using Microsoft driver which works in XP and does not on Win 2003 you should post this on microsoft forum.

  • 64 bit Microsoft ODBC Driver for Oracle

    Hi,
    Does Microsoft provide a 64 bit ODBC Driver for Oracle and where we can get it?

    GQ wrote:
    Hello,
    I am trying to create ODBC connection to Oracle 9i Database on remote server. I am using Windows 2008 64-bit but it is not showing Microsoft ODBC Driver for Oracle. Could any one suggest what to do?\\
    ThanksInstall the Oracle client and use the Oracle driver. You're going to need it whether you use the MS driver or Oracles. ODBC drivers do not work apart from the client of the underlying database product.
    When you do the install, you will need to do a custom install and specifically select for the Windows components.

  • Java.sql.SQLException[Microsoft][ODBC Driver for Oracle][Oracle]

    I have just installed Oracle8i and i m trying to connect a project to d database using ODBC. I gave
    Driver class name as sun.jdbc.odbc.JdbcOdbcDriver
    Connection Info as jdbc:odbc:dbgen dbgen is my project name
    Database name as Oracle
    Username as scott
    Password as Tiger
    i am getting this exception
    java.sql.SQLException[Microsoft][ODBC Driver for Oracle][Oracle]
    can ne one help me out plz???

    hi
    dbgen is your project name? it should be the dsn name that has to be mentioned. Go to control panel->administrative tools>data sources and add the type of driver required.
    import java.sql.*;
    import oracle.jdbc.pool.*;
    public class TestThinDSApp {
      public static void main(String args[]) throws ClassNotFoundException,
          SQLException {
        // These settings are typically configured in JNDI
        // so they a implementation specific
        OracleDataSource ds = new OracleDataSource();
        ds.setDriverType("thin");
        ds.setServerName("dssw2k01");
        ds.setPortNumber(1521);
        ds.setDatabaseName("orcl"); // sid
        ds.setUser("scott");
        ds.setPassword("tiger");
        Connection conn = ds.getConnection();
        Statement stmt = conn.createStatement();
        ResultSet rset = stmt
            .executeQuery("select 'Hello Thin driver data source tester '||"
                + "initcap(USER)||'!' result from dual");
        if (rset.next())
          System.out.println(rset.getString(1));
        rset.close();
        stmt.close();
        conn.close();
    }Hope this helps to some extent..
    Edited by: S.Manikandan on Jun 21, 2008 10:07 AM

  • Error: [Microsoft][ODBC driver for Oracle][Oracle]ORA-00917: missing comma

    hi
    i dont no why this error is coming. error may b while storing chaacter array in database
    program is
    //TCPClient.java
    import java.io.*;
    import java.net.*;
    import java.util.Calendar;
    import java.text.SimpleDateFormat;
    import java.sql.*;
    import javax.swing.*;
    class Client
         protected DataInputStream in;
    protected DataOutputStream out;
    //Jframe frame;
    public static final String DATE_FORMAT_NOW = "yyyy/MM/dd HH:mm:ss";
    public static String now() {
    Calendar cal = Calendar.getInstance();
    SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);
    return sdf.format(cal.getTime());
    public static void main(String argv[]) throws Exception
    String FromServer;
    String ToServer;
    int i=0;
    // frame = new JFrame("Show Message Dialog");
    Socket clientSocket = new Socket("localhost", 5000);
    BufferedReader inFromUser =
    new BufferedReader(new InputStreamReader(System.in));
    PrintWriter outToServer = new PrintWriter(
    clientSocket.getOutputStream(),true);
    BufferedReader inFromServer = new BufferedReader(new InputStreamReader(
    clientSocket.getInputStream()));
    String d=(Client.now());
    try{
    String cmd = "reg query \"HKEY_LOCAL_MACHINE\\SOFTWARE\"";
         Process p = Runtime.getRuntime().exec(cmd);
    Thread.sleep(200l); //terrible, the right way is p.waitFor
    InputStream in = p.getInputStream();
    byte[] bytes = new byte[16384];
    StringBuffer buf = new StringBuffer();
    while(true) {
    int num = in.read(bytes);
    if(num == -1) break;
    buf.append(new String(bytes,0,num,"UTF-8"));
    //output stored in a string
    System.out.println(buf.toString());
    String str=new String();
    str=(buf.toString());
    //formating output
    String newtext=str.replaceAll("HKEY_LOCAL_MACHINE","");
    String newtext1=newtext.replaceAll("SOFTWARE","*");
    System.out.println(newtext1);
    //getting local ip
    InetAddress thisIp =InetAddress.getLocalHost();
    String ip=(thisIp.getHostAddress());
    System.out.println("IP:"+thisIp.getHostAddress());
    // printing date and time
    System.out.println(d);
    // connection
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection conn=DriverManager.getConnection("jdbc:odbc:cat","system","root");     
              PreparedStatement ps=conn.prepareStatement("select ip,dates,software from ipdet");
    ResultSet r=ps.executeQuery();
    char softlist[]=newtext1.toCharArray();
         for(i=0;i<softlist.length;i++)
    if(softlist=='*')
    System.out.println("\n");
         System.out.print(softlist[i]);
              Statement s=conn.createStatement();
              String ins="insert into ipdet(ip,dates,software) values(ip,d,softlist[i])";
              s.executeUpdate(ins);
    // s.setString(1,ip);
              //s.setString(2,d);
                   // s.setString(3,softlist[i]);
                   // s.executeUpdate();
    System.out.println("record inserted succcessfully") ;
              r.close();
              conn.close();
              clientSocket.close();
    catch (Exception e)
    System.err.println("Error: " + e.getMessage());

    i don't think its your connection. You must be hitting the DB otherwise you would not be getting an ORA error returned wrapped in an SQLException. I think its your pseudo-SQL, it simply says that you are missing a comma in an update string. Realistically, it could be that it is being misled into looking for a comma, probably because you have put a ';' at the end of your update string...

  • Vb6 ODBC - Syntax error or access violation in oracle 11g migration

    Hi,
    We have VB6 application with Oracle 10g and the same is working fine.
    Now, we are migrating to Oracle 11g now and we have updated the odbc drivers too.
    { call M_FR(?, ?, ?, ?, ?, ?, ?, ?) }
    L_ID = 890083
    V_ID = 1
    SUB_ID = 6955141
    SUB_SEQ = 1
    P_CODE = 1
    L_SUP_TYPE = 1
    L_REF_NO = 1
    DELETE_REASON_CODE = 1
    When calling the above sp in oracle 11g getting error: [Microsoft][ODBC driver for Oracle]Syntax error or access violation.
    But user has all the right and no issue with access. Also no syntax error. In SQLplus the same is working fine.
    Kindly help us to resolve this issue.
    Regards,
    Sathiya

    Try downloading the latest version of the 8.1.6 driver off OTN.
    That sounds like a bug that was fixed a while ago.
    Justin

  • Where can I download the ODBC driver for Oracle 10g XE?

    where can I download the ODBC driver for Oracle 10g XE?
    I need the ODBC drivers for windows 7 x64, I installed Oracle Database 10g Express Edition, the use and connects with RazorSQL well, I just want to make a connection THROUGH ConnectionString language using the ODBC driver

    already checked these http://www.connectionstrings.com/oracle, I need Help Please.

  • ODBC driver for Oracle 8.1.5 in Unix

    Can anybody tell me , how will I make sure that ODBC driver for Oracle 8.1.5 installed in Unix ?.

    The Oracle ODBC driver is a Windows-only product. It won't install on a UNIX machine.
    Justin

  • Where can I find the ODBC driver for ORACLE XE

    Hi,
    Please help me in urgent. Where can I download the ODBC driver for Oracle XE?
    The OTN site I had visited but cannot find the suitable ODBC drive for Oracle XE, or (but, I am not sure) the ODBC 10g is suitable I had downloaded it but require Oracle Universal Installer to install.
    Message was edited by:
    user505611

    Have you checked the OTN site?
    http://www.oracle.com/technology/software/tech/windows/odbc/index.html
    Update: Drivers for 10g should work with XE. Can't say anything about the installation procedure, since I don't use/install ODBC.
    C.

  • "Syntax error or access violation" on Data Flow Task OLE DB Data Source

    I am implementing expression parameter for a SQL Server connection string (like this: http://danajaatcse.wordpress.com/2010/05/20/using-an-xml-configuration-file-and-expressions-in-an-ssis-package/)  and it works fine except when it reaches data flow
    task - OLE DB Source task. In this task, I execute a stored procedure like this: 
    exec SelectFromTableA ?,?,?
    The error message is this:
    0xC0202009 at Data Flow Task, OLE DB Source [2]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft OLE DB Provider for SQL Server"  Hresult: 0x80004005  Description: "Syntax error or access violation".
    Error: 0xC004706B at Data Flow Task, SSIS.Pipeline: "OLE DB Source" failed validation and returned validation status "VS_ISBROKEN"
    When I change the SQL command above with reading from table directly it works fine. I should also add that before changing connection string of the SQL data source to use expression, the SSIS package was working fine and I know that the connection string
    is fine because other tasks in the package works fine!
    Any idea why?

    Hi AL.M,
    As per my understanding, I think this problem is due to the mismatching between the source and the destination tables. We can reconfigured every of components of the package to check the table schemas and configuration settings, close the BIDS/SSDT and then
    open and try to see if there are errors.
    Besides, to trouble shoot this issue, we can use the variable window to see the variable's value. For more details, please refer to the following blog:
    http://consultingblogs.emc.com/jamiethomson/archive/2005/12/05/2462.aspx
    The following blog about “SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred: Reasons and troubleshooting” is for your reference:
    http://blogs.msdn.com/b/dataaccesstechnologies/archive/2009/11/10/ssis-error-code-dts-e-oledberror-an-ole-db-error-has-occurred-reasons-and-troubleshooting.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Syntax error or access violation...

    I have recently purchased a .com and webhosting through the company hostgator.com , I am currently trying to integrate a java application thru this .com and the databases they provide me to use
    Anyway, here is the code I have
    ====
    import java.sql.*;
    public class mysql_connector
          * @param args
         public static void main(String[] args)
              Connection conn = null;
            try
                String userName = "******";
                String password = "*******";
                String url = "jdbc:mysql://bkardi.com:3306/******";
                Class.forName ("com.mysql.jdbc.Driver").newInstance ();
                conn = DriverManager.getConnection (url, userName, password);
                System.out.println ("Database connection established");
            catch (Exception e)
                System.err.println ("Cannot connect to database server");
                System.out.println(e);
            finally
                if (conn != null)
                    try
                        conn.close ();
                        System.out.println ("Database connection terminated");
                    catch (Exception e) { /* ignore close errors */ }
    }and here is the error I get
    Cannot connect to database serverjava.sql.SQLException: Syntax error or access violation message from server: "Access denied for user 'buk110_kardi'@'24.115.97.153' to database 'buk110_java'"
    Any ideas, suggestions?

    You need to verify your parameters. The error message is telling you:
    "Access denied for user 'buk110_kardi'@'24.115.97.153' to database 'buk110_java"
    So you have some sort of a login issue, either username/password and/or access to the database specified. If all of these are correct then you need to talk to the web host and make sure that they have set up your DB correctly.

  • Re: 32 Bit ODBC Driver for Oracle 11g 11.2.0.1.0

    Hi,
    Were you able to resolve the problem with these troubleshooting measures ?
    Please let me know since i am facing similar issues like yours.
    I am using a Windows 7 64 bit and from QTP installed on this machine ,  i am trying to connect to Oracle database.
    Now initially i installed a 64 bit ODBC for Oracle . But when i did that and ran the Script below :
    Set objDatabase = CreateObject("ADODB.Connection")
    Set rs=createobject("adodb.recordset")
    objDatabase.open "DRIVER={Oracle in OraClient11g_home1} ; DATA SOURCE=Oracle; SERVER= xyz ; DATABASE=abc1; UID=abc ; PASSWORD= abc123;"       
    rs.Open "select * from tablename", objDatabase
    'result1 = objDatabase.Execute("select * from tablename")
    'msgbox result1
    Do while not rs.eof
    print rs.fields("columnname")
    rs.movenext
    Loop
    print rs.fields("columnname")
    it gives me an error
    “[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application”
    So i am assuming that i need to install the 32 bit ODBC drivers for Oracle as well in addition to the already installed 64 bit drivers ..
    Any thoughts on this ?

    64 bit apps need 64 bit Oracle client software.
    32 bit apps need 32 bit Oracle client software.
    You should be able to tell the bit-ness of the app by checking the Process tab in task manager to see if it has *32 next to it.
    You can install both 32 bit and 64 bit Oracle client software on the same box, but you need to do it into different homes, and different oracle_base should also be used.
    There isnt an Oracle client install bundle that installs both, you'll need to do each separately.
    Hope it helps,
    Greg

Maybe you are looking for

  • How to use a table UI in widget

    Hi Experts,    I want to use one table UI in my widget application. My requirement is to add records to table on click of a button. Here i am not using any RFCs. When i checked table UI, it is showing option to bind RFC with table. But i dont want RF

  • Flex 3 GA Designer doesn't work with my modules

    This is absolutely critical to our application. In Flex 3 Beta I had no issues doing this, in Flex 3 GA it does not work and I'm wondering if any of you have seen this issue. I have extended Module to MyModule and added code that I need. My Flex buil

  • Error while reading WebLogic Template

    Hello, I am trying to create a webLogic domain for Oracle Enterprise Repository using an existing template, and unfortunately I get the following error: line 17, in readTemplate at com.oracle.cie.domain.script.jython.CommandExceptionHandler.handleExc

  • IWeb and a new computer

    I have a new macbookpro, and want to access my old (from previous mac laptop) IWeb website and make changes to it, but when I open IWeb on the new computer, it prompts me to start all over again. Can I get in to my old iWeb and be able to edit it?

  • Error: The sort order specified for distinct count records is incorrect

    When processing a measure group with a distinct count measure in it, i get the following error: "The sort order specified for distinct count records is incorrect." I have no idea what this means - any ideas?