Working with oracle types

i created a function which is creating a type
below is the fields of the type
IF substr(v_NewLine,1,1) = 'D' then -- Checking for record
     PIPE ROW(phys_gds_obj(substr(v_NewLine,2,12),
               substr(v_NewLine,13,31), -- Cc1
          substr(v_NewLine,32,36), -- Pri
          substr(v_NewLine,37,41), -- Sec
          substr(v_NewLine,42,45), -- RPC
          substr(v_NewLine,46,49), -- Fee
          substr(v_NewLine,50,53), -- Pri
          substr(v_NewLine,54,57), -- Cat
          substr(v_NewLine,58,61), -- Cat
          substr(v_NewLine,62,65), -- Cat
          substr(v_NewLine,66,66), -- Goo
          substr(v_NewLine,67,67), -- Ter
          substr(v_NewLine,68,70)));
and the records for which i am creating the type is like this
D013984113824266514200134055 00287000000322 0181 Y
D013984150675415072000005634 01800000000282 0162 Y
when i execute the function it is telling the below error
ORA-06502: PL/SQL: numeric or value error: number precision too large
what i have to do
whether i have to use some nvl functions like that
suggestions welcome

what i have to doThe clue is in the error message....
SQL> declare
  2     n number(2);
  3  begin
  4     n := 99;
  5  end;
  6  /
PL/SQL procedure successfully completed.
SQL> declare
  2     n number(2);
  3  begin
  4      n := 999;
  5  end;
  6  /
declare
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: number precision too large
ORA-06512: at line 4
SQL> Cheers, APC
Blog : http://radiofreetooting.blogspot.com/

