Oracle raw date form

Write a SQL statement that will obtain a date in Oracle in its raw form. And display the 4-digit year.

The 8 byte version comes from a C programming language structure, used in the Oracle kernel. It is similar to the standard tm structure (sorry, not the time_t as I said earlier) and works like this.
Byte 1: Epoch Number
Byte 2: Year offset from epoch base
Byte 3: Month
Byte 4: Day
Byte 5: Hour (24 hour time)
Byte 6: Minute
Byte 7: Second
Byte 8: I have no idea
All of the values in the structure appear to be unsigned byte type, so The base (byte 1) for the year offset (byte 2) needs to change, every 255 years.
SQL> select sysdate, dump(sysdate) from dual;
SYSDATE              DUMP(SYSDATE)
21-jul-2011 16:58:35 Typ=13 Len=8: 7,219,7,21,16,58,35,0
SQL> select 2011 - 219 from dual;
  2010-218
      1792
SQL> select dump(to_date('21-jul-1790', 'dd-mon-yyyy')) from dual;
DUMP(TO_DATE('21-JUL-1790','DD-M
Typ=13 Len=8: 6,254,7,21,0,0,0,0
SQL> select dump(to_date('21-jul-1792', 'dd-mon-yyyy')) from dual;
DUMP(TO_DATE('21-JUL-1792','DD
Typ=13 Len=8: 7,0,7,21,0,0,0,0john

Similar Messages

  • Problem loading PostgreSQL Bytea data type to Oracle Raw data type

    We are migrating our database from PostgreSQL to Oracle. First, we convert the BYTEA data type in PostgreSQL to Oracle RAW. The BYTEA data type is variable bytes array. How can we load the BYTEA data type to Oracle RAW data type? Or I have to convert to different data type. thanks.
    Peter,

    hi,
    Instead of 'interval day to second' in method declaration use internal datatype 'DSINTERVAL_UNCONSTRAINED'.
    There are more unconstrained types in oracle.
    Bartek

  • How to embedded oracle report data in email body from forms?

    Hi,
    I am working on oracle forms and report 10g and i am new to this. I want to knw How to embedded oracle report data in email body ?
    Regards
    Shruti

    I have uploaded a sample . This might help
    http://www.alexyscorp.com/send_report_email.zip

  • Issue with Oracle LONG RAW data type

    Hi All,
    I am facing some issues with Oracle LONG RAW DATA Type.
    We are using Oracle 9IR2 Database.
    I got a table having LONG RAW column and I need to transfer the same into another table having LONG RAW column.
    When I tried using INSERT INTO SELECT * command (or) CREATE TABLE as select * , it is throwing ORA-00997: illegal use of LONG datatype.
    I have gone through some docs and found we should not use LONG RAW using these operations.
    So I did some basic PLSQL block given below and I was able to insert most of the records. But records where the LONG RAW file is like 7O kb, the inserting is faliling.
    I tried to convert LONG RAW to BLOB and again for the record where the LONG RAW is big in size I am getting (ORA-06502: PL/SQL: numeric or value error) error.
    Appreciate if anyone can help me out here.
    DECLARE
    Y LONG RAW;
    BEGIN
    FOR REC IN (SELECT * FROM TRU_INT.TERRITORY WHERE TERRITORYSEQ=488480 ORDER BY TERRITORYSEQ ) LOOP
    INSERT INTO TRU_CMP.TERRITORY
    BUSINESSUNITSEQ, COMPELEMENTLIFETIMEID, COMPONENTIMAGE, DESCRIPTION, ENDPERIOD, GENERATION, NAME, STARTPERIOD, TERRITORYSEQ
    VALUES
    REC.BUSINESSUNITSEQ, REC.COMPELEMENTLIFETIMEID, REC.COMPONENTIMAGE, REC.DESCRIPTION, REC.ENDPERIOD, REC.GENERATION, REC.NAME,
    REC.STARTPERIOD, REC.TERRITORYSEQ
    END LOOP;
    END;
    /

    Maddy wrote:
    Hi All,
    I am facing some issues with Oracle LONG RAW DATA Type.
    We are using Oracle 9IR2 Database.
    I got a table having LONG RAW column and I need to transfer the same into another table having LONG RAW column.
    When I tried using INSERT INTO SELECT * command (or) CREATE TABLE as select * , it is throwing ORA-00997: illegal use of LONG datatype.
    I have gone through some docs and found we should not use LONG RAW using these operations.
    So I did some basic PLSQL block given below and I was able to insert most of the records. But records where the LONG RAW file is like 7O kb, the inserting is faliling.
    I tried to convert LONG RAW to BLOB and again for the record where the LONG RAW is big in size I am getting (ORA-06502: PL/SQL: numeric or value error) error.
    Appreciate if anyone can help me out here.
    DECLARE
    Y LONG RAW;
    BEGIN
    FOR REC IN (SELECT * FROM TRU_INT.TERRITORY WHERE TERRITORYSEQ=488480 ORDER BY TERRITORYSEQ ) LOOP
    INSERT INTO TRU_CMP.TERRITORY
    BUSINESSUNITSEQ, COMPELEMENTLIFETIMEID, COMPONENTIMAGE, DESCRIPTION, ENDPERIOD, GENERATION, NAME, STARTPERIOD, TERRITORYSEQ
    VALUES
    REC.BUSINESSUNITSEQ, REC.COMPELEMENTLIFETIMEID, REC.COMPONENTIMAGE, REC.DESCRIPTION, REC.ENDPERIOD, REC.GENERATION, REC.NAME,
    REC.STARTPERIOD, REC.TERRITORYSEQ
    END LOOP;
    END;
    /below might work
    12:06:23 SQL> help copy
    COPY
    Copies data from a query to a table in the same or another
    database. COPY supports CHAR, DATE, LONG, NUMBER and VARCHAR2.
    COPY {FROM database | TO database | FROM database TO database}
                {APPEND|CREATE|INSERT|REPLACE} destination_table
                [(column, column, column, ...)] USING query
    where database has the following syntax:
         username[/password]@connect_identifier

  • Import/Export of LONG RAW data to/from Oracle 7.3.3

    Is it possible to export the table with LONG RAW data from one instance and then import the dump file to another instance? Does Oracle 7.3.3 support these, if yes, how can I verify the LONG RAW data is successfully imported? If possible, please also provide me with some sample codes. Thanks a lot.

    NO you do not have to run catexp7, export files are UPWARD compatable. 10G import can read a 7 export (however 7 export could NOT understand a 10g export.)

  • Handling RAW data types (from SAP) in Adobe forms - Illegal Arg Exception

    Hi,
          I have a scenario where I have to get data of type RAW in SAP to Adobe Forms using web dynpro java. What is the corresponding type in Web Dynpro / Adobe Forms.
    I am using Adaptive RFC and when I get the model from SAP function module, the RAW type is created as Binary type in the data dictionary of Web Dynpro.
    When I map the model context to controller context, the type is taken as byte[].
    I tried to set the attribute for this field and I got the Illegal Argument Exception error.
    I am using NWDS 7.0.9 and NW04s SP12. Pl help. I am working on this since 10 days but could get no solution.
    The initial exception that caused the request to fail, was:
    <b>java.lang.IllegalArgumentException</b>
    at com.sap.dictionary.runtime.DdTypeBinary.format(DdTypeBinary.java:60)
    at com.sap.dictionary.runtime.DdTypeBinary.toString(DdTypeBinary.java:64)
    at com.sap.tc.webdynpro.clientserver.data.DataContainer.doFormat(DataContainer.java:1405)
    at com.sap.tc.webdynpro.clientserver.data.DataContainer.getAndFormat(DataContainer.java:1098)
    at com.sap.tc.webdynpro.clientimpl.xdp.renderer.data.XfdRenderer.renderAttributes(XfdRenderer.java:370)
    ... 41 more

    Issue with the RAW data types is resolved now. I have changed the data type of the field into String in the dictionary (web dynpro).. I have changed the corresponding getters and setter functions from byte[] to string. And everything working fine now. I got the Illegal Argument exception initially because I was trying to display the binary data type fields on the adobe form or view which I am not supposed to do.
    Also it is better to create separate view attributes in the context to get the values rather than mapping the model attributes directly in the form or view.
    Thank you one and all.
    Regards
    Vasu

  • [ORACLE 10G] Extract Long Raw data to disc

    Hi All,
    I want to extract a column which contain long raw data (pdf file) into files on my disque, but i don't know how to do it in SQL or PL/SQL, any help ???

    Or maybe just an alter table statement will do it for you...
    SQL> create table xx (x long raw);
    Table created.
    SQL> desc xx;
    Name                                                                   Null?    Type
    X                                                                               LONG RAW
    SQL> alter table xx modify (x blob);
    Table altered.
    SQL> desc xx;
    Name                                                                   Null?    Type
    X                                                                               BLOB
    SQL>I've not really used LONG RAW's before but apparently (according to sources on the net) the simlple alter table statement above will do the job.

  • Error in visualizing a Data Form "WDEFGenerator.cpp"

    Hi,
    I have migrated an HFM application from version 4.01 SP2 to version 11.1.2.1
    Everything works fine appart from an error in visualizing a Data Form:
    In the previous version of HFM this error was not verified.
    If I disable the option SuppressNoDataRows I get no errors but I would like to keep this option enabled.
    Does anyone know what could be the problem?
    The error I'm getting is:
    Error Reference Number: {3783BC27-A47D-463A-9F21-5E1C2B55A775};User Name: hypadmin@Native Directory
    Num: 0x80070057;Type: 0;DTime: 6/19/2012 4:41:11 PM;Svr: BMI-2K8-HFMPA;File: WDEFGenerator.cpp;Line: 1407;Ver: 11.1.2.1.103.3505;
    Num: 0x80070057;Type: 0;DTime: 6/19/2012 4:41:12 PM;Svr: BMI-2K8-HFMPA;File: WDEFGenerator.cpp;Line: 3284;Ver: 11.1.2.1.103.3505;
    Num: 0x80070057;Type: 0;DTime: 6/19/2012 4:41:12 PM;Svr: BMI-2K8-HFMPA;File: WDEFGenerator.cpp;Line: 3166;Ver: 11.1.2.1.103.3505;
    Num: 0x80070057;Type: 0;DTime: 6/19/2012 4:41:12 PM;Svr: BMI-2K8-HFMPA;File: CHsvWebFormGeneratorACM.cpp;Line: 3687;Ver: 11.1.2.1.103.3505;
    Num: 0x80070057;Type: 0;DTime: 6/19/2012 4:41:12 PM;Svr: BMI-2K8-HFMPA;File: CHsvWebFormGeneratorACM.cpp;Line: 3389;Ver: 11.1.2.1.103.3505;
    Num: 0x80070057;Type: 0;DTime: 6/19/2012 4:41:11 PM;Svr: BMI-2K8-HFMPW;File: CHsvWebFormsACV.cpp;Line: 569;Ver: 11.1.2.1.103.3505;
    And the data form script is:
    ReportType=WebForm
    ReportLabel=1_1_12_1
    ReportDescription=Trade Receivables > 12 months
    BackgroundPOV=S#ACT.w#<Scenario View>.V#<Entity Currency>.A#[None].I#[ICP None].C1#[None].C2#[None].C3#[None].C4#[None]
    SelectablePOVList=Y{[Hierarchy]}.P{[Second Generation]}.E{GRBRA000.[Base]}
    C1=C1{FL_CURR.[Base]}
    R1=A#3_03_01.I#[ICP Entities],AddMember:I{CONS}
    R2=A#3_03_01.I{CONS}
    R3=A#3_03_02.I#[ICP Entities],AddMember:I{ASS}
    R4=A#3_03_02.I{ASS}
    R5=A#3_03_03.I#[ICP Entities],AddMember: I{PARENT}
    R6=A#3_03_03.I{PARENT}
    R7=A#3_03_04,NoSuppress
    R8=A#3_03_1.I#[ICP Top],CustomHeaderStyle:font: bold,NoSuppress
    FormRowHeight=20 px
    PrintNumRowsPerPage=10
    PrintNumDataColsPerPage=3
    SuppressNoDataRows=True
    ShowLabels=True
    SuppressColHeaderRepeats=False
    HeaderOptionAccount=ShowLabel,ShowDescription,Length:50
    HeaderOptionICP=ShowDescription
    HeaderOptionCustom1=ShowDescription
    HeaderOptionCustom2=ShowDescription
    Thanks
    Best Regards

    Hi
    Check they have the "Data Form Write Back from Excel" role in Shared Services.
    See p.133 of the security guide for more info -
    http://docs.oracle.com/cd/E17236_01/epm.1112/hss_admin_1112200.pdf
    Regards
    jpr

  • Problems about deploying Oracle web application (Forms, Reports)

    I am going to deploy Oracle web applications (Forms and Reports) and plan to use the same server machine for both Application web server and Database server.
    1. How can I enable SSL (for data encryption) on Application web server for Oracle Forms ?
    2. Since both Application web server and Database server will use the same machine, do I still need Oracle Advanced Security for data transmission between Application web server and Database server if data encryption for transmission is required ?
    3. Can I user Oracle Forms to call Oracle Report on web as I did in Client/Server in the past ?
    Experts like you may have come across such problems. Would you please give me some opinions/ideas ?
    Regards,
    Richard

    1. check the paper about the Forms servlet architecture on otn forms section for SSL tips.
    3. Check the reports and forms integration paper on otn too.

  • Error while creating Data Form Definition report from Planning

    Hi All,
    Working on Planning 11.1.2 (x64)
    I tried to generate a Data Form Definition report from Planning and found that I get an error if I select the option "Include member selection list". By going a bit deeper, I realised that it errors for some forms while works fine for others.
    I have tried to find any differences in setting or selection between the forms but haven't been able to see anything that struck me as a reason for error.
    Help please.
    Thanks,
    Abhishek

    The Planning sysout log says:
    [120910_091125126][oracle.apps.xdo.common.xml.XSLTWrapper][EXCEPTION] XSL error:
    <Line 1, Column 1068>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 1068>: XML-20250: (Fatal Error) Missing entity 'ThisYear'.
    <Line 1, Column 1075>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 1075>: XML-20250: (Fatal Error) Missing entity 'Year2'.
    <Line 1, Column 1082>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 1082>: XML-20250: (Fatal Error) Missing entity 'Year3'.
    <Line 1, Column 1089>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 1089>: XML-20250: (Fatal Error) Missing entity 'Year4'.
    <Line 1, Column 1096>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 1096>: XML-20250: (Fatal Error) Missing entity 'Year5'.
    <Line 1, Column 4586>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 4586>: XML-20250: (Fatal Error) Missing entity 'ThisYear'.
    <Line 1, Column 4593>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 4593>: XML-20250: (Fatal Error) Missing entity 'Year2'.
    <Line 1, Column 4600>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 4600>: XML-20250: (Fatal Error) Missing entity 'Year3'.
    <Line 1, Column 4607>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 4607>: XML-20250: (Fatal Error) Missing entity 'Year4'.
    <Line 1, Column 4614>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 4614>: XML-20250: (Fatal Error) Missing entity 'Year5'.
    <Line 1, Column 12215>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 12215>: XML-20250: (Fatal Error) Missing entity 'ThisYear'.
    <Line 1, Column 12222>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 12222>: XML-20250: (Fatal Error) Missing entity 'Year2'.
    <Line 1, Column 12229>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 12229>: XML-20250: (Fatal Error) Missing entity 'Year3'.
    <Line 1, Column 12236>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 12236>: XML-20250: (Fatal Error) Missing entity 'Year4'.
    <Line 1, Column 12243>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 12243>: XML-20250: (Fatal Error) Missing entity 'Year5'.
    <Line 1, Column 18528>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 18528>: XML-20250: (Fatal Error) Missing entity 'ThisYear'.
    <Line 1, Column 18535>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 18535>: XML-20250: (Fatal Error) Missing entity 'Year2'.
    <Line 1, Column 18542>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 18542>: XML-20250: (Fatal Error) Missing entity 'Year3'.
    <Line 1, Column 18549>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 18549>: XML-20250: (Fatal Error) Missing entity 'Year4'.
    <Line 1, Column 18556>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 18556>: XML-20250: (Fatal Error) Missing entity 'Year5'.
    <Line 1, Column 39824>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 39824>: XML-20250: (Fatal Error) Missing entity 'Scenario'.
    <Line 1, Column 39905>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 39905>: XML-20250: (Fatal Error) Missing entity 'PriorYear'.
    <Line 1, Column 39985>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 39985>: XML-20250: (Fatal Error) Missing entity 'ThisYear'.
    <Line 1, Column 39992>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 39992>: XML-20250: (Fatal Error) Missing entity 'Year2'.
    <Line 1, Column 39999>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 39999>: XML-20250: (Fatal Error) Missing entity 'Year3'.
    <Line 1, Column 40006>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 40006>: XML-20250: (Fatal Error) Missing entity 'Year4'.
    <Line 1, Column 40013>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 40013>: XML-20250: (Fatal Error) Missing entity 'Year5'.
    <Line 1, Column 41613>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 41613>: XML-20250: (Fatal Error) Missing entity 'CommentYearTarget'.
    <Line 1, Column 41702>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 41702>: XML-20250: (Fatal Error) Missing entity 'CommentYearTarget'.
    <Line 1, Column 41791>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 41791>: XML-20250: (Fatal Error) Missing entity 'CommentYearTarget'.
    <Line 1, Column 41880>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 41880>: XML-20250: (Fatal Error) Missing entity 'CommentYearTarget'.
    <Line 1, Column 41960>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 41960>: XML-20250: (Fatal Error) Missing entity 'ThisYear'.
    <Line 1, Column 41967>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 41967>: XML-20250: (Fatal Error) Missing entity 'Year2'.
    <Line 1, Column 41974>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 41974>: XML-20250: (Fatal Error) Missing entity 'Year3'.
    <Line 1, Column 41981>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 41981>: XML-20250: (Fatal Error) Missing entity 'Year4'.
    <Line 1, Column 41988>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 41988>: XML-20250: (Fatal Error) Missing entity 'Year5'.
    <Line 1, Column 46124>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 46124>: XML-20250: (Fatal Error) Missing entity 'CostCentre'.
    <Line 1, Column 47563>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 47563>: XML-20250: (Fatal Error) Missing entity 'Scenario'.
    <Line 1, Column 47644>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 47644>: XML-20250: (Fatal Error) Missing entity 'PriorYear'.
    <Line 1, Column 47724>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 47724>: XML-20250: (Fatal Error) Missing entity 'ThisYear'.
    <Line 1, Column 47731>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 47731>: XML-20250: (Fatal Error) Missing entity 'Year2'.
    <Line 1, Column 47738>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 47738>: XML-20250: (Fatal Error) Missing entity 'Year3'.
    <Line 1, Column 47745>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 47745>: XML-20250: (Fatal Error) Missing entity 'Year4'.
    <Line 1, Column 47752>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 47752>: XML-20250: (Fatal Error) Missing entity 'Year5'.
    <Line 1, Column 49431>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 49431>: XML-20250: (Fatal Error) Missing entity 'Scenario'.
    <Line 1, Column 49512>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 49512>: XML-20250: (Fatal Error) Missing entity 'PriorYear'.
    <Line 1, Column 49592>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 49592>: XML-20250: (Fatal Error) Missing entity 'ThisYear'.
    <Line 1, Column 49599>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 49599>: XML-20250: (Fatal Error) Missing entity 'Year2'.
    <Line 1, Column 49606>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 49606>: XML-20250: (Fatal Error) Missing entity 'Year3'.
    <Line 1, Column 49613>: XML-20100: (Fatal Error) Expected ';'.
    <Line 1, Column 49613>: XML-20250: (Fatal Error) Missing entity 'Year4'.
    Most of these are Substitution Variables. I dont know why it is showing a few lines for "Scenario" as well.
    The Planning syserr log says
    java.net.SocketException: socket write error: Connection reset by peer.
         at jrockit.net.SocketNativeIO.writeBytesPinned(Native Method)
         at jrockit.net.SocketNativeIO.socketWrite(SocketNativeIO.java:73)
         at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
         at weblogic.utils.io.ChunkedOutputStream.writeTo(ChunkedOutputStream.java:193)
         at weblogic.servlet.internal.ResponseHeaders.writeHeaders(ResponseHeaders.java:443)
         at weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseImpl.java:1291)
         at weblogic.servlet.internal.ServletOutputStreamImpl.sendHeaders(ServletOutputStreamImpl.java:260)
         at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:108)
         at weblogic.servlet.internal.ServletResponseImpl.sendRedirect(ServletResponseImpl.java:907)
         at HspValidatingHttpResponse.sendRedirect(Unknown Source)
         at jsp_servlet.__planninglogoff._jspService(__planninglogoff.java:1411)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:35)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at HspValidationFilter.doFilter(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    oracle.xml.parser.v2.XMLParseException: Expected ';'.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:323)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:335)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:318)
         at oracle.apps.xdo.common.xml.XSLTClassic.transform(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
         at HspReportingServlet.Handle(Unknown Source)
         at HspHttpServlet.initialize(Unknown Source)
         at HspHttpServlet.doGet(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at HspValidationFilter.doFilter(Unknown Source)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Would be great if you could interpret these log and let me know how I can resolve this.
    Cheers

  • Error entering data in a data form using Smart View

    One of my user is facing an issue while entering data in a data form through Excel, if she uses the same data form in workspace she is able to enter data. She is facing the issue while entering in a specific column, for all other columns she is able to enter data in the data form. It is only one column for which she is facing issue while using smart view/excel and not workspace, as in workspace she is able to enter data.
    Thanks,

    Hi
    Check they have the "Data Form Write Back from Excel" role in Shared Services.
    See p.133 of the security guide for more info -
    http://docs.oracle.com/cd/E17236_01/epm.1112/hss_admin_1112200.pdf
    Regards
    jpr

  • Connecting oracle dev 2000 forms to oracle 9i database on another server

    we have these oracle developer 2000 forms (in .fmx format) in a server and the data of these forms in another server.... the server with the data is very old and is very slow...so we decided to relocate the database(oracle 9i) to a new server..... also, we move the developer 2000 forms from the old server to another server which will serve as the front end to the new data server.
    The problem is we can't figure out how to make the developer 2000 forms on the new front end server to point to the new database on the new data server. I would really appreciate if u cud gimme some advice on this... so we need to know how the forms find the data, where this "connection string" is for developer 2000 forms.

    You have to create a Net Service from "Net Configuration Assistant". Or you can copy TNSNAMES.ora file from your old server to new server. You can find TNSNAMES.ora file in developer_suite_Home/Network/admin folder.

  • Count the Number of Rows in Data form

    Hi,
    I want to count the number of rows in a data form.In my form there is a large number of rows.Is there any way to count it.
    Thanks.

    If you are on 11.1.2.x then you could look at adding a formula and using the CountA function - http://download.oracle.com/docs/cd/E17236_01/epm.1112/hp_admin/apcs03s06.html
    Otherwise it would be possible using custom javascript which you would have to had some experience in using.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • T-code F.27 or F.61 send raw data (tab delimited) to customers statements

    To enable intercompany customers to reconcile their accounts with ease we want to give them an excel file of all open items.
    Our thoughts are to use T-code F.27 (standard transaction for generating account statements) or F.61 and instead of sending a form, we would like to send raw data (tab delimited) which can easily be opened in excel to their email address.
    Each time I try I can only get a pdf or fixed file.
    Has anyone else done this?
    How to do, create this?
    Export text file to SAP Gui ?
    Many thanks for any ideas or help
    Edited by: Christine Kendall on Mar 16, 2010 6:00 PM
    *has anyone else extracted info to send to customers in format that can be amended i.e excel ? *

    Hi
    do you find a solution for your issue? Or did anyone else know how to send raw data instead of the pdf or fixed file from transaction F.61?
    Thanks for any ideas or help
    Axel

  • How to convert raw data to original data

    Hi,
    I'm using db10g.
    I have stored the blob of a word doc into the database using dbms_lob package.
    Now during retrieval, i'm getting the raw data using the code
    dbms_lob.read( l_lob, l_amt, l_off, l_raw );
    l_raw is of type raw.
    I want to convert the raw data to original string.
    Please Help
    Thanks

    Divya wrote:
    I think I have clearly told that i have blobs of different files in my database.
    The files are of different type, I have blob of pdf,doc,html,xml,gif etc...
    and in the procedure i have posted(get_file_contents), it is a database procedure and i'm calling it from the forms.
    So i'm passing the file_name and file_id to the procedure(file_name and file_id are the columns in the table.
    Table 'Blob_Details' have 4 columns file_id,file_name,file_type,theblob) and a varchar variable final_data.
    final_data varchar(32000)
    and in the procedure i'm taking the blob from database, reading it using dbms_lob.read in a loop and casting it to varchar and storing the contents in the variable final_data.
    So coming out of the loop, the variable final_data will have the contents of the given file.BLOB data (such as word or excel documents and PDFs containing images etc.) are Binary data, not Character data. Converting that raw binary data to VARCHAR will cause issues.
    If you have loaded a binary file and stored it on the database as a BLOB (Binary data) and you now want to create the original file from that BLOB, you will simply need to read the BLOB data from the database into BLOB variable and process it in chunks, using UTL_FILE to write out, in Binary mode, that data to a file with the appropriate filename. The actual process is quite simple...
    As sys user:
    CREATE OR REPLACE DIRECTORY MY_FILES AS 'c:\myfiles';
    GRANT READ,WRITE ON DIRECTORY MY_FILES TO myuser;As myuser:
    DECLARE
       -- Data Variables
       v_blob             BLOB;
       v_data_length      NUMBER;
       -- Loop Control Variables
       v_offset           NUMBER := 1;
       v_chunk   CONSTANT NUMBER := 32767; -- maximum chunk size
       -- UTL_FILE variables
       fh                 UTL_FILE.file_type;
    BEGIN
       v_blob := ... populate the blob variable here
       v_data_length := DBMS_LOB.getlength (v_blob);
       -- Open the file
       fh := UTL_FILE.fopen ('MY_FILES', 'myfile.dat', 'wb', v_chunk);
       LOOP
          -- Exit when our file offset is bigger than our file
          EXIT WHEN v_offset > v_data_length;
          -- Write the output chunk by chunk
          UTL_FILE.put_raw (fh, DBMS_LOB.SUBSTR (v_blob, v_chunk, v_offset), TRUE);
          -- Increment the offset by the amount written
          v_offset := v_offset + v_chunk;
       END LOOP;
       -- Close the file
       UTL_FILE.fclose (fh);
    END;

Maybe you are looking for