SQL for webadi layout

Hello friends,
i badly need a sql for the HRMS webadi layout setup.
If you have it, please please post it in the thread..
thank you very much.
Edited by: Lovvyrules on Mar 15, 2012 3:26 PM

10. Creating Layouts and Mappings
10.1. Creating Layouts
A L a pa eate document service that indicates what columns are to be included
in a y the Layout.
Layouts can be seeded with your application. Layouts can be defined to create documents that do not offer
upload, in addition to ones that provide upload capability. UI exists for Layout creation:
1. Select “Define Layout” on t ice home page
10.1.2. Select an Integrator and pre
ayout isrameter given to the Cr
document. The placement of these columns within the document is also indicated b
10.1.
he self serv
ss “Go”. 1 r. The
rovide
upload. Press “Define Layout” to create a new layout, or update, duplicate or delete existing
s.
0.1.3. The following screen shows all of the Layouts that have been defined for an IntegratoReporting column indicates layouts that can only be used to create document that do not p
layout 10.1.4.
at
20 c or less. The only valid characters are: Uppercase 'A'..'Z', '0'..'9' and '_'.
1 u
lumns to include in your Layout. It also determines whether or not
upload purposes. The first selection in the drop
box will allow a Layout to be generated for upload. This Field list contains all of the columns
Enter a Name and Key for your Layout and select a Field List. The Key is a unique code that th is used to reference the Layout when calling the BneApplicationService. It must be a string of haracters
0.1.5. Select a Field List. The Field list selection determines the group of columns available to yowhen determining which co
your Layout can be used to create a document for down
Company Confidential - For internal use only
87
defined for Interfaces created for upload (BNE_INTERFACES_B.UPLOAD_TYPE = 1). All of the other values in the LOV provide lists of columns that can be used to create Layouts that do not offer upload.
required columns (header/Lines).
10.1.6. Enter the location for the
10.1.7. Select the optional fields to be included in the Layout and their location (header/Lines).
Note: UI does not exist to define the column order in the document when a particular Layout is
used. Update BNELAYOUT COLS.SEQUENCE NUM to accomplish this.
Company Confidential - For internal use only
88
.8.2. Constant - Default Type used when the actual value in Default Value is used as the
efault Type when Default Value is an environmental variable. Valid
tsid, sob.periodsetname,
sob.accountedperiodtype, sob.currencycode, sob.latestencumbranceyear, sob.adbflag,
sob.consolidationflag, sob.transactioncalendarid, sob.mandate, sob.maxdate
10.1.8.4. Parameter – Default type when Default Value is the name of a parameter passed to
BneApplicaionService.
10.1.8.5. SQL – Default Type used when a SQL statement is entered into Default Value. Web
A and automatically populate the document with the result. If more than
one value is returned from the query, the first value returned will be used. You may use the
$.userid
10.2. Creating Mappings
A Mapping links Cont o Interface columns. This relationship between the columns in the result
set o
UI exists for Mapping Creation (Note that Mappings for reporting Interfaces are not created through the
Mapping U u
10.2.1. Self- Service home page.
10.2.2.
10.1.8. Enter default values you would like to automatically appear for columns when the document is created. There are five types of defaults you may set: 10.1.8.1. None – Default Type when

Similar Messages

  • SQL for webADI fields

    Hello,
    I need a SQL to retrieve the fields and another field to show whether it is a line or header for the Project WebADI.
    Can anyone provide me with this SQL if you have ever worked on this?
    Thanks & Regards,
    Yuvraj

    SELECT DISTINCT fap.application_short_name "Application Short Name",
                      bib.user_name "Integrator User Name",
                      blb.user_name "Layout Name",
                      bicb.interface_col_name "Field Name",
                      blbb.user_name "Placement",                 
                      blc.DEFAULT_VALUE "Default Value",
                      CASE UPPER (NVL (blc.default_type, 'NONE'))
                         WHEN 'NONE' THEN 'None'
                         WHEN 'FORMULA' THEN 'Formula'
                         WHEN 'CONSTANT' THEN 'Constant'
                         WHEN 'PARAMETER' THEN 'Parameter'
                         WHEN 'SQL' THEN 'SQL'
                         WHEN 'ENVIRONMENT' THEN 'Environment'
                         ELSE 'UNKNOWN'
                      END
                         "Default Type"
        FROM apps.fnd_application fap,
             apps.bne_integrators_vl bib,
             apps.bne_layouts_vl blb,
             apps.bne_layout_blocks_tl blbb,
             apps.bne_layout_cols blc,
             apps.bne_interface_cols_b bicb,
             apps.bne_components_b bcb,
             apps.bne_param_lists_b bplb,
             apps.bne_param_list_items bpli
       WHERE     1 = 1
             AND fap.application_id = bib.application_id
             -- bne_integrators_b | bne_layouts_b
             AND bib.integrator_code = blb.integrator_code
             AND bib.application_id = blb.integrator_app_id
             -- bne_layouts_b | bne_layout_blocks_b
             AND blb.layout_code = blbb.layout_code
             AND blb.application_id = blbb.application_id
             -- bne_layout_blocks_b | bne_layout_cols
             AND blbb.layout_code = blc.layout_code
             AND blbb.application_id = blc.application_id
             AND blbb.block_id = blc.block_id
             -- bne_layout_cols | bne_interface_cols_b
             AND blc.application_id = bicb.application_id
             AND blc.interface_code = bicb.interface_code
             AND blc.sequence_num = bicb.sequence_num
             -- bne_interface_cols_b | bne_components_b
             AND bicb.application_id = bcb.application_id
             AND bicb.val_component_code = bcb.component_code
             -- bne_components_b | bne_param_lists_b
             AND bcb.param_list_code = bplb.param_list_code
             -- bne_param_lists_b | bne_param_list_items
             AND bplb.param_list_code = bpli.param_list_code
             AND blbb.language = 'US'
             AND fap.application_short_name = 'PA'
    ORDER BY 1, 2;

  • Is MS Word really the best Oracle can come with for designing layouts?

    Hi all,
    I am returning to XMLP development after first looking at it two years ago. Back then I advised our company not to use it for all report development as MS Word didn't seem robust or flexible enough to generate report layouts.
    Now I am working for a client that wants to use XMLP and am trying to develop a fairly simple tabular report but with about 5 levels of grouping. The resulting RTF template therefore has 5 levels of nested tables. Whilst all the data is coming out fine, I am finding it very hard to make the layout look anything like as within Word it is hard to select table cells, visually establish the heirachy of the tables, etc. A simple task like putting the correct borders around cells so they render correctly is very hard to get right. In addition to this I have a number of areas where erroneous white space is being displayed.
    Is Oracle seriously going to continue to expect developers to use MS Word as a layout designer or are they going to develop a decent product fit for the task? I am tired of hearing from sales guys, functional consultants and Oracle blurb how easy XMLP is to develop reports in. Yes, it is if the report is simple, but try and develop a more complex layout and it is anything but simple.
    Anyone got any advice or experience they can share? Are there any alternative tools on the market? A response from Oracle wouldn't go a miss to help stem my disappointment with both product and company!
    Cheers,
    Jon.

    Hi Guys,
    forgive me, that I am biased - I am responsible for the BI Publisher tool development.
    First one comment regarding the nested table - The code we generate for that is the worst part of the template builder. We already have implemented a new version, which is much better - to be released after 10.1.3.4. I apologize for us not fixing that issue earlier.
    Yes, the BI Publisher template builder for Word is different. Naturally it is better for some tasks and maybe weaker for some other ones. Nobody forced the E-Business Suite teams to take up BI/XML Publisher - I was PM in one of the teams so I know for sure - we all decided that we rather use BI Publisher. In our eyes it is a step forward and not 10 steps back.
    I was product manager for Oracle Contracts. We tried to create a contract layout with Oracle Reports and it was not pretty. Sure If I create just some data reports all the classical reporting tools are fine (Do you really like these other tools???)
    But creating contracts or more business style reports like invoices is MUCH easier with BI Publisher. With the first generation of the tools, it took my 2 hours to convert a customer contract example (in word naturally) into a production ready contract layout. Now, I could probably do it in 15 minutes.
    While PL/SQL has great acceptance in the Oracle Community, it is not everyone's favorite - for example Peoplesoft, JD Edwards or Siebel developers can not use PL/SQL.
    XSL has its quicks and wish it was a better language, but it is an OPEN standard.
    We have migrated about 3000 Oracle reports, and all of the Peoplesoft and JD Edwards reports... I don't think it is a toy. It has the same concept as Java Server Pages and it uses Word for formatting instead of HTML.
    True, knowing SQL does not help with BI Publisher reports, but user with a little SQL knowledge can do havoc to a production system. BI Publisher complete separates the responsibilities. SQL for professionals and Word for formatting. I think there are more people out there that know Word than SQL.
    Embedding the XSL did not turn out all that straight forward. We are also missing one feature in the standalone, that we had in E-Business Suite and that will be included in the 11g release: Subtemplates.
    Subtemplates allow you to write complicated XSL libraries that can be called from within RTF templates. For all of you who need to write complicated logic, it is much better to write the logic into an XSL stylesheet and just call out from within the Word template than coding to complicated logic into the Word document. Again my apologies for us not providing this option earlier.
    People also had to learn java for Oracle applications, when they only needed to know PL/SQL before.
    For all the people who don't like Microsoft Word, we are offering a web based alternative shortly after the 10.1.3.4 release. This tool may be better suited for data style reports - you will be the judge.
    I appreciate your feedback and I open for any suggested improvements.
    Thanks,
    Klaus
    Message was edited by:
    KlausFabian

  • ORA-01489 Received Generating SQL for Report Region

    I am new to Apex and I am running into an issue with an report region I am puzzled by. Just a foreword, I'm sure this hack solution will get a good share of facepalms and chuckles from those with far more experience. I welcome suggestions and criticism that are helpful and edifying!
    I am on Apex 4.0.2.00.07 running on 10g, I believe R2.
    A little background, my customer has asked an Excel spreadsheet be converted into a database application. As part of the transition they would like an export from the database that is in the same format as the current spreadsheet. Because the column count in this export is dynmic based on the number of records in a specific table, I decided to create a temporary table for the export. The column names in this temp table are based on a "name" column from the same data table so I end up with columns named 'REC_NAME A', 'REC_NAME B', etc. (e.g. Alpha Record, Papa Record, Echo Record, X-Ray Record). The column count is currently ~350 for the spreadsheet version.
    Because the column count is so large and the column names are dynamic I've run into a host of challenges and errors creating this export. I am a contractor in a corporate environmentm, so making changes to the apex environment or installation is beyond my influence and really beyond what could be justified by this single requirement for this project. I have tried procedures and apex plug-ins for generating the file however the UTL_FILE package is not available to me. I am currently generating the SQL for the query in a function and returning it to the report region in a single column (the user will be doing a text-to-column conversion later). The data is successfully being generated, however, the sql for the headers is where I am stumped.
    At first I thought it was because I returned both queries as one and they were joined with a 'union all'. However, after looking closer, the SQL being returned for the headers is about +10K+ characters long. The SQL being returned for the data is about +14k+. As mentioned above, the data is being generated and exported, however when I generate the SQL for the headers I am receiving a report error with "ORA-01489: result of string concatenation is too long" in the file. I am puzzled why a shorter string is generating this message. I took the function from both pages and ran them in a SQL command prompt and both return their string values without errors.
    I'm hopeful that it's something obvious and noobish that I'm overlooking.
    here is the code:
    data SQL function:
    declare
      l_tbl varchar2(20);
      l_ret varchar2(32767);
      l_c number := 0;
      l_dlim varchar2(3) := '''|''';
    begin
      l_tbl := 'EXPORT_STEP';
      l_ret := 'select ';
      for rec in (select column_name from user_tab_columns where table_name = l_tbl order by column_id)
      loop
        if l_c = 1 then
            l_ret := l_ret || '||' || l_dlim || '|| to_char("'||rec.column_name||'")';
        else
            l_c := 1;
            l_ret := l_ret || ' to_char("' || rec.column_name || '")';
        end if;
      end loop;
        l_ret := l_ret || ' from ' || l_tbl;
      dbms_output.put_line(l_ret);
    end;header sql function:
    declare
      l_tbl varchar2(20);
      l_ret varchar2(32767);
      l_c number := 0;
      l_dlim varchar2(3) := '''|''';
    begin
      l_tbl := 'EXPORT_STEP';
      for rec in (select column_name from user_tab_columns where table_name = l_tbl order by column_id)
      loop
        if l_c = 1 then
            l_ret := l_ret || '||' || l_dlim || '||'''||rec.column_name||'''';
        else
            l_c := 1;
            l_ret := l_ret || '''' || rec.column_name || '''';
        end if;
      end loop;
        l_ret := l_ret || ' from dual';
      dbms_output.put_line(l_ret);
    end;-------
    EDIT: just a comment on the complexity of this export, each record in the back-end table adds 12 columns to my export table. Those 12 columns are coming from 5 different tables and are the product of a set of functions calculating or looking up their values. This is export is really a pivot table based on the records in another table.
    Edited by: nimda xinu on Mar 8, 2013 1:28 PM

    Thank you, Denes, for looking into my issue. I appreciate your time!
    It is unfortunately a business requirement. My customer has required that the data we are migrating to this app from a spreadsheet be exported in the same format, albeit temporarily. I still must meet the requirement. I'm working around the 350 columns by dumping everything into a single column, which is working for the data, however, the headers export is throwing the 01489 error. I did run into the error you posted in your reply. I attempted to work around it with the clob type but eneded up running into my string concatentation error again.
    I'm open to any suggestions at this point given that I have the data. I'm so close because the data is exporting, but because the columns are dynamic, the export does me little good without the headers to go along with it.

  • Looking For Free Good Tutorial To Learn SQL For 8i

    Hello all,
    I am looking for a free good tutorial to learn SQL for Oracle 8i.
    If anyone got any links or resources, kindly suggest.
    Thanks in advance.

    I am looking for a free good tutorial to learn SQL for Oracle 8i.8i has been unsupported for years. If you're just starting out, you might as well learn the latest.

  • What is a efficient SQL for this query ?

    Hi,
    I am using 9.2 database. Suppose I am having following 2 tables
    Table p having only one column i.e. 'a'. Values in this column are
    a1
    b1
    c1
    d1
    Table Q having three columns a, b, c
    a1, 1, 100
    a1, 2, 50
    b1, 1, 30
    b1, 2, 40
    d1, 2, 90
    Table Q can be joined only using column a.
    Table Q can have multiple or no records for column a in table p. Based on above sample data, I want following output
    a1, 100, 50
    b1, 30, 40
    c1
    d1, 90
    Kindly tell be how can I achive this in most efiicient way !!!
    thanks & regards
    PJP

    I only have you two tracks about how do it.
    If you want all the columns from p with or wihout q you have to do:
    11:35:58 SQL> l
    1 select p.*, q.*
    2 from p,q
    3* where p.a = q.a (+)
    11:37:27 SQL> /
    For change the order of the colums for rows you can see the url, the are more examples like that only need to search "columns for rows" in this forums.
    Anyway:
    with rt as
    select 'a1' a, 1 b, 100 c from dual union
    select 'a1', 2, 50 from dual union
    select 'b1', 1, 30 from dual union
    select 'b1', 2, 40 from dual union
    select 'd1', 2, 90 from dual)
    --select * from rt
    select a, decode('1','0','0',rtrim(xmlagg(xmlelement(b, b || ',')).extract('//text()'),',')) b
    , decode('1','0','0',rtrim(xmlagg(xmlelement(c, c || ',')).extract('//text()'),','))
    from rt
    group by a
    Message was edited by:
    cth
    Other way:
    select a, ltrim(b,',') as b, ltrim(c,',') as c
    from (
    select row_number() over (partition by a order by length(b) desc) as rn, a, b,c
    from (select a, sys_connect_by_path(b, ',') as b,
              sys_connect_by_path(c, ',') as c
    from (
    select row_number() over (partition by a order by b) as rn, a, b,c
    from rt) y
    connect by rn = prior rn + 1 and prior a = a
    start with rn = 1
    where rn = 1
    Message was edited by:
    cth

  • BREAK not working in SQL+ for windows. Works in SQL+ in DOS

    I'm writing a simple query in SQL+
    SELECT table_name, column_name
    FROM user_tab_columns
    WHERE table_name like 'MYTAB%'I first set BREAK ON table_name
    then I run my query.
    I expect the table name to be shown once, per table, not once per column.
    If I run this query in SQL+ in a DOS window, that's exactly what happens.
    If I run the same thing in SQL+ for Windows (version 10 on an 11g db) the break command appears to be ignored.
    Any ideas ??
    Thanks folks.

    Not sure but maybe try the NODUPLICATES option.
    break on table_name noduplicates

  • Need help with SQL for Pie Chart

    I am trying to create a pie charge which would have 3 slices.
    Following sql gives me the expected values when I run the sql command:
    select
    round(avg(CATEGORY_1 + CATEGORY_2 + CATEGORY_3 + CATEGORY_4 + CATEGORY_5),0) "OD Engagements",
    round(avg(CATEGORY_6 + CATEGORY_7 + CATEGORY_13),0) "Talent Engagements",
    round(avg(CATEGORY_8 + CATEGORY_9 + CATEGORY_10 + CATEGORY_11 + CATEGORY_12),0) "Other Engagements"
    from OTD_PROJECT
    where STATUS in ('Open','Hold')
    I get 3 columns labeled: OD Engagements, Talent Engagements and Other Engagements with the correct averages based on the the data.
    I have tried several ways to try to get this to work in the SQL for a pie chart, but keep getting the invalid sql message and it won't save. I also tried saving without validation, but no data is shown on the chart at all.
    I want to have a pie, with 3 slices, one labeled OD Engagements with a value of 27, one labeled Talent Engagements with a value of 43 and one labeled Other Engagements with a value of 30. Then I want to be able to click on each pie slice to drill down to a secondary pie chart that shows the breakdown based on the categories included in that type.
    Since I am not grouping based on an existing field I an unsure what the link and label values should be in the chart sql.

    You'll need something like the below. I have no idea what the URL for the drilldown needs to be. It should create an appropriate link in your app for the particular slice. Mainly the code below breaks the SQL results into three rows rather than three columns. It may well have a syntax error since I can't test.
    select linkval  AS LINK,
           title    AS LABEL,
           calc_val AS VALUE
    FROM   (SELECT 'OD Engagements' AS title,
                   round(avg(CATEGORY_1 + CATEGORY_2 + CATEGORY_3 + CATEGORY_4 + CATEGORY_5),0) AS calc_val,
                   'f?p=???:???:' || v('APP_SESSION') || '::NO:?' AS LINKVAL
            from   OTD_PROJECT
            where  STATUS in ('Open','Hold')
            UNION ALL
            SELECT 'Talent Engagements' AS title,
                   round(avg(CATEGORY_6 + CATEGORY_7 + CATEGORY_13),0) AS calc_val,
                   'f?p=???:???:' || v('APP_SESSION') || '::NO:?' AS LINKVAL
            from   OTD_PROJECT
            where  STATUS in ('Open','Hold')
            UNION ALL
            SELECT 'Other Engagements' AS title,
                   round(avg(CATEGORY_8 + CATEGORY_9 + CATEGORY_10 + CATEGORY_11 + CATEGORY_12),0) AS calc_val,
                   'f?p=???:???:' || v('APP_SESSION') || '::NO:?' AS LINKVAL
            from   OTD_PROJECT
            where  STATUS in ('Open','Hold')
           );

  • "Use presets for responsive layout" not working in Chrome

    I am building a responsive website. I am going to have parts of the website animated using Edge Animate. I will make the animation and then insert it into a div in the responsive website I am building.
    The Adobe Edge animation has a width of 100%, so that it resizes according to the area that it occupies the full width of the div no matter how wide that div may be in px.
    It is all working fine, but:
    I have an image in the Edge animation that is center aligned. It must stay center aligned no matter what width the animation ends up being.
    Within Adobe Edge, in Properties, in Position and Size, there is a option where, if you hover your mouse cursor over the top right button a tool tip says "Use presets for responsive layout"
    With the image on the stage selected, I can click on the "Use presets for responsive layout" button and then choose "Centre background Image".
    It works perfectly in all browsers accept Chrome (even IE is playing ball this time). In chrome the width of the image stretches out as the div stretches out..
    The "Centre background Image" setting says that it won't scale the image. But in Chrome it does.
    What can I do to "tell" Edge Animate to center the image but not scale it in the Chrome browser?
    I can see that in the image properties it is set to Background image x axis and y axis 50%. And the width is set to pixels. But in Chrome, the image stretches.
    If you go to http://www.brainstormadvertising.co.uk/demo/services.html you will see what I mean. The circle image is centering BUT stretching in chrome browsers while centering nicely and NOT stretching in other browsers.

    Thank you for your reply Josh. But the point of this setting in Edge Animate is that you can set it up that the background image is center aligned and does not scale. Yet it produces code that gives the width as 21.72%.
    A little further along I see background-size: 48px; .  This is correct.
    So all the browers are reading background-size: 48px; as the scale measurement but Chrome is reading the width only, not the background-width. So this "Use presets for responsive layout" works in all browsers except chrome.
    I don't know how to change that code after the artwork has been published. I can see the code using Firebug, but where do I change it in my code on my computer before uploading to the server?
    I have reported this bug to Adobe.
    Please see the attachment. You can see where all the settings are made and where I am getting a problem.

  • Could we use embedded SQL for XML in .pc ?

    Hi,
    Can we use embedded SQL for XML in .pc ?
    <1> assume we have run SQL statements in Oracle9i:
    SQL>create table MY_XML_TABLE
    (Key1 NUMBER,
    Xml_Column SYS.XMLTYPE);
    SQL>insert into MY_XML_TABLE(key1, Xml_Column) values
    (1, SYS.XMLTYPE.CREATEXML
    ('<book>
    <chapter num="1">
    <text>This is the my text</text>
    </chapter>
    <book>')
    <2> Could we directly translate it in .pc as usually:
    <outlined, not exactly)
    int emp_number = 1;
    XML_Data emprec; /* ?????? */
    EXEC SQL SELECT M.Xml_Column.GETCLOBVAL() as XML_Data
    INTO :emprec INDICATOR :emprec_ind
    FROM MY_XML_TABLE M
    WHERE Key1 = :emp_number;
    Thanks
    MJ

    reply by myself.
    No problem!!
    ===============================
    int emp_number = 1;
    struct emprec{
    char feature[1280]
    EXEC SQL SELECT M.Xml_Column.GETCLOBVAL() as XML_Data
    INTO :emprec INDICATOR :emprec_ind
    FROM MY_XML_TABLE M
    WHERE Key1 = :emp_number;

  • Trying to find out the sql for the below 3 values

    HI Experts,
    I am trying to find the sql that can give me the values for the below three values. can some one Help me out getting these ?
    Free buffer waits (%)
    Local write wait (%)
    Latch: cache buffer chains (%)
    Actually these are the metrics which are available in OEM for the DB releases up to 9i. Post 9i releases , these metrics are obsoleted.
    So, trying to find the sql for these and use them as an UDM for the 10g and 11g DB's
    Thanks in Advance.
    Thanks,
    Naveen kumar.

    And is there any why to find using what sql the metrci is formed ?

  • 1099 MISC forms for 2009 Layout

    Does anybody know if the SAP Notes for 1099 forms for 2009 layout has been released? I would appreciate if you can provide the SAP Notes Numbers. We are on ECC 6.0
    Regards,
    Marco

    That note explains the changes and says they will be released in November 2009, but I have not seen the release yet.  I did see that yesterday they released note:  1413409 but it says to apply a HOTFIX and it is for Support Package SAPK-10102INA1SBCCG, SP 02 for A1S_BCCG 1.01 *** prepackage 02.11.09 ***" .  
    We are also on ECC 6.0 but are also installing EhP 4 this weekend.  Our BASIS team says this note does not apply to us but it is the only one I have seen for 1099 Misc forms.  So I am interested in the same note Marco is, please.

  • Equivalent of pl/sql for a tsql

    Can somebody post me the the equivalent of pl/sql for the below Tsql (Microsoft SQl Server)
    SET ANSI_NULLS ON
    SET QUOTED_IDENTIFIER ON
    SET ANSI_PADDING OFF
    GO
    CREATE TABLE [Localizations] (
    [pk] int NOT NULL IDENTITY(1, 1),
    [ResourceId] nvarchar(512) NOT NULL,
    [Value] ntext NOT NULL,
    [LocaleId] varchar(5) NOT NULL,
    [ResourceSet] nvarchar(512) NOT NULL,
    [Type] nvarchar(255) NOT NULL,
    [BinFile] image NULL,
    [TextFile] ntext NULL,
    [Filename] nvarchar(128) NOT NULL
    ON [PRIMARY]
    GO
    ALTER TABLE [Localizations]
    ADD
    CONSTRAINT [PK_Localizations]
    PRIMARY KEY
    ([pk])
    ON [PRIMARY]
    GO
    ALTER TABLE [Localizations]
    ADD
    CONSTRAINT [DF_Localizations_ControlId]
    DEFAULT ('') FOR [ResourceId]
    GO
    ALTER TABLE [Localizations]
    ADD
    CONSTRAINT [DF_Localizations_Filename]
    DEFAULT ('') FOR [Filename]
    GO
    ALTER TABLE [Localizations]
    ADD
    CONSTRAINT [DF_Localizations_LocaleId]
    DEFAULT ('') FOR [LocaleId]
    GO
    ALTER TABLE [Localizations]
    ADD
    CONSTRAINT [DF_Localizations_PageId]
    DEFAULT ('') FOR [ResourceSet]
    GO
    ALTER TABLE [Localizations]
    ADD
    CONSTRAINT [DF_Localizations_Text]
    DEFAULT ('') FOR [Value]
    GO
    ALTER TABLE [Localizations]
    ADD
    CONSTRAINT [DF_Localizations_Type]
    DEFAULT ('') FOR [Type]
    GO
    Edited by: user7722364 on Oct 19, 2009 8:18 AM

    The "default '' "(or null) constraints are not required.
    You need
    - a sequence instead of the identity column
    - a trigger to populate the sequence if it's not in the code
    then it's pretty similar
    - create table statement
    - create pk (which you could do as part of the create table statement if you wish)
    Whether you need NVARCHAR2 depends on your character set.

  • Dynamic PL/SQL for Deletion of Records

    Dear all,
    I am using Dynamic PL/SQL for Deletion of Records,In that PL/SQL, i have to get the no.of records deleted and send a report with the no.of rows deleted.
    Please help me on this..
    Thanks,
    Murugesan

    Hi,
    Try this:
    SQL> SELECT * FROM T;
    DT              CODE
    14-FEB-07          1
    14-FEB-07          1
    14-FEB-07          1
    14-FEB-07          2
    14-FEB-07          2
    SQL>
    SQL> ed
    Wrote file afiedt.buf
      1  BEGIN
      2    EXECUTE IMMEDIATE  ' DELETE FROM T WHERE CODE = 1';
      3    DBMS_OUTPUT.PUT_LINE(' Total Deleted Rows :'||SQL%ROWCOUNT);
      4* END;
    SQL> /
    Total Deleted Rows :3
    PL/SQL procedure successfully completed.
    SQL> Regards
    Avinash

  • How to start checking the bottle necks in PL/SQL for benchmarking?

    How to start checking the bottle necks in PL/SQL for benchmarking? Can anbody post me the instructions to start tuning the Oracle PL/SQL code..
    Thanks & Regards,
    VJ

    you can use DBMS_PROFILER to do this. This built in package is very well documented:
    http://www.oracle.com/pls/db102/ranked?word=dbms_profiler&remark=federated_search
    Depending on your IDE, you could get a visual representation of the profile. Something like:
    http://technology.amis.nl/blog/2327/dbms_profiler-report-for-sql-developer

Maybe you are looking for

  • Local Printing problem

    We have a problem on our printing configuration. Last time we could print using our default printer installed on windows using this configuration in SPAD: DEVICE ATTRIBUTES Device Type: SAPWIN : Rel.4.x/SAPIpd 4.09 + ONLY! Device Class: Standard Prin

  • Problem with /usr/bin/find -iname

    find -iname is not case insensitive and behaves oddly. Why doesn't the example below always return all 3 files? Why does being in a different directory change the behavior? I also noticed that the behavior is not the same for other users. In terminal

  • Drop cache group in timesten 11.2.1

    Hello, I am trying to drop an asynchronous cache group in timesten. I follow the below steps to do so: a) I use the connection string with the DSN, UID, PWD, OracleID, OraclePWD specified b) If replication policy is 'always', change it to 'manual' c)

  • Source Window play sound in sync with Timeline.

    When I originally opened the source of my Audio in Premier Pro CS5.5 the sound in the Source Window would play in sync with the Timeline. I clicked on the audio to try to zoom in closer - which I'm not sure how to do; any guidance appreciated as I'm

  • ITunes 11.1.5 won't sync podcasts to my 6th gen ipod nano--how do I fix this?

    iTunes 11.1.5 won't sync podcasts to my 6th gen ipod nano--how do I fix this? Until a few months ago, my iTunes had no problem syncing podcasts to my 6th gen ipod nano. Since an update in the iTunes software version (not sure which version), iTunes j