Can't insert schema-based xmltype into binary xmltype table

I'm having issues trying to use binary storage along with the ALLOW ANYSCHEMA clause. I can't use the XMLSchema-instance mechanism for creating my schema-based XMLType instances, so I'm using CreateSchemaBasedXml. When I try to insert the XMLType into the table, however, it seems to think it's not schema-based and throws an error. I trimmed down my schema for the purposes of this example. Here's the schema (schematest.xsd):
<?xml version="1.0" encoding="Windows-1252"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="FORMINFO">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="SUBJECT">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ADDR">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="STREET" type="xs:string" />
                    <xs:element name="CITY" type="xs:string" />
                    <xs:element name="STATEPROV" type="xs:string" />
                    <xs:element name="ZIP" type="xs:string" />
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>Here's the instance file (schema testinst.xml):
<?xml version="1.0" encoding="utf-8"?>
<FORMINFO>
   <SUBJECT>
      <ADDR>
         <STREET>123 Main St</STREET>
         <CITY>Las Vegas</CITY>
         <STATEPROV>NV</STATEPROV>
         <ZIP>12345</ZIP>
      </ADDR>
   </SUBJECT>
</FORMINFO>I registered the schema and created the test table:
BEGIN
  DBMS_XMLSCHEMA.registerschema(
   schemaurl => 'http://localhost/schematest.xsd',
   schemadoc => bfilename('XMLDIR','schematest.xsd'),
   gentables => false,
   gentypes => false,
   csid => nls_charset_id('AL32UTF8'),
   options => DBMS_XMLSCHEMA.REGISTER_BINARYXML);
END;
CREATE TABLE BINARYTEST OF XMLType
XMLTYPE STORE AS BINARY XML
ALLOW ANYSCHEMA;But trying to insert gives me an ORA-44422 error (this is on Oracle 11.1.0.7.0 Enterprise):
SQL> SET SERVEROUTPUT ON
SQL> declare
  2    x XMLType;
  3    xschema XMLType;
  4  begin
  5    x := XMLType(bfilename('XMLDIR', 'schematestinst.xml'), nls_charset_id('AL32UTF8'));
  6    xschema := x.CreateSchemaBasedXml('http://localhost/schematest.xsd');
  7    xschema.SchemaValidate();
  8    DBMS_OUTPUT.PUT_LINE('Schema: ' || xschema.GetSchemaURL() || ' Validated: ' || xschema.IsSchemaValidated());
  9
10    INSERT INTO BINARYTEST
11    VALUES (xschema);
12    commit;
13  end;
14  /
Schema: http://localhost/schematest.xsd Validated: 1
declare
ERROR at line 1:
ORA-44422: nonschema XML disallowed for this column
ORA-06512: at line 10You can see from my put_line statement that the XMLType object is reporting its schema URL correctly and thinks it's been validated. Changing the table to "ALLOW NONSCHEMA" allows the insert, but it inserts it as a non-schema-based document. Am I skipping a step here?
Thanks,
Jim

It might be a bug, but I am not yet sure...
See the following examples...
c:\>C:\oracle\product\11.1.0\db_1\bin\sqlplus.exe /nolog
SQL*Plus: Release 11.1.0.7.0 - Production on Mon Mar 23 22:14:41 2009
Copyright (c) 1982, 2008, Oracle.  All rights reserved.
SQL> drop user otn cascade;
User dropped.
SQL> create user otn identified by otn;
User created.
SQL> grant xdbadmin, dba to otn;
Grant succeeded.
SQL> conn otn/otn
connected.
SQL> var schemaPath varchar2(256)
SQL> var schemaURL  varchar2(256)
SQL>
SQL> begin
  2    :schemaURL := 'http://localhost/schematest.xsd';
  3    :schemaPath := '/public/schematest.xsd';
  4  end;
  5  /
