Table DataType

Is there any equivalent datatype for creating a table inside a stored procedure or a package and the table being only valid in the stored procedure or package.
Something like this [http://www.developer.com/db/article.php/3414331/Using-the-Table-Data-Type-in-SQL-Server-2000.htm] what we have in the sql server.
I am pretty new to the Oracle world.
Any help will be much appreciated.
Thanks in advance.

mgatzke wrote:
Hi,
you may have a look at the ref cursor type to get the sql server 'table type':
http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96624/06_ora.htm#1554
HTH
MatthiasHi Matthias
Is it preferable to use a cursor, in sql server, however, using a cursor locks the table on which the query is executed until the cursor is unallocated.
Naveen

Similar Messages

  • Referenced table datatype

    hi
    i need to change a datatype in a field referenced. i have 10 tables.
    I try with:
    ALTER TABLE DM08_PERSONA MODIFY CONSTRAINT FK_DM08_PER_FK_PERSON_DM08_BAS DISABLE NOVALIDATE;
    ALTER TABLE DM08_PERSONA MODIFY CONSTRAINT FK_DM08_PER_FK_PERSON_DM08_BAS DISABLE VALIDATE;
    ALTER TABLE DM08_PERSONA MODIFY CONSTRAINT FK_DM08_PER_FK_PERSON_DM08_BAS DISABLE;
    one for every table and it works fine; the tables were altered.
    But when i try to change the datatype i still have the error ora:02267 datatype incompatible.
    Any ideas or suggestions. Thanks a lot.

    What datatype you are changing TO and FROM?
    Is the table empty?
    All your alter statements are against one table only, why you are disabling the constraint 3 time in different ways (validate.novalidate etc)?
    Daljit Singh

  • Edit Offline Table : Datatype : TIME

    hi
    In the Edit Offline Table dialog on the Column Information pane it is possible to configure a Datatype in the Column Properties area.
    There is a Datatype TIME in the dropbox.
    Where can I find more information about when and how to use this TIME Datatype?
    many thanks
    Jan Vervecken

    Thanks Lisa
    I've found this
    "Oracle Database SQL Reference 10g Release 1 (10.1) : Datatypes"
    http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10759/sql_elements001.htm
    But there is nothing in it about a datatype TIME.
    If I use JDeveloper to create an offline table that uses the datatype TIME in a column, JDeveloper can generate a script, but the database isn't able to run it. I get "ORA-00902: invalid datatype" on an Oracle 10.1.0.2.0 database.
    Has anyone ever used this datatype from JDeveloper? Or does anyone know why this datatype TIME is in that dropbox?
    thanks
    Jan Vervecken

  • Expoting/Importing Oracle BLOB, CLOB, Nested Tables datatypes

    I am trying to export the database containing BLOB, Nested Tables etc. and wants to import the same. But i am getting an error. Pleease help as to how i will proceed with it. This is something very urgent. please reply . i will be very thankful to you

    I believe this error is only associated with LONG data type. I have been using data pump to export/import table with LOB type without any problem.
    Data pump been having issue with LONG type check this bug
    Bug 5598333 - EXPDP/IMPDP corrupts the data for a LONG column
    Doc ID: Note:5598333.8
    It's fixed in 11.1.0.6

  • RMU Binary Unload to Oracle External Tables (Datatype matching)

    We tried to load binary RMU-UNLOAD files into OracleOracle which we decided to implement (as a first approach) using external tables. This works except for Fload and Double Data Fields, because we don't know how to convert this data.
    create table rdbunload_file ( -- RDBfieldtype
    int_8bit number, -- tinyint
    int16bit number, -- smallint
    int32bit number, -- integer
    int64bit number, -- bigint
    dt_ansi number, -- date ansi
    dt_vms number, -- date vms
    ts_2 number, -- timestamp(2)
    c10 varchar2(10) -- varchar(10) / char(10)
    organization external (
    type oracle_loader
    default directory superdbadir
    access parameters (
    Records delimited by newline
    fields (
    int_8bit position(1) integer(1),
    int16bit position(2) integer(2),
    int32bit position(4) integer,
    int64bit position(8) integer(8),
    dt_ansi position(16) integer(8),
    dt_vms position(24) integer(8),
    ts_2 position(32) integer(8),
    c10 position(40) char(10) )
    location ('UNL4ORCL.UNL')
    reject limit unlimited;
    CREATE OR REPLACE VIEW v_rdbunload_file AS
    SELECT int_8bit,
    int16bit,
    int32bit,
    int64bit,
    to_date('17-NOV-1858', 'DD-MON-YYYY') + dt_ansi / 10000000 / 24 / 60 / 60 dateansi,
    to_date('17-NOV-1858', 'DD-MON-YYYY') + dt_vms / 10000000 / 24 / 60 / 60 datevms,
    to_date('17-NOV-1858', 'DD-MON-YYYY') + ts_2 / 10000000 / 24 / 60 / 60 ts_2,
    c10
    FROM rdbunload_file;
    Is there a cookbook for Float ad Double?
    Thomas Lieber

    What I usually do in situations like this is that I connect to the database using a sql client and the same connection information as I specified to OIM and see if the attribute is present.
    Perhaps you got the wrong db name? Or schema name?
    Everything looks good so most probably there simply is some little typo somewhere.
    Hope this helps
    /Martin

  • Reg: View column datatype

    Hi Team,
    While creating the views, column automatically converted into varchar2(81) data type from number datatype.
    but stage1 table has legacy_trx_number is number data type and statg2 table has header_num is number data type.
    Just i added the highlighted part in the view. So automatiicaly converted number to varchar2 datatype. How to keep data type remain the same as source stage table datatype even though those columns used in the view.
    CREATE OR REPLACE VIEW test_view  AS
        SELECT h1.legacy_trx_number
          ||'.'
          ||h2.header_num legacy_trx_number,
          h1.legacy_trx_date,
          h1.ledger_id,
          h1.legal_entity_id,
          h1.header_record_identifier,
          h2.header_num,
          h2.gl_date,
          h2.header_value_full,
          h2.header_value
        FROM stage1 H1,
          stage2 H2
      WHERE h1.header_record_identifier = h2.header_record_identifier;
    Please help give me suggestion on this.
    Thanks in advance.

    You can do it like this!
    Example:-
    SQL> ed
    Wrote file afiedt.buf
      1  create view v_num_test
      2  as
      3* select to_number(5478||'.'||87489) result from dual
    SQL> /
    View created.
    SQL> select * from v_num_test;
        RESULT
    5478.87489
    SQL> desc v_num_test
    Name                                      Null?    Type
    RESULT                                             NUMBER

  • Migrating Functions that return TABLE from SQL Server to Oracle

    I have some functions in SQL Server that return a TABLE datatype. When these functions are moved to Oracle 9i using Migration Workbench, they give compilation errors. In the migrated function it says that the DDL stmt is passed to the ddl file, but the table is not created. I checked the ddl stmt for temporary tables and it is wrong. Its a create table stmt with no size for varchars and we can't even edit these stmts in the workbench.
    Also the migrated function has the table name for return type, which doesn't works in Oracle. Oracle needs a datatype to be returned from Oracle.
    How do we return a table from a function?

    Yes.
    If you do not enclose the object names (table/view/index etc) in double-quotes, they are stored in uppercase format in the data dictionary.
    If you enclose them in quotes, they are stored in the same case ans you entered. As such, while accessing such objects, you need to tell Oracle not to convert the names to uppercase, hence the requirement to supply the names in quotes.

  • ABAP Web Service with tables

    Hello,
    <br>
    <br>
    We need to build a web service with a predefined message in our ERP (ABAP), without PI or WebAS JAVA.
    <br>
    <br>
    We thought it should be a simple task, because we had no problem with many other applications and systems when building the same service, but were not able to build it with SAP ABAP, probably as a consequence of our lack of knowledge on ABAP SOAP runtime.
    <br>
    <br>
    We have an external asynchronous process that delivers information to many other systems using web services (information diffusion). Concecuently, the web service call's structure is determined by the caller, so we have to fulfill this structure if we want to receive the info.
    <br>
    <br>
    The owner of the process defined a very simple service call, in which one kind of  "record" can be repeated 1 to n times:
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    &lt;reglasSuscripcion&gt;
    <br>
                &lt;!Zero or more repetitions:&gt;
    <br>
                   &lt;nombre&gt;?&lt;/nombre&gt;
    <br>
                   &lt;valor&gt;?&lt;/valor&gt;
    <br>
                   &lt;nombre&gt;?&lt;/nombre&gt;
    <br>
                   &lt;valor&gt;?&lt;/valor&gt;
    <br>
                   &lt;nombre&gt;?&lt;/nombre&gt;
    <br>
                   &lt;valor&gt;?&lt;/valor&gt;
    <br>
    <br>
                   &lt;nombre&gt;?&lt;/nombre&gt;
    <br>
                   &lt;valor&gt;?&lt;/valor&gt;
    <br>
    &lt;/reglasSuscripcion&gt;
    <br>
    <br>
    <br>
    In order to receive this info, we have to implement an abap web service handler to accept this kind of call, the same way other applications/systems have already done.
    <br>
    <br>
    We tried to build a RFC function call and create a web service with the wizard and it resulted in a web service with the following WSDL:
    <br>
    <br>
    &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:soap:functions:mc-style"&gt;
    <br>
    <br>
    <br>
    <br>
             &lt;reglasSuscripcion&gt;
    <br>
                &lt;!Zero or more repetitions:&gt;
    <br>
                &lt;item&gt;
    <br>
                   &lt;nombre&gt;?&lt;/nombre&gt;
    <br>
                   &lt;valor&gt;?&lt;/valor&gt;
    <br>
                &lt;/item&gt;
    <br>
    <br>
    <br>
    <br>
    &lt;item&gt;
    <br>
                   &lt;nombre&gt;?&lt;/nombre&gt;
    <br>
                   &lt;valor&gt;?&lt;/valor&gt;
    <br>
                &lt;/item&gt;
    <br>
             &lt;/reglasSuscripcion&gt;
    <br>
    <br>
    <br>
    <br>
    We found two main problems:
    <br>
    <br>
    1.- When "wrapping" the RFC as a WS with the wizard, for a table datatype it automatically includes the <item></item> tag, so we break the predefined calling rules.
    <br>
    <br>
    2.- The namespace is fixed by the wizard, and we would like to use a common namespace for all the "susbscribers", logically, the namespace fixed by the information diffusion service.
    <br>
    <br>
    We also tried to find info on the outside-in approach for building a web service from the WSDL, but all the info we found required the ESR and we have no PI, just the ERP.
    <br>
    <br>
    Any ideas on how to proceed?
    <br>
    <br>
    Thanks in advance,
    <br>
    <br>
    Joseba M. Iturbe
    <br>
    <br>
    Edited by: Soporte Desarrollo on Mar 5, 2010 10:56 AM

    #2.  I've recently had to "zap" some namespaces in an ECC5 system because the calling (TIBCO) system didn't appreciate the default SAP "urn" default - something to do with multiple colons in the address.  There were, I think, just three table this affected, all VEP* ones.  I think I should have been able to change these via the virtual interface in SE80 except that the ECC5 code was a bit "light" in this respect, so you may be able to do this now in SOAMANAGER in ECC6 (btw,  I also had to re-save the WS definition within WSCONFIG and re-activate the virtual interfaces after this "zap" to generated the associated handler class again).
    #1. Given your "name / value" pairs represent a complex type, then it might be better practice to have them as "item" which is probably why SAP proposes it this way... what does your custom function module parameter list look like?
    Jonathan

  • Referencing an Existing Table

    Is there a way to declare a variable as a table datatype? I know you can use the TABLE datatype for storing collections, but I need to traverse an array of table names and perform the same series of actions against each table. But what I'm finding out, is that you can't issue a select statement with a variable in place of the table name. For example, see the code below, especially the line with the comment "here's the problem" at the end:
    DECLARE
    TYPE TableCur IS REF CURSOR RETURN arch_tables.table_name%ROWTYPE;
    TYPE tableNames IS TABLE OF arch_tables.table_name%TYPE;
    tabCur     TableCur;
    tNames     tableNames;
    BEGIN
         OPEN tabCur FOR SELECT table_name FROM arch_tables;
         FETCH tabCur BULK COLLECT INTO tNames;
         FOR x IN tNames.FIRST..tNames.LAST LOOP
         INSERT INTO tName(x) -- here's the problem!
         SELECT * FROM emp;
         END LOOP;
    END;
    It seems to me there must be SOME way to do this. Can anyone offer any advice?

    Whenever you need to deal with varying table/column names, use dynamic SQL to handle it:
    FOR x IN tNames.FIRST..tNames.LAST loop
      execute immediate 'INSERT INTO ' || tNames(x) || ' SELECT * FROM emp';
    END LOOP;Also, on an unrelated note, your REF CURSOR type needs to be based on either:
    arch_tables.table_name%TYPE; -- instead of ROWTYPE
    or
    arch_tables%ROWTYPE; -- if table_name is the only column in the table
    -Todd

  • Urgent! - Problem during Conversion of SAP datadictionary table...

    Hello All,
    When using "Database utility" on a custom table we have encountered a hard error.
    Request "Adjust" - Error in step 2 - see object log and analysis
    The object log shows:
    Begin step ZTABLE-STEP2:                         
    sql:                                                      
    RENAME "ZTABLE" TO "QCMZTABLE"             
    ORA-26563: renaming this table is not allowed             
    DDL time(___1): ........31 milliseconds                   
    The SQL statement was not executed                        
    Renaming of table ZTABLE to ZTABLE failed
    Error in step ZTABLE-STEP2
    Could any of you advice on what might be the problem is. Now the table could not be converted as it comes till the adjustment step and fails with ORA-26563

    Utilities -> Database object -> Check shows
      Database object for ZTABLE is consistent  
    .... Here it goes on to list the fields of the db table, datatype, length etc ..............
      Fields: Consistent with the runtime object  
      Indexes: Consistent with DDIC  
    .... Here it goes on to show that indexes are on db......
    Also check and display runtime object shows that the object is consistent.
    I am not able to understand one thing here, why is it trying to rename the table during Adjust step?
    Any more suggestions please

  • CSALTER datadictionary tables

    Hi
    I know that,
    Convertible entries present in Data Dictionary Schema of CLOB datatype, will be take care automatically by the CSALTER.PLB script.
    However, I also have varchar2 datatype in datadictionary.
    What can I do for this?
    Data Dictionary Tables:
    Datatype                    Changeless      Convertible       Truncation            Lossy
    VARCHAR2                    93,336,444               25                0                0
    CHAR                             2,651                0                0                0
    LONG                           220,891                0                0                0
    CLOB                        10,490,395            5,904                0                0
    VARRAY                          54,938                0                0                0
    Total                      104,105,319            5,929                0                0
    Total in percentage             99.994%           0.006%           0.000%           0.000%
    The data dictionary can not be safely migrated using the CSALTER script

    Are you following the directions in MOS Doc 225912.1 (Changing the Database Character Set ( NLS_CHARACTERSET)) ?
    HTH
    Srini

  • CSSCAN in 11g - Characterset not changing from WE8IMSWIN1252 to AL32UTF8

    All,
    We have installed a 11g database in Linux box and once after that we wanted to change the character set to AL32UTF8 from default WE8MSWIN1252.
    We took the cs-alter approach and ran cs-scan utility, upon going through csscan.txt files generated by csscan utility we found that there are no lossy data but convertible data was found in data dictionary. Below is the output from csscan.txt
    This is the Scan Summary
    *[Scan Summary]*
    All character type data in the data dictionary are convertible to the new character set
    All character type application data are convertible to the new character set
    Database Scan Summary Report
    Time Started  : 2012-10-17 21:42:17
    Time Completed: 2012-10-17 21:42:47
    Process ID         Time Started       Time Completed
             1  2012-10-17 21:42:18  2012-10-17 21:42:46
             2  2012-10-17 21:42:18  2012-10-17 21:42:46
             3  2012-10-17 21:42:18  2012-10-17 21:42:46
    [Database Size]
    Tablespace                           Used            Free           Total       Expansion
    SYSTEM                            709.75M         256.00K         710.00M           2.42M
    SYSAUX                            645.63M          34.38M         680.00M          12.52M
    UNDOTBS1                           13.13M          16.88M          30.00M            .00K
    TEMP                                 .00K            .00K            .00K            .00K
    USERS                               1.31M           3.69M           5.00M            .00K
    HYPE_DATA                       1,024.00K      19,999.00M      20,000.00M            .00K
    HYPE_INDX                       1,024.00K      19,999.00M      20,000.00M            .00K
    Total                           1,371.81M      40,053.19M      41,425.00M          14.94M
    The size of the largest CLOB is 1625114 bytes
    [Database Scan Parameters]
    Parameter                      Value
    CSSCAN Version                 v2.1
    Instance Name                  dvhp081
    Database Version               11.2.0.3.0
    Scan type                      Full database
    Scan CHAR data?                YES
    Database character set         WE8MSWIN1252
    FROMCHAR                       WE8MSWIN1252
    TOCHAR                         al32utf8
    Scan NCHAR data?               NO
    Array fetch buffer size        10240
    Number of processes            3
    Capture convertible data?      NO
    [Scan Summary]
    All character type data in the data dictionary are convertible to the new character set
    All character type application data are convertible to the new character set
    [Data Dictionary Conversion Summary]
    Data Dictionary Tables:
    Datatype                    Changeless      Convertible       Truncation            Lossy
    VARCHAR2                     5,408,302                0                0                0
    CHAR                             4,261                0                0                0
    LONG                           249,018                0                0                0
    CLOB                            67,652            3,794                0                0
    VARRAY                          49,807                0                0                0
    Total                        5,779,040            3,794                0                0
    Total in percentage             99.934%           0.066%           0.000%           0.000%
    The data dictionary can be safely migrated using the CSALTER script
    XML CSX Dictionary Tables:
    Datatype                    Changeless      Convertible       Truncation            Lossy
    VARCHAR2                           702                0                0                0
    CHAR                                 0                0                0                0
    LONG                                 0                0                0                0
    CLOB                                 0                0                0                0
    VARRAY                               0                0                0                0
    Total                              702                0                0                0
    Total in percentage            100.000%           0.000%           0.000%           0.000%
    [Application Data Conversion Summary]
    Datatype                    Changeless      Convertible       Truncation            Lossy
    VARCHAR2                     2,550,581                0                0                0
    CHAR                                 0                0                0                0
    LONG                                 0                0                0                0
    CLOB                            22,187            8,287                0                0
    VARRAY                               0                0                0                0
    Total                        2,572,768            8,287                0                0
    Total in percentage             99.679%           0.321%           0.000%           0.000%
    [Distribution of Convertible, Truncated and Lossy Data by Table]
    Data Dictionary Tables:
    USER.TABLE                                              Convertible       Truncation            Lossy
    MDSYS.SDO_COORD_OP_PARAM_VALS                                   200                0                0
    MDSYS.SDO_GEOR_XMLSCHEMA_TABLE                                    1                0                0
    MDSYS.SDO_STYLES_TABLE                                           78                0                0
    MDSYS.SDO_XML_SCHEMAS                                             5                0                0
    SYS.METASTYLESHEET                                              179                0                0
    SYS.RULE$                                                         1                0                0
    SYS.SCHEDULER$_EVENT_LOG                                        356                0                0
    SYS.WRH$_SQLTEXT                                                537                0                0
    SYS.WRH$_SQL_PLAN                                               514                0                0
    SYS.WRI$_ADV_DIRECTIVE_META                                       5                0                0
    SYS.WRI$_ADV_OBJECTS                                             28                0                0
    SYS.WRI$_ADV_SQLT_PLANS                                           2                0                0
    SYS.WRI$_ADV_SQLT_PLAN_STATS                                      2                0                0
    SYS.WRI$_DBU_FEATURE_METADATA                                   193                0                0
    SYS.WRI$_DBU_FEATURE_USAGE                                        9                0                0
    SYS.WRI$_DBU_HWM_METADATA                                        21                0                0
    SYS.WRI$_REPT_FILES                                              27                0                0
    SYSMAN.MGMT_IP_ELEM_DEFAULT_PARAMS                              130                0                0
    SYSMAN.MGMT_IP_REPORT_ELEM_PARAMS                             1,475                0                0
    SYSMAN.MGMT_IP_SQL_STATEMENTS                                    31                0                0
    XML CSX Dictionary Tables:
    USER.TABLE                                              Convertible       Truncation            Lossy
    Application Data:
    USER.TABLE                                              Convertible       Truncation            Lossy
    APEX_030200.WWV_FLOW_BANNER                                      10                0                0
    APEX_030200.WWV_FLOW_BUTTON_TEMPLATES                            12                0                0
    APEX_030200.WWV_FLOW_CUSTOM_AUTH_SETUPS                          19                0                0
    APEX_030200.WWV_FLOW_FLASH_CHART_SERIES                           5                0                0
    APEX_030200.WWV_FLOW_LIST_TEMPLATES                             298                0                0
    APEX_030200.WWV_FLOW_PAGE_GENERIC_ATTR                           44                0                0
    APEX_030200.WWV_FLOW_PAGE_PLUGS                               3,240                0                0
    APEX_030200.WWV_FLOW_PAGE_PLUG_TEMPLATES                        254                0                0
    APEX_030200.WWV_FLOW_PROCESSING                                  45                0                0
    APEX_030200.WWV_FLOW_ROW_TEMPLATES                               66                0                0
    APEX_030200.WWV_FLOW_SHORTCUTS                                   39                0                0
    APEX_030200.WWV_FLOW_STEPS                                    1,795                0                0
    APEX_030200.WWV_FLOW_STEP_PROCESSING                          2,238                0                0
    APEX_030200.WWV_FLOW_TEMPLATES                                  192                0                0
    APEX_030200.WWV_FLOW_WORKSHEETS                                  30                0                0
    [Distribution of Convertible, Truncated and Lossy Data by Column]
    Data Dictionary Tables:
    USER.TABLE|COLUMN                                       Convertible       Truncation            Lossy
    MDSYS.SDO_COORD_OP_PARAM_VALS|PARAM_VALUE_FILE                  200                0                0
    MDSYS.SDO_GEOR_XMLSCHEMA_TABLE|XMLSCHEMA                          1                0                0
    MDSYS.SDO_STYLES_TABLE|DEFINITION                                78                0                0
    MDSYS.SDO_XML_SCHEMAS|XMLSCHEMA                                   5                0                0
    SYS.METASTYLESHEET|STYLESHEET                                   179                0                0
    SYS.RULE$|CONDITION                                               1                0                0
    SYS.SCHEDULER$_EVENT_LOG|ADDITIONAL_INFO                        356                0                0
    SYS.WRH$_SQLTEXT|SQL_TEXT                                       537                0                0
    SYS.WRH$_SQL_PLAN|OTHER_XML                                     514                0                0
    SYS.WRI$_ADV_DIRECTIVE_META|DATA                                  5                0                0
    SYS.WRI$_ADV_OBJECTS|ATTR4                                       28                0                0
    SYS.WRI$_ADV_SQLT_PLANS|OTHER_XML                                 2                0                0
    SYS.WRI$_ADV_SQLT_PLAN_STATS|OTHER                                2                0                0
    SYS.WRI$_DBU_FEATURE_METADATA|INST_CHK_LOGIC                     22                0                0
    SYS.WRI$_DBU_FEATURE_METADATA|USG_DET_LOGIC                     171                0                0
    SYS.WRI$_DBU_FEATURE_USAGE|FEATURE_INFO                           9                0                0
    SYS.WRI$_DBU_HWM_METADATA|LOGIC                                  21                0                0
    SYS.WRI$_REPT_FILES|SYS_NC00005$                                 27                0                0
    SYSMAN.MGMT_IP_ELEM_DEFAULT_PARAMS|VALUE                        130                0                0
    SYSMAN.MGMT_IP_REPORT_ELEM_PARAMS|VALUE                       1,475                0                0
    SYSMAN.MGMT_IP_SQL_STATEMENTS|SQL_STATEMENT                      31                0                0
    XML CSX Dictionary Tables:
    USER.TABLE|COLUMN                                       Convertible       Truncation            Lossy
    Application Data:
    USER.TABLE|COLUMN                                       Convertible       Truncation            Lossy
    APEX_030200.WWV_FLOW_BANNER|BANNER                               10                0                0
    APEX_030200.WWV_FLOW_BUTTON_TEMPLATES|TEMPLATE                   12                0                0
    APEX_030200.WWV_FLOW_CUSTOM_AUTH_SETUPS|AUTH_FUNC                 8                0                0
    APEX_030200.WWV_FLOW_CUSTOM_AUTH_SETUPS|PAGE_SENT                10                0                0
    APEX_030200.WWV_FLOW_CUSTOM_AUTH_SETUPS|POST_AUTH                 1                0                0
    APEX_030200.WWV_FLOW_FLASH_CHART_SERIES|SERIES_QU                 5                0                0
    APEX_030200.WWV_FLOW_LIST_TEMPLATES|ITEM_TEMPLATE                20                0                0
    APEX_030200.WWV_FLOW_LIST_TEMPLATES|ITEM_TEMPLATE                20                0                0
    APEX_030200.WWV_FLOW_LIST_TEMPLATES|LIST_TEMPLATE               105                0                0
    APEX_030200.WWV_FLOW_LIST_TEMPLATES|LIST_TEMPLATE               105                0                0
    APEX_030200.WWV_FLOW_LIST_TEMPLATES|SUB_LIST_ITEM                12                0                0
    APEX_030200.WWV_FLOW_LIST_TEMPLATES|SUB_LIST_ITEM                12                0                0
    APEX_030200.WWV_FLOW_LIST_TEMPLATES|SUB_TEMPLATE_                12                0                0
    APEX_030200.WWV_FLOW_LIST_TEMPLATES|SUB_TEMPLATE_                12                0                0
    APEX_030200.WWV_FLOW_PAGE_GENERIC_ATTR|ATTRIBUTE_                44                0                0
    APEX_030200.WWV_FLOW_PAGE_PLUGS|PLUG_SOURCE                   3,240                0                0
    APEX_030200.WWV_FLOW_PAGE_PLUG_TEMPLATES|TEMPLATE               166                0                0
    APEX_030200.WWV_FLOW_PAGE_PLUG_TEMPLATES|TEMPLATE                88                0                0
    APEX_030200.WWV_FLOW_PROCESSING|PROCESS_SQL_CLOB                 45                0                0
    APEX_030200.WWV_FLOW_ROW_TEMPLATES|ROW_TEMPLATE1                 54                0                0
    APEX_030200.WWV_FLOW_ROW_TEMPLATES|ROW_TEMPLATE2                 10                0                0
    APEX_030200.WWV_FLOW_ROW_TEMPLATES|ROW_TEMPLATE3                  2                0                0
    APEX_030200.WWV_FLOW_SHORTCUTS|SHORTCUT                          39                0                0
    APEX_030200.WWV_FLOW_STEPS|HELP_TEXT                          1,513                0                0
    APEX_030200.WWV_FLOW_STEPS|HTML_PAGE_HEADER                     282                0                0
    APEX_030200.WWV_FLOW_STEP_PROCESSING|PROCESS_SQL_             2,238                0                0
    APEX_030200.WWV_FLOW_TEMPLATES|BOX                               64                0                0
    APEX_030200.WWV_FLOW_TEMPLATES|FOOTER_TEMPLATE                   64                0                0
    APEX_030200.WWV_FLOW_TEMPLATES|HEADER_TEMPLATE                   64                0                0
    APEX_030200.WWV_FLOW_WORKSHEETS|SQL_QUERY                        30                0                0
    [Indexes to be Rebuilt]
    USER.INDEX on USER.TABLE(COLUMN)
    APEX_030200.WWV_FLOW_WORKSHEETS_UNQ_IDX on APEX_030200.WWV_FLOW_WORKSHEETS(SYS_NC00078$)
    APEX_030200.WWV_FLOW_WORKSHEETS_UNQ_IDX on APEX_030200.WWV_FLOW_WORKSHEETS(SYS_NC00079$)
    APEX_030200.WWV_FLOW_WORKSHEETS_UNQ_IDX on APEX_030200.WWV_FLOW_WORKSHEETS(SYS_NC00080$)
    APEX_030200.WWV_FLOW_WORKSHEETS_UNQ_IDX on APEX_030200.WWV_FLOW_WORKSHEETS(SYS_NC00081$)
    APEX_030200.WWV_FLOW_WS_UNQ_ALIAS_IDX on APEX_030200.WWV_FLOW_WORKSHEETS(SYS_NC00082$)
    APEX_030200.WWV_FLOW_WS_UNQ_ALIAS_IDX on APEX_030200.WWV_FLOW_WORKSHEETS(ALIAS)
    ----------------------------------------------------------------------------------We followed few metalink documents *Solving Convertible or Lossy data in Data Dictionary objects reported by Csscan when changing the NLS_CHARACTERSET [ID 258904.1]* and found that we are good to go as convertible was found only in data dictionary and that too CLOB data. But while running csalter.plb csalter came out without changing the characterset. We ran the following query given the said document and it returned no rows which again confirms there is no problem and go ahead with running csalter.
    SELECT DISTINCT z.owner_name
    || '.'
    || z.table_name
    || '('
    || z.column_name
    || ') - '
    || z.column_type
    || ' - '
    || z.error_type
    || ' ' NotHandledDataDictColumns
    FROM csmig.csmv$errors z
    WHERE z.owner_name IN
    (SELECT DISTINCT username FROM csmig.csm$dictusers
    ) minus
    SELECT DISTINCT z.owner_name
    || '.'
    || z.table_name
    || '('
    || z.column_name
    || ') - '
    || z.column_type
    || ' - '
    || z.error_type
    || ' ' DataDictConvCLob
    FROM csmig.csmv$errors z
    WHERE z.error_type ='CONVERTIBLE'
    AND z.column_type = 'CLOB'
    AND z.owner_name IN
    (SELECT DISTINCT username FROM csmig.csm$dictusers
    ORDER BY NotHandledDataDictColumns
    /Sorry to have made the thread so big but to make sure and give a complete picture of the issue pasted the csscan contents. Request the PRO's to help us in this issue.

    You have convertible data in the application tables. CLOB or not, such data prevents csalter.plb from changing the character set.
    You are on 11.2.0.3, so use the DMU (http://www.oracle.com/technetwork/products/globalization/dmu/overview/index.html). It can cope with such data.
    -- Sergiusz

  • Is it possible to write in this Way....?

    Dear All,
    I'm very new to Oracle Pl/SQL
    My store proc is as below..
    I have a table
    Name: test_synch
    Note: test_synch has the data that needs to be updated in multiple tables. and it has multi columns along with destination table and column name and new data which I need to update (target table and it's column)
    Now I need to update the data from test_synch to taget table (destination tables) and need to convert the datatype of the value according to destination table datatype.
    create or replace procedure proc_sec_synch
    datatyp char(10);
    Begin
    FOR lr_Update in (
    Select
    SsM_ID ,
    CYCLE_DATE ,
    DESTINATION_TABLE ,
    COLUMN_NAME ,
    NEW_DATA ,
    COLUMN_TYPE from PM_OWN.test_synch order by destination_table )
    Loop
    datatyp = ('Select DATA_TYPE from all_tab_columns where table_name = ' ||lr_update.destination_table||'and column_name = '||lr_update.column_name||;)
    case datatyp
    when 'VARCHAR2' then
    'Update' || lr_Update.destination_table ||' dest SET dest.' ||lr_Update.column_name||' =
    cast( (select src.new_data from test_synch src where src.ssm_id = '||lr_Update.destination_table||'.ssm_id;) as varchar2) where src.ssm_id = '||lr_Update.destination_table||)
    END Loop;
    END proc_sec_synch
    Is this the way to write a proc..? or anyother way..?
    Plz Help ME

    Naresh wrote:
    I tired but still getting error the above mentioned error only.
    my doubt is I need to run that statement also dynamically..?
    What do you say..?which line is throwing the error?
    CREATE OR replace PROCEDURE Proc_sec_synch1
    IS
      datatyp CHAR(10);
    BEGIN
      FOR lr_update IN (SELECT ssm_id,
                               cycle_date,
                               destination_table,
                               column_name,
                               new_data,
                               column_type
                        FROM   test_synch
                        ORDER  BY destination_table,
                                  column_name) LOOP
          SELECT data_type
          INTO   datatyp
          FROM   all_tab_columns
          WHERE  table_name = lr_update.destination_table
                 AND column_name = lr_update.column_name;
          IF datatyp = 'VARCHAR2' THEN
    EXECUTE IMMEDIATE 'UPDATE '|| lr_update.destination_table
    ||
    ' AS dest SET dest.'||lr_update.column_name||' = cast( (select src.new_data from test_synch src where src.ssm_id = '||lr_update.destination_table||'.ssm_id;) as varchar2) where src.ssm_id = '||lr_update.destination_table||'.ssm_id';
    END IF;
    END LOOP;
    COMMIT;
    END proc_sec_synch1;  01403, 00000, "no data found"
    // *Cause: No data was found from the objects.
    // *Action: There was no data from the objects which may be due to end of fetch.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Accessing all rows in Entity Object

    Hi All,
    I have a master-child relationship with ChildVO based on entity object. When user hits on save after making some changes, I would like to pass all rows in master view object and all fetched rows in entity object to a pl/sql api which takes pl/sql table datatypes. I would call this API in AM. So is there any way to access all entity rows of child view object?I tried to use view link accessors but it returns null. I can think of the following way:
    for each row in master view object
    loop
    set current row for master view object. This would execute child vo for that master row.
    then fetch all rows from child vo. populate pl/sql table
    move on to next master vo row.
    end loop;
    Drawback with above approach is that we would excute child object query for every master row. Is there any direct way to access rows in entity object in AM? Any pointers on this would be of great help.
    Thanks in advance,
    Murari

    "and all fetched rows in entity object"
    is not a correct statement to make, EO will always represent a single row of the database record.you will get all the fetched rows in the VO, not the EO.
    Tapash

  • Quesry taking more time to execute

    Dear All,
    User complained that his query is taking more time than yesterday and DB performance is also very slow, so what would be your strategy to check and fix the problem.
    What could be the right approach to check and fix this.
    Regards,
    DevD!
    Edited by: user12138514 on Nov 8, 2009 9:35 PM

    And here is the cause list for slow performance:
    Slow Network connection.
    Bad Connection management.
    Bad Use of Cursors and the Shared Pool
    Bad SQL or Query is not perfectly tune or not using bind variables.
    Use of nonstandard initialization parameters.
    Getting Database I/O Wrong
    Redo Log Setup Problems
    Serialization of data blocks in the buffer cache due to lack of free lists, free list groups, transaction slots (INITRANS), or shortage of rollback segments.
    Long Full Table Scans.
    High Amounts of Recursive (SYS) SQL
    Deployment and Migration Errors
    Table require analyzed.
    Table require indexed.
    Overparsing.
    You have old discs.
    Not enough memory.
    SGA is too small or too big.
    Same for cache buffer.
    Your OS need tuning.
    Your disc is full.
    Running so many instances on a single server.
    You applications are badly written.
    Your applications were ported from Sybase or Microsoft SQL Server.
    Your applications were ported from DB2.
    Your applications dynamically create temp tables.
    Someone wrote referential integrity using triggers, java, vb ...
    Someone wrote replication using triggers, java, vb ...
    Someone wrote a sequence using max + 1.
    Table datatypes are not as per DBMS concepts; like Dates and numbers are stored as strings.
    The statistics are not up to date.
    There are no statistics.
    What are statistics?
    We are using RBO.
    That's a few of the possible causes I could think of, there are lots of others.
    -To analyze your application, you can install Statspack. It will give you some indications.
    Hth
    Girish Sharma

Maybe you are looking for