Query on Indices

Hi Bw guys,
                       One of process in process chain shows yellow colour? whats the reason behind this? how can we solve this?
                      Can we create indices on DSO in BI 7.0? IF YES How?
                      what is the decimal length for keyfig?
Could any one help me out.
Thanks.

Can we create indices on DSO in BI 7.0? IF YES How?
You can create secondary indices on the DSO through the change option for the DSO - go to change mode and then create your index and then transport the same
what is the decimal length for keyfig?
Depends on the type - decimals have 2 decimal places and float has more...
Also you could have got the information by searching the forums ... or google or  help.sap.com

Similar Messages

  • TIME-OUT error in BSAK select query(Progress Indicator is also used)

    Hi,
        In my report program one select query is there on BSAK table, which is as follows --
           SELECT BUKRS                                                     
                         BELNR
                        GJAHR
                        SHKZG
                        BSCHL
                        UMSKZ
                        LIFNR
                        EBELN
                        EBELP
                        WRBTR
                        DMBTR
                        XZAHL
                        REBZG
                       AUGBL
                       BLART
                       AUFNR
                       AUGDT
                       BUZEI FROM BSAK
                                  INTO TABLE IT_BSAK
                                  FOR ALL ENTRIES IN IT_BKPF1
                                   WHERE BUKRS = IT_BKPF1-BUKRS
                                                AND AUGDT = IT_BKPF1-BUDAT
                                                AND AUGBL = IT_BKPF1-BELNR
                                                AND BSCHL IN ('31' , '29', '26', '39', '25').
    I used Progress Indicator befor running this query and after this query also. But still It's giving me TIME-OUT error in this select query only.
      I run the same query for 10 records in IT_BKPF1 table, it runs perfectly. But when I run it for 1000 records it giving dump.
    And in actual bussiness my records are always more than 100 only.
    I also check the indexing. It having secondary indexing on this BUKRS, AUGDT, AUGBL fields. Then also it's giving error.
    so, How can I solve this dump..?? What could be the reason..??
    Thanks in advance...!!
    Regards,
    Poonam.

    Hi Poonam Patil,
    Try to provide BELNR and GJAHR in where condition...
    BKPF-DBBLG ==> BSAK-BELNR
    Also check
    BKPF-BLDAT ==> BSAK-AUGDT
    Check out above relation...
    If data is there in these fields of the table and both are matching then you can pass it and as they are in primary key of BSAK it will improve the performance...
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • SQL server query without indicating server name

    I am writing a query  in SSIS and  utilize servername everytime  but it drags every time
    I am authorized to  work in Development area and can indicate deve  server
    But   Senior  officer ask me  not to use Server name  and when  package goes to  production   query  can execute without  indicate  server name any idea 
    thank you very much.
    Vijay
    Vijay Patel

    I think you're using linked server in your queries based on your description.
    While working in SSIS you dont need linked server. You'll just add connection manager to connect to your dev server and database and then use it for your tasks. Inside your query you will just reference objects using schemaname.objectname convention.
    You will make servername and database name configurable by adding them as configurations (parameters in SSIS 2012 if you use project deployment). Then you will be able to pass values for configurations from outside based on variety of options like through
    XML file, from SQLServer table, Environment variables etc
    see
    http://www.mssqltips.com/sqlservertip/1405/sql-server-integration-services-ssis-package-configuration/
    http://nexxtjump.com/2013/01/14/ssis-2012-configuration-guide-part-1-introduction/
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Object types return hex characters with xsql:query

    How do I use xsql servlet to return an object which contains street address etc. as a character string and not a hexadecimal string. If I use the following ddl and implement the following xsql, I get the following results.
    CREATE TYPE address_objtyp AS object
    (street VARCHAR(30),city VARCHAR(30),state VARCHAR(2));
    CREATE SEQUENCE employees_seq START WITH 105 INCREMENT BY 1;
    CREATE TABLE employees(
    id NUMBER(4) CONSTRAINT emp_pkId PRIMARY KEY,
    first_name VARCHAR(30),
    last_name VARCHAR(30),
    address address_objtyp);
    INSERT INTO employees VALUES (
    103, 'Fred', 'Couples',
    address_objtyp('9201 Park St', 'Alexandria', 'VA'));
    <?xml version="1.0"?>
    <xsql:query null-indicator="yes" connection="demo"
    allow-client-style="yes" xmlns:xsql="urn:oracle-xsql">
    select * from employees
    </xsql:query>
    <?xml version="1.0" ?>
    - <ROWSET xsql-timing="20">
    - <ROW num="1">
    <ID>103</ID>
    <FIRST_NAME>Fred</FIRST_NAME>
    <LAST_NAME>Couples</LAST_NAME>
    - <ADDRESS>
    <STREET>0x39323031205061726B205374</STREET>
    <CITY>0x416C6578616E64726961</CITY>
    <STATE>0x5641</STATE>
    </ADDRESS>
    </ROW>
    </ROWSET>
    I'm using the most recent jdbc thin driver (ojdbc14.jar) that is for jdk 1.4. I'm using a 9.0.1 db, and I'm using xdk for java 9.2.0.3. So I thought that the thin driver is not capable, so I tried the oci driver, and find another set of problems.
    I get the following error:
    Oracle XDK Java 9.2.0.3.0 Production
    XSQL-017: Unexpected Error Occurred
    java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
    Now why does XDK insist to look for ocijdbc8 if I only have ocijdbc9.dll installed on my client? The config file only allows oci8 in the dburl specification, which is probably why XDK insists to look for ocijdbc8, but I CANNOT specify oci9, which would make sense to me, although it's most likely not a valid specification.
    <connection name="9ic">
    <username>scott</username>
    <password>tiger</password>
    <dburl>jdbc:oracle:oci8:@</dburl>
    <driver>oracle.jdbc.OracleDriver</driver>
    <autocommit>true</autocommit>
    </connection>
    And lastly documentation that comes with ojdbc14.jar indicates to now use a different specification for the jdbc thin driver. Instead of the usual
    <dburl>jdbc:oracle:thin:@host:port:sid</dburl>
    it recommends
    <dburl>jdbc:oracle:thin:@//host:port/service</dburl>
    however this does not work with XDK 9.2.0.3. Any ideas why not?
    By the way if I use SQL*Plus and select * from employees, I get the desired result in SQL*Plus, which suggests to me that I DO need the oci driver for XSQL Servlet. So how do I get XSQL Servlet 9.2.0.3 to use the oci 9 driver. I know how to set wrapper.path in the servlet config file to find ocijdbc9.dll, but XSQL Servlet still wants to find ocijdbc8.
    I sense that there is a bug hidden somewhere in the XDK kit.
    Steve.

    How do I use xsql servlet to return an object which contains street address etc. as a character string and not a hexadecimal string. If I use the following ddl and implement the following xsql, I get the following results.
    CREATE TYPE address_objtyp AS object
    (street VARCHAR(30),city VARCHAR(30),state VARCHAR(2));
    CREATE SEQUENCE employees_seq START WITH 105 INCREMENT BY 1;
    CREATE TABLE employees(
    id NUMBER(4) CONSTRAINT emp_pkId PRIMARY KEY,
    first_name VARCHAR(30),
    last_name VARCHAR(30),
    address address_objtyp);
    INSERT INTO employees VALUES (
    103, 'Fred', 'Couples',
    address_objtyp('9201 Park St', 'Alexandria', 'VA'));
    <?xml version="1.0"?>
    <xsql:query null-indicator="yes" connection="demo"
    allow-client-style="yes" xmlns:xsql="urn:oracle-xsql">
    select * from employees
    </xsql:query>
    <?xml version="1.0" ?>
    - <ROWSET xsql-timing="20">
    - <ROW num="1">
    <ID>103</ID>
    <FIRST_NAME>Fred</FIRST_NAME>
    <LAST_NAME>Couples</LAST_NAME>
    - <ADDRESS>
    <STREET>0x39323031205061726B205374</STREET>
    <CITY>0x416C6578616E64726961</CITY>
    <STATE>0x5641</STATE>
    </ADDRESS>
    </ROW>
    </ROWSET>
    I'm using the most recent jdbc thin driver (ojdbc14.jar) that is for jdk 1.4. I'm using a 9.0.1 db, and I'm using xdk for java 9.2.0.3. So I thought that the thin driver is not capable, so I tried the oci driver, and find another set of problems.
    I get the following error:
    Oracle XDK Java 9.2.0.3.0 Production
    XSQL-017: Unexpected Error Occurred
    java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
    Now why does XDK insist to look for ocijdbc8 if I only have ocijdbc9.dll installed on my client? The config file only allows oci8 in the dburl specification, which is probably why XDK insists to look for ocijdbc8, but I CANNOT specify oci9, which would make sense to me, although it's most likely not a valid specification.
    <connection name="9ic">
    <username>scott</username>
    <password>tiger</password>
    <dburl>jdbc:oracle:oci8:@</dburl>
    <driver>oracle.jdbc.OracleDriver</driver>
    <autocommit>true</autocommit>
    </connection>
    And lastly documentation that comes with ojdbc14.jar indicates to now use a different specification for the jdbc thin driver. Instead of the usual
    <dburl>jdbc:oracle:thin:@host:port:sid</dburl>
    it recommends
    <dburl>jdbc:oracle:thin:@//host:port/service</dburl>
    however this does not work with XDK 9.2.0.3. Any ideas why not?
    By the way if I use SQL*Plus and select * from employees, I get the desired result in SQL*Plus, which suggests to me that I DO need the oci driver for XSQL Servlet. So how do I get XSQL Servlet 9.2.0.3 to use the oci 9 driver. I know how to set wrapper.path in the servlet config file to find ocijdbc9.dll, but XSQL Servlet still wants to find ocijdbc8.
    I sense that there is a bug hidden somewhere in the XDK kit.
    Steve.

  • Analytical function Query

    Hi,
    I have below query with mentioned table and data setup. I always want the specific value (in this case 'CAR' or 'BIKE') record as result of this query and if i pass 'ALL' i need that record.
    So I use decode function and convert the 'ALL' value to NULL and made it to go last. so on the top always the specific value records will come and from the outer query i can get the 1st record alone.
    But the problem is when i run the inner query it works fine but along with outer query I am getting 'ALL' record as the result.
    My question is : is the ROW_NUMBER() fuction alias doesn't have scope outside of the inner query.
    Note : if i use rownum = 1 instead of rrn=1 it works fine.
    Is there anyother alternate solution or any bug in this query.
    Table1
    col1 col2
    A CAR
    A BIKE
    B ALL
    Query:
    SELECT indicator
    FROM (SELECT indicator, ROW_NUMBER() OVER( ORDER BY DECODE(col2, 'ALL', NULL) asc NULLS LAST) rrn
    FROM table1
    WHERE (col2 = <Input specific value>
    OR col2 = 'ALL')
    WHERE rrn = 1;
    Thanks in advance.

    you did not excatly what you ment to do:
    Naga wrote:
    So I use decode function and convert the 'ALL' value to NULL and made it to go last.You only specified the decode for 'ALL', but said nothiung about the other values. So just add a default.
    with table1 as (
    select 'A' col1, 'CAR' col2 from dual union all
    select 'A', 'BIKE' from dual union all
    select 'B', 'ALL' from dual )
    SELECT col1
    FROM (
    SELECT col1, ROW_NUMBER() OVER( ORDER BY DECODE(col2, 'ALL', NULL, 1) asc NULLS LAST) rrn
    FROM table1
    WHERE (col2 = 'CAR'
    OR col2 = 'ALL')
    WHERE rrn = 1
    COL1
    A    The "scope" of the row_number() is stable, so you can refer to it from the outer query.
    regards chris

  • How to include null values from DB

    Hi,
    I want to see all columns values even though it may contain null values. Right now all null columns are being suppresed by XSQL. Is there any way i can configure this.
    Thanks in advance
    Regards
    Veera

    use the following attribute in the <xsql:query> element (see the xsql help!):
    <xsql:query null-indicator = "yes">..
    </xsql:query>
    Indicates whether to signal that a column's value is NULL by including the NULL="Y" attribute on the element for the column. By default, columns with NULL values are omitted from the output. Valid values are 'yes' and 'no'.(Default value is 'no')

  • Open items and line items

    Hi Gurus,
    Can anyone explain me regarding what is opening item management and what is use and to which type of accounts we will give opening item management check box. Please give me an example.
    Thanks and Regards
    Balu

    Here is the SAP help text on the field 'Open Item Management'.  Should answer your query!
    Indicator: Open item management?
    Determines that open items are managed for this account.
    Use
    Items posted to accounts managed on an open item basis are marked as open or cleared. The balance of these accounts is always equal to the balance of the open items.
    Procedure
    Set up accounts with open item management if offsetting entries are to be assigned to the postings made to these accounts. Postings to these accounts represent incomplete transactions.
    Example:
    A goods receipt/invoice receipt (GR/IR) clearing account should be managed on an open item basis so that you can check at any time whether invoices have been received for the goods received for an order.
    Set up accounts without open item management if no offsetting entry is to be made against a posting to this account.
    Examples
    Accounts that are managed on an open item basis include:
    Clearing accounts:
    Bank clearing account
    Payroll clearing account
    Cash discount clearing account
    GR/IR clearing account
    Accounts that are not managed on an open item basis:
    Bank accounts
    Tax accounts
    Raw material accounts
    Reconciliation accounts
    These are managed implicitly using the subledger open item function.
    Profit and loss accounts
    Materials Management (MM) accounts posted with a posting key that has account type 'M'

  • Urgent :post xml for xsql difference with html form post

    Hi,
    We are developing an application to process xml request
    posted by external party. The requests arrive by
    http-post operation
    We developed and tested with an html-form.
    Now we encounter problems in testing with http-post
    The xsql page is processed correctly but
    insert only fixed text when formatting xml-data as input for
    the insert-request, string inserted is empty.
    Everything is by the book and html-forms works great.
    Is anybody else using xsql to insert xml data in the database on this version? Maybe can you help by looking into a testcase ? Issued a tar but am on terrible deadline
    so need help very soon.
    Details: HP-UX 11.11 Oracle 9.2.0.4 java1.4 ojdbc 1.4
    Tnx in advance,
    Jeroen

    Mark,
    Have an external partner which sends xml-requests.
    Have to read those, store them and process them.
    Idea is let them
    1)post the xml at a url where an xsql page is reading the xml
    2) transforming this for an insert into
    the database. The column is defined to store the complete xml-message.
    3) A trigger takes care of processing the stuff and preparing the output
    4) and a query in the xsql-page reads the output from an output table
    When developing and testing this with an html-form that posts the xml is works great.
    $ cat newclobins.xsql
    <?xml version="1.0"?>
    <page connection="demo" xmlns:xsql="urn:oracle-xsql" >
    <xsql:set-session-param name="id">
    select msgid.nextval from dual
    </xsql:set-session-param>
    <xsql:dml>
    delete cbs_msg_in where id={@id}
    </xsql:dml>
    <xsql:insert-request table="cbs_msg_in" column="id,msg" transform="cbsform_1.xsl"/>
    <data>
    <xsql:query null-indicator="yes">
    select msgid,msg from cbs_xml_out where msgid={@id}
    </xsql:query>
    </data>
    </page>
    $ cat cbsform_1.xsl
    <?xml version="1.0"?>
    <ROWSET xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0">
    <xsl:for-each select="request">
    <ROW>
    <MSG><xsl:value-of select="parameters/doc" /></MSG>
    <ID><xsl:value-of select="session/id" /></ID>
    </ROW>
    </xsl:for-each>
    </ROWSET>
    1) When using a tool like
    http://www.programmersheaven.com/articles/adrian/getpost/article.html it fails with
    No rows to modify -- the row enclosing tag missing. Specify the correct row enclosing tag.
    2) When using the commandline utility like
    xsql jeroen5.xsql posted-xml=test3.xml
    this works great when inserting plain text but not
    when inserting xml-format data into a column
    So problem 1 is why external tools like above or my partner that uses .net to do something similar gives this strange error?
    Problem nr 2 is should I stick to just the data in xml and forget about storing the xml-formatted data?
    Hope you can help because I am getting quite desparate here.
    Regards,
    Jeroen

  • XSQL Using bind params with sql LIKE clause

    I am unable to use a bind-param with the LIKE clause in a SELECT statement.
    eg call .../temp.xsql?name=N
    XSQL query is this:
    <xsql:query max-rows="-1" bind-params="name">
    SELECT last_name
    FROM emp
    WHERE last_name LIKE '?%'
    </xsql:query>
    I have tried a few combinations so far with no success eg:
    WHERE last_name LIKE '{@name}%'
    WHERE last_name LIKE ?||%
    Any ideas?

    I highly recommend using XSQL's real bind variable feature wherever you can. You can read about it in the XSQL Online Documentation (Search for the "Using Bind Variables" section).
    Using this feature is more performant and more secure than using textual substitution variables.
    Here's what your page looks like using textual substitution:
    <page connection="UTD4" xmlns:xsql="urn:oracle-xsql">
      <xsql:query null-indicator="yes" >
        SELECT * FROM TC_HL7_SEG WHERE SEGMENT_CODE LIKE '{@code}%'
      </xsql:query>
    </page> .
    And here's what it would look like using real bind variables:
    <page connection="UTD4" xmlns:xsql="urn:oracle-xsql">
      <xsql:query null-indicator="yes" bind-params="code">
        SELECT * FROM TC_HL7_SEG WHERE SEGMENT_CODE LIKE ?||'%'
      </xsql:query>
    </page> .
    Using real bind variables allows the database to avoid reparsing the SQL statement everytime, which improves performance.
    Steve Muench
    JDeveloper/BC4J Development Team
    Author, Building Oracle XML Applications

  • Too much output fails xsql response

    We have a strange problem
    I post a XML message as a request to query some data . The server reponses well if the amount of data to respond is not too much. If amount the data exceeds a certain limit we get an error.
    Flow we use:
    for development we use an html form,
    request goes to the apache webserver,
    calls an xsql page,
    page does an insert into a table with a clob column
    trigger on this table calls a procedure to process
    the request -> output is prepared in a new table in xml-format
    page does a query on the output table to prepare the answer
    Details: Oracle 9.2.0.4 HP-UX 11.11 XDK 9.2.0.6
    The PL-sql to prepare the response:
    procedure ResponseContractsList
    is
    dum clob;
    CURSOR cResponseContractsList
    IS
    select XMLELEMENT("CBSMessage", XMLATTRIBUTES('http://www.w3.org/2001/XMLSchema' as "xmlns:xsd" , 'http://www.w3.org/2001/XMLSchema-instance' as "xmlns:xsi" ,'http://www.oracle.com/CBSResponse.xsd' as "xsi:noNamespaceSchemaLocation" ),
    XMLELEMENT("Header",
    XMLELEMENT("Version", '1'),
    XMLELEMENT("Guid", '6BC096BB-0CE6-11D1-BAAE-00C04FC2E20D'),
    XMLELEMENT("Error", 0)
    XMLELEMENT("Response",
    XMLELEMENT("Type", 'ResponseContractList'),
    XMLELEMENT("RequestID", 1),
    XMLELEMENT("Error", 0),
    (select XMLAGG(
    XMLELEMENT("ResponseContractList",
    (select XMLAGG(
    XMLELEMENT("Object",
    XMLELEMENT("ObjectID", OBJ_CD),
    XMLELEMENT("ObjectName", OBJ_NM),
    XMLELEMENT("ObjectRegion", rtrim(REG_NM)),
    (select XMLAGG(
    XMLELEMENT("Contract",
    XMLELEMENT("ContractID", CNTR_CD),
    XMLELEMENT("ContractName", nvl(OBJ_ECD,' ') || ' ' || OBJ_NM),
    XMLELEMENT("ContractCode", nvl(CNTR_ECD,' ')),
    XMLELEMENT("StartDate", to_char(min(RSTR_DTM_TOT),'yyyy-mm-dd')),
    XMLELEMENT("EndDate", to_char(max(RSTR_DTM_TOT),'yyyy-mm-dd')),
    XMLELEMENT("SupplierCode", OBJ_TARA_NR)
    from CNTR,
    CNTR_OBJ,
    RSTR,
    MOD
    where CNTR_OBJ_OBJ = OBJ_CD
    and CNTR_OBJ_CNTR = CNTR_CD
    and CNTR.STATUS_RIJ = '1'
    and MOD_CNTR = CNTR_MOD
    and MOD_TP in (2,4)
    and RSTR_MOD = MOD_CD
    and MOD_ORIG_CD = CNTR_OBJ_MOD
    and RSTR_DTM_TOT >= sysdate
                   and cntr_med=231
    group by CNTR_CD, OBJ_ECD, CNTR_ECD, OBJ_TARA_NR
    from contracten.OBJ,
    ACC_ADR,
    NAW,
    REG
    where OBJ_TARA_NR is not null
    and ACC_ADR_OBJ = OBJ_CD
    and NAW_CD = ACC_ADR_NAW
    and REG_LAND = NAW_LAND
    and REG_STRK = NAW_STRK
    and REG_CD = NAW_REG
    and rownum<61
    from dual
    ) as "CBSResponse"
    from dual;
    BEGIN
    OPEN cResponseContractsList;
    FETCH cResponseContractsList into waarde;
    CLOSE cResponseContractsList;
    delete dummy;
    insert into dummy (MSG) values (waarde);
    END
    Will work , but if you take rownum <62 then
    we get the following error
    Posting the xml
    <?xml version="1.0" encoding="utf-8"?>
    <CBSMessage xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.oracle.com/CBSrequest2.xsd">
    <Header>
    <Version>1</Version>
    <Sender>CBS</Sender>
    <Receiver>IRIS</Receiver>
    <Guid>6BC096BB-0CE6-11D1-BAAE-00C04FC2E20D</Guid>
    </Header>
    <Request>
    <Type>RequestContractList</Type>
    <RequestID>26</RequestID>
    <Order>6</Order>
    <RequestContractList/>
    </Request>
    </CBSMessage>
    Leads to a
    OUTPUT WHEN THERE is too much data
    - <page>
    <xsql-status action="xsql:insert-request" rows="1" />
    - <data>
    <ERROR>oracle.xml.sql.OracleXMLSQLException: End tag does not match start tag 'ObjectRegion'.</ERROR>
    </data>
    </page>
    XSQL
    <?xml version="1.0"?>
    <page connection="demo" xmlns:xsql="urn:oracle-xsql" > <xsql:insert-request table="testxml" column="msg" transform="jeroeninsform.xsl"/> <data> <xsql:query null-indicator="yes" > select msg from dummy
    </xsql:query>
    </data>
    </page>
    Hope you can help because are getting desperate
    Tnx,
    Jeroen

    About a week ago I wrote about problems we encountered during development when
    an xsql page does an insert, insert fires a trigger, trigger calls procedure to process
    data, xsql page does a select from output table to return
    We had 2 problems:
    1) ORA-00600: internal error code, arguments: [qmxsqLoadNS], [], [], [], [], [], [], [] Current SQL statement for this session:
    2) Output came not beyond a certain limit
    Problem 1 is recognized as bug by Oracle Support in 9.2.0.4, 9.2.05 and 9.2.0.6 Solved in 10.2 Unknown what is fixed
    Bug is described in 3872147 . I'm still trying to convince them to do something about it because in 3 weeks we have go live with this
    software and my alert is full with this ora-0600 Bug is definitely caused by the trigger
    Problem 2 is solved, this was caused by getting output through a xmltype column which in xsql relates to
    a plsql string with size limitation on 64k
    Regards,
    Jeroen

  • MSSQL datatypes that return NullPointerException

    Using XSQLServlet with BEA Systems type 4 jDriver for SQL Server 7.0 Version: 5.1.0, I get the following error:
    oracle.xml.sql.OracleXMLSQLException: java.lang.NullPointerException
    while trying to access the following MSSQL Server datatypes which have non null values:
    1. binary
    2. image
    3. sql_variant
    4. timestamp
    5. uniqueidentifier
    6. varbinary
    The problem is NOT with the jDriver for SQL Server because I've built a class that returns non null data for all datatypes. The problem must lie with XSQL Servlet.
    To test, I use the following:
    xsql file:
    <xsql:query null-indicator="yes"
    connection="{@connection}"
    max-rows="{@max-rows}"
    xmlns:xsql="urn:oracle-xsql"> {@sql}
    </xsql:query>
    url:
    http://aetius/xsql/demo/query.xsql?connection=bea&sql=select+a,c,d,e+from+TYPES
    I'll delete column names, eg column b which is a binary data type, from the above URL to eliminate the java.lang.NullPointerException error.
    I've created the TYPES table to contain every MSSQL datatype.
    CREATE TABLE [dbo].[TYPES] (
    [a] [bigint] NULL ,
    [binary] (10) NULL ,
    [c] [bit] NULL ,
    [d] [char] (10) NULL ,
    [e] [datetime] NULL ,
    [f] [decimal](18, 0) NULL ,
    [g] [float] NULL ,
    [h] [image] NULL ,
    [int] NULL ,
    [j] [money] NULL ,
    [k] [nchar] (10) NULL ,
    [l] [ntext] NULL ,
    [m] [numeric](18, 0) NULL ,
    [n] [nvarchar] (10) NULL ,
    [o] [real] NULL ,
    [p] [smalldatetime] NULL ,
    [q] [smallint] NULL ,
    [r] [smallmoney] NULL ,
    [s] [sql_variant] NULL ,
    [t] [text] NULL ,
    [timestamp] NULL ,
    [v] [tinyint] NULL ,
    [w] [uniqueidentifier] NULL ,
    [x] [varbinary] (50) NULL ,
    [y] [varchar] (50) NULL
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
    BTW the MSSQL Server datatypes that DO work with XSQL Servlet:
    1. bigint
    2. bit
    3. char
    4. datetime
    5. decimal
    6. float
    7. int
    8. money
    9. nchar
    10. ntext
    11. numeric
    12. varchar
    13. real
    14. smalldatetime
    15. smallint
    16. smallmoney
    17. text
    18. tinyint
    19. varchar
    Steve.

    Thanks for the quick response.
    The problem does NOT seem to be in the XML SQL Utility. In other words using an instance of OracleXMLQuery in my data type test Java program, I have a successful output including the data types in question.
    Here is the Java program:
    package examples.jdbc.mssqlserver4;
    import java.io.*;
    import java.sql.*;
    import java.util.Properties;
    import oracle.xml.sql.query.OracleXMLQuery;
    public class Steve
    public static void main(String [] args)
    Properties props = new Properties();
    props.put("user", "lemkau");
    props.put("password", "lemkau");
    props.put("server", "Northwind@Aetius:1433");
    Driver myDriver = null;
    try
    String driverName = "weblogic.jdbc.mssqlserver4.Driver";
    String url = "jdbc:weblogic:mssqlserver4";
    // String driverName = "com.inet.tds.TdsDriver";
    // String url = "jdbc:inetdae7:aetius:1433";
    myDriver = (Driver) Class.forName(driverName).newInstance();
    Connection conn = myDriver.connect(url, props);
    try
    Statement stmt = conn.createStatement();
    stmt.execute("select * from TYPES");
    ResultSet rs = stmt.getResultSet();
    if(rs!=null)
    OracleXMLQuery qry = new OracleXMLQuery(conn, rs);
    String xmlString = qry.getXMLString();
    System.out.println(" OUPUT IS:\n"+xmlString);
    while (rs.next()) {
    System.out.println("bigint" + " - " + rs.getString("a"));
    System.out.println("binary" + " - " + rs.getString("b"));
    System.out.println("bit" + " - " + rs.getString("c"));
    System.out.println("char" + " - " + rs.getString("d"));
    System.out.println("datetime" + " - " + rs.getString("e"));
    System.out.println("decimal" + " - " + rs.getString("f"));
    System.out.println("float" + " - " + rs.getString("g"));
    System.out.println("image" + " - " + rs.getString("h"));
    System.out.println("int" + " - " + rs.getString("i"));
    System.out.println("money" + " - " + rs.getString("j"));
    System.out.println("nchar" + " - " + rs.getString("k"));
    System.out.println("ntext" + " - " + rs.getString("l"));
    System.out.println("numeric" + " - " + rs.getString("m"));
    System.out.println("nvarchar" + " - " + rs.getString("n"));
    System.out.println("real" + " - " + rs.getString("o"));
    System.out.println("smalldatetime" + " - " + rs.getString("p"));
    System.out.println("smallint" + " - " + rs.getString("q"));
    System.out.println("smallmoney" + " - " + rs.getString("r"));
    System.out.println("sql_variant" + " - " + rs.getString("s"));
    System.out.println("text" + " - " + rs.getString("t"));
    System.out.println("timestamp" + " - " + rs.getString("u"));
    System.out.println("tinyint" + " - " + rs.getString("v"));
    System.out.println("uniqueidentifier" + " - " + rs.getString("w"));
    System.out.println("varbinary" + " - " + rs.getString("x"));
    System.out.println("varchar" + " - " + rs.getString("y"));
    ResultSetMetaData md = rs.getMetaData();
    // System.out.println("Number of columns: " + md.getColumnCount());
    for (int i = 1; i <= md.getColumnCount(); i++) {
    String name = md.getColumnName(i);
    // System.out.println("Column Name: " + name);
    // System.out.println("Column Length: " + md.getColumnDisplaySize(i));
    stmt.close();
    conn.close();
    catch(SQLException se)
    System.out.println("An exception was raised " + se);
    catch(Exception e)
    System.out.println("An exception was raised " + e);
    Here is the result:
    "C:\Program Files\Oracle\JDeveloper 3.1.1.2\java1.2\jre\bin\java" -XXdebug -mx50m -classpath "C:\Program Files\Oracle\JDeveloper 3.1.1.2\myclasses;C:\Program Files\Oracle\JDeveloper 3.1.1.2\lib\jdev-rt.zip;C:\Program Files\Oracle\JDeveloper 3.1.1.2\lib\connectionmanager.zip;C:\weblogic\mssqlserver4v70\classes;C:\weblogic\mssqlserver4v70\license;C:\xsql\lib\Sprinta2000.jar;C:\xsql\lib\oraclexsql.jar;C:\xsql\lib;C:\xsql \lib\xsu12.jar;C:\xsql\lib\oraclexmlsql.jar;C:\xsql\lib\classes12.zip;C:\xsql\lib\xmlparserv2.jar;C:\Program Files\Oracle\JDeveloper 3.1.1.2\java1.2\jre\lib\rt.jar" examples.jdbc.mssqlserver4.Steve
    System Output: OUPUT IS:
    System Output: <?xml versi on = '1.0'?>
    System Output: <ROWSET>
    System Output: <ROW num="1">
    System Output: <a>1234567890</a>
    System Output: <b>0904D000340000000000</b>
    System Output: <c>true</c>
    System Output: <d>abc </d>
    System Output: <e>2000-10-25 09:41:20.34</e>
    System Output: <f>9</f>
    System Output: <g>9.2</g>
    System Output: <h>0904D000340000000000</h>
    System Output: <i>9</i>
    System Output: <j>18.50000000</j>
    System Output: <k>ALFKI </k>
    System Output: <l>Soft drinks, coffees, teas, beers, and ales</l>
    System Output: <m>9</m>
    System Output: <n>hello</n>
    System Output: <o>9.199999809265137</o>
    System Output: <p>2000-10-25 09:41:00.0</p>
    System Output: <q>9</q>
    System Output: <r>9.20000000</r>
    System Output: <t>Soft drinks, coffees, teas, beers, and ales</t>
    System Output: <u>00000000000002B1</u>
    System Output: <v>1</v>
    System Output: <w>1AFFD361F32ED04996AA62054E954531</w>
    System Output: <x>0904D000340000000000</x>
    System Output: <y>abc</y>
    System Output: </ROW>
    System Output: </ROWSET>
    System Output:
    All previously questionable data types listed below using an URL in a browser are now OK using OracleXMLQuery in a Java program.
    data type column name
    1. binary b
    2. image h
    3. sql_variant s
    4. timestamp u
    5. uniqueidentifier w
    6. varbinary x
    Does this help pinpoint the problem?
    null

  • How to imporve perofmance

    Hi,
    I am having insert query with select as mentioned below which takes long time to execute due to huge data.
    Insert into compaign_pipe(x1,x2,x3,..............etc)
    select rownum,a.* from (
    select * from  lead_opty   where ....;
    union all
    select * from gom_fcrm    where....
    union all
    select * from compaign_lead  where...
    union all
    select * from claims_lead      where
    ) a;
    can you please suggest how can i improve the performance
    or
    if i try same as mentioned below will it increase the performance
    Insert into compaign_pipe(x1,x2,x3,..............etc)
    select * from  lead_opty   where ....;
    Insert into compaign_pipe(x1,x2,x3,..............etc)
    select * from  gom_fcrm  where ....;
    Insert into compaign_pipe(x1,x2,x3,..............etc)
    select * from  compaign_lead where ....;
    Insert into compaign_pipe(x1,x2,x3,..............etc)
    select * from  claims_lead where ....;
    Thanks and regards,
    Ibrahim Sayyed.

    I am having insert query with select as mentioned below which takes long time to execute due to huge data.
    I suggest that you don't do anything until you determine that you actually have a performance issue.
    Then don't do anything until you determine what the cause of that issue is.
    You are inserting into ONE table and get data from FOUR tables using FOUR queries.
    The INSERT could be the issue - there might be a lot of indexes, referential constraints or triggers.
    Any, or all, of the four queries could be the issue - any of them might be using poor execution plans due to lack of statistics, lack of indexes, etc.
    You need a LOT more information before you start trying to 'solve' the problem.
    IMHO the simplest way to start is to forget the INSERT for now and work with each of the SELECT queries one at a time.
    1. Create an execution plan for one of the queries and see if you spot any possible issues.
    2. Execute the query and see how long it takes to execute.
    3. Tune the query as indicated by the execution plan or the sql tuning advisor.

  • How to hide value of characteristic in CV04N

    Hi,
    Regarding  a characteristic connected to a class in class type 017.   The characteristic has a value with sensitive information that should not be seen by all that have access to the trx CV04N or display document. We have set up the authorisation role to reflect the document type.
    I have searched the forum without finding any solution to this. I have tested:
    - "No display" tick in the definition of the characteristic. This only prevents the characteristic to be shown in input screen.
    - "Display Relevant" in the definition of hte class. This does not prevent the characteristic to show eather.
    The text from F1:
    "Display Relevant
    This indicator shows that a characteristic is to be displayed.
    In applications where you display characteristics, you can query this indicator internally in the program, so that only the display-relevant characteristics are shown. If no characteristics have the Display-relevant indicator, all characteristics are displayed."
    Why does this not work in DMS trx CV04N? Is this an error in the system?
    Or do I have to use the solution with authorisation mentioned on the Class? (under tab "Basic data")  Authorisation groups BGRSE to solve this?
    Text form F1:
    "Authorization group for finding objects
    Authorization key: determines whether a user is allowed to use this class to find objects.
    This authorization must be defined in the user master record. The authorization object is BGRSE."
    Please advice
    Thanks
    Ellen

    Just for others information, from OSS:
    after doing further analyses regardin the mentioned behavior I found
    out that the mentioned 'Display relevant' flag is only used for making
    the characteristic visible/invisible on the selection screen of search
    transactions like CV04N for example. But this flag is not mentioned for
    the creation process of the ALV result list.
    A possible solution could be to use the BADI DOCUMENT_MAIN01 with method AFTER_SEARCH_DATA. Maybe you can achieve it to influence the layout behavior with a special check."
    BR
    Ellen

  • Urgent format errors

    Am busy with development of a http post xml messages
    exchange. We have the problem that the messages returned
    are not formatted correctly.
    1) http post calls xsql
    2) xsql does an insert into a table
    3) triggers processes the rows and prepare output in a different table, output is prepared by pl/sql in xml-format
    4) xsql retriieves the output , tried to format this but
    don't seem to make a differnece
    xsql page:
    <?xml version="1.0"?>
    <page connection="cbs" xmlns:xsql="urn:oracle-xsql" >
    <data>
    <xsql:insert-request table="cbs_msg_in"
    column="version, sender, receiver, sender, guid, type, requestid, ordernr, id"
    transform="cbssupp2.xsl">
    </xsql:insert-request>
    <xsql:set-page-param name="id">
    select max(id) from cbs_msg_in
    </xsql:set-page-param>
    <xsql:dml>
    begin
    driverxmlprocs2({@id});
    end;
    </xsql:dml>
    <?xml-stylesheet href="xmlout.xsl" type="text/xsl"?>
    <xsql:query null-indicator="yes">
    select msg from cbs_xml_out where msgid={@id}
    </xsql:query>
    </data>
    </page>
    Stylesheet:
    $ cat xmlout.xsl
    <?xml version="1.0"?>
    <!-- empToExcel.xsl -->
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" disable-output-escaping="no" media-type="text/xml"/>
    <xsl:template match="/">
    <xsl:copy-of select="." />
    </xsl:template>
    </xsl:stylesheet>
    Result:
    &lt;EndDate&gt;2004-11-05&lt;/EndDate&gt;&lt;SupplierCode&gt;
    Browser looks ok but with .net app it doesn't
    Regards,
    Jeroen

    Maybe this should go in the Reports forum, but alas...
    It could be that the X application (i.e. reports server) cannot connect or use the X-server's display. Did you apply the 'xhost +' command to allow reports server to use the display (set by DISPLAY variable)? This shoud all be in the "runtime environment" of the server.
    Hth
    Fredrik

  • Cisco CDN (Alarm 550001 (SEKeepalive) SE keepalive timed-out )

    Dear Cisco Experts,
    My systems as below:
    CDSM, SR: version 3.2.1
    SE1: version 3.2.1
    SE2: version 2.6.3
    Status (all devices): online (from CDSM: cms connectivity from all devices are OK)
    SE1 can work normally, but SE2 doesn't work, Alarm:"SE SE2 keepalive timed-out" from CDSM.
    log from SR:
    192.168.11.0/24 20 SE2 (Down, Static)
    192.168.8.0/24 20 SE1 (Operational, Static) (Load 1%, Device Threshold not reached)
    0.0.0.0/0 10 SE1 (Operational, Static) (Load 1%, Device Threshold not reached)
    0.0.0.0/0 10 SE2 (Down, Static)
    I found infor from cisco about this alarm:
    Alarm 550001 (SEKeepalive) SE keepalive timed-out or SE is not reachable.
    Explanation    Either the SR has not received keepalives from the SE, or the SE is not reachable.
    Recommended Action    Check the cables connected to the network device and the SE.
    I'm sure about network connectivy is OK, problem should be from Version mismatch between SE and SR, Could you help me for this?
    Many thanks and rgds.

    Hi Long,
    The alarm message that you are querying is indicating the keepalive between SR and SE has timed out.
    There is UDP based keepalive messages sent from each SE to all SR periodically, by default it is 2 seconds. It is configurable via CDSM GUI. The destination port is 2323. This message has SE load information inside.
    To check the keepalive message, you can execute following command on SR
    SR# tcpdump udp port 2323
    To debug keepalive, you can enable
    SR#debug service-router keepalive
    Then check service router errorlog under /local1
    SR#type-tail errorlog/service_monitor_errorlog.current follow
    check any error message popup. quit by Ctrl+C, then undebug all
    SR#undebug all
    Between 2.6.3 and 3.2.1, there is major difference in the format of packet. We do not recommend you to mix the version in production network. If you are requesting urgent assistance because of the service impact by this alarm, please do contact Cisco TAC support.
    Best Regards,
    Richard Xie

Maybe you are looking for

  • PL/SQL :ORA-04052 with Database link

    i have created a database link in my producation database as following CREATE PUBLIC DATABASE LINK <NAME> CONNECT TO <USER> IDENTIFIED BY <P/W> USING <CONNECT STRING OF TARGET DATABASE oracle version 9.0.2.8 OS : Windows 2003 EE R2 SP2 Using oracle f

  • How can I re-arranging the Email display order?

    I have multiple E-mail accounts which all display nicely under MAIL / MAILBOXES. I'd like to re-arrange their display order in "Inboxes" and "Accounts" which both scroll within the same screen. Is there any way to do this other than delete them all a

  • I cant get itunes to update and when trying to download the new version it says error i dont want to lose the music i already have

    help i tried to update my itunes last night and it wouldnt update now my itunes wont open it says theres an error so i have tried to download the new itunes and it still says error i dont want to lose what music i already have on my itunes

  • Blank positions views in org unit hierarchy

    Nakisa version: OrgChart 4.1 Hi all, I wanted to replace in views pos_standard and pos_portrait the position name by the position short. To achieve this, I made the template field named 'Position' point to Data element field POSITION_SHORT, instead o

  • Problems instantiating javax.xml.ws.Service object

    i'm at a total loss here: on my development machine everything works fine. when i switch to our test production server, it blows up. My dev machine is OS X 10.5 and test production machine is OS X 10.6. Both are using Java 1.5 and Tomcat 6.0.x... The