PL/SQL procedure successfully completed.
SQL>
SQL> declare
  2    res boolean;
  3    xmlSchema xmlType := xmlType('<?xml version="1.0" encoding="Windows-1252"?>
  4  <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  5    <xs:element name="FORMINFO">
  6      <xs:complexType>
  7        <xs:sequence>
  8          <xs:element name="SUBJECT">
  9            <xs:complexType>
10              <xs:sequence>
11                <xs:element name="ADDR">
12                  <xs:complexType>
13                    <xs:sequence>
14                      <xs:element name="STREET" type="xs:string" />
15                      <xs:element name="CITY" type="xs:string" />
16                      <xs:element name="STATEPROV" type="xs:string" />
17                      <xs:element name="ZIP" type="xs:string" />
18                    </xs:sequence>
19                  </xs:complexType>
20                </xs:element>
21              </xs:sequence>
22            </xs:complexType>
23          </xs:element>
24        </xs:sequence>
25      </xs:complexType>
26    </xs:element>
27  </xs:schema>');
28  begin
29  if (dbms_xdb.existsResource(:schemaPath)) then
30      dbms_xdb.deleteResource(:schemaPath);
31  end if;
32   res := dbms_xdb.createResource(:schemaPath,xmlSchema);
33  end;
34  /
PL/SQL procedure successfully completed.
SQL> commit;
Commit complete.
SQL> call dbms_xmlschema.deleteSchema(:schemaURL,4);
Call completed.
SQL> BEGIN
  2   DBMS_XMLSCHEMA.registerSchema(
  3    SCHEMAURL => :SchemaURL,
  4    SCHEMADOC => xdbURIType(:SchemaPath).getClob(),
  5    LOCAL     => FALSE, -- local
  6    GENTYPES  => FALSE, -- generate object types
  7    GENBEAN   => FALSE, -- no java beans
  8    GENTABLES => FALSE, -- generate object tables
  9    OPTIONS   => DBMS_XMLSCHEMA.REGISTER_BINARYXML,
10    OWNER     => USER
11   );
12  END;
13  /
PL/SQL procedure successfully completed.
SQL> commit;
Commit complete.
SQL> var schemaDoc  varchar2(256)
SQL>
SQL> begin
  2    :schemaDoc := '/public/schematest.xml';
  3  end;
  4  /
PL/SQL procedure successfully completed.
SQL>
SQL> ----------------------------------------------------------
SQL>
SQL> -- Create an XML Document in the repository
SQL>
SQL> ----------------------------------------------------------
SQL>
SQL> declare
  2    res boolean;
  3    xmlDoc xmlType := xmlType('<?xml version="1.0" encoding="utf-8"?>
  4  <FORMINFO>
  5     <SUBJECT>
  6        <ADDR>
  7           <STREET>123 Main St</STREET>
  8           <CITY>Las Vegas</CITY>
  9           <STATEPROV>NV</STATEPROV>
10           <ZIP>12345</ZIP>
11        </ADDR>
12     </SUBJECT>
13  </FORMINFO>');
14  begin
15  if (dbms_xdb.existsResource(:schemaDoc)) then
16      dbms_xdb.deleteResource(:schemaDoc);
17  end if;
18   res := dbms_xdb.createResource(:schemaDoc,xmlDoc);
19  end;
20  /
PL/SQL procedure successfully completed.
SQL>
SQL> ----------------------------------------------------------
SQL>
SQL> -- Ready to test
SQL>
SQL> ----------------------------------------------------------
SQL>
SQL> select * from tab;
no rows selected
SQL> CREATE TABLE BINARYTEST OF XMLType
  2  XMLTYPE STORE AS BINARY XML
  3  ALLOW ANYSCHEMA;
Table created.
SQL> set long 100000
SQL> select dbms_metadata.get_ddl('TABLE','BINARYTEST',user) from dual;
DBMS_METADATA.GET_DDL('TABLE','BINARYTEST',USER)
  CREATE TABLE "OTN"."BINARYTEST" OF "SYS"."XMLTYPE"
OIDINDEX  ( PCTFREE 10 INITRANS 2 MAXTRANS 255
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS1 BUFFER_POOL DEFAULT)
  TABLESPACE "USERS" )
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
  TABLESPACE "USERS"
XMLTYPE COLUMN OBJECT_VALUE STORE AS BASICFILE BINARY XML (
  TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
  NOCACHE LOGGING
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
BUFFER_POOL DEFAULT))
DISALLOW NONSCHEMA
ALLOW ANYSCHEMA
1 row selected.
SQL> SET SERVEROUTPUT ON
SQL> declare
  2    x XMLType;
  3    xschema XMLType;
  4  begin
  5    x := XMLType(xdbUriType(:SchemaDoc).getClob());
  6    xschema := x.CreateSchemaBasedXml('http://localhost/schematest.xsd');
  7    xschema.SchemaValidate();
  8    DBMS_OUTPUT.PUT_LINE('Schema: ' || xschema.GetSchemaURL() || ' Validated: ' || xschema.IsSchemaValidated());
  9
10    INSERT INTO BINARYTEST
11    VALUES (xschema);
12    commit;
13  end;
14  /
Schema: http://localhost/schematest.xsd Validated: 1
declare
ERROR at line 1:
ORA-44422: nonschema XML disallowed for this column
ORA-06512: at line 10
-- ORA-44421: cannot DISALLOW NONSCHEMA without a SCHEMA clause
-- Cause: If no SCHEMA clause (explicit schema or ANYSCHEMA) was specified, nonschema data cannot be disallowed.-
-- Action: Remove DISALLOW NONSCHEMA or add some SCHEMA clause.
SQL> drop table binarytest;
Table dropped.
SQL> CREATE TABLE BINARYTEST OF XMLType
  2  XMLTYPE STORE AS BINARY XML
  3  ALLOW NONSCHEMA;
Table created.
SQL> select dbms_metadata.get_ddl('TABLE','BINARYTEST',user) from dual;
DBMS_METADATA.GET_DDL('TABLE','BINARYTEST',USER)
  CREATE TABLE "OTN"."BINARYTEST" OF "SYS"."XMLTYPE"
OIDINDEX  ( PCTFREE 10 INITRANS 2 MAXTRANS 255
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS1 BUFFER_POOL DEFAULT)
  TABLESPACE "USERS" )
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
  TABLESPACE "USERS"
