Mysql 5 Functions HELP

Heres a recap of the problem.
Im migrating from coldfusion using oracle db with packages to
coldfusion using mysql5 and hoping to use mysql 5 functions in
place of the oracle packages.
Now the problem is when I try to use a function inside of a
sql statement in coldfusion the mysql server shuts down and
coldfusion bombs with an error..
Heres some of my code.
I can successfully run this:
<cfquery name="Test" datasource="kiwanis" maxrows="10">
Select kiwanis.GetPositionDesc('CU') test
</cfquery>
I cannot run this:
<cfquery name="Test" datasource="kiwanis" maxrows="10">
Select kiwanis.GetPositionDesc('CU') test from
kiwanis.members
</cfquery>
The code im changing is just for testing purposes. when I run
this code, mysql 5 stops and then coldfusion bombs with a no
connection to db error:
"Communications link failure due to underlying exception: **
BEGIN NESTED EXCEPTION ** java.net.SocketException MESSAGE:
Connection reset STACKTRACE: java.net.SocketException: Connection
reset at java.net.SocketInputStream.read(Unknown Source) at
com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:113)
at
com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInp utStream.java:160)
at
com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:188)
at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1910) at
com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2304) at
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2803) at
com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573) at
com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665) at
com.mysql.jdbc.Connection.execSQL(Connection.java:3118) at
com.mysql.jdbc.Connection.execSQL(Connection.java:3047) at
com.mysql.jdbc.Statement.execute(Statement.java:690) at col... "
Now I can take my sql statements and run them in the mysql
query browser just fine. I get the correct output.
Why is coldfusion killing the connection?
I've tried running coldfusion 6 and coldfusion 7.
I've tried running ever possible J connector I could find on
the mysql site.
I've messed around with syntax etc with the queries and Im
still no where.
I havn't been able to find information if any about mysql
functions. Are these fully supported?
Any help would be greatly apreaciated, thanks.
-Dan

I had issues as well which I eventually overcame.
See the following thread :-
http://discussions.apple.com/message.jspa?messageID=5649480#5649480

