SQL dynamic query returning (problem with list of value)

Hi, I'm having trouble with my query. I want to make where statement based on my selectlist, but the problem is that I couldnt write the correct string in my where condition.
:P61_STATUS has this following display, return value
Bewerber     Bewerber     
PRA_Kandidat     PRA_Kandidat          
abgelehnt     abgelehnt          
angenommen     angenommen          
Thema     Thema     
angemeldet     angemeldet          
abgegeben     abgegeben          
abgeschlossen     abgeschlossen          
bestätigt     bestätigt
DECLARE
  q varchar2(4000);
  list_betreuer htmldb_application_global.vc_arr2;
  list_semester htmldb_application_global.vc_arr2;
  list_status htmldb_application_global.vc_arr2;
BEGIN
-- variable to store the list
list_betreuer := HTMLDB_UTIL.STRING_TO_TABLE(:P61_BETREUER);
list_semester := HTMLDB_UTIL.STRING_TO_TABLE(:P61_SEMESTER);
list_status := HTMLDB_UTIL.STRING_TO_TABLE(:P61_STATUS);
-- Query begins
q:= 'select p1.name, p1.vorname , a1.tel, a2.tel, ';
q:= q||'ab.thema, ab.status, ab.typ, s.bezeichnung, p2.name ';
q:= q||'from person p1, person p2, adresse a1, adresse a2, ';
q:= q||'zuordnungp_a zpa1,zuordnungp_a zpa2, ';
q:= q||'abschlussarbeit ab, semester s ';
q:= q||'WHERE ab.SEMESTER = s.OBJECTID (+) ';
q:= q||'AND ab.STUDENT = p1.OBJECTID (+) ';
q:= q||'AND ab.BETREUER = p2.OBJECTID (+) ';
q:= q||'and p1.objectid = zpa1.person (+) ';
q:= q||'and zpa1.adresse  = a1.objectid (+) ';
q:= q||'and zpa1.art (+)= ''Privat'' ';
q:= q||'and p1.objectid = zpa2.person (+) ';
q:= q||'and zpa2.adresse  = a2.objectid (+) ';
q:= q||'and zpa2.art (+)= ''Geschäft'' ';
-- Loop for betreuer list
FOR i in 1..list_betreuer.count
LOOP
    IF i = 1 THEN
    q:= q||'AND (ab.betreuer = '||list_betreuer(i);
    ELSE
    q:= q||' OR ab.betreuer  = '||list_betreuer(i);
    END IF;
END LOOP; if (list_betreuer.count>0)THEN q:= q||')'; END IF;
  -- Loop for semester list
FOR i in 1..list_semester.count
LOOP
    IF i = 1 THEN
    q:= q||'AND (ab.semester = '||list_semester(i);
    ELSE
    q:= q||'OR ab.semester = '||list_semester(i);
    END IF;
END LOOP; if (list_semester.count>0)THEN q:= q||')'; END IF;
-- Loop for status list
FOR i in 1..list_status.count
LOOP
    IF i = 1 THEN
    q:= q||'AND (ab.status = '||list_status(i)||'';
    ELSE
    q:= q||'OR ab.status = '||list_status(i)||'';
    END IF;
END LOOP; if (list_status.count>0)THEN q:= q||')'; END IF;
  htp.p(q);
return q;
END;result
select p1.name, p1.vorname , a1.tel, a2.tel, ab.thema, ab.status, ab.typ, s.bezeichnung, p2.name from person p1, person p2, adresse a1, adresse a2, zuordnungp_a zpa1,zuordnungp_a zpa2, abschlussarbeit ab, semester s WHERE ab.SEMESTER = s.OBJECTID (+) AND ab.STUDENT = p1.OBJECTID (+) AND ab.BETREUER = p2.OBJECTID (+) and p1.objectid = zpa1.person (+) and zpa1.adresse = a1.objectid (+) and zpa1.art (+)= 'Privat' and p1.objectid = zpa2.person (+) and zpa2.adresse = a2.objectid (+) and zpa2.art (+)= 'Geschäft' AND (ab.status = abgegeben) the problem is in this statement
q:= q||'AND (ab.status = '||list_status(i)||'';that statement produce this following statement
ab.status = abgegebenbut what I need is this statement
ab.status = 'abgegeben';how can I achieve this statement?
thank you very much