XMLTYPE COLUMN OBJECT_VALUE STORE AS BASICFILE BINARY XML (
  TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
  NOCACHE LOGGING
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
BUFFER_POOL DEFAULT))
ALLOW NONSCHEMA
DISALLOW ANYSCHEMA
1 row selected.
SQL> declare
  2    x XMLType;
  3    xschema XMLType;
  4  begin
  5    x := XMLType(xdbUriType(:SchemaDoc).getClob());
  6    xschema := x.CreateSchemaBasedXml('http://localhost/schematest.xsd');
  7    xschema.SchemaValidate();
  8    DBMS_OUTPUT.PUT_LINE('Schema: ' || xschema.GetSchemaURL() || ' Validated: ' || xschema.IsSchemaValidated());
  9
10    INSERT INTO BINARYTEST
11    VALUES (xschema);
12    commit;
13  end;
14  /
Schema: http://localhost/schematest.xsd Validated: 1
PL/SQL procedure successfully completed.
SQL> select * from binarytest;
SYS_NC_ROWINFO$
<?xml version="1.0" encoding="UTF-8"?>
<FORMINFO>
  <SUBJECT>
    <ADDR>
      <STREET>123 Main St</STREET>
      <CITY>Las Vegas</CITY>
      <STATEPROV>NV</STATEPROV>
      <ZIP>12345</ZIP>
    </ADDR>
  </SUBJECT>
</FORMINFO>
1 row selected.
SQL> SET SERVEROUTPUT ON
SQL> declare
  2    x XMLType;
  3    xschema XMLType;
  4  begin
  5    x := XMLType(xdbUriType(:SchemaDoc).getClob());
  6
  7    dbms_output.put_line(x.getstringval());
  8
  9    xschema := x.CreateSchemaBasedXml('http://localhost/schematest.xsd');
10
11    dbms_output.put_line(xschema.getstringval());
12
13    xschema.SchemaValidate();
14    DBMS_OUTPUT.PUT_LINE('Schema: ' || xschema.GetSchemaURL() || ' Validated: ' || xschema.IsSchemaValidated());
15
16    INSERT INTO BINARYTEST
17    VALUES (xschema);
18    commit;
19  end;
20  /
<?xml version="1.0" encoding="UTF-8"?>
<FORMINFO>
  <SUBJECT>
    <ADDR>
      <STREET>123 Main St</STREET>
      <CITY>Las
Vegas</CITY>
      <STATEPROV>NV</STATEPROV>
      <ZIP>12345</ZIP>
    </ADDR>
  </SUBJECT>
</FORMINFO>
<?xml version="1.0" encoding="UTF-8"?>
<FORMINFO>
  <SUBJECT>
    <ADDR>
      <STREET>123 Main St</STREET>
      <CITY>Las
Vegas</CITY>
      <STATEPROV>NV</STATEPROV>
      <ZIP>12345</ZIP>
    </ADDR>
  </SUBJECT>
</FORMINFO>
Schema: http://localhost/schematest.xsd Validated: 1
PL/SQL procedure successfully completed.
SQL> create table ORtest of xmltype
  2  xmlschema "http://localhost/schematest.xsd" element "FORMINFO"
  3  ;
Table created.
SQL> declare
  2    x XMLType;
  3    xschema XMLType;
  4  begin
  5    x := XMLType(xdbUriType(:SchemaDoc).getClob());
  6
  7    dbms_output.put_line(x.getstringval());
  8
  9    xschema := x.CreateSchemaBasedXml('http://localhost/schematest.xsd');
10
11    dbms_output.put_line(xschema.getstringval());
12
13    xschema.SchemaValidate();
14    DBMS_OUTPUT.PUT_LINE('Schema: ' || xschema.GetSchemaURL() || ' Validated: ' || xschema.IsSchemaValid());
15
16    INSERT INTO ORTEST
17    VALUES (xschema);
18    commit;
19  end;
20  /
<?xml version="1.0" encoding="UTF-8"?>
<FORMINFO>
  <SUBJECT>
    <ADDR>
      <STREET>123 Main St</STREET>
      <CITY>Las
Vegas</CITY>
      <STATEPROV>NV</STATEPROV>
      <ZIP>12345</ZIP>
    </ADDR>
  </SUBJECT>
</FORMINFO>
<?xml version="1.0" encoding="UTF-8"?>
<FORMINFO>
  <SUBJECT>
    <ADDR>
      <STREET>123 Main St</STREET>
      <CITY>Las
Vegas</CITY>
      <STATEPROV>NV</STATEPROV>
      <ZIP>12345</ZIP>
    </ADDR>
  </SUBJECT>
</FORMINFO>
Schema: http://localhost/schematest.xsd Validated: 1
PL/SQL procedure successfully completed.
SQL> declare
  2    x XMLType;
  3    xschema XMLType;
  4  begin
  5    x := XMLType(xdbUriType(:SchemaDoc).getClob());
  6
  7    dbms_output.put_line(x.getstringval());
  8
  9    xschema := x.CreateSchemaBasedXml('http://localhost/schematest.xsd');
