Addt for cs4 SQL error

Hi there,
When creating a registration page using addt for CS4 I get the following error when I subit the registration form:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' id TEXT)' at line 1
('id' in this recordset is actually NUMERIC)
I've got a feeling this is an error somewhere in the toolbox libraries.
I have a similiar registration form on another site that I created with the previous version of ADDT and that works fine. However, if I copy all that code across into the site using the updated library I get the same above error.
Has anybody come across this?

Hi Gunter, thanks for replying.
<br />(Incidentally, this code is also erroneously inserted ABOVE the class and connection includes so it doesn't work until I manually move the includes above the code.)
<br />
<br />*** FULL DEBUG TRACE ***
<br />Error:
<br />Internal error.
<br />Developer Details:
<br />tNG_fields.getFakeRecordset:
<br />SQL error: Error creating temporary table:
<br />You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' user_id TEXT)' at line 1
<br />SQL:
<br />CREATE TEMPORARY TABLE KT_fakeRS_20090307 (username TEXT, password TEXT, firstname TEXT, lastname TEXT, email TEXT, date TEXT, active TEXT, key TEXT, user_id TEXT) (FIELDS_FAKE_RS_ERROR)
<br />tNG Execution Trace - VIEW
<br />
<br /> * tNG_insert.executeTransaction
<br /> o STARTER.Trigger_Default_Starter
<br /> o tNG_insert.doTransaction
<br /> + BEFORE.Trigger_Default_FormValidation
<br /> + BEFORE.Trigger_Registration_CheckUniqueUsername
<br /> + BEFORE.Trigger_Registration_CheckPassword
<br /> + BEFORE.Trigger_Registration_PrepareActivation
<br /> + tNG_insert.prepareSQL
<br /> + tNG_insert.executeTransaction - execute sql*
<br /> + ERROR.Trigger_Default_Insert_RollBack
<br /> * tNG_insert.getRecordset
<br /> * tNG_insert.getFakeRsArr
<br /> * tNG_insert.getLocalRecordset
<br /> * tNG_insert.getFakeRecordset*
<br />
<br />*** CODE GENERATED BY USER REGISTRATION WIZARD *********
<br />
<br /><?php<br />// Load the common classes<br />require_once('includes/common/KT_common.php');<br /><br />// Load the tNG classes<br />require_once('includes/tng/tNG.inc.php');<br /><br />// Make a transaction dispatcher instance<br />$tNGs = new tNG_dispatcher("");<br /><br />// Make unified connection variable<br />$conn_japanga = new KT_connection($japanga, $database_japanga);<br />?>
<br />
<br /><?php<br />//start Trigger_CheckPasswords trigger<br />//remove this line if you want to edit the code by hand<br />function Trigger_CheckPasswords(&$tNG) {<br />  $myThrowError = new tNG_ThrowError($tNG);<br />  $myThrowError->setErrorMsg("Passwords do not match.");<br />  $myThrowError->setField("password");<br />  $myThrowError->setFieldErrorMsg("The two passwords do not match.");<br />  return $myThrowError->Execute();<br />}<br />//end Trigger_CheckPasswords trigger<br /><br />//start Trigger_WelcomeEmail trigger<br />//remove this line if you want to edit the code by hand<br />function Trigger_WelcomeEmail(&$tNG) {<br />  $emailObj = new tNG_Email($tNG);<br />  $emailObj->setFrom("{KT_defaultSender}");<br />  $emailObj->setTo("{email}");<br />  $emailObj->setCC("");<br />  $emailObj->setBCC("");<br />  $emailObj->setSubject("Welcome");<br />  //FromFile method<br />  $emailObj->setContentFile("includes/mailtemplates/welcome.html");<br />  $emailObj->setEncoding("ISO-8859-1");<br />  $emailObj->setFormat("HTML/Text");<br />  $emailObj->setImportance("Normal");<br />  return $emailObj->Execute();<br />}<br />//end Trigger_WelcomeEmail trigger<br /><br />//start Trigger_ActivationEmail trigger<br />//remove this line if you want to edit the code by hand<br />function Trigger_ActivationEmail(&$tNG) {<br />  $emailObj = new tNG_Email($tNG);<br />  $emailObj->setFrom("{KT_defaultSender}");<br />  $emailObj->setTo("{email}");<br />  $emailObj->setCC("");<br />  $emailObj->setBCC("");<br />  $emailObj->setSubject("Activation");<br />  //FromFile method<br />  $emailObj->setContentFile("includes/mailtemplates/activate.html");<br />  $emailObj->setEncoding("ISO-8859-1");<br />  $emailObj->setFormat("HTML/Text");<br />  $emailObj->setImportance("Normal");<br />  return $emailObj->Execute();<br />}<br />//end Trigger_ActivationEmail trigger<br /><br />// Start trigger<br />$formValidation = new tNG_FormValidation();<br />$formValidation->addField("username", true, "text", "", "3", "12", "Please enter a name between 3 and 12 characters.");<br />$formValidation->addField("password", true, "text", "", "6", "12", "Please enter a passsword between 6 and 12 characters.");<br />$formValidation->addField("firstname", true, "text", "", "3", "15", "Please enter your first name.");<br />$formValidation->addField("lastname", true, "text", "", "3", "15", "Please enter your last name (3-15 chars).");<br />$formValidation->addField("email", true, "text", "email", "", "", "Please enter a valid email. ");<br />$tNGs->prepareValidation($formValidation);<br />// End trigger<br /><br />// Make an insert transaction instance<br />$userRegistration = new tNG_insert($conn_japanga);<br />$tNGs->addTransaction($userRegistration);<br />// Register triggers<br />$userRegistration->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");<br />$userRegistration->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);<br />$userRegistration->registerTrigger("END", "Trigger_Default_Redirect", 99, "{kt_login_redirect}");<br />$userRegistration->registerConditionalTrigger("{POST.password} != {POST.re_password}", "BEFORE", "Trigger_CheckPasswords", 50);<br />$userRegistration->registerTrigger("AFTER", "Trigger_WelcomeEmail", 40);<br />$userRegistration->registerTrigger("AFTER", "Trigger_ActivationEmail", 40);<br />// Add columns<br />$userRegistration->setTable("users");<br />$userRegistration->addColumn("username", "STRING_TYPE", "POST", "username");<br />$userRegistration->addColumn("password", "STRING_TYPE", "POST", "password");<br />$userRegistration->addColumn("firstname", "STRING_TYPE", "POST", "firstname");<br />$userRegistration->addColumn("lastname", "STRING_TYPE", "POST", "lastname");<br />$userRegistration->addColumn("email", "STRING_TYPE", "POST", "email");<br />$userRegistration->addColumn("date", "DATE_TYPE", "POST", "date");<br />$userRegistration->setPrimaryKey("user_id", "NUMERIC_TYPE");<br /><br />// Execute all the registered transactions<br />$tNGs->executeTransactions();<br /><br />// Get the transaction recordset<br />$rsusers = $tNGs->getRecordset("users");<br />$row_rsusers = mysql_fetch_assoc($rsusers);<br />$totalRows_rsusers = mysql_num_rows($rsusers);<br />?>
<br /><?php require_once('Connections/japanga.php'); ?>
<br /><?php<br />// Load the common classes<br />require_once('includes/common/KT_common.php');<br /><br />// Load the tNG classes<br />require_once('includes/tng/tNG.inc.php');<br /><br />// Make a transaction dispatcher instance<br />$tNGs = new tNG_dispatcher("");<br /><br />// Make unified connection variable<br />$conn_japanga = new KT_connection($japanga, $database_japanga);<br />?>

Similar Messages

  • XMLParser for PL/SQL - Error

    I am using XML parser for PL/SQL in oracle 8.1.7 DB.
    When i run the sample xml program, i get error which is as follows. While compiling no errors. But while executing it reports error as given below.
    SQL> exec domsample('/u01/usr/oracle/sso','family.xml','errors.txt');
    BEGIN domsample('/u01/usr/oracle/sso','family.xml','errors.txt'); END;
    ERROR at line 1:
    ORA-29540: class oracle/xml/parser/plsql/XMLParserCover does not exist
    ORA-06512: at "PACKMGR.XMLPARSERCOVER", line 0
    ORA-06512: at "PACKMGR.XMLPARSER", line 57
    ORA-06512: at "PACKMGR.DOMSAMPLE", line 72
    ORA-06512: at line 1
    What need to be done to rectify the above problem.
    when i do the following validation check
    SQL> select substr(dbms_java.longname(object_name),1,30) as class, status
    2 from all_objects
    3 where object_type = 'JAVA CLASS'
    4 and object_name = dbms_java.shortname('oracle/xml/parser/v2/DOMParser');
    from all_objects
    ERROR at line 2:
    ORA-29540: class oracle/aurora/rdbms/DbmsJava does not exist
    I get the above error. Pls. Advice

    This should be that you haven't load the xmlparserv2.jar into the DB schema. You can load the java libs using loadjava command

  • Custom Error Pages (Not for PL/SQL Errors)

    Hi,
    How can I make my own error page for when I branch to an invalid page?
    I caught this example:
    http://djmein.blogspot.com/2007/04/custom-error-handling-in-apex.html
    But I beleive it is only for handling exceptions thrown in PL/SQL and this cannot be applied here.
    Anyone know?

    I'm struggling on this also. Anyone have the solution as well?

  • Nees for better SQL error handling???

    Hello everybody!
    I am having problems with identifying the reason why SQLExceptions are thrown. What I mean is that the reason is stored in the sql state and the sql code variables. As far as I know, this sql code may be platform dependent which makes the whole mechanism somehow hard to use.
    I simply miss sublasses of the SQLException like - DuplicateEntrySQLException, ForeignKeyConstraintFailureSQLException, ...
    - I think this approach would be far too way natural and obvious.
    My question is: does anybody know about a package or something like that which would implement a kind of "re-thrower" class which would consume the SQLException, inspect it and based on the exception's state it would throw a nice exception in the sense described above?
    Thank you!
    Cheers,
    Miro

    Why not check the data beforehand only?
    Normally I have a validate method in which I run a check on the data submitted by the user. there I see if the Data is violating any of the foriegn key, unique constraints or length of the field.
    I don't insert the data first into the DB without any validation.
    If you don't do this, then there is no way for you to know whether the problem occurred because of the data provided by the user or because the DB is having system level or n/w level problem.
    On the fly analysis is not possible because a DB (ex. oracle, sql server) each is capable of throwing ten thousand kind of errors. you really can't translate it by a package.
    So the best way to handle your situation is that validate the data first. If there is a problem report it to the user. If validation suceeds then go ahead with the insert, update command.
    If the user still gets an SQLException then it assume a system level error and display message like "Foo Portal is temporarily unavailable. Kindly call 4343343 in case of emergency"
    Test your system pretty well specially the validation logic so that you don't display the sys unavailable message when the DB is available but the data has errors.
    hope this helps.
    regards,
    Abhishek.

  • Error message for CS4 Flash: "Error initiating Java Runtime Environment. You may need to reinstall Flash." How do I reinstall Flash?

    How do I reinstall Flash Professional CS4?

    First uninstall, then run the CS Cleaner Tool.  Then download, install, and activate using the serial number of the original installation.
    Adobe Creative Suite Cleaner Tool helps resolve installation problems for CS3 thru CS6 and for Creative Cloud
    http://www.adobe.com/support/contact/cscleanertool.html
    CS4 - http://helpx.adobe.com/creative-suite/kb/cs4-product-downloads.html
    Find your serial number quickly

  • SQL ERROR on Form Input

    I used the wizard in Dreamweaver CS4 Developer Toolbox to have a form to upload an image and some data to a MySql dbase.
    Here is the error I got:
    Error:Internal error.
    Developer Details:tNG_fields.getFakeRecordset:
    SQL error: Error creating temporary table:
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
    SQL:
    CREATE TEMPORARY TABLE KT_fakeRS_20100330 (fld_name TEXT, fld_location TEXT, fld_test TEXT, fld_image TEXT, key TEXT) (FIELDS_FAKE_RS_ERROR)
    tNG Execution Trace - VIEW
    tNG_insert.executeTransactionSTARTER.Trigger_Default_Starter
    tNG_insert.getRecordset
    tNG_insert.getLocalRecordset
    tNG_insert.getFakeRecordset*
    And here is the code that generated the error, again, all from developer toolbox:
    <?php require_once('../../Connections/site.php'); ?>
    <?php
    // Load the common classes
    require_once('../../includes/common/KT_common.php');
    // Load the tNG classes
    require_once('../../includes/tng/tNG.inc.php');
    // Make a transaction dispatcher instance
    $tNGs = new tNG_dispatcher("../../");
    // Make unified connection variable
    $conn_site = new KT_connection($site, $database_site);
    // Start trigger
    $formValidation = new tNG_FormValidation();
    $formValidation->addField("fld_name", true, "text", "", "", "", "");
    $formValidation->addField("fld_location", true, "text", "", "", "", "");
    $formValidation->addField("fld_test", true, "text", "", "1", "256", "Please enter less than 256 Characters.");
    $tNGs->prepareValidation($formValidation);
    // End trigger
    // Make an insert transaction instance
    $ins_tbl_testimonials = new tNG_insert($conn_site);
    $tNGs->addTransaction($ins_tbl_testimonials);
    // Register triggers
    $ins_tbl_testimonials->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");
    $ins_tbl_testimonials->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);
    $ins_tbl_testimonials->registerTrigger("END", "Trigger_Default_Redirect", 99, "/admin/testimonial/testimonial-control.php");
    // Add columns
    $ins_tbl_testimonials->setTable("tbl_testimonials");
    $ins_tbl_testimonials->addColumn("fld_name", "STRING_TYPE", "POST", "fld_name");
    $ins_tbl_testimonials->addColumn("fld_location", "STRING_TYPE", "POST", "fld_location");
    $ins_tbl_testimonials->addColumn("fld_test", "STRING_TYPE", "POST", "fld_test");
    $ins_tbl_testimonials->addColumn("fld_image", "FILE_TYPE", "FILES", "fld_image");
    $ins_tbl_testimonials->setPrimaryKey("key", "NUMERIC_TYPE");
    // Execute all the registered transactions
    $tNGs->executeTransactions();
    // Get the transaction recordset
    $rstbl_testimonials = $tNGs->getRecordset("tbl_testimonials");
    $row_rstbl_testimonials = mysql_fetch_assoc($rstbl_testimonials);
    $totalRows_rstbl_testimonials = mysql_num_rows($rstbl_testimonials);
    ?>
    <html>
    <head>
    <link href="../../includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
    <script src="../../includes/common/js/base.js" type="text/javascript"></script>
    <script src="../../includes/common/js/utility.js" type="text/javascript"></script>
    <script src="../../includes/skins/style.js" type="text/javascript"></script>
    <?php echo $tNGs->displayValidationRules();?>
    </head>
    <body>
    <?php
        echo $tNGs->getErrorMsg();
    ?>
    <form method="post" id="form1" action="<?php echo KT_escapeAttribute(KT_getFullUri()); ?>" enctype="multipart/form-data">
      <table cellpadding="2" cellspacing="0" class="KT_tngtable">
        <tr>
          <td class="KT_th"><label for="fld_name">Fld_name:</label></td>
          <td><input type="text" name="fld_name" id="fld_name" value="<?php echo KT_escapeAttribute($row_rstbl_testimonials['fld_name']); ?>" size="32" />
            <?php echo $tNGs->displayFieldHint("fld_name");?> <?php echo $tNGs->displayFieldError("tbl_testimonials", "fld_name"); ?></td>
        </tr>
        <tr>
          <td class="KT_th"><label for="fld_location">Fld_location:</label></td>
          <td><input type="text" name="fld_location" id="fld_location" value="<?php echo KT_escapeAttribute($row_rstbl_testimonials['fld_location']); ?>" size="32" />
            <?php echo $tNGs->displayFieldHint("fld_location");?> <?php echo $tNGs->displayFieldError("tbl_testimonials", "fld_location"); ?></td>
        </tr>
        <tr>
          <td class="KT_th"><label for="fld_test">Fld_test:</label></td>
          <td><textarea name="fld_test" id="fld_test" cols="50" rows="5"><?php echo KT_escapeAttribute($row_rstbl_testimonials['fld_test']); ?></textarea>
            <?php echo $tNGs->displayFieldHint("fld_test");?> <?php echo $tNGs->displayFieldError("tbl_testimonials", "fld_test"); ?></td>
        </tr>
        <tr>
          <td class="KT_th"><label for="fld_image">Fld_image:</label></td>
          <td><input type="file" name="fld_image" id="fld_image" size="32" />
            <?php echo $tNGs->displayFieldError("tbl_testimonials", "fld_image"); ?></td>
        </tr>
        <tr class="KT_buttons">
          <td colspan="2"><input type="submit" name="KT_Insert1" id="KT_Insert1" value="Insert record" /></td>
        </tr>
      </table>
    </form>
    <p> </p>
    </body>
    </html>
    What can be wrong? I understand its an SQL error, but not sure why ADDT caused an SQL Error or how to fix it myself.
    Any help would be greatly appreciated.
    Chris

    Problem solved.  While it is noted that on a DC you cannot run the database as a local service, it is not mentioned that it will not even install if loaded as ANY service.  If given a full admin user and password to use as it's operating condition,
    the install goes fine.  Then change to what is desired.  I am not impressed with the error reporting in this install, as even the event logs gave no indication as to the reason for this.  Most of the install of the database service went OK (In
    the event logs and the install logs.) and when doing the final config, the problem pops up, aborting everything else.  You MUST then wipe ALL traces of the first install or different weird failures appear no matter what credentials are used.
    Hi C Policki,
    Sorry for my delay.
    Glad to hear that you have solved this issue and thanks for sharing in the forum. Your time and efforts are highly appreciated.
    I noticed that you install the SQL Server 2012 in a Windows Server 2012 R2 Essentials. Would you please let me confirm whether that Windows Server 2012 R2 Essentials was a Windows Server 2012
    R2 Standard/Datacenter with Windows Server Essentials Experience role, then you deploy it in an Existing Active Directory Environment?
    Deploying
    Windows Server 2012 R2 Standard/Datacenter with Windows Server Essentials Experience role in an Existing Active Directory Environment
    If it is just a Windows Server 2012 R2 Essentials, it should be a DC.That
    will be not recommended to install SQL Server on a domain controller. There are specific security restrictions when running SQL Server in this configuration and given the resource demands of a domain controller, SQL Server performance may be degraded.
    You may encounter problems when installing SQL Server on a domain controller
    Best regards,
    Justin Gu
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Receiving SQL Error: INTERNAL_ERROR  while executing the query

    Dear All,
    I am receiving the below error while executing a query.
    SQL Error: INTERNAL_ERROR
    Diagnosis
    The database system registered an SQL error. As available, the error number and a description are included in the short text. Possible causes for SQL errors include:
    Overflow of database objects such as buffers, temporary tablespaces, rollback segments or data containers/tablespaces.
    ->These problems can generally be eliminated by system administrators.
    Missing generated database objects such as tables or views based on inconsistent or inactive InfoCubes or InfoObjects. Examples of this include the view of the fact table for an InfoCube or the attribute SID table (X/Y table) of a characteristic.
    -> These problems can generally be eliminated by a BW administrator.
    SQL requests with incorrect content.
    -> Problems of this type are generally programming errors.
    System Response
    Procedure
    Contact your system administrator.
    Procedure for System Administration
    If there is no error description, look for one in the reference from the database producer.
    Decide on the correct category for the SQL error and check if it can be eliminated. Generally the error can also be found in the syslog (transaction sm21). From there, transactions sm51 and sm50, the developer's trace log of the work process can be determined and the erroneous statement can be viewed in the log. This procedure is described in SAP Note 568768.
    Notification Number DBMAN 257 
    I verified the table spaces and also done RSRV Repair of InfoObjects and InfoCubes and didnt find any error. But I am receiving this error for one particular month and remaining months are executing fine. Any ideas why i am receiving this error.
    Regards
    Ravi Y

    OSS Note 1305568:
    Symptom
    A data mart query that
    you want to execute within a data transfer process (DTP), for example, terminates with the
    SQL error -1013 "Too many order columns".
    The following is displayed in the monitor log of the data transfer process:
    Error while extracting from source xxxxxx (type InfoProvider)
    Message number RSBK 242
    Exception CX_SQL_EXCEPTION occurred (program:
    CL_SQL_STATEMENT==============CP, include:
    CL_SQL_STATEMENT==============CM004, line: 32).
    Message number RS_EXCEPTION 000
    SQL error: POS(3306) Too many order columns
    Message number DBMAN 257
    Error reading the data of InfoProvider xxxxxx
    Message number DBMAN 305
    You have already implemented Note 1065380.
    Other terms
    CX_SQL_EXCEPTION, message number, RS_EXCEPTION 000, DBMAN 257,  RSBK 242,
    RS_EXCEPTION 000
    Reason and Prerequisites
    The MaxDB internal limit of 4016 bytes or 128 fields for GROUP BY columns was exceeded.
    Solution
    When you implement these corrections, no aggregation is performed for the data (GROUP BY) if the limits of the MaxDB database have been exceeded.
    The limit values for the aggregation bahavior can also be manually reduced if there are problems with the default values.
    Two RSADMIN parameters are provided for this.
    MAXDB_MAX_GROUP_BY_FLDS is the maximum number of GROUP BY fields. The default value is 128.
    MAXDB_MAX_GROUP_BY_LEN is the maximum total length of the GROUP BY fields. The default value is 4000.
    SAP NetWeaver BI 7.00
               Import Support Package 21 for SAP NetWeaver BI 7. 00 (SAPKW70021) into your BI system. The Support Package is available when Note 1270629"SAPBINews NW 7.00 BI Support Package 21", which describes this Support Package in more detail, is released for customers.

  • Displaying full sql error text?

    I'm using getErrorCode() and getMessage() to display the following for an sql error
    SQL error: SQLCODE: -551, SQLSTATE: 42501, SQLERRMC: auth-id ;operation;object-name
    The SQLERRMC only has the auth-id, operation and object-name. How do I build this error message without doing it manually (detect 551 and build the error string)?
    auth-id DOES NOT HAVE THE PRIVILEGE TO PERFORM OPERATION operation ON OBJECT object-name

    Write an abstract DataAccessException class for your data that wraps a java.sql.SQLException and subclass it for this particular database.Then have the concrete class do the work of checking the SQL error code and state and put out a nicer error message.
    That's what Rod Johnson recommends in his "Expert 1-On-1 J2EE".

  • SQL Error: ORA-12899: value too large for column

    Hi,
    I'm trying to understand the above error. It occurs when we are migrating data from one oracle database to another:
    Error report:
    SQL Error: ORA-12899: value too large for column "USER_XYZ"."TAB_XYZ"."COL_XYZ" (actual: 10, maximum: 8)
    12899. 00000 - "value too large for column %s (actual: %s, maximum: %s)"
    *Cause:    An attempt was made to insert or update a column with a value
    which is too wide for the width of the destination column.
    The name of the column is given, along with the actual width
    of the value, and the maximum allowed width of the column.
    Note that widths are reported in characters if character length
    semantics are in effect for the column, otherwise widths are
    reported in bytes.
    *Action:   Examine the SQL statement for correctness.  Check source
    and destination column data types.
    Either make the destination column wider, or use a subset
    of the source column (i.e. use substring).
    The source database runs - Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    The target database runs - Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    The source and target table are identical and the column definitions are exactly the same. The column we get the error on is of CHAR(8). To migrate the data we use either a dblink or oracle datapump, both result in the same error. The data in the column is a fixed length string of 8 characters.
    To resolve the error the column "COL_XYZ" gets widened by:
    alter table TAB_XYZ modify (COL_XYZ varchar2(10));
    -alter table TAB_XYZ succeeded.
    We now move the data from the source into the target table without problem and then run:
    select max(length(COL_XYZ)) from TAB_XYZ;
    -8
    So the maximal string length for this column is 8 characters. To reduce the column width back to its original 8, we then run:
    alter table TAB_XYZ modify (COL_XYZ varchar2(8));
    -Error report:
    SQL Error: ORA-01441: cannot decrease column length because some value is too big
    01441. 00000 - "cannot decrease column length because some value is too big"
    *Cause:   
    *Action:
    So we leave the column width at 10, but the curious thing is - once we have the data in the target table, we can then truncate the same table at source (ie. get rid of all the data) and move the data back in the original table (with COL_XYZ set at CHAR(8)) - without any issue.
    My guess the error has something to do with the storage on the target database, but I would like to understand why. If anybody has an idea or suggestion what to look for - much appreciated.
    Cheers.

    843217 wrote:
    Note that widths are reported in characters if character length
    semantics are in effect for the column, otherwise widths are
    reported in bytes.You are looking at character lengths vs byte lengths.
    The data in the column is a fixed length string of 8 characters.
    select max(length(COL_XYZ)) from TAB_XYZ;
    -8
    So the maximal string length for this column is 8 characters. To reduce the column width back to its original 8, we then run:
    alter table TAB_XYZ modify (COL_XYZ varchar2(8));varchar2(8 byte) or varchar2(8 char)?
    Use SQL Reference for datatype specification, length function, etc.
    For more info, reference {forum:id=50} forum on the topic. And of course, the Globalization support guide.

  • 2-byte error in XML Parser for PL/SQL

    environment:
    oracle 8.1.5
    XML parser for Java 2.0.2.6.0
    XML parser for PL/SQL 1.0.1.0.0
    we use CLOB as xml data container, but it does not work properly with 2 byte chracter set.
    I tested same situation except using VARCHAR2 instead of CLOB, it works without problem.
    I think there is some bug in method parseClob of oracle.xml.parser.plsql.XMLParserCover about converting CLOB into String.
    I appreciate any help to work around this problem.

    Hi,
    We couldn't reproduce this error with our test case. Can you please post a test case that gives you this problem so we can assist you further?
    Thank you,
    Oracle XML Team

  • Need help trouble shooting Database Gateway for MS SQL Server setup, getting ORA-28546 error

    Dear All,
    I am trying to setup Oracle Database Gateway for MS SQL Server(I don't have admin access to the MS SQL Server).  When I try to test the dblink connection, I get the following error.
    I issued select * from dual@xyz;
    ORA-28546: connection initialization failed, probable Net8 admin error
    ORA-28511: lost RPC connection to heterogeneous remote agent using SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=dg4msql)))
    ORA-02063: preceding 2 lines from xyz
    28546. 0000 -  "connection initialization failed, probable Net8 admin error"
    My setup is the following.
    1. Oracle 11gR2 running on Oracle Linux 6, the same version gateway is installed on the same server, but different home directory.
    2. Oracle DB home directory is /u01/app/oracle/product/11.2.0/dbhome_1, gateway home directory is /u01/gateway.
    3. I use the same listener.ora file for both the db and the gateway.
    4. the contents of my listener.ora, tnsnames.ora and the initdg4msql.ora are below.
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          #(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
          (ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
    mssql =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME=db.abc.com.tw)
          (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
          (SID_NAME=orcl)
    SID_LIST_mssql =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME=dg4msql)
          (ENVS=LD_LIBRARY_PATH=/u01/gateway/dg4msql/driver/lib:/u01/gateway/lib)
          (PROGRAM_NAME=/u01/gateway/bin/dg4msql)
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
    LISTENER_ORCL =
      (ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = db.abc.com.tw)(PORT = 1522))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl.abc.com.tw)
    dg4msql  =
      (DESCRIPTION=
        (ADDRESS=(PROTOCOL=TCP) (HOST=localhost)(PORT = 1521))
        (CONNECT_DATA=(SID=dg4msql))
        (HS=OK)
    /u01/gateway/dg4msql/admin/initdg4msql.ora
    HS_FDS_CONNECT_INFO=[192.168.0.1]:1433//XIETEST
    # alternate connect format is hostname/serverinstance/databasename
    HS_FDS_TRACE_LEVEL=255
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    dblink was created using statement below.
    CREATE DATABASE LINK "xyz.abc.COM.TW"
    CONNECT TO SA IDENTIFIED BY
    USING 'dg4msql';
    Couple more things, that I have done to check the work above.
    [oracle@db admin]$ ping 192.168.0.1
    PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
    64 bytes from 192.168.0.1: icmp_seq=1 ttl=61 time=7.61 ms
    64 bytes from 192.168.0.1: icmp_seq=2 ttl=61 time=7.41 ms
    ^C
    --- 192.168.0.1 ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 1818ms
    rtt min/avg/max/mdev = 7.417/7.516/7.615/0.099 ms
    [oracle@db admin]$ tnsping dg4msql
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 11-SEP-2013 10:53:11
    Copyright (c) 1997, 2009, Oracle.  All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=TCP) (HOST=localhost)(PORT = 1521)) (CONNECT_DATA=(SID=dg4msql)) (HS=OK))
    OK (0 msec)
    [oracle@db admin]$ lsnrctl status mssql
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 11-SEP-2013 10:54:23
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     mssql
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                11-SEP-2013 10:09:46
    Uptime                    0 days 0 hr. 44 min. 37 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/db/mssql/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "dg4msql" has 1 instance(s).
      Instance "dg4msql", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    Obviously, I would like to get this setup to work, but I also have couple other questions regarding this setup.
    1. When installing the gateway, it asks to run the root.sh script.  the root.sh script as for the following.
    Enter the full pathname of the local bin directory: [/usr/local/bin]:
    The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: n
    The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: n
    The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: n
    is the above answer correct?
    Thanks for reading.

    Dear Klaus,
    I did start a new SQL*PLUS session
    The output of  /u01/gateway/bin/dg4msql is
    [oracle@db log]$ /u01/gateway/bin/dg4msql
    Oracle Corporation --- WEDNESDAY SEP 11 2013 14:45:06.604
    Heterogeneous Agent Release 11.2.0.1.0 - 64bit Production  Built with
       Oracle Database Gateway for MSSQL
    The output of env is
    HOSTNAME=db.abc.com.tw
    SHELL=/bin/bash
    TERM=xterm
    HISTSIZE=1000
    ORACLE_UNQNAME=orcl
    TMPDIR=/tmp
    QTDIR=/usr/lib64/qt-3.3
    QTINC=/usr/lib64/qt-3.3/include
    USER=oracle
    LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/dbhome_1/lib:/lib:/usr/lib
    LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:
    ORACLE_SID=orcl
    ORACLE_BASE=/u01/app/oracle
    ORACLE_HOSTNAME=db.abc.com.tw
    MAIL=/var/spool/mail/oracle
    PATH=/u01/app/oracle/product/11.2.0/dbhome_1/bin:/usr/sbin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin
    PWD=/home/oracle
    LANG=en_US.UTF-8
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    HISTCONTROL=ignoredups
    SHLVL=1
    HOME=/home/oracle
    TMP=/tmp
    LOGNAME=oracle
    QTLIB=/usr/lib64/qt-3.3/lib
    CVS_RSH=ssh
    CLASSPATH=/u01/app/oracle/product/11.2.0/dbhome_1/jlib:/u01/app/oracle/product/11.2.0/dbhome_1/rdbms/jlib
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
    G_BROKEN_FILENAMES=1
    _=/bin/env

  • EXEC SQL Error: ORA-01401: Inserted value too large for column

    Getting this SQL Error: ORA-01401: Inserted value too large for column..on an EXEC SQL Insert statement when writing to an
    external Oracle DB from SAP.
    On further analysis..it appears that this happens to the fields..when the string length matches the field length.
    Example:  Plant field is defined as char(4) on the SAP side and it is a Varchar2(4) on the Oracle side.
    When a value like '1015' is passed thru a variable in the insert statement then this ORA-01401 error pops up.
    No error:
       - if the value '1015' is passed directly in the insert statement to the external table  (or)
       - when a value with 3 chars or less(like the first three chars..101) is passed thru a variable  defined as 'Plant(4) type c'.
       - when using EXEC sql within SAP
       - when reading from the external db table
    This was working ok until the  Oracle Patch P9147110 was installed recently.
    Any suggestions !

    Hello Dvas,
    what's the characterset of your external database?
    What's the column definition in your external database (byte or character based)?
    If you use a characeterset like UTF8 it is possible, that one character needs more than one byte and then you will run into such kind of issues if the definition is too small.
    Regards
    Stefan

  • Errors installing XML Parser for PL/SQL

    I tried to install the parser and get the following errors :
    D:\xml\lib\java>loadjava -user user/pwd -r -v xmlparserv2.jar
    initialization complete
    loading : oracle/xml/parser/v2/XSLResultElement
    creating : oracle/xml/parser/v2/XSLResultElement
    Error while retrieving errors for oracle/xml/parser/v2/XSLResultElement
    ORA-00904: invalid column name
    loading : oracle/xml/parser/v2/XSLCopy
    creating : oracle/xml/parser/v2/XSLCopy
    Error while retrieving errors for oracle/xml/parser/v2/XSLCopy
    ORA-00904: invalid column name
    loading : oracle/xml/parser/v2/XMLByteReader
    creating : oracle/xml/parser/v2/XMLByteReader
    Error while retrieving errors for oracle/xml/parser/v2/XMLByteReader
    ORA-00904: invalid column name
    We have Oracle 8.1.5.0.0 running with JRE 1.1.8 installed.
    I updated loadjava.bat to call JRE 1.1.8 instead of JRE 1.1.7.
    Can't afford an upgrade to 8.1.6
    Any help appreciated

    Geoff Hicks (guest) wrote:
    : Problems being experienced trying to install the XML parser for
    : PL/SQL (zip file plxmlparser_v1_0_0_1_tar.gz).
    : We are on Oracle8i (8.1.5.0.0) (with JServer).
    : On installing the Oracle XML parser for PL/SQL the following
    : errors appear having run the loadjava command line tool for
    : xmlparser.jar:-
    : loading : META-INF/MANIFEST.MF
    : creating : META-INF/MANIFEST.MF
    : Error while creating resource META-INF/MANIFEST.MF
    : ORA-29547: Java system class not available:
    : oracle/aurora/rdbms/Compiler
    : loading : xmlparser_1.0.1.4_production
    : creating : xmlparser_1.0.1.4_production
    : Error while creating resource xmlparser_1.0.1.4_production
    : ORA-29547: Java system class not available:
    : oracle/aurora/rdbms/Compiler
    : Lots of the following resolver errors are returned:-
    : resolver :
    : Error while resolving class org/w3c/dom/html/HTMLDivElement
    : ORA-00904: invalid column name
    It looks like you have not initialized JServer in your 8.1.5
    database. This needs to be done first.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • Ever since i "upgraded" to yosemite i can't run illustrator (i'm getting a plugin error "Photoshopimport.aip" and "PhotoshopExport.aip" message... i've tried to get support (no longer available for cs4 design premium!!!... i've uninstalled and reinstalled

    ever since i "upgraded" to yosemite i can't run illustrator (i'm getting a plugin error "Photoshopimport.aip" and "PhotoshopExport.aip" message... i've tried to get support (no longer available for cs4 design premium!!!... i've uninstalled and reinstalled... the problem persists... can anyone at adobe provide guidance, orientation, help?... thank you kindly,
    bob kincey
    [email protected]
    [email protected]

    Some people have reported success with opening Photoshop before opening AI. Some how the aips are registered there and are then available to work in AI.

  • Forms 6i gives FRM-40734 Internal PL/SQL Error after Hourglass for 30 Min

    Hi,
    I am developing a New custom Form using a copy of Oracle Apps. TEMPLATE.FMB
    (Out of two custom forms , I am getting the below issue in only one form and the other is working fine)
    Everything works fine but I observed one unique issue during my testing.
    I executed the form and entered a value in one column of the master record
    (now the record in CHANGED status).
    Now I pressed the F11 Key (for Enter-Query in Apps) for doing the
    Query by ignoring the entered record values.
    Instead of giving a message "Do you want to Save the changes you have made (or)
    A Required Field must be entered"
    But the Form shows the Hourglass(Busy) for 30 Minutes then gives the error :
    FRM-40734 Internal PL/SQL Error
    May I know in the above situation, what are the triggers the form will fire and in which sequence (forms 6i)
    In summary what form triggers will be fired :
    When a NEW record status is CHANGED and when the user invokes Enter-Query
    (F11 on Apps and F8 on standalone) , before form changes to Enter-Query mode.
    Any pointers to my issue resolution.
    Below is my form canvas/block layout and I am getting the issue Only in Master Block and not in any of the detail blocks
    MASTER BLOCK
    DETAIL1 BLOCK
    DETAIL2 BLOCK DETAIL2 BLOCK DETAIL2 BLOCK
    thanks,
    Shashi

    Issue got resolved:
    ==================
    In my case, The solution I found is renaming the Relations with a unique name.
    When the Relation is created for two different master blocks
    the "Block creation wizard" has given the same name for both
    these relations.
    I renamed both of them with a custom unique name then the issue got resolved now the form is behaving correctly.
    thanks,
    Shashi

Maybe you are looking for