raitodn wrote:
ah ok , I was confused with this q:= q||'AND (ab.status = '''||list_status(i)||'''';I think I get it now
basically stop the string and write double quotes before the variable
'AND (ab.status = ' + ''||list_status(i)||'' + ''No, more like "wherever I want a single quote within a string, I put two single quotes instead and that tells oracle it's a quote and not the end of the string".
q:= q||'AND (ab.status = '''||list_status(i)||'''';
       ^                 ^^^                  ^^^^
       |                 |/|                  ||/|
       |                 | |                  || \-- single quote indicates end of string
       |                 | |                  ||
       |                 | |                  |\-- two quotes indicate a single quote required
       |                 | |                  |
       |                 | |                  \-- single quote to open a new string
       |                 | |
       |                 | \-- single quote indicates end of string
       |                 |
       |                 \-- two quotes indicate single quote required
       \-- Open String

Similar Messages

  • Problem with list of value (LOV) in BI publisher.

    I have created a report in BI publisher with two parameters (tier, accnum) and two list of value (LOV) for the menu to select from a drop down list.
    while crateing the parameters I selected the options: *1) can select all and all value passed*
    but in the view when I select 'ALL' option from the list, its showing the following error message:
    ORA-00933: SQL command not properly ended.
    but if I select a particular tier and accnum it is worikg fine.
    I have used the following query in the dataset:-
    select ACCOUNT.ACCOUNT_NUM as ACCOUNT_NUM,
    ACCOUNT.LAST_BILL_DTM as LAST_BILL_DTM,
    ACCOUNT.ACCOUNT_NAME as ACCOUNT_NAME,
    ACCOUNTATTRIBUTES.DISTRICT_ID as DISTRICT_ID,
    ACCOUNTATTRIBUTES.TIER as TIER
    from GEN_OWNER.ACCOUNTATTRIBUTES ACCOUNTATTRIBUTES,
    GEN_OWNER.ACCOUNT ACCOUNT
    where ACCOUNT.ACCOUNT_NUM=ACCOUNTATTRIBUTES.ACCOUNT_NUM
    and ACCOUNTATTRIBUTES.TIER=:tier
    and ACCOUNTATTRIBUTES.ACCOUNT_NUM =:accnum

    and ACCOUNTATTRIBUTES.ACCOUNT_NUM in (:accnum)use in clause

  • Problem with "Input text with List of Value"

    Hi,
    I have a table where i am storing country code using "Input text with List of Value". I want a another non base table item where i would like to show the "Country Name" of the select LOV. Kindly let know a way to implement the LOV where it returns the "Country code" to base table item and "Country name" to the non base table item.
    thanks
    Sanjay

    Hi,
    I am getting lazy in chasing down the JDeveloper release by the ADF Faces component mentioned.. So I ask: Which verson of JDeveloper are you on ?
    Frank

  • How I can stop the combo box with list of values from fireing validations

    Hi I'm using Jdeveloper 11.1.2.3.0
    Using Hr Schema employees table
    I Display employees data in af:table
    and I make List Of values on Department_id filed to easy change the employee department
    and another one on Job_id filed
    and Imake them UI Hints as ( combo box with list of values ) in the employeesVO
    the problem is when I Select a value from department or jobs ( combo box with list of values )
    fires the entire filed validations for mandatory atributes
    Note : the af:table Property ( contedelivery) is set to (immediate )
    How I can stop the combo box with list of values from fireing validations

    check it out.,
    http://andrejusb.blogspot.in/2012/09/what-to-do-when-adf-editable-table.html

  • Dynamic query report problem

    I have followed the tutorial in on dynamic query and created a region where the type is SQL Query (PL/SQL function body returning SQL Query)
    The source is
    declare
    q varchar2(4000);
    teatid NUMBER := :P305_TARGET_ID;
    begin
    wwv_flow.debug('teatid = ' || teatid);
    q:=' select f.id, ';
    q:=q||' f.eat_id ';
    q:=q||' from xmlTransactions f ';
    q:=q||' where f.eat_id = ' || teatid; -- I've also tried putting :P305_TARGET_ID here
    wwv_flow.debug('sql = ' || q);
    return q;
    end;
    I have chosen "Use Generic Column Names...".
    When I run the page, I get NO ROWS FOUND. However, when I cut and paste the SQL statement printed out by the debug statement and run it, it returns rows. Both debug statements print correct values.
    I'm not sure what the problem is here, but basically, I want to do a query where I substitute a value passed into the page from another page.
    In this case the value in P305_TARGET_ID is passed in via a button spawning a popup as in var url = 'f?p=&APP_ID.:305:&APP_SESSION.::::P305_TARGET_ID:' + targetID;
    APEX version is 3.0.1.00.08
    Thank you.
    - JohnW

    Hi, JohnW
    I don't understand why you use a dynamic query for that.
    A "direct" SQL query like this :
    select f.id,f.eat_id from xmlTransactions f where f.eat_id=:P305_TARGET_ID;
    should work.
    Mike

  • SQL Developer 3 EA2 - Problem with formating plsql source code

    I'm using sql developer 3 ea2. I have played with source code formating.
    I have 2 issues with formating in source code editor.
    I have a plsql string like the following extending over several lines.
    s VARCHAR2(2000) := 'SELECT
    col1, col2, col3
    FROM table
    WHERE col4 = :var';The result after apply "format" to my sourcecode ist:
    s VARCHAR2(2000) := 'SELECT
    col1, col2, col3
    FROM table
    WHERE col4 = :var';The second is that sql developer ist camelizing the previous line if I type a whitespace in plsql sourcecode.
    How to switch that off??
    The last issue is realy annoying!
    Christian

    I am having exactly the same problem. Every time you use Format Ctrl/F7 it adds new line feeds. Code starts off as:
    command := '
    select account_status, default_tablespace, temporary_tablespace,
    to_char(created,"YYYY-MON-DD HH24:MI:SS"), profile
    from Dba_Users@@
    where username=:1' ;
    First Format Ctrl/F7 get an extra blank line:
    command := '
    select account_status, default_tablespace, temporary_tablespace,
    to_char(created,"YYYY-MON-DD HH24:MI:SS"), profile
    from Dba_Users@@
    where username=:1' ;
    Then second Format Ctrl/F7, get THREE extra lines!!! It goes exponential!!
    command := '
    select account_status, default_tablespace, temporary_tablespace,
    to_char(created,"YYYY-MON-DD HH24:MI:SS"), profile
    from Dba_Users@@
    where username=:1' ;
    So far I've only really encountered the problem with dynamic SQL, which ignores the extra line feeds.
    i am pretty sure this is a long standing SqlDeveloper Format problem, going back to V2.

  • Problem with list and map in GWT

    I have a problem with map and list in GWT. I need to put a map in to a list but GWT does not support ArrayList and HashMap since they are not serialized types.
    Exactly I want to create following list with out using ArrayList and HashMap
    ArrayList<HashMap<String, Object>> map = new ArrayList<HashMap<String,Object>>(); Thank you for new ideas,
    Regards

    If try to use ArrayList then I receive following exception when I make a rpc call.
    Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'java.util.ArrayList' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.:

  • SSRS 2012, SQL Server 2012. Problem with changing database

    Hi all!
    I have a problem with changing database for SSRS.
    I have a SSRS 2012 and SQL Server 2012. These programs is on WIndows Server 2012.
    I need to link SSRS to the new database instance. For this I run SSRS Configeration Manager, open tab Database, click Change Database. Then I choose option "Choose an existing report server database", click Next, write the server name, test
    connection (it's successed) and push Next again. Then I see this error message:
    Error
    The feature: "Using other editions of SQL Server for report data sources and/or the report server database" is not supported in this edition of Reporting Services.
    OK   
    I'm confused, cause I have compatible versions of programs and THIS error.
    Please, help me.
    Thanks.

    Hi Kirill,
    From the error message, we can know that the issue may be caused by incorrect editions of SQL Server for report data sources are used as the Report Server Database.
    When creating a report server database, please be aware that not all editions of SQL Server can be used to host the database. So we should make sure that we have used the correct database as the
    Report Server Database. For more details, please refer to the “Report Server Database Server Edition Requirements” section in the following document:
    http://technet.microsoft.com/en-us/library/cc645993.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • SQL Query: How to pass list of values to the IN operator

    Hi,
    I'm trying to pass a list of values to the WHERE <a> IN <list>
    I dont want to use dynamic cursors (REF CURSOR). Is this possible using Oracle SQL?
    Please let me know.
    My program:
    DECLARE
    list_of_ids := '10, 20, 30';
    SELECT MAX(sal) INTO max_sal FROM employee WHERE emp_id IN (list_of_ids);
    END;
    Thanks in Advance,
    Niko

    You do not want to pass a comma separated list. You want to pass a collection. So
    CREATE TYPE num_tbl
    AS
    TABLE OF NUMBER;
    DECLARE
      l_list_of_ids num_tbl := num_tbl( 10, 20, 30 );
    BEGIN
      SELECT max(sal)
        INTO max_sal
        FROM employee
       WHERE emp_id IN (SELECT * FROM TABLE( l_list_of_ids ));
    END;
    /Justin

  • Modifying  the Ad-hoc Query Infoset : problem with P9105 fields.

    Hi all,
    Am having problem with Infoset of Ad-hoc Query .
    i need to add the Critical role Field Group to ZHR_PA_01 Infoset of Satandard Area.
    for this i have imported that Infotype 9105 and included the following standard fields by drag and drop.
                    1. Role Category
                    2. Role SubCategory
                    3. Global Identifier 
                    4. Personnel Number
    and then Saved and Generated the infoset succesfully.(No syntax errors)
    But
    While testing, using the T-Code:  S_PH0_48000510
    if i select one of these above fields for the report,
    Am getting the message that "Error when generating the report".
    Error Description:The report cannot be generated because the internal description is invalid or incomplete.
    means what may be the problem.?
    if i select other fields its working fine.
    can any body explain me clearly..??
    Regars,
    Kalam A.

    Hi Manoj,
      yes, i have saved the T-code.and generated the Infoset Succesfully.
    and its showing the those additional fields while testing.
    for remaining fields its working fine.
    but am not getting wats problem with the four fields of P9105 infotype.
    could you please suggest me.?
    Regards,
    Kalam A.

  • OGG-00868 SQL Server 2008 has problem with ODBC in  the EXTRACT process

    Hello Everyone
    I want to replicate tables between MS SQLServer 2008 and Oracle 10g
    I have Windows XP / MS SQLServer 2008 and Oracle Database 10g R 10.2.0.1.0 running  on Red Hat Linux
    I followed the steps from the white paper (http://www.oracle.com/technetwork/articles/datawarehouse/oracle-sqlserver-goldengate-460262.html)
    and Installed Oracle Golden Gate Version 11.2.1.0.1 (for Linux) and the  Version 11.2.1.0.1 32bits (for Windows XP)
    I followed all steps of the white paper without problem and I could do the initial load in
    the Oracle Database from SQL Server sucessfully.
    But when I tried to set and start the Extract process from SQL SERVER
    a error was generated in the file c:\gg\dirrpt\MSEXT.rpt and the process is ABENDING
    GGSCI >  info all
    Program     Status      Group       Lag at Chkpt  Time Since Chkpt
    MANAGER     RUNNING
    EXTRACT     STOPPED     MSEXT       00:00:00      03:22:29
    2013-08-25 11:59:41  ERROR   OGG-00868  Executing statement for select operation Database error 213 ([Microsoft][SQL Server Native Client 10.0][SQL Server]Column name or number of supplied values does not match table definition.
    [Microsoft][SQL Server Native Client 10.0][SQL Server]DBCC execution completed. If DBCC printed error messages, contact your system administrator.
    [Microsoft][SQL Server Native Client 10.0][SQL Server]Column name or number of supplied values does not match table definition.
    [Microsoft][SQL Server Native Client 10.0][SQL Server]DBCC execution completed. If DBCC printed error messag).
    2013-08-25 11:59:41  ERROR   OGG-01668  PROCESS ABENDING.
    If somebody has a clue or faced something similar please let me how could solve it.
    Thanks
    Juan

    Hello mb_ogg,
    Yes, I had created a Data Source  HR Driver= SQL Server (second Tab System DSN) and I also had tried with
    the driver SQL Server Native Client 10.0 but I faced the same error.
    The database by default is EMP
    Below is my configuration
    Microsoft SQL Server ODBC Driver Version 03.85.1117
    Data Source Name: HR
    Data Source Description:
    Server: JUAN-XP
    Database: EMP
    Language: (Default)
    Translate Character Data: Yes
    Log Long Running Queries: No
    Log Driver Statistics: No
    Use Integrated Security: Yes
    Use Regional Settings: No
    Prepared Statements Option: Drop temporary procedures on disconnect
    Use Failover Server: No
    Use ANSI Quoted Identifiers: Yes
    Use ANSI Null, Paddings and Warnings: Yes
    Data Encryption: No
    I also clicked on the button "Test Data Source" with the below messages:
    Microsoft SQL Server ODBC Driver Version 03.85.1117
    Running connectivity tests...
    Attempting connection
    Connection established
    Verifying option settings
    Disconnecting from server
    TESTS COMPLETED SUCCESSFULLY!
    Then I went to Database Properties (Right Click) /Oprtion  and Recovery model field has Full value
    I also made a Backup (Backup Type = Full)
    The Backups was made to Disk:  C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Backup\EMP.bak
    Today I repeated the same steps and I got the same error (I Copied at the end):
    I also have the follow question:
    Is necessary define the location of the backup of MS SQL Server to say to GG where it can get it?
    GSCI (juan-xp) 1> DBLOGIN SOURCEDB HR
    2013-08-27 21:16:32  INFO    OGG-03036  Database character set identified as win
    dows-1252. Locale: en_US.
    2013-08-27 21:16:32  INFO    OGG-03037  Session character set identified as wind
    ows-1252.
    Successfully logged into database.
    GGSCI (juan-xp) 3> ADD TRANDATA HRSCHEMA.EMP
    Logging of supplemental log data is enabled for table hrschema.emp
    GGSCI (juan-xp) 4> EDIT PARAMS DEFGEN
    GGSCI (juan-xp) 5> exit
    C:\gg>defgen paramfile c:\gg\dirprm\defgen.prm
          Oracle GoldenGate Table Definition Generator for SQL Server
         Version 11.2.1.0.2 OGGCORE_11.2.1.0.2T3_PLATFORMS_120724.2205
       Windows (optimized), Microsoft SQL Server on Jul 25 2012 03:37:58
    Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
                        Starting at 2013-08-27 21:18:23
    Operating System Version:
    Microsoft Windows XP Professional, on x86
    Version 5.1 (Build 2600: Service Pack 2)
    Process id: 3236
    **            Running with the following parameters                  **
    defsfile c:\gg\dirdef\emp.def
    Source Context :
      SourceModule            : [defgen.main]
      SourceID                : [defgen/defgen.c]
      SourceFunction          : [create_defgen_file]
      SourceLine              : [808]
    2013-08-27 21:18:23  ERROR   OGG-00037  DEFSFILE file c:\gg\dirdef\emp.def alrea
    dy exists.
    2013-08-27 21:18:23  ERROR   OGG-01668  PROCESS ABENDING.
    C:\gg>defgen paramfile c:\gg\dirprm\defgen.prm
          Oracle GoldenGate Table Definition Generator for SQL Server
         Version 11.2.1.0.2 OGGCORE_11.2.1.0.2T3_PLATFORMS_120724.2205
       Windows (optimized), Microsoft SQL Server on Jul 25 2012 03:37:58
    Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
                        Starting at 2013-08-27 21:19:03
    Operating System Version:
    Microsoft Windows XP Professional, on x86
    Version 5.1 (Build 2600: Service Pack 2)
    Process id: 3312
    **            Running with the following parameters                  **
    defsfile c:\gg\dirdef\emp.def
    sourcedb hr
    2013-08-27 21:19:05  INFO    OGG-03036  Database character set identified as win
    dows-1252. Locale: en_US.
    2013-08-27 21:19:05  INFO    OGG-03037  Session character set identified as wind
    ows-1252.
    table hrschema.emp;
    Retrieving definition for hrschema.emp
    Definitions generated for 1 table in c:\gg\dirdef\emp.def
    C:\gg>ggsci
    Oracle GoldenGate Command Interpreter for SQL Server
    Version 11.2.1.0.2 OGGCORE_11.2.1.0.2T3_PLATFORMS_120724.2205
    Windows (optimized), Microsoft SQL Server on Jul 25 2012 02:57:42
    Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
    GGSCI (juan-xp) 1> start manager
    MGR is already running.
    GGSCI (juan-xp) 2> info all
    Program     Status      Group       Lag at Chkpt  Time Since Chkpt
    MANAGER     RUNNING
    GGSCI (juan-xp) 3> ADD EXTRACT MSEXT, TRANLOG, BEGIN NOW
    EXTRACT added.
    GGSCI (juan-xp) 4> ADD RMTTRAIL /u01/app/oracle/gg/dirdat/ms, EXTRACT MSEXT
    RMTTRAIL added.
    GGSCI (juan-xp) 5> EDIT MSEXT
    ERROR: Invalid command.
    GGSCI (juan-xp) 6> edit params msext
    GGSCI (juan-xp) 7> START EXTRACT MSEXT
    Sending START request to MANAGER ('GGSMGR') ...
    EXTRACT MSEXT starting
    GGSCI (juan-xp) 8> show all
    Parameter settings:
    SET SUBDIRS    ON
    SET DEBUG      OFF
    Current directory: C:\gg
    Using subdirectories for all process files
    Editor:  notepad
    Reports (.rpt)                 C:\gg\dirrpt
    Parameters (.prm)              C:\gg\dirprm
    Replicat Checkpoints (.cpr)    C:\gg\dirchk
    Extract Checkpoints (.cpe)     C:\gg\dirchk
    Process Status (.pcs)          C:\gg\dirpcs
    SQL Scripts (.sql)             C:\gg\dirsql
    Database Definitions (.def)    C:\gg\dirdef
    GGSCI (juan-xp) 9> info all
    Program     Status      Group       Lag at Chkpt  Time Since Chkpt
    MANAGER     RUNNING
    EXTRACT     STOPPED     MSEXT       00:00:00      00:02:34
    GGSCI (juan-xp) 10> EDIT MSEXT
    Report MSEXT.rpt with same error
                   Oracle GoldenGate Capture for SQL Server
         Version 11.2.1.0.2 OGGCORE_11.2.1.0.2T3_PLATFORMS_120724.2205
       Windows (optimized), Microsoft SQL Server on Jul 25 2012 03:49:54
    Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
                        Starting at 2013-08-27 21:30:26
    Operating System Version:
    Microsoft Windows XP Professional, on x86
    Version 5.1 (Build 2600: Service Pack 2)
    Process id: 2452
    Description:
    **            Running with the following parameters                  **
    2013-08-27 21:30:26  INFO    OGG-03035  Operating system character set identified as windows-1252. Locale: en_US, LC_ALL:.
    EXTRACT MSEXT
    SOURCEDB HR
    2013-08-27 21:30:28  INFO    OGG-03036  Database character set identified as windows-1252. Locale: en_US.
    2013-08-27 21:30:28  INFO    OGG-03037  Session character set identified as windows-1252.
    TRANLOGOPTIONS MANAGESECONDARYTRUNCATIONPOINT
    RMTHOST OCM, MGRPORT 7809
    RMTTRAIL /u01/app/oracle/gg/dirdat/ms
    TABLE HRSCHEMA.EMP;
    2013-08-27 21:30:28  INFO    OGG-01815  Virtual Memory Facilities for: COM
        anon alloc: MapViewOfFile  anon free: UnmapViewOfFile
        file alloc: MapViewOfFile  file free: UnmapViewOfFile
        target directories:
        C:\gg\dirtmp.
    CACHEMGR virtual memory values (may have been adjusted)
    CACHESIZE:                                1G
    CACHEPAGEOUTSIZE (normal):                4M
    PROCESS VM AVAIL FROM OS (min):        1.57G
    CACHESIZEMAX (strict force to disk):   1.41G
    Database Version:
    Microsoft SQL Server
    Version 10.00.1442
    ODBC Version 03.52.0000
    Driver Information:
    SQLSRV32.DLL
    Version 03.85.1117
    ODBC Version 03.52
    Source Context :
      SourceModule            : [ggvam.param]
      SourceID                : [../gglib/ggvam/cvamparams.cpp]
      SourceFunction          : [com_goldengate_vam::validateIfSqlServer]
      SourceLine              : [1955]
    2013-08-27 21:30:28  ERROR   OGG-00868  Executing statement for select operation Database error 213 ([Microsoft][ODBC SQL Server Driver][SQL Server]Column name or number of supplied values does not match table definition.
    [Microsoft][ODBC SQL Server Driver][SQL Server]DBCC execution completed. If DBCC printed error messages, contact your system administrator.
    [Microsoft][ODBC SQL Server Driver][SQL Server]Column name or number of supplied values does not match table definition.
    [Microsoft][ODBC SQL Server Driver][SQL Server]DBCC execution completed. If DBCC printed error messages, contact your system admi).
    2013-08-27 21:30:28  ERROR   OGG-01668  PROCESS ABENDING.
    Thanks
    Juan

  • Query return/wddx with white space

    i have a query return i am looking at which i will send it to
    another program but for some reason this is coming with some white
    space. i have following questions.
    if i make changes on the admin console for white space
    management do i need to reboot.
    i am trying to use cfsetting but it is still producing some
    white spaces at the beginging. when i see the source.

    The CF admin setting helps but does not completely solve
    whitespace issues. (Look at the source for these forum pages, for
    example..)
    Also, beware of people who tell you to strip the whitespace
    off after the fact by manipulating CF output as though it were a
    string.
    Put this at the top of your Application.cfm or
    Application.cfc:
    <CFSETTING EnableCFOutputOnly = "yes">
    This means that nothing makes it to the page unless it is
    inside <CFOUTPUT> tags or in WriteOutput ().
    This is good practice anyway because it encourages you to
    separate output code from logic and makes you more conscious of
    whitespace as you code.
    Finally, for XML to some programs or the <DOCTTYPE>
    declaration to IE know that the output must be immediately after
    the first <CFOUTPUT> with no whitespace of any type.
    IE:
    <CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
    works but
    <CFOUTPUT>
    <?xml version="1.0" encoding="UTF-8"?>
    doesn't.

  • Dynamic query based Simple Choice List not working as expected.

    I've a value in a View Object attribute which is not present in the LOV associated to it. How to show this in the UI if the attribute's component is a Simple Choice List ?

    Jdev Version is : 11.1.1.6.0
    The attribute for which the LOV exists has a value which was once active on an earlier date, i.e, the LOV used to show the value in it's dropdown on an earlier date.
    Example:
    The ViewObject query for the LOV is:
    SELECT JOB_ID, END_DATE FROM JOBS WHERE END_DATE > SYSDATE
    Results
    JOB_ID -- END_DATE
    45 -- -- -- 23-OCT-2012
    56 -- -- -- 21-OCT-2012
    76 -- -- -- 15-NOV-2012
    78 -- -- -- 15-DEC-2012
    Now,
    The main viewObject EmployeesVO has an attribute JOB_ID with an LOV to the JOBS VO above.
    On 20th Oct, 2012, when I create an employee record, the LOV shows all 4 records in JOBS dropdown and I selected job Id as 56.
    On 25th Oct, when I try to edit the Employee Record, I see a blank item in the JOBS choice list (the LOV being a simple choice list).
    The LOV will display the jobs which are active as on 25th Oct.
    How do I know, what is the current job of the employee?
    This issue will not happen if we use input list of values combo LOV

  • Sql report on item - problem with commas in the string

    I have a simple report that groups all the Job Titles entered on our database.
    I pass the job title to an apex item and then on a second page list the records that match that job title using:
    and ed.ede_job_title = :P35_JOB_TITLE
    If there is a comma in the job title the report returns the records that match the string up to the point the comma appears not the full string.
    So 'Project Manager, Operations' matches all the 'Project Manager' records.
    Also when there is a leading space in the job title the report displays the jobtitle without the leading space.
    Apologies if this is answered elsewhere, I did search.

    Check the actual URL up in the location bar. Your comma may actually be dropping out there, because it isn't encoded such that in value commas can be differentiated from delimiters, so the fields aren't lining up in the URL properly.
    When you go to a page that takes in parameters for assignment in the link, it has 2 fields. The first is the comma separated list of the item names on the page to assign, which wouldn't contain commas in their names. The other field in the URL is a comma separated list of values to be assigned to the previous list. Since these values aren't encoded, the comma in the value is picked up as delimiter and not a part of the value. I have an example I can load up to apex.oracle.com if you need.
    -Richard
    Edited by: rwendel on Aug 13, 2009 11:51 AM

  • HT4864 I have huge and returning problems with iCloud. I cannot send e.mails and there is nothing wrong with my settings. It started yesterday. Does anyone no the reason?

    What is wrong with Apple. This is the third time during autumn, that I experience problems with icloud. Apparently yesterday once again there was an outage with icloud and the problem was solved, but NO it is not solved. I still can not send e.mails and I am probably not the only one. Each time I talk to a technician from Apple, the only thing they do is to uninstall my icloud and reinstall it again. With no results. A waste of time. Please make your system work and give a better support. Who do I call to get a proper assistance???
    And why can I not select icloud under my products??

    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.

Maybe you are looking for

  • Java.lang.NullPointerException in JComponent

    hi below error i am getting, could you plz help me. java.lang.NullPointerException      at vobPrimCompare$1.getColumnClass(vobPrimCompare.java:170)      at javax.swing.JTable.getColumnClass(JTable.java:1752)      at javax.swing.JTable.getCellRenderer

  • JSF Rendering in IE 7 and Firefox 2.0

    Hello everyone, I have developed a JSF page and have been testing it mostly with Firefox 2.0. I liked how it worked: when virtual forms where submitted only the related components where re-rendered. However, when using IE 7 or firefox 1.0 (haven't te

  • Accouting FI document is not generating at sale billing (VF01)

    Hi gurus, I am able to generate sales billing at sd (VF01), but Accouting document is not getting generated. Can any one help to correct this issue. Regards, RAM

  • CAT2- Fields not displaying

    Hi, I have configured CATS -Regular. created -Data entry profile configured CAC2, and also checked in su3 and maintained user parameters and Hr Master data etc. when i tried to enter the details in Cat2, Total, Employee No and Employee name is not sh

  • Is it posible  by metadata navegator scheduling and stop scenarios?

    is it posible by metadata navegator setup scheduling from a scenario and stop a scenario from a user ? thanks, Daniel Daniele