10
11    dbms_output.put_line(xschema.getstringval());
12
13    xschema.SchemaValidate();
14    DBMS_OUTPUT.PUT_LINE('Schema: ' || xschema.GetSchemaURL() || ' Validated: ' || xschema.IsSchemaValid());
15
16    INSERT INTO BIN_ONE_SCHEMA
17    VALUES (xschema);
18    commit;
19  end;
20  /
<?xml version="1.0" encoding="UTF-8"?>
<FORMINFO>
  <SUBJECT>
    <ADDR>
      <STREET>123 Main St</STREET>
      <CITY>Las
Vegas</CITY>
      <STATEPROV>NV</STATEPROV>
      <ZIP>12345</ZIP>
    </ADDR>
  </SUBJECT>
</FORMINFO>
<?xml version="1.0" encoding="UTF-8"?>
<FORMINFO>
  <SUBJECT>
    <ADDR>
      <STREET>123 Main St</STREET>
      <CITY>Las
Vegas</CITY>
      <STATEPROV>NV</STATEPROV>
      <ZIP>12345</ZIP>
    </ADDR>
  </SUBJECT>
</FORMINFO>
Schema: http://localhost/schematest.xsd Validated: 1
PL/SQL procedure successfully completed.
SQL> ----------------------------------------------------------
SQL>
SQL> -- Create an XML Document in the repository
SQL>
SQL> ----------------------------------------------------------
SQL>
SQL> declare
  2    res boolean;
  3    xmlDoc xmlType := xmlType('<?xml version="1.0" encoding="utf-8"?>
  4  <FORMINFO>
  5     <SUBJECT>
  6        <ADDR>
  7           <STREET>123 Main St</STREET>
  8           <CITY>Las Vegas</CITY>
  9           <STATEPROV>NV</STATEPROV>
10           <ZIP>12345</ZIP>
11           <ONE_TO_MANY>say what?</ONE_TO_MANY>
12        </ADDR>
13     </SUBJECT>
14  </FORMINFO>');
15  begin
16  if (dbms_xdb.existsResource(:schemaDoc)) then
17      dbms_xdb.deleteResource(:schemaDoc);
18  end if;
19   res := dbms_xdb.createResource(:schemaDoc,xmlDoc);
20  end;
21  /
PL/SQL procedure successfully completed.
SQL> declare
  2    x XMLType;
  3    xschema XMLType;
  4  begin
  5    x := XMLType(xdbUriType(:SchemaDoc).getClob());
  6
  7    dbms_output.put_line(x.getstringval());
  8
  9    xschema := x.CreateSchemaBasedXml('http://localhost/schematest.xsd');
10
11    dbms_output.put_line(xschema.getstringval());
12
13    xschema.SchemaValidate();
14    DBMS_OUTPUT.PUT_LINE('Schema: ' || xschema.GetSchemaURL() || ' Validated: ' || xschema.IsSchemaValid());
15
16    INSERT INTO BIN_ONE_SCHEMA
17    VALUES (xschema);
18    commit;
19  end;
20  /
<?xml version="1.0" encoding="UTF-8"?>
<FORMINFO>
  <SUBJECT>
    <ADDR>
      <STREET>123 Main St</STREET>
      <CITY>Las
Vegas</CITY>
      <STATEPROV>NV</STATEPROV>
      <ZIP>12345</ZIP>
      <ONE_TO_MANY>say what?</ONE_TO_MANY>
    </ADDR>
</SUBJECT>
</FORMINFO>
<?xml version="1.0" encoding="UTF-8"?>
<FORMINFO>
  <SUBJECT>
    <ADDR>
      <STREET>123 Main St</STREET>
      <CITY>Las
Vegas</CITY>
      <STATEPROV>NV</STATEPROV>
      <ZIP>12345</ZIP>
      <ONE_TO_MANY>say what?</ONE_TO_MANY>
    </ADDR>
</SUBJECT>
</FORMINFO>
declare
ERROR at line 1:
ORA-31154: invalid XML document
ORA-19202: Error occurred in XML processing
LSX-00213: only 0 occurrences of particle "ADDR", minimum is 1
ORA-06512: at "SYS.XMLTYPE", line 354
ORA-06512: at line 13
SQL>

Similar Messages

  • How can I inserting file's line into a oracle table in physycal order

    How can I insert the file's line into a oracle table in the same physycal order that they exists in the file ?
    I am using "SQL to FILE" km to performing file load into Oracle table, but the order which the records are insered into the oracle table doesn't match with the order of file's lines
    How can I guarantee the same file's physycal order in the oracle table( target ) and file( source ) ?
    Is it possible throught ODI ?
    Thanks,
    Luciana

    Hi,
    although I understand why use "File to Oracle( SQLLDR )" KM, I haven't the guarantee that in the agent's machine the Oracle Client installed and because when I openned the others projects I saw that anyone in my company use this KM( "File to Oracle( SQLLDR )" )
    Tha's why I ask for anyone lead me whith the modification of the previous post in the "uLKM File to SQL", specifing the km step e where put the RECNUM pseudo column
    This is fundamental for my ODI project
    When I try to alter the "Create Work Table" and "Load Data" step of my "uLKM File to SQL" km, the execution returned me the error below:
    =====================> Create Work Table Step
    create table <@= vWorkTable @>
         C1_LINHA_ARQ     VARCHAR2(500) NULL, RECNUM NUMBER(10)
    =====================> Load Data Step
    select     LINHA_ARQ     C1_LINHA_ARQ
    from      TABLE
    /*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=ARQ_INSS2SNP$CRLOAD_FILE=/arquivos_odi/ccrs/in/#CCRS_CAD_INSS.vpNOME_ARQUIVOSNP$CRFILE_FORMAT=DSNP$CRFILE_SEP_FIELD=09SNP$CRFILE_SEP_LINE=0D0ASNP$CRFILE_FIRST_ROW=0SNP$CRFILE_ENC_FIELD=SNP$CRFILE_DEC_SEP=SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=LINHA_ARQSNP$CRTYPE_NAME=STRINGSNP$CRORDER=1SNP$CRLINE_OFFSET=1SNP$CRLENGTH=500SNP$CRPRECISION=500SNP$CR$$SNPS_END_KEY*/
    insert into ODI_RUN_CONV.C$_0TMP_ODI_INSS_DADOS_ARQ
         C1_LINHA_ARQ, RECNUM
    values
         :C1_LINHA_ARQ, RECNUM
    =====================
    984 : 42000 : java.sql.BatchUpdateException: ORA-00984: column not allowed here
    984 : 42000 : java.sql.SQLSyntaxErrorException: ORA-00984: column not allowed here
    java.sql.BatchUpdateException: ORA-00984: column not allowed here
         at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:629)
         at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:9409)
         at oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:211)
         at com.sunopsis.sql.SnpsQuery.executeBatch(Unknown Source)
    ...Thanks again gyus,
    Luciana
    Edited by: 933810 on 31/05/2012 06:04
    Edited by: 933810 on 31/05/2012 06:07
    Edited by: 933810 on 31/05/2012 06:14

  • I have powerpoint for Mac on my imac.  I can't seem to get the active text box function to work like it did on my PC.  How can I insert an active textbox into a presentation that will allow me to type while presenting?

    I have powerpoint for Mac on my imac.  I can't seem to get the active text box function to work like it did on my PC.  How can I insert an active textbox into a presentation that will allow me to type while presenting?

    I've gotten a little further on this. The dynamic select is
    working fine. It's the "a href" code that isn't. I'm wondering if
    someone can look at this line and tell me if it's okay to build the
    query string this way. The storeid comes through fine but I'm still
    not getting the employeeid value to pass. Here's line that's not
    working:
    td><a href="registerStoreCust.php?storeid=<?php echo
    $row_storeRS['storeid']; echo "&employeeid="; echo
    $_GET['employeeLM']; ?>">Register
    Customer</a></td>

  • Can't insert a CD/DVD into the disc drive.  Recently installed a new harddrive, and the CD/DVD drive hardware is no longer recognized. Also, with new harddrive,  OS was updated from Snow Leopard to Mt. Lion 10.8.5 on late 2007 MBP.

    Can't insert a CD/DVD into the disc drive.  Recently installed a new 1 tb hard drive, and the CD/DVD drive hardware is no longer recognized. Also, with new hard drive,  OS was updated from Snow Leopard to Mt. Lion 10.8.5 on late 2007 MBP (2.2 GHZ Intel Core 2 Duo.  4 GB 667 MHZ DDR2 SDRAM)

    Also, when I check out the hardware list, under Disc Burning - the following is reported:  No disc burning device was found. If the device is external, make sure it’s connected and turned on.
    The disc drive worked fine prior to the HD upgrade and OS update to Mt. Lion.

  • How can I insert an existing ApDiv into a tab in the Spry Tabbed Panel?

    I have 5 of them all containing nested Apdiv within nested ApDivs (a long storie ) that I would like to insert into 5 tabs in the Spry Tabbed Panel.
    Please help.

    "Hi Gramp,I realize I have made hard work for myself but I really don't know any better. I also realize now that taking on this project may have been a mistake :-)I taught myself how to use the design side of Dream Weaver. These five ApDivs were created in the content area of the spry tool and it worked fine. (yes a lot of work though)For the first time I looked at the code side. I wanted to try to bring a peace of code from another page for something unrelated and when it didn't work I took it out and without noticing, deleting a line from the Spry tool.Of course like a classic newbe I was working without a backup copy so here I am. Loosing hours of tedious work and on the verve of tears :-)I do have some  questions though.  My APDiv
      What does "apDiv1" stands for and what does "My APDiv" stands for?Is the only thing I have to do is changing this line for my five ApDivs and paste it in the appropriate places in the code? Thanks again,Gilaad
    Date: Sat, 16 Jun 2012 20:39:07 -0600
    From: [email protected]
    To: [email protected]
    Subject: How can I insert an existing ApDiv into a tab in the Spry Tabbed Panel? 
        Re: How can I insert an existing ApDiv into a tab in the Spry Tabbed Panel? 
        created by Altruistic Gramps in Spry Framework for Ajax - View the full discussion 
    You have really made hard work for yourself by using APDiv's. I suppose it can be done, but I would not. To answer your question, I have create an example as per#apDiv1
    My APDiv
    Content 2
    Tab 1
    Gramps 
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4498679#4498679
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4498679#4498679. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Spry Framework for Ajax by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Can I insert the image file into PDF file  in Adobe X Standard ?

    can I insert the image file into PDF file in Adobe X Standard ?

    http://matt.coneybeare.me/how-to-make-an-html-signature-in-apple-mail-for-maveri cks-os-x-10-dot-9/

  • How can I insert a completed file into another PDF file I am developing?

    How can I insert a completed file into another PDF file I am developing?

    Please refer : http://acrobatusers.com/tutorials/how-to-insert-a-pdf-into-a-pdf

  • Can you insert mac mail addresses into microsoft word documents

    can you insert mac mail addresses into Microsoft word documents like you can with outlook?

    Do you want to insert a clickable hyperlink to send mail to a specific address in a Word doc?

  • Can I insert a memory card into my Macbook Pro?  I tried, and it does not go in on its own, I don't want to force it and get it stuck!! Help!

    Can I insert a memory card into my Macbook Pro?  I tried, and it does not go in on its own, I don't want to force it and get it stuck!! Help!

    Maybe the wrong port or the wrong kind of memory card? You didn't say what version/year of Macbook Pro you have. Below is a photo of the newest one.
    Red oval = USB port. It is to the left of the headphone jack.
    Blue oval = SDXC card port. Is your card an SDXC card?
    What are your options for transferring data to the picture frame?  The manual should say.

  • Compare String in a table and insert the common values into a New table

    Hi all,
    Anyone has idea on how to compare a string value in a table.
    I have a Students Table with Student_id and Student_Subject_list columns as below.
    create table Students( Student_id number,
    Student_Subject_list varchar2(2000)
    INSERT INTO Students VALUES (1,'Math,Science,Arts,Music,Computers,Law,Business,Social,Language arts,History');
    INSERT INTO Students VALUES (2,'Math,Law,Business,Social,Language arts,History,Biotechnology,communication');
    INSERT INTO Students VALUES (3,'History,Spanish,French,Langage arts');
    INSERT INTO Students VALUES (4,'History,Maths,Science,Chemistry,English,Reading');
    INSERT INTO Students VALUES (5,'Math,Science,Arts,Music,Computer Programming,Language arts,History');
    INSERT INTO Students VALUES (6,'Finance,Stocks');
    output
    Student_id     Student_Subject_list
    1     Math,Science,Arts,Music,Computers,Law,Business,Social,Language arts,History
    2     Math,Law,Business,Social,Language arts,History,Biotechnology,communication
    3     History,Spanish,French,Langage arts
    4     History,Maths,Science,Chemistry,English,Reading
    5     Math,Science,Arts,Music,Computer Programming,Language arts,History
    6     Finance,Stocks
    I need help or some suggestion in write a query which can compare each row string value of Student_Subject_list columns and insert the
    common subjects into a new table(Matched_Subjects).The second table should have the below colums and data.
    create table Matched_Subjects(Student_id number,
    Matching_studesnt_id Number,
    Matched_Student_Subject varchar2(2000)
    INSERT INTO Matched_Subjects VALUES (1,2,'Math,Law,Business,Social,Language arts,History');
    INSERT INTO Matched_Subjects VALUES (1,3,'History,Langage arts');
    INSERT INTO Matched_Subjects VALUES (1,4,'History,Maths,Science');
    INSERT INTO Matched_Subjects VALUES (1,5,'Math,Science,Arts,Music,Language arts,History');
    INSERT INTO Matched_Subjects VALUES (2,3,'History,Langage arts');
    INSERT INTO Matched_Subjects VALUES (2,4,'History,Maths');
    INSERT INTO Matched_Subjects VALUES (2,5,'Math,Language arts,History');
    INSERT INTO Matched_Subjects VALUES (3,4,'History');
    INSERT INTO Matched_Subjects VALUES (3,5,'Language arts,History');
    INSERT INTO Matched_Subjects VALUES (4,5,'Math,Science');
    output:
    Student_id      Match_Student_id     Matched_Student_Subject
    1     2     Math,Law,Business,Social,Language arts,History
    1     3     History,Langage arts
    1     4     History,Maths,Science
    1     5     Math,Science,Arts,Music,Language arts,History
    2     3     History,Langage arts
    2     4     History,Maths
    2     5     Math,Language arts,History
    3     4     History
    3     5     Language arts,History
    4     5     Math,Science
    any help will be appreciated.
    Thanks.
    Edited by: user7988 on Sep 25, 2011 8:45 AM

    user7988 wrote:
    Is there an alternate approach to this without using xmlagg/xmlelement What Oracle version are you using? In 11.2 you can use LISTAGG:
    insert
      into Matched_Subjects
      with t as (
                 select  student_id,
                         column_value l,
                         regexp_substr(student_subject_list,'[^,]+',1,column_value) subject
                   from  students,
                         table(
                               cast(
                                    multiset(
                                             select  level
                                               from  dual
                                               connect by level <= length(regexp_replace(student_subject_list || ',','[^,]'))
                                    as sys.OdciNumberList
      select  t1.student_id,
              t2.student_id,
              listagg(t1.subject,',') within group(order by t1.l)
        from  t t1,
              t t2
        where t1.student_id < t2.student_id
          and t1.subject = t2.subject
        group by t1.student_id,
                 t2.student_id
    STUDENT_ID MATCHING_STUDESNT_ID MATCHED_STUDENT_SUBJECT
             1                    2 Math,Law,Business,Social,Language arts,History
             1                    3 Language arts,History
             1                    4 Science,History
             1                    5 Math,Science,Arts,Music,Language arts,History
             2                    3 Language arts,History
             2                    4 History
             2                    5 Math,Language arts,History
             3                    4 History
             3                    5 History,Language arts
             4                    5 History,Science
    10 rows selected.
    SQL> Prior to 11.2 you can create your own string aggregation function STRAGG - there are plenty of example on this forum. Or use hierarchical query:
    insert
      into Matched_Subjects
      with t1 as (
                  select  student_id,
                          column_value l,
                          regexp_substr(student_subject_list,'[^,]+',1,column_value) subject
                    from  students,
                          table(
                                cast(
                                     multiset(
                                              select  level
                                                from  dual
                                                connect by level <= length(regexp_replace(student_subject_list || ',','[^,]'))
                                     as sys.OdciNumberList
           t2 as (
                  select  t1.student_id student_id1,
                          t2.student_id student_id2,
                          t1.subject,
                          row_number() over(partition by t1.student_id,t2.student_id order by t1.l) rn
                    from  t1,
                          t1 t2
                    where t1.student_id < t2.student_id
                      and t1.subject = t2.subject
      select  student_id1,
              student_id2,
              ltrim(sys_connect_by_path(subject,','),',') MATCHED_STUDENT_SUBJECT
        from  t2
        where connect_by_isleaf = 1
        start with rn = 1
        connect by student_id1 = prior student_id1
               and student_id2 = prior student_id2
               and rn = prior rn + 1
    STUDENT_ID MATCHING_STUDESNT_ID MATCHED_STUDENT_SUBJECT
             1                    2 Math,Law,Business,Social,Language arts,History
             1                    3 Language arts,History
             1                    4 Science,History
             1                    5 Math,Science,Arts,Music,Language arts,History
             2                    3 Language arts,History
             2                    4 History
             2                    5 Math,Language arts,History
             3                    4 History
             3                    5 History,Language arts
             4                    5 History,Science
    10 rows selected.SY.

  • SharePoint List Form using InfoPath 2010 "Cannot insert the value NULL into column 'tp_DocId', table 'Content_SP_00003.dbo.AllUserData'; column does not allow nulls"

    I am experiencing issue with my SharePoint site , when I am trying to add new Item in List . Error given below :--> 02/03/2015 08:23:36.13 w3wp.exe (0x2E04) 0x07E8 SharePoint Server Logging Correlation Data 9gc5 Verbose Thread change; resetting trace
    level override to 0; resetting correlation to e2e9cddc-cf35-4bf8-b4f3-021dc91642da c66c2c17-faaf-4ff9-a414-303aa4b4726b e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015 08:23:36.13 w3wp.exe (0x2E04) 0x07E8 Document Management Server Document Management 52od
    Medium MetadataNavigationContext Page_InitComplete: No XsltListViewWebPart was found on this page[/sites/00003/Lists/PM%20Project%20Status/NewForm.aspx?RootFolder=&IsDlg=1]. Hiding key filters and downgrading tree functionality to legacy ListViewWebPart(v3)
    level for this list. e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015 08:23:36.17 w3wp.exe (0x1B94) 0x1A0C SharePoint Server Logging Correlation Data 77a3 Verbose Starting correlation. b4d14aec-5bd4-4fb1-b1e3-589ba337b111 02/03/2015 08:23:36.17 w3wp.exe (0x1B94)
    0x1A0C SharePoint Server Logging Correlation Data 77a3 Verbose Ending correlation. b4d14aec-5bd4-4fb1-b1e3-589ba337b111 02/03/2015 08:23:36.31 w3wp.exe (0x2E04) 0x07E8 SharePoint Foundation Database 880i High System.Data.SqlClient.SqlException: Cannot insert
    the value NULL into column 'tp_DocId', table 'Content_SP_00003.dbo.AllUserData'; column does not allow nulls. INSERT fails. The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at
    System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject
    stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavi... e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015
    08:23:36.31* w3wp.exe (0x2E04) 0x07E8 SharePoint Foundation Database 880i High ...or runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream,
    Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior,
    RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand
    command, CommandBehavior behavior,

    Are you trying to setup P2P? Could you explain the process you followed completely? By anychance you create the backup and then created the publication?
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Can you use schema name in "INTO TABLE" in sqlldr?

    Hi All,
    I have a simple question.
    My Oracle userid is SBHAT.
    SBHAT has insert,delete, select,update privileges on a Table in another schema XYZ.
    I want to SQL*Load data in Table EMPLOYEE in XYZ schema, using my userid. Something like ....
    sqlldr userid=*SBHAT*/password control=test.ctl data=test.txt
    I tried to use the following in my test.ctl file but it does not work.
    load data
    append
    into table "XYZ.EMPLOYEE"
    fields terminated by ',' optionally enclosed by '"'
    trailing nullcols
    Can someone give me the proper syntax for into table that uses *schema.table_name* construct.
    Thanks,
    Suresh

    Pl post exact OS and database versions - what do you get when you execute sql*loader with the syntax you have identified so far ?
    http://docs.oracle.com/cd/E11882_01/server.112/e22490/ldr_control_file.htm#i1005623
    HTH
    Srini

  • Trigger problem -- can't insert the same data into audit table

    Sir/Madam,
    I'm trying to use insert trigger with a 'long raw' datatype data for my audit purpose. Each time, the data of original table can be inserted correctly. While the trigger for audit table in which it contains almost the same data as original would failed. The error messages are some thing like following:
    java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
    ORA-06512: at "CORPSEC.TI_ARCHIVE_PDF", line 9
    ORA-04088: error during execution of trigger 'CORPSEC.TI_ARCHIVE_PDF'
    If the column with 'long raw' datatype is taken out, then there is no error at all. I'm using Oracle 8i 8.1.6 for Windows NT and suspect there is bug in PL/SQL execution.
    The following are SQL text for the trigger:
    CREATE OR REPLACE TRIGGER "CORPSEC"."TI_ARCHIVE_PDF" AFTER INSERT ON "ARCHIVE_PDF" FOR EACH ROW DECLARE
    LOG_SEQ_NO NUMBER;
    BEGIN
    SELECT AUDIT_SEQ.NEXTVAL INTO LOG_SEQ_NO FROM DUAL
    insert into ad_archive_pdf (DOC_TITLE,PDF_FILENAME,CONTENT,DOC_DESC,AUDIT_REF_NO,AUDIT_DATE,AUDIT_MODE,AUDIT_BY)
    values (:new.DOC_TITLE,:new.PDF_FILENAME,:new.CONTENT,:new.DOC_DESC,LOG_SEQ_NO,sysdate,'I',:new.created_by);
    END;
    Any help on this. Thank in advance.
    Best regards,
    Ruijie

    See here for a discussion of how to incorporate LONG datatypes into triggers:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:635439::NO::F4950_P8_DISPLAYID

  • How can I insert a Wordpress page into my Muse site?  I need a client to be able to edit links on specific pages.  Inbrowser doesn't allow client to ad links.

    I need to be able to give my client access to a few pages with links.  These links will change often and they want to make the changes.  What is the best solution if you can insert a Wordpress page into Muse?

    Hi Vickichic,
    It is not possible to insert a wordpress page in Muse. You can refer to this post for a similar discussion : Re: How can i integrate Wordpress in my Muse website?
    Regards,
    Aish

  • How can i insert a heart shape into keynote

    Hi I am new to IMAC and want to insert a heart shape into Keynote so I can colour code it and write text inside - can someone help please -I've tried the drawing tool but no success!! thanks

    "I've tried the draw tool but no success." - Do you mean the tool in the shapes pull-down? It seems to work for me, but I'm not an artist. You might try importing a heart shape you want then use the draw tool to trace around it to get the correct outline you are looking for. When making a shape with the drawing tool, don't forget to place the last edit point over the first and double-click to complete the shape outline. Once drawn, use the graphic tab of the Inspector to assign a fill color. Clicking inside the shape should allow you to add text.
    Good luck.

Maybe you are looking for

  • VPN DNS Problem

    Hi Everybody 302016 192.168.77.20          60817          FileServer_DNS          53          Teardown UDP connection 1003725 for outside:192.168.77.20/60817 to inside:FileServer_DNS/53 I am getting this error on my asa 5505 firewall and VPN user is

  • Error while refreshing webi reports

    Hi I am getting the below error when i try to refresh my webi reports in prod/uat/qa/dev These reports are developed on my team mate's id . Please assist regards, mahi

  • Migration from Oracle application server from Windowsto Solaris

    Hi Friends, I want to migrate Oracle application server from Windows to solaris. Please share the document for this. Thanks in advance Anil Pinto

  • Audiovox PPC-6600 as a bluetooth wireless modem?

    Does anybody know how to use Audiovox PPC-6600 phone asa bluetooth wireless modem? I can pair my PBG4 15" with PDA function of the device but not with the phone or wireless modem function it has in it. Please help! DZZ

  • App Store asks for password for every download

    Sometimes I download a few apps at a time but every time I am asked to type in my iCloud password. Why? I have not exited the App Store app on my iPhone, I'm still in the same session, I've just looked around for just a couple of minutes more before