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

Similar Messages

  • Help with translating SQL query from SQL Server syntax to Oracle syntax

    Hi,
    is it someone that can help me translate following SQL query from SQL Server syntax to Oracle syntax.
    SELECT ID,
    [LMT(MTR)] = MAX(case when TYPE = 'LMT' then VALUE end),
    [AAD(KGM)] = MAX(case when TYPE = 'AAD' then VALUE end),
    [VOL(MTQ)] = MAX(case when TYPE = 'VOL' then VALUE end)
    FROM yourtable
    GROUP BY ID
    Your help is highly appreciated, thanks in advance.

    Like this,
    SELECT ID,
    MAX(case when TYPE = 'LMT' then VALUE end) LMT_MTR,
    MAX(case when TYPE = 'AAD' then VALUE end) AAD_KGM ,
    MAX(case when TYPE = 'VOL' then VALUE end) VOL_MTQ
    FROM yourtable
    GROUP BY ID-Arun

  • PL/SQL Web Application managing Oracle Lite parameters

    After making my application for mobile devices using c# and Oracle Lite I am starting now to make the back office for the system's administration.
    For that I am using PL/SQL. Oracle Lite has an API in Java and C# through which I can manage user, publications and so on... What is the best way of doing this managing operations with PL/SQL? Is there procedures and functions I can use? Do I have to pass some weeks to understand all the tables used by Oracle Lite to manipulate them?
    Thanks for the support!

    As far as I know, there is only Java API for managing the application. You might need to look into making some java web services to handle this.

  • Oracle Lite - in line quiries

    9iLite 5.0.2.8
    Do in-line queries work?
    example
    select level, a.col_a, b.col_b
    from tab_A, (select col_b
    from tab_c
    where col_c = 1 ) b
    where a.col_D = 1
    start with a.col_a = 0
    connect by b.col_b = prior a.col_a
    We have more complex queries that work on an enterprise verison of the DB, but these sql statements all fail when executed on 9iLite.
    Assuimg their are limitations to the complexity of
    the sql that can run on 9iLite, is there a document
    which hi-lites these limitations and possible work-arounds. I have read the SQL Reference for 9iLite - it documents what syntax is allowed very well.
    I am suspecting that temporary objects in 9iLite sql may not be allowed.
    Thanks in advance for any input.

    The actual syntax is ...
    select level, cls.isActive, cls.application_class_id,
    menu.application_class_id_parent, menu.menu_order,
    menu.menu_id
    from application_class cls,
    ( select *
    from application_menu
    where menu_profile = 1 ) menu
    where menu.application_class_id (+) =
    cls.application_class_id
    and isActive = 1
    start with (cls.application_class_id = 0 or
    menu.application_class_id_parent is null )
    connect by menu.application_class_id_parent = prior
    cls.application_class_id
    and cls.application_class_id != 0
    The error from oLite is ...
    Exception:
    java.sql.SQLException: [POL-5185] can't establish a join with CONNECT BY
         at oracle.lite.poljdbc.LiteEmbPreparedStmt.jniPrepare(Native Method)
         at oracle.lite.poljdbc.LiteEmbPreparedStmt.prepare(Unknown Source)
         at oracle.lite.poljdbc.POLJDBCPreparedStatement.(Unknown Source)
         at oracle.lite.poljdbc.POLJDBCPreparedStatement.(Unknown Source)
         at oracle.lite.poljdbc.OraclePreparedStatement.(Unknown Source)
         at oracle.lite.poljdbc.POLJDBCConnection.prepareStatement(Unknown Source)
         at oracle.lite.web.JupConnection.prepareStatement(JupConnection.java:174)
         at hccadi_on._test._select._jspService(_select.java:70)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.lite.web.JupServlet.service(JupServlet.java:235)
         at oracle.lite.web.JspRunner.service(JspRunner.java:112)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at oracle.lite.web.JupServlet.service(JupServlet.java:235)
         at oracle.lite.web.MimeServletHandler.handle(MimeServletHandler.java:99)
         at oracle.lite.web.JupApplication.service(JupApplication.java:523)
         at oracle.lite.web.JupHandler.handle(JupHandler.java:102)
         at oracle.lite.web.HTTPServer.process(HTTPServer.java:309)
         at oracle.lite.web.HTTPServer.handleRequest(HTTPServer.java:162)
         at oracle.lite.web.JupServer.handle(JupServer.java:308)
         at oracle.lite.web.SocketListener.process(SocketListener.java:178)
         at oracle.lite.web.ClientListener.process(ClientListener.java:64)
         at oracle.lite.web.SocketListener$ReqHandler.run(SocketListener.java:232)
    This sql works on an EE version of the DB. I do agree that
    in-line queries work. I cut this sql up to be just an in-line query and it does work. The problem seems to be around the use of "connect by" with an in-line. I do know that "connect by" works.
    Thanks in advance for any input.

  • 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.

  • Oracle Lite + Resin + jdk1.2.2 or jdk 1.3.1 problem

    Hi!
    Can some one help me this the following:
    I used Oracle Lite database, Resin app server and jdk1.2.2
    When I try to connect my database through simple java-application, all goes fine! But, when I trying to get database communication from my application server and problem arise. First of all dll's such as
    OLJDBC40.DLL, OLAD2040.DLL, OLOBJ40.DLL, OLOD2040.DLL OLSQL40.DLL are in the Path and JVM loads them at runtime. I got connection to DB. Than I try to get some DatabaseMetaData info and got EXCEPTION_ACCESS_VIOLATION (for jdk1.3) and "java.exe has generated error (for jdk1.2.2)" errors from VM.
    So, any idea?
    Any help apriciated...
    RGS,
    parasolko

    Hi,
    I have got the similar problem when I used MS SQL server + Tomcat + JDK1.3.0 via JdbcOdbc driver. In that configuration the JVM crashs very often. It seems that JdbcOdbc's got unstable problem. Then, I tried other type 4 JDBC driver, it works fine and JVM won't crash. Try Sprinta 2000 JDBC driver, it's a type 4 driver and fast stable.
    Ma

  • Install on vista with Oracle Lite Multiuser Service -  SERVICE_START_PENDIN

    Hi all,
    I'm trying to install app server 10.1.3 on Vista, but on Configuration assistant screen, it stops at BPEL process manager configuration manager ,
    error in oraInstall.err:
    C:\Users\victoria\AppData\Local\Temp>echo updating ODBC.ini
    updating ODBC.ini
    C:\Users\victoria\AppData\Local\Temp>echo off
    C:\Users\victoria\AppData\Local\Temp>echo updating ODBCINST.ini
    updating ODBCINST.ini
    C:\Users\victoria\AppData\Local\Temp>echo off
    C:\Users\victoria\AppData\Local\Temp>echo updating POLITE.ini
    updating POLITE.ini
    C:\Users\victoria\AppData\Local\Temp>echo off
    C:\Users\victoria\AppData\Local\Temp>exit
    Oracle JAAS [Mon May 18 08:36:05 GMT 2009] admin password is changed successfully
    opmnctl: starting opmn and all managed processes...
    OliteService reports the following status:
    The service is installed.
    OliteService reports the following status:
    The service start pending.
    The current status of Oracle Lite Multiuser Service:
    Current State : SERVICE_START_PENDING
    Acceptable Control Code : (0x0)
    installaction.log:
    BUILD SUCCESSFUL
    Total time: 3 minutes 35 seconds
    C:\product\10.1.3.1\OracleAS_1\bpel\samples>ENDLOCAL
    BUILD SUCCESSFUL
    Total time: 4 minutes 43 seconds
    Exit: 0
    TASK: oracle.tip.install.tasks.UpdateConfigFiles
    Updating configuration files ...
    Exit: 0
    TASK: oracle.tip.install.tasks.RegisterOlite
    Registering Olite ...
    C:\product\10.1.3.1\OracleAS_1\bpel\install\bin>set OB_HOME=C:\product\10.1.3.1\OracleAS_1\bpel
    C:\product\10.1.3.1\OracleAS_1\bpel\install\bin>set OLITE_LIB=C:\product\10.1.3.1\OracleAS_1\bpel\..\Mobile\Sdk\BIN
    C:\product\10.1.3.1\OracleAS_1\bpel\install\bin>set OLITE_BIN=C:\product\10.1.3.1\OracleAS_1\bpel\..\Mobile\Sdk\BIN
    C:\product\10.1.3.1\OracleAS_1\bpel\install\bin>set PATH=C:\product\10.1.3.1\OracleAS_1\jdk\bin;C:\product\10.1.3.1\OracleAS_1\ant\bin;C:\oracle\product\10.2.0\db_1\bin;C:\app\product\11.1.0\db_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\product\10.1.3.1\OracleAS_1\MOBILE\sdk\bin;C:\product\10.1.3.1\OracleAS_1\jdk\jre\bin\server
    C:\product\10.1.3.1\OracleAS_1\bpel\install\bin>set CLASSPATH=C:\product\10.1.3.1\OracleAS_1\bpel\..\Mobile\Sdk\BIN\olite40.jar;C:\product\10.1.3.1\OracleAS_1\MOBILE\Sdk\bin\OLITE40.JAR;
    C:\product\10.1.3.1\OracleAS_1\bpel\install\bin>C:\product\10.1.3.1\OracleAS_1\bpel\..\Mobile\Sdk\BIN\olsv2040.exe /stop
    OliteService reports the following status:
    The service stop is pending.
    OliteService reports the following status:
    The service is stopped.
    The current status of Oracle Lite Multiuser Service:
    Current State : SERVICE_STOPPED
    Acceptable Control Code : (0x0)
    C:\product\10.1.3.1\OracleAS_1\bpel\install\bin>C:\product\10.1.3.1\OracleAS_1\bpel\..\Mobile\Sdk\BIN\olsv2040.exe /remove
    OliteService reports the following status:
    The service is removed.
    C:\product\10.1.3.1\OracleAS_1\bpel\install\bin>C:\product\10.1.3.1\OracleAS_1\bpel\..\Mobile\Sdk\BIN\olsv2040.exe /install
    OliteService reports the following status:
    The service is installed.
    C:\product\10.1.3.1\OracleAS_1\bpel\install\bin>C:\product\10.1.3.1\OracleAS_1\bpel\..\Mobile\Sdk\BIN\olsv2040.exe /start
    OliteService reports the following status:
    The service start pending.
    OliteService reports the following status:
    The service is running...
    port = 1531
    wdir = C:\Windows\system32
    The current status of Oracle Lite Multiuser Service:
    Current State : SERVICE_RUNNING
    Acceptable Control Code : (0x1) SERVICE_ACCEPT_STOP
    C:\product\10.1.3.1\OracleAS_1\bpel\install\bin>mkdir "C:\product\10.1.3.1\OracleAS_1\bpel\system\database\olite"
    C:\product\10.1.3.1\OracleAS_1\bpel\install\bin>del /f "C:\product\10.1.3.1\OracleAS_1\bpel\system\database\olite\orabpel.odb"
    C:\product\10.1.3.1\OracleAS_1\bpel\install\bin>"C:\product\10.1.3.1\OracleAS_1\bpel\..\Mobile\Sdk\BIN\createdb.exe" orabpel "C:\product\10.1.3.1\OracleAS_1\bpel\system\database\olite\orabpel.odb" manager
    Database C:\PRODUCT\10.1.3.1\ORACLEAS_1\BPEL\SYSTEM\DATABASE\OLITE\ORABPEL.odb created (VolID = 1736).
    C:\product\10.1.3.1\OracleAS_1\bpel\install\bin>exit 0
    Could Not Find C:\product\10.1.3.1\OracleAS_1\bpel\system\database\olite\orabpel.odb
    Oracle Lite CREATEDB Version 10.2.0.2.0.
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Exit: 0
    TASK: oracle.tip.install.tasks.DeployApps
    Deploy applications and adapters
    Port value is 6003
    Buildfile: bpminstall.xml
    init-midtier:
    Trying to override old definition of datatype echoproperties
    common_update_server.xml:
    Adding shared library apache.junit ...
    Adding shared library oracle.db.lite ...
    Adding shared library apache.commons 10.1.3 ...
    Adding shared library apache.jdom ...
    Adding shared library apache.slide ...
    Running batch script by:
    java admin_client.jar deployer:oc4j:opmn://victoria-PC:6003/home -script C:\product\10.1.3.1\OracleAS_1\bpel\system\services\install\ant-tasks/bpel_admin_client_script_sl.txt
    Failed at "Could not get DeploymentManager".
    This is typically the result of an invalid deployer URI format being supplied, the target server not being in a started state or incorrect authentication details being supplied.
    More information is available by enabling logging -- please see the Oracle Containers for J2EE Configuration and Administration Guide for details.
    update_server.xml:
    restart.container:
    Stopping home container ...
    opmnctl: stopping opmn managed processes...
    ================================================================================
    opmn id=victoria-PC:6200
    no processes or applications matched this request
    Restarting home container ...
    opmnctl: starting opmn managed processes...
    ================================================================================
    opmn id=victoria-PC:6200
    0 of 1 processes started.
    ias-instance id=oapp1013.victoria-PC
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ias-component/process-type/process-set:
    default_group/home/default_group/
    Error
    --> Process (index=1,uid=503452990,pid=3000)
    failed to start a managed process after the maximum retry limit
    Log:
    C:\product\10.1.3.1\OracleAS_1\opmn\logs\\default_group~home~default_group~1.log
    init-midtier:
    Setting up the dehydration store [olite]...
    dehydrationStore:
    Configuring data sources for olite dehydration store ...
    Deploying ORABPEL Applications...
    deploy-applications:
    Deploying Oracle BPEL Process Manager ...
    Copying 1 file to C:\product\10.1.3.1\OracleAS_1\bpel\system\services\lib
    Copying 1 file to C:\product\10.1.3.1\OracleAS_1\bpel\system\services\lib
    Copying 1 file to C:\product\10.1.3.1\OracleAS_1\bpel\system\services\lib
    Updating jar: C:\product\10.1.3.1\OracleAS_1\bpel\system\services\lib\orabpel.ear
    Running batch script by:
    java admin_client.jar deployer:oc4j:opmn://my-PC:6003/home -script C:\product\10.1.3.1\OracleAS_1\bpel\system\services\install\ant-tasks/bpel_deployapps.txt
    Failed at "Could not get DeploymentManager".
    This is typically the result of an invalid deployer URI format being supplied, the target server not being in a started state or incorrect authentication details being supplied.
    More information is available by enabling logging -- please see the Oracle Containers for J2EE Configuration and Administration Guide for details.
    Please advise what's wrong?
    thanks
    andrew

    The following procedure describes the steps required to deploy the DbAdapter.rar file using admin_client.jar:
    1. Copy the following libraries from server.xml in an OC4J_SOA container to a server.xml file for a new
    container:
    oracle.bpel.common
    apache.junit
    oracle.db.lite
    apache.commons
    apache.jdom
    apache.slide
    For example, for oracle.bpel.common, copy the following extract from one server.xml to another and
    do the same for all other libraries:
    <shared-library name="oracle.bpel.common" version="10.1.3">
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/system/classes"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/lib/orabpel-common.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/lib/orabpel-thirdparty.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/lib/orabpel.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/lib/bpm-infra.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/system/services/lib/wdk.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/lib/connector15.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/lib/orabpel-exts.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/lib/orabpel-ant.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/lib/ant_1.6.5.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/lib/bipres.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/lib/bicmn.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/jlib/uix2.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/jlib/jewt4.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/jlib/regexp.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/jlib/share.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/jdk/lib/tools.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/jlib/ldapjclnt10.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/system/services/schema"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/system/services/config"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/system/services/lib/bpm-services.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/system/services/lib/wfapi.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/system/services/lib/fndctx.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/system/services/lib/phaos.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/system/services/lib/pushapi.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/lib/oracle_http_client.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/registry/lib/uddiclient_api_v3.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/registry/lib/wasp.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/registry/lib/uddiclient_core.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/registry/lib/saaj.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/registry/lib/jaxm.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/registry/lib/builtin_serialization.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/registry/lib/core_services_client.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/bpel/registry/lib/jaxrpc.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/rules/lib/rl.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/rules/lib/rulesdk.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/rules/lib/webdavrc.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/rules/lib/jr_dav.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/webservices/lib/wsif.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5\integration\esb/lib/oraesb.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5\integration\esb/lib/bpm-ide-common.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5/rdbms/jlib/xdb.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5\integration\esb/lib/ide.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5\integration\esb/lib/javatools.jar"/>
    <code-source path="D:\product\10.1.3.1\OracleAS_5\integration\esb/lib/xmleditor.jar"/>
    <import-shared-library name="oracle.dms"/>
    <import-shared-library name="oracle.jdbc"/>
    <import-shared-library name="oracle.xml"/>
    <import-shared-library name="oracle.jwsdl"/>
    <import-shared-library name="soap"/>
    <import-shared-library name="oracle.ws.client"/>
    <import-shared-library name="oracle.toplink"/>
    <import-shared-library name="apache.junit"/>
    <import-shared-library name="oracle.db.lite"/>
    <import-shared-library name="apache.commons.logging"/>
    <import-shared-library name="oracle.cache"/>
    <import-shared-library name="apache.commons"/>
    <import-shared-library name="apache.slide"/>
    <import-shared-library name="apache.jdom"/>
    </shared-library>
    2. Restart the container to make sure that server.xml was updated correctly.
    3. From the configtools.log file find the opmn port number, for example:
    deployer:oc4j:opmn://dimak.au.oracle.com:6012/home
    dimak.au.oracle.com - is the machine name and
    6012 - port number
    4. Launch a new command prompt
    and set path and classpath, for example:
    set PATH=$ORACLE_HOME\jdk\bin;%PATH%
    set classpath=.
    where in the classpath there is only one entry - the dot, which stands for the current directory.
    5. change directory to the following:
    $ORACLE_HOME\j2ee\home
    and run the following command (written all on one line) to deploy the DbAdapter:
    java -jar admin_client.jar deployer:oc4j:opmn://dimak.au.oracle.com:6012/test oc4jadmin
    manager1 -deploy -file $ORACLE_HOME\integration\esb\lib\DBAdapter.rar -deploymentName
    DbAdapter2 -parent default
    where
    * dimak.au.oracle.com should be substituted with your machine name
    * 6012 should be substituted with your port which you found in step 3
    * test is the name of the container you want to deploy the adapter to
    * manager1 should be substituted with your oc4jadmin password
    * $ORACLE_HOME\integration\esb\lib\DBAdapter.rar is the location of the DBAdapter.rar file
    * deploymentName DbAdapter2 - should be different from DbAdapter, as that name is already used in the OC4J_SOA container.

  • Oracle Lite 10.3.0: how to find out the consumed size of a BLOB column

    Hi,
    we are developing an app that utilizes an Oracle Lite database and so far I have just been unable to find a reasonable way to determine the size of stored binary data.
    All the "usual" ways we aware of from "main" Oracle just don't seem to work with OLIte (ie SELECT dbms_lob.getlength(file_data) from APPS.CSL_LOBS) so how does one find out the size of blob objects?
    Thanks in advance

    Assuming BLOBs are not stored in-line:
    SQL> desc pm.print_media
    Name                                      Null?    Type
    PRODUCT_ID                                NOT NULL NUMBER(6)
    AD_ID                                     NOT NULL NUMBER(6)
    AD_COMPOSITE                                       BLOB
    AD_SOURCETEXT                                      CLOB
    AD_FINALTEXT                                       CLOB
    AD_FLTEXTN                                         NCLOB
    AD_TEXTDOCS_NTAB                                   PM.TEXTDOC_TAB
    AD_PHOTO                                           BLOB
    AD_GRAPHIC                                         BINARY FILE LOB
    AD_HEADER                                          PM.ADHEADER_TYP
    SQL> select  segment_name,
      2          index_name
      3    from  dba_lobs
      4    where owner = 'PM'
      5    and table_name = 'PRINT_MEDIA'
      6    and column_name = 'AD_COMPOSITE'
      7  /
    SEGMENT_NAME                   INDEX_NAME
    SYS_LOB0000051988C00003$$      SYS_IL0000051988C00003$$
    SQL> select  sum(bytes)
      2    from  dba_segments
      3    where owner = 'PM'
      4      and segment_name in (
      5                           'SYS_LOB0000051988C00003$$',
      6                           'SYS_IL0000051988C00003$$'
      7                          )
      8  /
    SUM(BYTES)
        262144
    SQL> SY.

  • Views in Oracle Lite on Win32 Client

    Hi,
    I've created an Oracle Forms application to work with Oracle Lite on the Win32 Client. When creating the application using wtgpack on the Mobile Server, I successfully created snapshots for the 7 tables in the database. After synchronization (msync), all 7 tables are created in the client's Lite database and all data are available. The Oracle Forms application works perfectly.
    BUT: I have to add a view now, a very simple one, joining 2 of the 7 tables. I created this view in the Server database, and tried to use wtgpack to force the view creation on the client's Lite database. When selecting Web-to-Go in wtgpack's "Available Platform" window, a "DDL" tab appears. But my application isn't Web-to-Go platform, but Win32 only. The "DLL" tab is not available when selecting Win32 as platform. How can I force wtgpack to add my view to the application?
    I tried to add the view definition to the "dlls.sql" file in the \repository\app\sql directory .. but the client doesn't get it.
    I tried to create a snapshot in wtgpack (because when using "import" it only shows tables, not views) and type the view definition there .. but the client doesn't get it too.
    Any ideas how the view can be created on the client's Lite database?
    Thanks in advance!
    Dirk

    Dirk
    You dont need to do anything on the lite database.
    Here are the steps for pulling the data from enterprise database.
    1. Install the client -win32 sdk on the client machine. This is used to access lite database because it installs msql, lite drivers etc.
    2. Create snapshots using wtgpack. You can create all the Enterprise database snapshots, views, sequences etc.
    3. Generate the Jar file using wtgpack
    4. Publish the jar file in the mobile server.
    5. Create some users and give access to this application.
    6. Access the server from ur machine: http://[mobileserveripaddress]/setup
    7. Download the Mobile Client for Web-to-Go
    8. Run the setup.exe
    9. Enter using the username, password given to access this application.
    10. Click sync on the menu
    It automatically creates the database and pulls all the data.
    You dont need to do anything.
    Access the database from msql like this:
    msql system/[password]@polite:[urdatabase]
    or
    msql system/[password]@polite:[DSN]
    DSN gets created automatically. check ur ODBC settings.(enter odbcad32 on ur command prompt to see these settings)
    Refer the documentation..sometimes its hazy but its easy once we do it...
    happy weekend....
    Yugandhar

  • MS SQL Server/VB6 to Oracle 8i using OBDC

    OMW,
    I presently connect to MS SQL in Visual Basic 6.0 using ODBC. I
    would like to connect to Oracle in the same manner. Does the OMW
    do this, and if so are there any things I should know before
    attempting to use it in this application? I have purchased and
    installed a trial version of Oracle 8i, but I am experiencing
    some slight difficulties in the way Oracle handles Resultsets
    (RDO Components) compared to MS SQL.
    thanks
    g
    null

    Gary,
    There is some information in the faq (reproduced below), showing
    how the application may not need to be changed.
    Some of the functionality provided by the intersolve driver is
    now available in the oracle 8.1.5.3 odbc driver.
    Turloch
    Oracle Migration Workbench team
    from the faq (shipped with the workbench):
    How are result sets/dynasets returned to the calling program?
    The Oracle Migration Workbench parser adds an extra argument
    of type REF CURSOR for result sets/dynasets. This type is
    understood and can be
    manipulated by both PL/SQL and Oracle JDBC. Oracle8 release
    8.0.5 ODBC drivers support REF CURSORs which means that the
    additional argument must
    be explicitly handled by the application, and the client
    application code must be changed. However, some third-party
    vendors such as Intersolv supply ODBC
    drivers for Oracle that support REF CURSORs and can, in
    addition, implicitly make use of REF CURSORs for using result
    sets/dynasets. Therefore, no
    change is required in the client application code. This is
    illustrated in the following examples of an MS SQL Server stored
    procedure and its equivalent Oracle
    package and stored procedure as generated by the Oracle
    Migration Workbench parser.
    MS SQL Server Stored Procedure
    CREATE PROCEDURE byroyalty
    AS
    select au_id from titleauthor
    GO
    Oracle8i Package and Stored Procedure
    PACKAGE BYROYALTYPkg AS
    TYPE RT1 IS RECORD (
    au_id titleauthor.au_id%TYPE
    TYPE RCT1 IS REF CURSOR RETURN RT1;
    END;
    PROCEDURE byroyalty(
    RC1 IN OUT byroyaltyPkg.RCT1)
    AS
    StoO_selcnt INTEGER;
    StoO_error INTEGER;
    StoO_rowcnt INTEGER;
    StoO_errmsg VARCHAR2(255);
    StoO_sqlstatus INTEGER;
    BEGIN
    OPEN RC1 FOR
    SELECT au_id FROM titleauthor;
    END byroyalty;
    The following example illustrates the typical ODBC code used
    by Intersolv to call the above MS SQL Server stored procedure.
    This code also works for the
    above Oracle8i package and stored procedure. Note that error
    handling must be added in a real application:
    SQLPrepare(...,'{call byroyalty()}',...)
    SQLExecute()
    SQLBindCol()
    SQLFetch()
    Comments:
    SQLPrepare(...,'{call byroyalty()}',...) is the ODBC SQL
    syntax used to execute stored procedures.
    SQLExecute()executes the stored procedure.
    SQLBindCol()assigns storage for result column 1 in the
    result set (au_id).
    SQLFetch() fetches the first record from the result set
    generated by the stored procedure.
    The following examples illustrate how to call the above MS
    SQL Server stored procedure with result sets/dynasets in Visual
    Basic using DAO and RDO on
    top of ODBC. This code works for Oracle8i packages and
    stored procedures if you use an Intersolv ODBC driver to
    understand Oracle REF CURSORs.
    DAO
    Private Sub Command2_Click()
    Dim sSql As String
    sSql = "{call byroyalty()}"
    'In Oracle ODBC driver use refcusor argument to get
    result set
    Set rCustomers = dbsServer.OpenRecordset(sSql,
    dbOpenDynamic)
    Text4 = rCustomers.Fields(0)
    theend:
    End Sub
    Please note, this example assumes that a DAO connection has
    been set up already.
    RDO
    Private Sub Command1_Click()
    StrSql = "{call byroyalty}"
    'in oracle odbc driver uses refcusor argument to get
    result set
    Set Ps = connx1.CreatePreparedStatement("PsTest",
    StrSql)
    Set Rs = Ps.OpenResultSet(rdOpenStatic
    Text3 = Rs!au_id
    Rs.Close
    End Sub
    Please note, this example assumes that an RDO connection has
    been set up already.
    Gary (guest) wrote:
    : OMW,
    : I presently connect to MS SQL in Visual Basic 6.0 using ODBC. I
    : would like to connect to Oracle in the same manner. Does the
    OMW
    : do this, and if so are there any things I should know before
    : attempting to use it in this application? I have purchased and
    : installed a trial version of Oracle 8i, but I am experiencing
    : some slight difficulties in the way Oracle handles Resultsets
    : (RDO Components) compared to MS SQL.
    : thanks
    : g
    Oracle Technology Network
    http://technet.oracle.com
    null

  • How to install the oracle lite mobile server?

    hi,every one!
    I follow the wizard of the oracle lite mobile server,then
    pop the window let me input the "host name""port"and "net server name",I have install oracle 9i,and establish a database named "oradb",establish an server named"oradb",the service can be listened and the port is "1521",but in the installation when i input the up numbers, it
    tells me that "invalid server name",how can i do?
    somebody that do me a favor tell me how to install the oracle 9i lite mobile server,it must be preciated!

    Andy,
    It sounds like you are not properly connecting to the back end Oracle instance when Lite attempts to install the Mobile Server Repository.
    Before attempting a re-install, why don't you try connecting to the same instance using SQL/Plus with the a connect string specifying hostname:1521:SID. If you are not able to connect you need to determine why.
    TNX,
    Phil

  • JDBC API ( JSR 169 ) Implementation for accessing oracle lite database

    We are developing an application using IBM J9 (CDC and Foundation Profile) on Pocket PC 2003 environment with SWT as the front end development. We are using Oracle Lite 9i as the Client database.
    We have sucessfully installed Oracle Lite and was able to create tables in the database.. however we could not find the JDBC API (java.sql and javax.sql packages which is JSR 169 JDBC 2.0/3.0) inorder to load the JDBC driver(OLITE40.jar) and access the oracle Lite Database on Pocket PC.
    IBM J9 Micro Environement does not have this support.
    I am wondering if Oracle provides this implementation.
    If not is there a get around.
    the client database is crucial to the application and i would really appreciate an answer to our problem.

    Check out
    http://groups.google.com/groups?hl=en&lr=&threadm=cjgl3g%248hhm%241%40news.boulder.ibm.com&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26group%3Dibm.software.websphere.studio.device-developer
    I have had the same issue before.
    Regards,
    Ron

  • Password Probs - Oracle 8 Navigator & Oracle Lite Designer

    I have read the thread entitled "Oracle Lite Designer -
    password?", but none of the suggestions have worked.
    Whether I try to run Oracle 8 Navigator or Oracle Lite Design,
    at some point I get an alert box that prompts "Please provide
    a database password?"
    I have looked through numerous sources and find nothing on
    this. Everything I try (that seems logical) for a password
    fails.
    Can anyone shed any light on this?
    I have the following installed:
    Windows 98
    Oracle 8i Lite v4.0.0.1.0
    Java 2 SDK, Standard Edition v1.2.2 for Windows 98/95/NT
    Java HotSpot Performance Engine v1.0.1 for Window 98/95/NT
    My PATH and CLASSPATH are set as follows in AUTOEXEC.BAT:
    set CLASSPATH=C:\orawin95\LITE\CLASSES\OLITE40.JAR
    PATH C:\jdk1.2.2\bin;C:\jdk1.2.2\jre\bin\hotspot;
    C:\orawin95\bin;%PATH%
    null

    Andrew (guest) wrote:
    : When I startup the Oracle Lite Designer app, it prompts me for
    a
    : password. It doesn't accept any valid user password or
    encrypted
    : password I supply. It works this way for both the default
    polite
    : database and any new one I try to create. Anybody run into
    this
    : issue or have a solution?
    : Also what an example of the syntax for a jdbc connection in
    Lite
    : Designer? When I enter something in that is obviously wrong it
    : doesn't give me any indication of what happened.
    : -Andrew
    Hello,
    I ran into that problem, too. My solution was to uninstall all
    Sun Java parts (JDK and JRE) and reinstall JDK1.2.2
    ("jdk1_2_2-win.exe")from scratch. My CLASSPATH includes only the
    standard classes you can find after a normal OLite4-Installation
    (see OLite4 installation notes or send my an email). And check
    your environment variables for references to old Java parts.
    Now Lite Designer runs with POLITE.odb and my own databases and
    yes - it is slow, but it is Java, so this should explain
    everything.
    What I do not know is where that password dialog came from.
    Sometimes it reappears, but not in my own databases.
    I hope that this will help you.
    Bye
    Martin Hanff.
    null

  • Trouble to connect to Oracle Lite with JDBC

    Hi.
    I have installed Oracle Lite 9i on my PC (Win 2000 Pro). Then I connected an HP Jornada 525 (WinCE 3.0) and with
    ActiveSync I installed the Oracle Mobile Client. Using MSql, I created some tables and did some data inserts - Oracle
    is working fine on the Pocket PC. The next step was to create an Java application that will run on the Jornada to
    connect to this database and edit its data. Here is the initial source code:
    import java.sql.*;
    public class JDBCEX {
    public void JDBCEX () {
    public static void main(String args[]) {
    Connection conn = null;
    Statement stmt = null;
    ResultSet retset = null;
    try {
    Class.forName("oracle.lite.poljdbc.POLJDBCDriver");
    conn = DriverManager.getConnection("jdbc:Polite:Polite","system", "manager");
    catch (Exception e) {
    System.out.println(e);
    System.exit(0);
    This works fine on my PC, but in the Pocket PC it gave me: java.sql.SQLException: Internal Error. This after I expanded
    the jar files, 'cause before it tells me that ther is no oljdbc40 on the shared library path. I adjusted the classpath on the
    registry, but i does not have any impact ... There is no file with name oljdbc40, only JARs olite40 and olitejdbc40. I installed
    olitejdbcpj40.jar, and setting this library leads to the same error above.
    What could be wrong? Do you have any tutorial or can you list all steps necessary to bring this working?
    Thanks

    If you're attempting to use the ODBC API directly, have you downloaded the ODBC SDK from Microsoft? That will include some sample code, which is a great starting point. So far as I'm aware, you shouldn't need to configure anything in Borland C++ that you don't have to configure in any other C++ compiler to use ODBC.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Bug in JOIN syntax? (oracle 9i)

    Hi,
    take these three tables:
    MASTER (id NUMBER, name VARCHAR2(10))
    DETAIL (id NUMBER, master_id NUMBER)
    SUBDETAIL (id NUMBER, detail_id NUMBER, name VARCHAR(10)
    When I perform this query:
    SELECT SUBDETAIL.id as did, MASTER.id as mid
    FROM SUBDETAIL
    JOIN DETAIL ON (SUBDETAIL.detail_id = DETAIL.id)
    JOIN MASTER ON (DETAIL.master_id = MASTER.id)
    WHERE
    name = 'joe';
    I would expect the parser to give me 'column ambiguously defined' (because the 'name' field from the whereclause is defined in both subdetail and master).
    However, it does not say that. Instead, it assumes that it should use the name field from master. This is confusing, as this could easily lead to mistakes (as it did in my application)
    Greetings,
    Ivo

    There seems to be a difference between the way Oracle resolves column names using the ANSI join syntax and Oracle's syntax. It appears that Oracle does not know about the columns, until it processes each join, and further, the last table joined seems to be sued to resolve nameing conflicts. Consider:
    SQL> SELECT * FROM master;
            ID NAME
             1 joe
    SQL> SELECT * FROM subdetail;
            ID  DETAIL_ID NAME
             1          2 fred
    SQL> SELECT * FROM detail;
            ID  MASTER_ID
             2          1
    SQL> SELECT subdetail.id AS did, master.id AS mid
      2  FROM subdetail
      3       JOIN detail ON (subdetail.detail_id = detail.id)
      4       JOIN master ON (detail.master_id = master.id)
      5  WHERE name = 'joe';
           DID        MID
             1          1
    SQL> SELECT subdetail.id AS did, master.id AS mid
      2  FROM subdetail
      3       JOIN detail ON (subdetail.detail_id = detail.id)
      4       JOIN master ON (detail.master_id = master.id)
      5  WHERE name = 'fred';
    no rows selected
    So, it is clearly going after master.name. However,
    SQL> SELECT subdetail.id AS did, master.id AS mid
      2  FROM detail
      3       JOIN master ON (master.id = master_id)
      4       JOIN subdetail ON (subdetail.detail_id = detail.id)
      5  WHERE name = 'joe'
    no rows selected
    But,
    SQL> SELECT subdetail.id AS did, master.id AS mid
      2  FROM detail
      3       JOIN subdetail ON (subdetail.detail_id = detail.id)
      4       JOIN master ON (master.id = master_id)
      5  WHERE name = 'joe'
           DID        MID
             1          1
    Old style syntax gives:
    SQL> SELECT subdetail.id AS did, master.id AS mid
      2  FROM subdetail, detail, master
      3  WHERE subdetail.detail_id = detail.id and
      4        detail.master_id = master.id and
      5        name = 'joe';
          name = 'joe'
    ERROR at line 5:
    ORA-00918: column ambiguously defined
    and note that
    SQL> SELECT subdetail.id AS did, master.id AS mid
      2  FROM subdetail
      3      JOIN master ON (detail.master_id = master.id)
      4      JOIN detail ON (subdetail.detail_id = detail.id)
      5  WHERE name = 'joe'
        JOIN master ON (detail.master_id = master.id)
    ERROR at line 3:
    ORA-00904: invalid column nameSo, in ANSI syntax, order matters, and whatever the syntax good testing matters.
    TTFN
    John

Maybe you are looking for