Similar Messages

  • Working with Oracle Multimedia Types ORDSYS.ORDDOC

    Hi All,
    Using the "Oracle Fusion Developer Guide" page 404 Working with Oracle Multimedia Types by Frank Nimphius and Lynn Munsinger. I tried to replicate the solution in a sample app. My upload works as said when I place the VO as a ADF Form.
    Now I wanted to replicate the same while placing the VO as a ADF Table, where user has an option of creating 1 or more records.
    I have made the following changes to the pageDef. and jspx
    <tree IterBinding="MydocsView1Iterator" id="MydocsView1" CustomInputHandler="OrdDomainValueHandler">
          <nodeDefinition DefName="model.MydocsView" Name="MydocsView10" >
            <AttrNames>
              <Item Value="Id"/>
              <Item Value="Doc" />
              <Item Value="Image"/>
            </AttrNames>
          </nodeDefinition>
        </tree>
    <af:column sortProperty="Doc" sortable="false"
                           headerText="#{bindings.MydocsView1.hints.Doc.label}"
                           id="c1">
                  <af:inputFile value="#{row.bindings.Doc.inputValue}"
                                label="#{bindings.MydocsView1.hints.Doc.label}"
                                required="#{bindings.MydocsView1.hints.Doc.mandatory}"
                                columns="#{bindings.MydocsView1.hints.Doc.displayWidth}"
                                shortDesc="#{bindings.MydocsView1.hints.Doc.tooltip}"
                                id="it3">
                    <f:validator binding="#{row.bindings.Doc.validator}"/>
                    <binding:convertOrdDomain bindingRef="#{row.bindings.Doc}"/>
                  </af:inputFile>
                </af:column>When I changed the <binding:convertOrdDomain bindingRef ="#{bindings.Doc}" to <binding:convertOrdDomain bindingRef="#{row.bindings.Doc}"/> it started throwing null pointer exception.
    java.lang.NullPointerException
         at oracle.jbo.im.OrdUtils.getOrdObject(OrdUtils.java:33)
         at oracle.adfinternal.view.faces.convert.OrdDomainConverter.getAsObject(OrdDomainConverter.java:40)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputFileRenderer.getConvertedValue(SimpleInputFileRenderer.java:111)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.getConvertedValue(LabeledInputRenderer.java:99)Anything extra to be done when we trying to workout uploadfiles in a ADFTable.
    Thanks,
    Morgan.
    Edited by: Morgan Freeman on Sep 7, 2011 6:03 AM

    Hi Morgan,
    I was wondering if you were able to resolve this issue. I had a table where I had users manage attached files and it was giving me this same error.
    java.lang.NullPointerException
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeDef(JUCtrlValueBinding.java:553)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeDef(JUCtrlValueBinding.java:2637)
         at oracle.jbo.im.OrdUtils.getOrdObject(OrdUtils.java:33)
         at oracle.adfinternal.view.faces.convert.OrdDomainConverter.getAsObject(OrdDomainConverter.java:40)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputFileRenderer.getConvertedValue(SimpleInputFileRenderer.java:111)
    I thought this was because of my table, so made my table read only and had the users navigate to a pop up with a form where one of the fields has the CustomInputHandler="OrdDomainValueHandler". This appears to work fine when the first file is attached. However, if I go to another record and try to attach a file, I get the error you menioned again.
    Were you able to resolve this? If yes, do you mind sharing your solution/work around?

  • Does Informatica 7.1 work with Oracle 10g?

    Hi All,
    I have Oracle 10g (10.2.0.1.0) and I just installed Informatica 7.1. While creating a new repository in Informatica Repository Admin Console, I am getting error as:
    "Unable to create the repository content. Make sure that the database connection and the license keys are correct. Check the activity log for more details."
    I confirmed that the license keys are correct. The database connection is also good as I could connect using the same username/password in SQLPlus. The activity log says:
    WARNING : RS_39204 [Mon Mar 22 15:05:38 2010] : (5160|5392) Bad config file [Config\infrepo-es.cfg]. Has it been manually named and placed in the Config directory? The expected name is [Config\_Yrepository_0name_Z-es.cfg].
    ERROR : RS_39194 [Mon Mar 22 15:51:52 2010] : (5160|5568) Failure in running command-line request type[100401] [pmrepagent create -r "Info_Repo" -t "Oracle" -u infrep -c orcl -d "MS1252" -h sathe-3766a91ad -o 9999  -a Info_0Repo-es.lic -H "sathe-3766a91ad" -O 5001 -K 2082340862]. Error is [An error occurred while creating the repository.
    I did not change anything manually,as it says in the warning. I have no idea what the error says.
    My friend has Oracle 9i and he do not get any error like this. So does Informatica 7.1 works with Oracle 10g ?
    Please help.
    Yogini                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    I found that with Oracle 10g you have to grant all DBA privileges to the repository user. This is not needed in Oracle 9i. Thats why I was getting error.
    Now it works fine.
    Thanks!
    Yogini

  • Working with NUMBER types in ASP

    Hi,
    We are having big problems working with Oracle from a ASP application. We return data from the Oracle (8i) database using Oracle ODBC driver (9.2). However, whenever Oracle returns NUMBER columns (Number(8)), we cannot work with them in ASP because of an ASP VBScript bug that prevents adNumeric from working withouut explicitly casting to numbers (see
    http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q195/1/80.ASP&NoWebContent=1&NoWebContent=1 for more info).
    I was wondering if there is any other way to get round this in ORacle - can I set somethign in the ODBC driver that instead of returning the data as adNumeric, it returns it as some other number type that wont exhibit this problem?
    Thanks in advance!

    Anyone :-(

  • Unable to find ODI_SAmple_DATA.zip file to work with oracle profiling.

    I am unable to find ODI_SAmple_DATA.zip file to work with oracle profiling.Any help regarding profiling???Do i need to
    copy it from sw installation folder.?How profiling is different or related to odi data quality???Do we take source data twice -
    1) For ODI target load
    2)For profiling into entities.

    Try:
    http://www.oracle.com/technology/products/oracle-data-quality/pdf/oracledq_sample_data.zip
    and
    http://download.oracle.com/otn/nt/ias/101340/oracledq_sample_directory.zip
    Hope this helps.
    G

  • Can Oracle designer 1.3.2 work with Oracle 8.0.5

    Dear Sir/Miss,
    I would like to know if anyone can tell me if Oracle Designer 1.3.2 can work with Oracle 8.0.5 database or not?
    Thank you
    Best Regards

    First i installed Oracle 10g on my windows 7 home premium 64 bit .
    Then i installed OBIEE 10.1.3.4 on my machine
    But then there were some problems cropping up and i wasn't able to use OBIEE 10.1.3.4 with windows 7home premium 64 bit machine.
    I then removed both oracle 10g and OBIEE 10.1.3.4 from my machine.
    Then i installed oracle 11g 64bit and then OBIEE 10.1.3.4 . But again it dint work
    Can anyone help?

  • Oracle 11g XE not working with oracle BI publisher 10g after enabling ACL

    Hello,
    I previously work with oracle 10gXE and Oracle BI publisher 10g and it work fine. now i install oracle 11g XE and try to configure it with oracle Bi Publlisher, it show this error
    "ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1324 ORA-12570: TNS:packet reader failure" after runing the ACL package to neable network service.
    on the database.
    Please can any body tell be why this is not working. Tanx.

    You'll need to add the apex engine owner to the ACL (Access Control List). Depending on your version of apex the user name varies. i.e. 4.0 is APEX_040000
    See Joel's blog for info about the ACL and APEX.
    [http://joelkallman.blogspot.com/2010/10/application-express-network-acls-and.html]

  • ASP application has problems working with oracle database 8.1.7

    ASP application has problems working with oracle database 8.1.7 through both oracle ODBC driver and Microsoft ODBC driver
    We have an ASP application running on Windows 2000 server, and with 8.1.7 Net8Client and MDAC 2.6 SP1.
    The application worked fine with an Oracle 8.0.5 database.
    After upgrading oracle database to 8.1.7.0.0, our ASP application works fine except when updating the same data record more than once. The application is not saving our updates.
    We tested our application using Oracles ODBC driver v8.1.7.5.0
    and experienced more problems. We had problems just bring up our data entry pages. In either case, we are returned with some 505 errors in our browser, problems with the ASP pages and IIS, the page is not displaying.
    If anyone has some suggestions on how to fix my problem, please advise. Thanks in advance.

    thanks...i saw one article with this approach..but the document did not present the detailed process...do you have one? i am still searching for a good procedure to follow...since it is an old database and focusing/studying old versions like this is a pain in the a**... :(

  • Does INNER JOIN work with Oracle 8i ? (ORA-00933)

    hi,
    I try to execute the sql:
    SELECT
    A0.FULL_NAME,A0.MANAGER_ID,A0.DEPT_NO,A0.TOP_DEPT
    FROM
    HR_ORG A0
    INNER JOIN
    HR_EMP A1
    ON
    A0.MANAGER_ID=A1.EMP_NO
    WHERE
    A1.NAME = 'michael'
    but I caught an exception:
    java.sql.SQLException: ORA-00933: SQL...(message in
    chinese)
    Does INNER JOIN work with Oracle 8i ?
    thanks.

    INNER JOIN syntax is introduced in 9i, it does not exists in 8i. You can rewrite your statement:
    SELECT
    A0.FULL_NAME,A0.MANAGER_ID,A0.DEPT_NO,A0.TOP_DEPT
    FROM
    HR_ORG A0
    , HR_EMP A1
    WHERE
    A0.MANAGER_ID=A1.EMP_NO
    AND
    A1.NAME = 'michael'

  • Few errors while working with Oracle 9i developer suite.

    I am facing a few errors working with Oracle 9i developer suite.
    1. while running forms we have to press "ctrl +F11" to execute a query.
    is there any other way of executing a query where the user can do it at a click of button or so? and similarly some way of canceling a query?
    2. how can we run parameterized reports thru a menu in forms?
    3. i had run a query which fetched around 15 records which were populated in 10 text boxes. i cud scroll down to see the records, with the keys but was not able to scroll back up. how can this be avoided or some way thru which we can scroll?
    4. can sessions be created in Oracle forms?
    5. the security feature thru menu roles is not proving efficient. can some1 suggest some way of achieving this user access control?
    hope some 1 can answer my queries soon

    1) execute query in windows is F8, yours is unix. Change the resource-file. You find them in <forms-home>. fmrweb.res is the standard. Save a copy. Copy then the fmrpcweb.res into fmrweb.res. That's all.
    2) start in the menu with an execute_trigger ('UN_MY_REPORT_CALL') a forms-level-trigger in your form. Then you can interact with your report-objects.
    3) page down + up are the keys to scroll. maybe the solution is 1)
    4) yeah, implicit with open_form (... new_session...) but what do you need ?
    5) write your own mechanism. say first, which features do you need
    Gerd

  • How to get exact match when working with Oracle Text?

    Hi,
    I'm running Oracle9i Database R2.
    I would like to know how do I get exact match when working with Oracle Text.
    DROP TABLE T_TEST_1;
    CREATE TABLE T_TEST_1 (text VARCHAR2(30));
    INSERT INTO T_TEST_1 VALUES('Management');
    INSERT INTO T_TEST_1 VALUES('Busines Management Practice');
    INSERT INTO T_TEST_1 VALUES('Human Resource Management');
    COMMIT;
    DROP INDEX T_TEST_1;
    CREATE INDEX T_TEST_1_IDX ON T_TEST_1(text) INDEXTYPE IS CTXSYS.CONTEXT;
    SELECT * FROM T_TEST_1 WHERE CONTAINS(text, 'Management')>0;
    The above query will return 3 rows. How do I make Oracle Text to return me only the first row - which is exact match because sometimes my users need to look for exact match term.
    Please advise.
    Regards,
    Jap.

    But I would like to utilize the Oracle Text index. Don't know your db version, but if you slightly redefine your index you can achieve this (at least on my 11g instance) :
    SQL> create table t_test_1 (text varchar2(30))
      2  /
    Table created.
    SQL> insert into t_test_1 values ('Management')
      2  /
    1 row created.
    SQL> insert into t_test_1 values ('Busines Management Practice')
      2  /
    1 row created.
    SQL> insert into t_test_1 values ('Human Resource Management')
      2  /
    1 row created.
    SQL>
    SQL> create index t_test_1_idx on t_test_1(text) indextype is ctxsys.context filter by text
      2  /
    Index created.
    SQL> set autotrace on explain
    SQL>
    SQL> select text, score (1)
      2    from t_test_1
      3   where contains (text, 'Management and sdata(text="Management")', 1) > 0
      4  /
    TEXT                             SCORE(1)
    Management                              3
    Execution Plan
    Plan hash value: 4163886076
    | Id  | Operation                   | Name         | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT            |              |     1 |    29 |     4   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS BY INDEX ROWID| T_TEST_1     |     1 |    29 |     4   (0)| 00:00:01 |
    |*  2 |   DOMAIN INDEX              | T_TEST_1_IDX |       |       |     4   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("CTXSYS"."CONTAINS"("TEXT",'Management and
                  sdata(text="Management")',1)>0)
    Note
       - dynamic sampling used for this statementJust read that you indeed mentioned your db version in your first post.
    Not sure though if above method is already available in 9i ...
    Message was edited by:
    michaels

  • Does Oracle Designer 10g work with Oracle 10g Express?

    Guys:
    Does anybody know if Oracle Designer works with Oracle 10g Express?
    Regards,
    Mike Gorman

    Designer will not work on express edition of the Oracle Database. You will need the Standard or the Enterprise Edition of the Database.

  • Regarding  working with oracle spatial database connections

    sir/madem,
    i am an engg student, my final year project on inserting data into oracle spatial database through java /jsp , i am working with oracle spatial database 10g/11g,
    i want know how to insert/retrive/ manuplute the spatial data into oracle spatial databse for 10g/11g, through java programing,
    the syntax for connection of oracle spatial database 10g/11g, needed,
    i have less time to finish my project
    i hope u  help me
    thank u
    kasim
    ([[email protected]|mailto:[email protected]])

    For database access from Java, you will use JDBC.
    For the specifics of the oracle spatial database, you'll have to check the documentation/forum of Oracle.
    * [How To Ask Questions The Smart Way|http://www.catb.org/~esr/faqs/smart-questions.html]
    * [JDBC Tutorial|http://java.sun.com/docs/books/tutorial/jdbc/index.html]

  • Does ORACLE functions work with Oracle Database 10G

    Hi,
    I am wondering if ORACLE functions work with Oracle Database 10G or is it mandatory to use OCI functions?
    Thanks in advance!

    I was able to run a simple query with ora_* functions using 10g on Windows.
    The Oracle OCI calls used by PHP's ora extension still exist in the Oracle 10g libraries
    But I cannot recommend this obsolete extension.
    -- cj

  • How to work with oracle and active directory...

    Hi,
    Can somebody let me know how do i configure active directory with oracle 10g?
    I am trying to do this using configuration wizard but fields are grayed out for me to proceed. It also shows me to prepare active directory to work with oracle first.
    How do i do that?
    Can someone let me know the steps to do so?
    Regards
    Vikas

    Depends on what you want to achieve?
    Usually when you want Enterprise Users (users that are managed by a directory instead of a schema) you will perform other steps than in a scenario where you need some attributes from the AD.
    cu
    Andreas

Maybe you are looking for