OCA 30021 POL 2404

We are getting the following error when copying
tables from Oracle8 on Winnt to Oracle Lite on Windows CE
(handheld devices)
OCA - 30021: error preparing/executing sql statement
[POL - 2404] : invalid characters for cast
Any help would be very appreciated
TIA
Alessandro Guimaraes
null

A-ha!
I suspect (as Joachim does) that you have a character set problem:
For example, in the UK and US "3,5" means "three,five", whereas mainland Europeans would read "three and a half".
null

Similar Messages

  • 8i lite - OCA 30021, error in creating new user

    I Have installed 8i lite on my laptop running win 98 SE.
    I created a new user from oracle 8 navigator ( 8.0.5.0.1). Right clicking on user does not give any Privilege tab.
    Now I quit navigator & log on to Sql plus running OCA patch 6.0.5.35.0. The new user connects but you can practically do nothing.
    eg
    SQL> select * from system.emp ;
    select * from system.emp
    ERROR at line 1:
    OCA-30021: error preparing/executing SQL statement
    [POL-5150] access violation
    pl note that I have give "select all table" , "DDL" , "ADMIN" privilege to the new user created , but it always give error OCA-30021.
    Also does public synonym works in 8i lite ? I have create public synonym in SYSTEM, but it is not visible to any other user id.
    Greatly apreciate if you could answer any of my question.
    null

    I have similar problems. Any advice?

  • Insert floats fail...

    Hi!
    I create a table like:
    create table tab(column1 number(8,2));
    When I intended to insert values with:
    insert into tab values (3.2);
    However, I have a error:
    OCA-30021: error preparing/executing SQL statement
    [POL-2404] invalid characters specified for cast conversion
    This is on SQL*Plus in Windows 98 Second Edition.
    How can I insert this values?
    Would somebody helpme?
    Thanks in advance.

    A-ha!
    I suspect (as Joachim does) that you have a character set problem:
    For example, in the UK and US "3,5" means "three,five", whereas mainland Europeans would read "three and a half".
    null

  • Error while creating a simple trigger in Oracle8i Lite

    Hi,
    I have Oracle8i Lite release 4.0.
    I want to create a simple trigger on 8i Lite.
    first I created .java file and got the .class file after successful compilation.
    The .class file is sitting in my local C:\ drive.
    I have a table having only two columns in 8i Lite and the structure is
    TABLE : SP
    ACC_NO NUMBER,
    ACC_DESC VARCHAR2(20)
    Then I issued the command :
    SQL> ALTER TABLE SP ATTACH JAVA SOURCE "JournalInst" in '.';
    After that getting the following error :
    alter table sp attach java source "JournalInst" in '.'
    ERROR at line 1:
    OCA-30021: error preparing/executing SQL statement
    [POL-8028] error in calling a java method
    Following is the cause/action for the error code :
    POL-8028 Error in calling a Java method
    Cause: Most commonly refers to a problem when converting between Java and Oracle Lite datatypes.
    Action: Check the calling parameters.
    I can't understand where I am wrong ?
    Could anybody help me out ?
    Here is my source code of .java file
    import java.lang.*;
    import java.sql.*;
    class JournalInst {
    public void INSERT_JOURNAL(Connection conn, double AccNo, String AccDesc)
    System.out.println("Record Inserted for :"+AccNo +" "+AccDesc);
    Thanks in advance for solutions.
    Sarada
    null

    I just started with 8i Lite, but as far as I know 8i Lite does not support PL/SQL code.
    So you have to write your triggers and stored procedures in Java.
    Ciao

  • Error while creating a simple function, procedure or triger in Oracle8i Lite

    Hi,
    I have Oracle8i Lite release 4.0.
    While creating a simple proceudre/function/trigger on the database, it's throwing the following error:
    create or replace function test return number is
    ERROR at line 1:
    OCA-30021: error preparing/executing SQL statement
    [POL-5228] syntax error
    Here is my sample code.
    create or replace function test return number is
    begin
    return 0;
    end;
    Tried to create the same function in the user SYSTEM too but got the same error message.
    Thanks in advance for the soluton.
    null

    I just started with 8i Lite, but as far as I know 8i Lite does not support PL/SQL code.
    So you have to write your triggers and stored procedures in Java.
    Ciao

  • Date functions in Oracle 8i Lite

    When i am trying to type in the following command in my win98 o/s:
    select to_char(to_date('01-jul-1997','dd-mon-yyyy'),'day ww')from dual
    My sql*plus returns the following error message:
    OCA-30021: error preparing/executing SQL statement
    [POL-2423] invalid value for date/time field
    However, I can run this statement under the 8i lite WINNT environment. I want to know whether this is due to limitation of 8i lite running on Win98 or there is some problem with my configuration of Oracle 8i?
    null

    This syntax doesn't work.Do you mean it hurls an exception or just doesn't return the expected result? Please describe the expected and actual behaviour, with error messages if appropriate. Because it ought to work...
    SQL> select * from dds;
            ID SDATE     EDATE
             1 11-FEB-06 11-MAR-06
             2 06-APR-06 11-APR-06
             3 11-APR-06 11-MAY-06
    SQL> set serveroutput on
    SQL> declare
      2    d1 date := trunc(sysdate, 'MM');
      3    d2 date := last_day(sysdate);
      4  begin
      5    for r in ( select * from dds
      6               where sdate >= d1 and edate <= d2 )
      7    loop
      8       dbms_output.put_line(r.id||'::'||r.sdate||'::'||r.edate);
      9    end loop;
    10  end;
    11  /
    2::06-APR-06::11-APR-06
    PL/SQL procedure successfully completed.
    SQL> Cheers, APC

  • Oracle Lite 4.01 cannot work??

    I've installed Oracle lite 4.0.1 with JDK 1.1.8,but it seems cannot work.
    When i connect to my consolidator from my consolitor admin,it get conencted my my oracle 8i but with
    oca -30021 :error preparing/executing sql statement
    pol -8035:no such attribute or method
    Can somebody tell me y??
    Please help.

    You require olite40.jar
    Here is a page on how to connect Jdeveloper to Oracle Lite:
    http://www.rekounas.org/olite/2007/02/01/how-to-setup-jdeveloper-to-connect-oracle-lite/

  • Sql-92 syntax in Oracle Lite 8i

    The Oracle Lite documentation instructs the developer to enact this change to polite.ini to use sql-92 syntax:
    Running SQL-92 on Oracle Lite
    As mentioned in the preceding section,
    Oracle Lite uses Oracle SQL by default.
    However, if you want to support SQL-92 by
    default instead of Oracle SQL, you can
    change the SQL compatibility parameter in
    the POLITE.INI file to SQL-92. To change
    the parameter, add the following in the
    POLITE.INI file:
    SQLCOMPATIBILITY=SQL92
    See the Oracle Lite User's Guide for more
    information about the POLITE.INI file.
    However this does not appear to have any effect. For instance, this query in the polite sample database:
    select product.descrip,price.stdprice
    from product FULL OUTER JOIN price
    ON product.prodid = price.prodid;
    generates a syntax error:
    ERROR at line 1:
    OCA-30021: error preparing/executing SQL
    statement
    [POL-5228] syntax error
    Is there more steps needed to make Oracle 8i Lite SQL-92 Compatible???

    Hello,
    SELECT 'x'
    FROM EMP,DEPT
    WHERE
      EMP.dept_id = DEPT.dept_id
    AND
      ROWNUM = 1;Francois

  • Increase Buffers

    I am using Oracle Lite V4.
    In trying to create my consolidater objects for my Palm Unit, I
    get the following error messages when using the Oracle8
    Navigator.
    OCA 30021 - Error preparing/executing SQL statement.
    POL 08035 - No such attribute or method.
    I found a document from Oracle for Oracle Lite V3 Messages which
    explained the error message as follows:
    Cause:The returned value from a Java stored procedure is too
    long to fit into the result buffer allocated for it.
    Action:Specify a larger buffer.
    What does it mean by "Specify a larger buffer"? Is this a
    parameter in the polite.ini? Any suggestions would be
    appreciated.
    Thanks and regards.
    null

    Hello Luca
    You are having out discards on software queue 3 threshold 1. Verify the buffer and threshold values associated with the queue identified in the marking to output-map.
    If they are by default we can change the buffer and threshold values for the queue dropping packets. Let’s make the change queue-set 2 so that queue 1 gets 20%, queue 2 10%, queue 3 50% queue 4 20%.
    switch(config)#mls qos queue-set output 2 buffers 20 10 50 20
    Now we can change queue-set 2, queue 3 threshold. Both Threshold 1 and Threshold 2 are mapped to 3100 so that they can pull buffer from the reserved pool if required.
    switch(config)#mls qos queue-set output 2 threshold 3 3100 3100 100 3200
    Move the affected interface to queue set 2:
    Switch(config)#int gi1/0/47
    Switch(config-if)#queue-set 2
    Haihua

  • CR_VM_FAILED

    I have tried to get an answer to this question in this forum as
    well as in several newsgroups, but can't seem to get any
    response. Is it that no one knows the answer?
    My environment is Oracle Lite on a Win98 PC. I am trying to
    make external Java procedures work and am trying to use the
    example in the documentation for an emp table. I get the
    following errors when I run the following command:
    ALTER TABLE EMP ATTACH JAVA SOURCE "Employee" IN FC:\tmpF;
    OCA-30021: error preparing/executing SQL statement
    [POL-8000] CR_VM_FAILED
    What does it take to get a virtual machine for Java to work?
    The error message in the documentation says I need my path to
    point to a location with javai.dll. I did this, and went to the
    extreme of putting javai.dll in my c:\windows directory as
    well. There is no way Oracle could miss finding that file.
    My CLASSPATH is:
    SET CLASSPATH=C:\PROGRA~1\CANONC~1\PDELUXE\ADOBEC~1;C:\orawin95
    \LITE\CLASSES\OLITE36.JAR;.;C:\ORAWIN95
    \JDBC\LIB\classes12.zip;C:\orawin95\LITE\NAV\OLDES.JAR
    Help!
    Thanks.
    Stan
    null

    classpath environmental variable is not
    pointing to jdk1.1.8

  • Oracle lite and Stored Procedures

    Hi, I have just installed Oracle lite, connected to Polite and created dropped tables etc. I notice that in Navigator there is no folder for stored procedures or triggers. I tried to compile a syntacally correct proc in SQL plus and it generated this error: Create or Replace Procedure SCORECARD.Gen_Fiscal_Year_Data AS
    ERROR at line 1:
    OCA-30021: error preparing/executing SQL statement
    [POL-5228] syntax error.
    Does this mean that stored procs are not supported in Oracle lite?
    Thanks, Paul
    null

    Oracle Lite database does not support the usual stored procedures/triggers like an Oracle database. You have to use java classes to create triggers/stored procedures to run them in Oracle Lite database. You can refer the documentation on Oracle 8i Lite for samples/detailed information.

  • OnlineOrders

    Hello Everyone:
    I am having a little hard time to run Online Orders example in JDeveloper 3.0.
    1) Instead of full enterprise Oracle databaes I am running it on Oracle 8i Lite, can I do it?
    2) Very first step of the example says, run SQL plus utility and create new user account. My problem is that I am logging in through this
    UserName = System
    Password = MyPassword
    HostString = ODBC:POLITE
    And then I type
    create user bc4j identified by bc4j;
    It replies
    Operation 0 Succeeded
    then I type
    grant resource, connect to bc4j;
    it replies
    ERROR at line 1:
    OCA-30021: error preparing/executing SQL statement
    [POL-5228] syntax error
    Any ideas, please....
    3)I wanna test my 8i to see if my 8i is working fine. 8iLite release notes says that to check if 8iLite is setup correctly, run the Java examples in the Oracle_Home\Lite\Examples\Java directory. I am double clicking on runjava.bat, it runs but is giving me the same error
    grant resource, connect to bc4j
    ERROR at line 1:
    OCA-30021: error preparing/executing SQL statement
    [POL-5228] syntax error
    Is my oracle 8i Lite is working correctly?
    Please reply ASAP.
    Thanks,
    Khan

    You would not be able to run that demo against Oracle8i Lite.
    Currently Business Components for Java in JDeveloper 3.0 is able to talk to only oracle databases excluding Lite.
    We are working on that in upcoming release
    raghu

  • Cannot ALTER TABLE

    I cannot alter tables that I created, add and modify give me a
    syntax error. How can this be? Does anyone have anything
    positive to say about Personal Oracle Lite?
    null

    Ranga Rao (guest) wrote:
    : David Kachuck (guest) wrote:
    : : I cannot alter tables that I created, add and modify give me
    a
    : : syntax error. How can this be? Does anyone have anything
    : : positive to say about Personal Oracle Lite?
    : Mr David,
    : Please give me details about the problem and what exactly the
    : message is?
    : --Ranga Rao V.
    1 alter table title_copy
    2* modify (customer varchar2(30));
    SQL> /
    alter table title_copy
    ERROR at line 1:
    OCA-30021: error preparing/executing SQL statement
    [POL-5228] syntax error
    null

  • Subqueries in HAVING in Lite?

    I am a student of SQL. My professor can run this on his full
    blown ORACLE server using but this will not run under lite.
    I looked in the doc and did not see this restriction under the
    Comparison topic. The problem appears to revolve around the
    subquery in the having
    Select itemno count(*) from lineitem
    group by itemno
    having count(*) = (Select Count(*) from sale);
    I get a "not a single-group GROUP BY
    function message". It works fine if I put in a number (having
    count(*) = 5). Am I doing something wrong or this a difference
    between Lite and full ORACLE??
    Thanks Dave Blazosky
    Tables look like
    SQL> DESCRIBE sale
    Name Null? Type
    SALENO NOT NULL NUMBER(10)
    SALEDATE DATE
    SALETEXT CHAR(50)
    SQL> DESCRIBE LINEITEM
    Name Null? Type
    LINENO NOT NULL NUMBER(10)
    LINEQTY NUMBER(10)
    LINEPRICE NUMBER(7,2)
    SALENO NOT NULL NUMBER(10)
    ITEMNO NOT NULL NUMBER(10)
    null

    john (guest) wrote:
    : Dave Blazosky (guest) wrote:
    : : I am a student of SQL. My professor can run this on his full
    : : blown ORACLE server using but this will not run under lite.
    : : I looked in the doc and did not see this restriction under
    the
    : : Comparison topic. The problem appears to revolve around the
    : : subquery in the having
    : : Select itemno count(*) from lineitem
    : : group by itemno
    : : having count(*) = (Select Count(*) from sale);
    : : I get a "not a single-group GROUP BY
    : : function message". It works fine if I put in a number
    (having
    : : count(*) = 5). Am I doing something wrong or this a
    difference
    : : between Lite and full ORACLE??
    : : Thanks Dave Blazosky
    : : Tables look like
    : : SQL> DESCRIBE sale
    : : Name Null? Type
    : : SALENO NOT NULL NUMBER(10)
    : : SALEDATE DATE
    : : SALETEXT CHAR(50)
    : : SQL> DESCRIBE LINEITEM
    : : Name Null? Type
    : : LINENO NOT NULL NUMBER(10)
    : : LINEQTY NUMBER(10)
    : : LINEPRICE NUMBER(7,2)
    : : SALENO NOT NULL NUMBER(10)
    : : ITEMNO NOT NULL NUMBER(10)
    : Dave,
    : Place a comma(,) after the itemno in the SELECT statement and
    re-
    : run it.
    : Regards,
    : John
    A typo when I entered into this message box. Reran and still the
    same problem. Good spot though. I cut and pasted from lite below
    SQL> Select Count(*) from sale;
    COUNT(*)
    5
    SQL> Select itemno, count(*) from lineitem
    2 group by itemno
    3 Having count(*) = 5;
    ITEMNO COUNT(*)
    2 5
    SQL> Select itemno, count(*) from lineitem
    2 group by itemno
    3 Having count(*) = (Select Count(*) from sale);
    Select itemno, count(*) from lineitem
    ERROR at line 1:
    OCA-30021: error preparing/executing SQL statement
    [POL-5234] not a single-group GROUP BY function
    null

  • Error in Updating Recrods

    Hi All,
    I have made ODBC Connection for SQL Server7. When i try to update or delete any record from Forms 6i then i got following errors.
    FRM-40512:Oracle error unable to issue SAVEPOINT command.
    OCA-30021:error preparing/executing SQL statement.
    Its emergency plz help me.

    Is any code that you've written being executed when you update? If so, see if this reproduces on a simple form with no code. If it doesn't, perhaps there is something in the code that SQL Server doesn't understand, such as directly calling a stored procedure or using the NVL function. Using EXEC_SQL may resolve such problems -- see bug 1150980 and Note 196941.1 for a couple of examples.

Maybe you are looking for

  • How to share iTunes library between two users on the same Mac

    We have recently bought a Macbook Pro and have successfully transferred the old PC information onto the Mac.  But, the iTunes library from the PC has now just gone into the old user acct.  I am now confused as to which iTunes user name I connect my d

  • Partial Reconciliation on Payment on Account

    I am working on SAP Business One 2007 A Patch Level 38: I understand the usefulness of Partial Reconciliation but am having the following problems when it is used in conjunction with a "Payment on Account".  Here is the scenario. I have a Customer wh

  • TS3991 If i produce a document on my PC in WORD.  Can I open it, edit and save in CLOUD

    Can anyone tell me if I produce a document on my PC in WORD can i edit it on my laptop and is it then saved in ICLOUD??

  • G6 Card Refresh Error

    I am getting several errors when running the system maintainance job against my document directory in G6. It looks like the errors are showing up when refreshing documents that have been upgraded from the 4.5 portal. These documents are all web URLs

  • Flash Player not showing SWF movie

    Hi Everyone- First off thank you for anyone that is willing to send advise my way. I am using Windows 7 - Indesign CS5 I have created a SWF movie exported from Flash with playback component. I have imported that SWF into Indesign CS5 and created an i