Similar Messages

  • JAVA and MYSQL NOW() Function only displays year?

    I have run into something interesting with running the MYSQL NOW() function.
    Here is what I'm running:
    SELECT  NOW() from databaseThis gives me "2010" only. Any idea why this may be? If I run the same mysql query in mysql from the command line I get the correct output "2010-01-14 14:10:03".
    Has anyone else seen this behavior?
    Edited by: crusherdestroyer on Jan 14, 2010 12:19 PM

    I'm not doubting that. Here is how I'm using it.
    import java.util.Date;
    String userName = "username";
                   String password = "password";
                   String url = "jdbc:mysql://localhost/database";
                   Class.forName ("com.mysql.jdbc.Driver").newInstance ();
                   conn = DriverManager.getConnection (url, userName, password);
                   //System.out.println ("Database connection established");
                   Statement s = conn.createStatement ();
                   s.executeQuery ("SELECT NOW() from database' ");
                   ResultSet rs = s.getResultSet ();
                   int count = 0;
                   Date timenow = null;
                   while (rs.next ())
                       timenow = rs.getDate ("NOW()");
                    ++count;
    System.out.println (timenow);Tried this too.
    String userName = "username";
                   String password = "password";
                   String url = "jdbc:mysql://localhost/database";
                   Class.forName ("com.mysql.jdbc.Driver").newInstance ();
                   conn = DriverManager.getConnection (url, userName, password);
                   //System.out.println ("Database connection established");
                   Statement s = conn.createStatement ();
                   s.executeQuery ("SELECT NOW() from database' ");
                   ResultSet rs = s.getResultSet ();
                   Date timenow = null;
                       timenow = rs.getDate ("NOW()");
    System.out.println (timenow);Edited by: crusherdestroyer on Jan 14, 2010 2:04 PM
    Edited by: crusherdestroyer on Jan 14, 2010 2:07 PM

  • Replace function help

    Hi all, sry for post sql problens in APEX forum, but i realy need help for this...
    I´m trying to replace : for , to make a select where in () with more then one value... but the replace function its not work with more then 1 value...
    like this
    select name from vw_requerente where id_cliente in REPLACE(:P5000_CLIENTE,':',',')in that item has this value: 71:72:73 , but all i get is a ORA: INVALID NUMBER, how can i make a replace function to work with this?
    tnks alot and sry my english.

    He also posted this in the pl/sql forum and received some good advice there:
    replace function help
    Especially the tom kyte blog portion:
    [http://tkyte.blogspot.com/2006/06/varying-in-lists.html]
    Thank you,
    Tony Miller
    Webster, TX

  • MySQL "PASSWORD" Function ( 4.11)

    MySQL "PASSWORD" Function (< 4.11)
    This is the source for a function that is compatible with MySQL "PASSWORD()" (before version 4.11).
    Such function is not very secure (that's a homemade one-way hash, without salting and other desirable things, and of course homemade one-way hashes are not very secure at all), but you could need such a thing (maybe you have to deal with MySQL databases and passwords...)
    class MySQLPassword {
        public static String password(String pwd) {
            int nr = 1345345333;
            int add = 7;
            int nr2 = 0x12345671;
            int tmp;
            byte[] byPassword = null;
            try {
                byPassword = pwd.getBytes("ISO8859-1");
            } catch (java.io.UnsupportedEncodingException ex) {
                System.err.println ("UnsupportedEncodingException");
            for (int i = 0; i < byPassword.length; ++i) {
                if (byPassword[i] == ' ' || byPassword[i] == '\t')
                    continue;
                tmp = byPassword[i] & 0xFF;
                nr ^= (((nr & 63) + add) * tmp) + (nr << 8);
                nr2 += (nr2 << 8) ^nr;
                add += tmp;
            int result0 = nr & 0x7FFFFFFF;
            int result1 = nr2 & 0x7FFFFFFF;
            long result = ((long)result0 << 32) | result1;
            String strResult = "0000000000000000" + Long.toHexString(result);
            return strResult.substring(strResult.length() - 16);
        public static void main(String[] args) {
            System.out.println (password("CAFEBABE"));
    }

    And obviously I don't want to open a project in SourceForge or java.net just to store this poor translation of sql/password.c MySQL source code...

  • How Queues functionality helps in Service Module

    Hi,
    How Queues functionality helps in Service Module.
    how to get the queue details assign to the service call(Technician)
    Please Suggest
    Regards
    Vikram

    Sridharan,
    How to add technician to a queue.
    Employee should be user of SAP?
    Please Suggest.
    Vikram

  • I have downloaded MAMP for Mac and want to use it for working with Wordpress. I had mysql installed before this and would like to uninstall it and use MAMP. It was easy to turn off Apache and PHP but don't know how to uninstall mysql. Please help!!

    I have downloaded MAMP for Mac and want to use it for working with Wordpress. I'm on an Imac with Maverick OS 10.9. I had mysql installed before this and would like to uninstall it and use MAMP. It was easy to turn off Apache and PHP but don't know how to uninstall mysql. Please help!!

    It depends on how you installed it. You have to shutdown the MySQL service first. If you used the standard, but obsolete Startup Item, you can do that with the Startup Item. If you created a launchd script, you can do it with launchctl. Once MySQL is no longer running, you can delete the Startup Item or launchd script and the rest of MySQL.

  • TS1702 I just updated numbers to newest version and found that numbers quits to home screen when I tap the information icon on "function  help", it starts to load the "help" then quits  this happens on both my ipad3 & iphone5

    2/3/14: I just updated numbers to newest version and found that numbers quits to home screen when I tap the information icon on "function  help", it starts to load the "help" then quits. It happens on both my ipad3 &amp; iphone5. I tried restarting the devices but it didn't help.

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430
    iOS 7: Help with how to fix a crashing app on iPhone, iPad (Mini), and iPod Touch
    http://teachmeios.com/help-with-how-to-fix-a-crashing-app-on-iphone-ipad-mini-an d-ipod-touch/
    Troubleshooting apps purchased from the App Store
    http://support.apple.com/kb/TS1702
    Delete the app and redownload.
    Downloading Past Purchases from the iTunes Store, App Store and iBooks Store
    http://support.apple.com/kb/ht2519
     Cheers, Tom 

  • Need PP Functional help for some legacy fields

    Hi all,
    I am a BW consultant. I need to replicate in SAP-BW some reports that are currently in a legacy system (non SAP). I have identified the functional area for those reports as PP. I need a little functional help from you guys to find out what some fields in the legacy system mean in SAP. Once I know the R/3 fields (and source tables if someone can tell me), I can move forward with mapping those fields into BW objects and the rest of the process.
    The reason why I am seeking help from here is, unfortunately our functional team is not available right now and their availability is indefinite. So I just want to keep myself busy till they are back.
    Well, here are the fields that I need help for (for now)
    The report is for Daily summary of activities at a plant
    Work order process
    Work order type
    Daily Created Bags
    Daily Capacity Bags (Bags per Hour Rate* Available Hours)
    Daily Count of Work Order Number
    Goods issued for work order completion
    Goods finished
    Please help me identify what R/3 fields (and their tables) correspond to the above legacy fields
    Points WILL be assigned for helpful answers
    Thank you

    Hi,
    Work order process - I assume this is the set of operations for the order - AFVC (table)
    Work order type      - AUFK - (Field) AUART data needs to be fetched for AUFNR(Work order number)
    Daily Created Bags - MSEG - data needs to be fetched for BWART = 101 or 102 and AUFNR(Work order number)
    Goods issued for work order completion - MSEG- data needs to be fetched for  BWART = 261 and AUFNR(Work order number)
    Goods finished - MSEG - data needs to be fetched for BWART = 101 or 102 and AUFNR(Work order number)
    Regards,
    Prasobh

  • Using mysql decode function in Java

    Hi everybody,
    mysql documentation says:
    DECODE(crypt_str,pass_str) -->
    Decrypts the encrypted string crypt_str using pass_str as the password. crypt_str should be a string returned from ENCODE().
    I used the above function in a Python script and had no problem, but have difficulty using the same thing in my Java code.
    I receive runtime error when tried decode() in my Java code in executeQuery("s");. As far as I know the decode() function should be compiled, I can't run the decode() in the mysql command tool and receive a response (as I compiled and ran it in my Python script).
    Has anybody ever used this function in the Java code? How? What format did you use? What I should use instead of "s" in this code?
    conn is a database connection:
    stmt = conn.createStatement();
    rs = stmt.executeQuery("s");
    I even tried PreparedStatement, but no luck.
    Any help is greatly appreciated.

    stmt.executeQuery("select blahblahblah, DECODE(fieldName, password), blahblahblah FROM blahblah...")

  • PHP MYSQL KEYWORD SEARCH HELP

    Im creating a search for a image gallery and I want it to be able to pull up an image based on the keyword assigned to the image you searched. I have 4 fields in my DB, (id,layout"or image",description,key_words). My problem is when I enter a keyword in my textfield when the results page loads all I get is the field names (id,layout,description,key_words) instead of the actually data within those fields.
    I believe my problem lies within this line of code:
    $query_Recordset1 = sprintf("SELECT * FROM images2 WHERE key_words = %s ORDER BY id DESC", GetSQLValueString($colname_Recordset1, "text"));
    this code displays my DB field names, but not the data I inserted in those fields.
    So I tried changing the code to this:
    $query_Recordset1 = sprintf("SELECT * FROM images2 WHERE key_words LIKE '%$keyword%' ORDER BY id DESC", GetSQLValueString($colname_Recordset1, "text"));
    This code did display my mysql data, but not the data I entered in my textfield. With this code I don't even have to enter any keywords in the text field, I can simply click the search button and my mysql data would show up, even though I didn't enter a keyword...?
    Im very confused  I've been working on this off and on for  about a month now and have been in 3 different forums and know one seems to  be able to help. It would greatly appreciated if someone could help me  through this.
    Here is all my code for a better understanding:
    SEARCH PAGE:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <form id="form1" name="form1" method="get" action="r.php">
      <label for="textfield"></label>
      <input type="text" name="keyword" id="textfield" />
      <input type="submit" name="button" id="button" value="search" />
    </form>
    </body>
    </html>
    RESULTS PAGE:
    <?php require_once('Connections/MyConnection.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $maxRows_Recordset2 = 3;
    $pageNum_Recordset2 = 0;
    if (isset($_GET['pageNum_Recordset2'])) {
      $pageNum_Recordset2 = $_GET['pageNum_Recordset2'];
    $startRow_Recordset2 = $pageNum_Recordset2 * $maxRows_Recordset2;
    $colname_Recordset2 = "-1";
    if (isset($_GET['key_words'])) {
      $colname_Recordset2 = $_GET['key_words'];
    mysql_select_db($database_MyConnection, $MyConnection);
    $query_Recordset2 = sprintf("SELECT * FROM images2 WHERE key_words = %s ORDER BY id DESC", GetSQLValueString($colname_Recordset2, "text"));
    $query_limit_Recordset2 = sprintf("%s LIMIT %d, %d", $query_Recordset2, $startRow_Recordset2, $maxRows_Recordset2);
    $Recordset2 = mysql_query($query_limit_Recordset2, $MyConnection) or die(mysql_error());
    $row_Recordset2 = mysql_fetch_assoc($Recordset2);
    if (isset($_GET['totalRows_Recordset2'])) {
      $totalRows_Recordset2 = $_GET['totalRows_Recordset2'];
    } else {
      $all_Recordset2 = mysql_query($query_Recordset2);
      $totalRows_Recordset2 = mysql_num_rows($all_Recordset2);
    $totalPages_Recordset2 = ceil($totalRows_Recordset2/$maxRows_Recordset2)-1;
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <table>
      <tr>
        <td>id</td>
        <td>Layouts</td>
        <td>Descriptions</td>
        <td>key_words</td>
      </tr>
      <?php do { ?>
        <tr>
          <td><?php echo $row_Recordset2['id']; ?></td>
          <td><?php echo $row_Recordset2['Layouts']; ?></td>
          <td><?php echo $row_Recordset2['Descriptions']; ?></td>
          <td><?php echo $row_Recordset2['key_words']; ?></td>
        </tr>
        <?php } while ($row_Recordset2 = mysql_fetch_assoc($Recordset2)); ?>
    </table>
    </body>
    </html>
    <?php
    mysql_free_result($Recordset2);
    ?>

    $query_Recordset1 = sprintf("SELECT * FROM images2 WHERE key_words LIKE '%$keyword%' ORDER BY id DESC", GetSQLValueString($colname_Recordset1, "text")); 
    Why are you using the $keyword variable rather than the sprintf parameter? I don't know php, but it seems like that is your problem. Maybe try something like this:
    $query_Recordset1 = sprintf("SELECT * FROM images2 WHERE key_words LIKE %s ORDER BY id DESC", GetSQLValueString("%" . $colname_Recordset1 . "%",  "text"));

  • JDBC MySQL INET_NTOA() Function & IP Conversion

    Firstly,
    Using the MySQL connector, any idea's why the select statement does not work ?
    The MySQL Database Table:
    mysql> select INET_NTOA(IPV4) from pptip;
    +-----------------+
    | INET_NTOA(IPV4) |
    +-----------------+
    | 255.255.255.255 |
    +-----------------+
    1 row in set (0.00 sec)
    SELECT * FROM PPTIP;
    +------------+
    | ipv4       |
    +------------+
    | 4294967295 |
    +------------+
    1 row in set (0.00 sec)Works perfectly in MySQL command line but I receive the following java runtime error:
    SQLException: Column 'IPV4' not found.
    SQLState: S0022
    try {
                Connection connection = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/ppt","root", "password");
                System.out.println("Creating score card database");
                String sql = "SELECT INET_NTOA(ipv4)  FROM pptip";
                Statement stat = connection.createStatement();
                ResultSet rs = stat.executeQuery(sql);
                while (rs.next()) {
                    System.out.println( rs.getString("IPV4"));
                // Close everyting
                rs.close();
                stat.close();
                connection.close();
            } catch (SQLException ex) {
                // handle any errors
                System.out.println("SQLException: " + ex.getMessage());
                System.out.println("SQLState: " + ex.getSQLState());
                System.out.println("VendorError: " + ex.getErrorCode());
            }Thanks for your help..
    Rob

    Thanks for your response, but MySQL statements are not case sensitive.
    The actual error comes from the SQL Comment:
    String sql = "SELECT INET_NTOA(ipv4) FROM pptip";
    Both
    String sql = "SELECT ipv4 FROM pptip";
    and
    String sql = "SELECT IPV4 FROM pptip";
    works fine.. the INET_NTOA function does not.
    I suspect the driver does not support this... not 100%.
    Rob

  • IP-Planning Function Help!! Is this possible?

    Dear Experts,
    I am relatively new to IP and I want to check if this is possible. I would like to copy a Keyfigure value from one Aggregation level to another Aggregation level.
    Here is my scenario.
    I have an Aggregation level 1 where it has characteristics Product Group, Year, Version and Percentage. So the planner would plan as
    Product Grp-Year-Version---Percentage
    GROUP1-2010-100---10%
    GROUP2-2010-100---20%
    GROUP3-2010-100---15%
    Now I have another Aggregation level 2 where it has characteristics Product Group, Product, Year, Version and Cost. I  would want the Percentage value which was planned in Agg. level 1 to be copied to all the products in that group. My Planning book would look like
    Product Grp-PRODUCT-Year-Version-Percentage-Standard Cost-Plan Cost
    GROUP1-PRD1-2010-100-10%-$100-$110
    GROUP1-PRD2-2010-100-10%-$200-$220
    GROUP1-PRD3-2010-100-10%-$300-$330
    GROUP2-PRD4-2010-100-20%-$1000-$1200
    GROUP2-PRD5-2010-100-20%-$2000-$2400
    GROUP2-PRD6-2010-100-20%-$3000-$3600
    GROUP3-PRD7-2010-100-15%-$1000-$1150
    GROUP3-PRD8-2010-100-15%-$2000-$2300
    GROUP3-PRD9-2010-100-15%-$3000-$3450
    Currently The above products already exist in the cube but the Percentage value for them is blank. When the user saves the first planning book I would want the Planning function to be executed and change the percentage value of each product based on the Prodcut group it belongs to. Also I want the Plan cost to be calculated with the percentage value and the standard cost.
    Now when the Planned opens the second planning book he can see the Plan cost already calculated based on the percentage value. However, I will provide an option to the user to change the Plan cost if needed.
    Important thing for me to know how I can  take the percentage value from first few records and change the value of percentage in the second set of records for each product based on its product group.
    Hope my explanation is clear and it is possible to do it.
    Thanks for your inputs.
    KK

    Hey Andrey, I have tried in several different way but was not able to achieve this. My Stupidity!! I am new to IP and this is the first time I am using  Fox formulae  and this is driving me crazy. I think its just a basic understanding issue.
    I just want  to reiterate whay I exactly wanted. Could you please help me with the code.
    Here is the current data in the planning  cube. The first 3 rows are planned from a planning book. The rest of the rows are loaded from a flat file. When the planning function is executed we would want to take the percentage from the Product group and assign it to each product in the rest of the rows there by calculating the Plan cost.
    Current/Before executing Planning Function.
    Product Grp-PRODUCT-Year-Version-Percentage-Standard Cost-Plan Cost
    GROUP1-#-2010-100-10%-00-00
    GROUP2-#-2010-100-20%-00-00
    GROUP3-#-2010-100-15%-00-00
    GROUP1-PRD1-2010-100-00-$100-00
    GROUP1-PRD2-2010-100-00-$200-00
    GROUP1-PRD3-2010-100-00-$300-00
    GROUP2-PRD4-2010-100-00-$1000-00
    GROUP2-PRD5-2010-100-00-$2000-00
    GROUP2-PRD6-2010-100-00-$3000-00
    GROUP3-PRD7-2010-100-00-$1000-00
    GROUP3-PRD8-2010-100-00-$2000-00
    GROUP3-PRD9-2010-100-00-$3000-00
    After executing Planning Function
    Product Grp-PRODUCT-Year-Version-Percentage-Standard Cost-Plan Cost
    GROUP1-#-2010-100-10%-00-00
    GROUP2-#-2010-100-20%-00-00
    GROUP3-#-2010-100-15%-00-00
    GROUP1-PRD1-2010-100-10%-$100-$110
    GROUP1-PRD2-2010-100-10%-$200-$220
    GROUP1-PRD3-2010-100-10%-$300-$330
    GROUP2-PRD4-2010-100-20%-$1000-$1200
    GROUP2-PRD5-2010-100-20%-$2000-$2400
    GROUP2-PRD6-2010-100-20%-$3000-$3600
    GROUP3-PRD7-2010-100-15%-$1000-$1150
    GROUP3-PRD8-2010-100-15%-$2000-$2300
    GROUP3-PRD9-2010-100-15%-$3000-$3450
    This is what I would expect after executing the planning function. Could you please help me with the code. What needs to be selected as the Characteristics to be changed and the Key figure and if I have to select any characteristics for conditions.
    Thanks in advance for your help!!
    KK

  • I need to learn how to use all about java & mysql...help me!

    I have a situation here, I need to learn how to use java with mysql
    . Can I connect to a MYSQL DB with servlets?
    how can I build an e-mail server with java (no matter how difficult)
    please, I need help, and I really apreciate your help.
    thank you very much!!

    I have a situation here, I need to learn how to use
    java with mysql
    . Can I connect to a MYSQL DB with servlets?Yes... documentation to help you connect to any database can be found at http://java.sun.com/products/jdbc. To connect to MySQL, you'll need drivers (sourceforge.net), and the specific connection URL for those drivers will be included in the documentation.
    how can I build an e-mail server with java (no matter
    how difficult)If you're fairly new to JSP/Servlets, you may be in over your head here, since an email server is no easy application to code. Here's a link to the source code for the JAMES project... Apache's Java email server... maybe you can find some useful information there...
    http://www.ibiblio.org/pub/packages/infosystems/WWW/servers/apache/jakarta/james/source/

  • Dblink from Oracle to Mysql error PLZ HELP!!!

    Hi All,
    I am getting the following error when i am creating a databaselink to connect from oracle 10g to mysql 5.1.
    SQL> select * from ahmed_table@ahmedmysql3;
    select * from ahmed_table@ahmedmysql3
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from AHMEDMYSQL3My ODBC database source name is ahmedmysql
    created file initahmedmysql.ora in hs/admin contents of which are
    HS_FDS_CONNECT_INFO = ahmedmysql
    HS_FDS_TRACE_LEVEL = offListener.ora contents
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = orcl)
          (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
          (PROGRAM = extproc)
    hmedmysql =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = rc-6799)(PORT = 1521))
    (SID_NAME = ahmedmysql)
          (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
          (PROGRAM = hsodbc)
      )Tnsnames.ora
    ahmedmysql = (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST = RC-6799)(PORT = 1521)) (CONNECT_DATA = (SID = ahmedmysql)) (HS = OK))I have searched on this site no one seems to have had found a solution!
    Is this a bug or am i missing something in the configuration,
    appreciate your help,
    regards,

    28545, 0000, "error diagnosed by Net8 when connecting to an agent"
    // *Cause:   An attempt to call an external procedure or to issue SQL
    //           to a non-Oracle system on a Heterogeneous Services database link
    //           failed at connection initialization.  The error diagnosed
    //           by Net8 NCR software is reported separately.
    // *Action:  Refer to the Net8 NCRO error message.  If this isn't clear,
    //           check connection administrative setup in tnsnames.ora
    //           and listener.ora for the service associated with the
    //           Heterogeneous Services database link being used, or with
    //           'extproc_connection_data' for an external procedure call.

  • "Read From Binary File" function Help ambiguity

    I must be getting tired, but for some reason a doubt crept in my mind as I was designing a new piece of code this morning:
    "is the "Read From Binary File" using the last file position or is it starting from the beginning of the file?"
    "That's a stupid question", I told myself.
    "I used this function a million times and have always assumed it is reusing the last file position. Moreover, there is no file offset input to that function, so WTH am I afraid of?"
    So, for kicks, I fired up the Help window and read the following description (*):
    Reads binary data from a file and returns it in data. How the data is read depends on the format of the specified file. This function does not work for files inside an LLB.
    (*) BTW, has anybody ever complained that you can't select and copy anything from the floating Help Window?
    Not much there. I particularly admire the phrasing of the second sentence... What about: "This function can do a lot of things, but it would much to complex to describe this is extensive details, so if you are asking, you probably can't afford using it"?
    Anyhow, I clicked on the "Detailed Help" and got this (among other things):
    Use the Set File Position function if you need to perform random access.
    WHAT? I am pretty darn sure I DO NOT USE the Set File Position when I read a file in successive and contiguous chunks. I just pass the file refnum into a shift register and back to the function and that's it.
    Now, the description of the "Refnum Out" ouput says: If file is a refnum or if you wire refnum out to another function, LabVIEW assumes that the file is still in use until you close it. Translated in plain English, is that supposed to mean that if the file is not closed it is open, or is that implying that it contains more info that just "the file is open and can be found here"?
    I started searching around and finally ended up with the entry for "refnums, file I/O". Down the bottom of the (long) article, I found this under the heading "References to Objects or Applications" (but nothing specific to files, BTW):
    ...LabVIEW creates a refnum associated with that file, device, or network connection...
    [...]  LabVIEW remembers information associated with each refnum, such as the current location for reading from or writing to the object and the degree of user access, so you can perform concurrent but independent operations on a single object. If a VI opens an object multiple times, each open operation returns a different refnum. LabVIEW automatically closes refnums for you when a VI finishes running, but it is a good programming practice to close refnums as soon as you are finished with them to most efficiently use memory and other resources.
    So it seems that my recollection was correct. I do not know what the "degree of user access" for a file is, but that's not the topic of today's post. 
    So, my point is: the Help File for this function is incomplete or ambiguous at best. Please correct it. And provide a link to the "refnum, file I/O" Help entry in its detailed Help. It would H E L P...
    Thanks for reading.

    Reading in succesive chunks is *NOT* random access. An open file always has
    a current position, which is updated with each read or write operation.
    You only need to set the file position if you want to start elsewhere.
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • How to get my notes back from a different iCloud account?

    I used yahoo account for iCloud and I when I try to save my notes on settings they  me make a new account for iCloud email and when I did my Notes disappear I bean try to get it back turn in off on settings but nothing work and I have really importan

  • How do I create a form in CS6 for Mac similar to a LiveCycle Designer form for Windows?

    I have been creating quite a few forms in LiveCycle Designer at work (on Windows 7). I do a lot of scripting (99% JavaScript) in the background in order to make the form function as I need it to. I purchased CS6 for my Mac at home, and have a side pr

  • I Photo not down loading from camera

    For some reason my I Mac is not down loading pictures from my camera, or SD Reader or CD / DVD to the library. It will start to down load and you see the pictures loading, then IPhoto crashes ( at 25th or 157 picture) saying operation stopped for unk

  • Report weblink prompt row id - Custom Object

    I am trying to run a report on a custom object and want to prompt the row id for the custom object. I can't seem to get it to filter with the prompt. I don't know if I need to reference the row id field by Custom Object 1.Row Id or by the renamed cus

  • How to fix this is who in the picture ?

    I use this script in server 2008 R2 for Storing Windows Event Viewer Output in a SQL Server table with PowerShell : foreach ($server in Get-Content c:tempservers.txt) { $variable = ( Get-EventLog -ComputerName $server -LogName Security -After "22-08-