How to do this in Procedure

HI Friends,
I am using Oracle 11 g.
Please find the senarion and create table script with dummy data.
In my_table we have data also like
RA1340001,
RA1340002
In this case we need to change the data as
R134B0001
RB1340002
For changing the letter B we need to go to a dcn_control table where we are maintain data like(SNO, DATE_T, CAMPGN_ID)
(1,01-06-12,RA134)Suppose for this month the 2rd letter in CAMPGN_ID field is A then next month the letter is B alphabetically. Suppose the letter is Z then will update the data as A .
So the logic shud be If data ='RA1340001' Then check the second letter and increment+1 alphabetically to B and place the B after R134 so the value is
R134B0001
If the data ='RA1340002' then check the second letter and increment+1 alphabetically to B so the value is RB1340002.
======================
Please find the Table script.
=================
CREATE TABLE dcn_control
SNO NUMBER NOT NULL,
DATE_T date,
CAMPGN_ID VARCHAR2(7 BYTE) NOT NULL)
==============================
Create table my_table
data varchar2(10)NOT Null
========================
insert into my_table values(' RA1340001')
insert into my_table values(' RA1340002')
================
insert into dcn_control values(1,sysdate,'RA134')
Please let me know how to do this.
Thanks,
Lony

lony wrote:
In this case we need to change the data as
R134B0001
RB1340002What is the logic behind it? Is it odd/even? If so:
SELECT  t.data,
        u.campgn_id,
        CASE MOD(TO_NUMBER(SUBSTR(t.data,LENGTH(u.campgn_id) + 1)),2)
          WHEN 0 THEN SUBSTR(u.campgn_id,1,1) ||
                        CHR(
                            ASCII('A') +
                              MOD(
                                  ASCII(SUBSTR(u.campgn_id,2,1)) - ASCII('A') + 1,
                                  26
                           ) ||
                        SUBSTR(t.data,3)
          ELSE SUBSTR(u.campgn_id,1,1) ||
                 SUBSTR(u.campgn_id,3) ||
                 CHR(
                     ASCII('A') +
                       MOD(
                           ASCII(SUBSTR(u.campgn_id,2,1)) - ASCII('A') + 1,
                           26
                    ) ||
                 SUBSTR(t.data,LENGTH(u.campgn_id) + 1)
        END res
  FROM  my_table t,
        dcn_control u
  WHERE t.data like u.campgn_id || '%'
DATA       CAMPGN_ RES
RA1340001  RA134   R134B0001
RA1340002  RA134   RB1340002
SQL> SY.

Similar Messages

  • How to incorporate  a Stored procedure with ARD file (ADD ON)

    hi experts
    i created a SP  which is called by the following code.
    Dim GD As SAPbouiCOM.Grid
            Dim Query As String = "exec sp_Attendance_Report'" & vmonth & "','" & vyear & "'"
            GD = objForm.Items.Item("10").Specific
            GD.DataTable.ExecuteQuery(Query)
    while creating add on (ard file )how to incorporate   this stored procedure?
    thanks in advance

    Hello
    When the addon first time connect, you must check that the SP is exists or not exists in target database. If not exist, you may create it.
    sql to check the sp exists
    select 1 from sysobjects where name like 'sp_Attendance_Report'
    if this query returns 1 the sp is exists in the database, skip installation, if returns no records, you must install the sp via recordset by create procedure command.
    Regards
    János

  • When starting Windows 7 Sync Notifier reports "The procedure entry point sqlite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll." Any suggestions as to how to rectify this issue?

    When starting Windows 7 Sync Notifier reports "The procedure entry point sqlite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll." Any suggestions as to how to rectify this issue?

    With Windows Explorer, navigate to your C:\Program Files\Common Files\Apple\Apple Application Support folder.
    Copy the SQLite3.dll that you should find there, navigate to the nearby Mobile Device Support folder, and Paste it in there also.
    Restart the programme all should be well
    In case that your OS is (64 bit)
    1. Open windows explorer, go to location C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    2. Copy file "SQLite3.dll"
    3. Now paste it in the folder  C:\Program Files (x86)\Common Files\Apple\Mobile Device Support
    4. Restart the programme, it should not display that message, it should be clear.
    Good Luck

  • How to set pdn12.trancat mandatory in this stored procedure?

    How can i make PDN12.transcat in this Stored Procedure
    USE [zIRC DEMO]
    GO
    /****** Object:  StoredProcedure [dbo].[SP_CHECK_MANDATORY_IN_OPDN]    Script Date: 03/07/2014 10:37:54 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER PROCEDURE [dbo].[SP_CHECK_MANDATORY_IN_OPDN]
      @list_of_cols_val_tab_del NVARCHAR(255), @error_message NVARCHAR(255) OUTPUT
    AS
    BEGIN
    --invoice type
      select
      @error_message='In header line number(s), '+ substring
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      where
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND isnull(OPDN.U_InvType,'')=''
      order by
      PDN1.LineNum FOR XML PATH ('')
      ),1
      ,LEN((
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      WHERE
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND isnull(OPDN.U_InvType,'')=''
      order by
      PDN1.LineNum FOR XML PATH ('')
      ))-1
      )+' Invoice Type is missing'
    -- num at card
      if(ISNULL(@error_message,'')='')
      BEGIN
      select
      @error_message='In header line number(s), '+ substring
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      where
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S','L') AND isnull(OPDN.NumAtCard,'')=''
      order by
      PDN1.LineNum FOR XML PATH ('')
      ),1
      ,LEN((
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      WHERE
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S','L') AND isnull(OPDN.NumAtCard,'')=''
      order by
      PDN1.LineNum FOR XML PATH ('')
      ))-1
      )+' Vendor ref. number is missing'
      END
    -- transporter
      if(ISNULL(@error_message,'')='')
      BEGIN
      select
      @error_message='In line number(s), '+ substring
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      where
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S','L') AND isnull(OPDN.U_Transport,'')=''
      order by
      PDN1.LineNum FOR XML PATH ('')
      ),1
      ,LEN((
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      WHERE
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S','L') AND isnull(OPDN.U_Transport,'')=''
      order by
      PDN1.LineNum FOR XML PATH ('')
      ))-1
      )+' Transporter is missing'
      END
    --dealer
      if(ISNULL(@error_message,'')='')
      BEGIN
      select
      @error_message='In line number(s), '+ substring
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      where
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S','L') AND isnull(OPDN.U_dealer,'')=''
      order by
      PDN1.LineNum FOR XML PATH ('')
      ),1
      ,LEN((
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      WHERE
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S','L') AND isnull(OPDN.U_Dealer,'')=''
      order by
      PDN1.LineNum FOR XML PATH ('')
      ))-1
      )+' Dealer is missing'
      END
    --base price
      if(ISNULL(@error_message,'')='')
      BEGIN
      select
      @error_message='In line number(s), '+ substring
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      where
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S') AND isnull(PDN1.U_BasePrice,0)=0
      order by
      PDN1.LineNum FOR XML PATH ('')
      ),1
      ,LEN((
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      WHERE
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S') AND isnull(PDN1.U_BasePrice,0)=0
      order by
      PDN1.LineNum FOR XML PATH ('')
      ))-1
      )+' Base Price is missing'
      END
    --taxcode
      if(ISNULL(@error_message,'')='')
      BEGIN
      select
      @error_message='In line number(s), '+ substring
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      where
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S','L') AND isnull(PDN1.TaxCode,'')=''
      order by
      PDN1.LineNum FOR XML PATH ('')
      ),1
      ,LEN((
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      WHERE
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S','L') AND isnull(PDN1.TaxCode,'')=''
      order by
      PDN1.LineNum FOR XML PATH ('')
      ))-1
      )+' Taxcode is Missing'
      END
    -- ed rate
      if(ISNULL(@error_message,'')='')
      BEGIN
      select
      @error_message='In line number(s), '+ substring
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      where
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S') AND isnull(PDN1.U_EDRate,'')=''
      order by
      PDN1.LineNum FOR XML PATH ('')
      ),1
      ,LEN((
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      WHERE
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S') AND isnull(PDN1.U_EDRate,'')=''
      order by
      PDN1.LineNum FOR XML PATH ('')
      ))-1
      )+' Excice Duty Rate is missing'
      END
    -- ed duty
      if(ISNULL(@error_message,'')='')
      BEGIN
      select
      @error_message='In line number(s), '+ substring
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      where
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S') AND isnull(PDN1.U_EDuty,0)=0
      order by
      PDN1.LineNum FOR XML PATH ('')
      ),1
      ,LEN((
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      WHERE
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('M','D','S') AND isnull(PDN1.U_EDuty,0)=0
      order by
      PDN1.LineNum FOR XML PATH ('')
      ))-1
      )+' Excice Duty is missing'
      END
      if(ISNULL(@error_message,'')='')
      BEGIN
      select
      @error_message='In line number(s), '+ substring
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      where
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('D','S') AND ISNULL(PDN1.U_MfgInvNo,'')=''
      order by
      PDN1.LineNum FOR XML PATH ('')
      ),1
      ,LEN((
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      WHERE
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('D','S') AND ISNULL(PDN1.U_MfgInvNo,'')=''
      order by
      PDN1.LineNum FOR XML PATH ('')
      ))-1
      )+' Mfg. invoice number is missing'
      END
      if(ISNULL(@error_message,'')='')
      BEGIN
      select
      @error_message='In line number(s), '+ substring
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      where
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('D','S') AND isnull(convert(nvarchar(10),U_MfgInvDt,112),'')=''
      order by
      PDN1.LineNum FOR XML PATH ('')
      ),1
      ,LEN((
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      WHERE
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('D','S') AND isnull(convert(nvarchar(10),U_MfgInvDt,112),'')=''
      order by
      PDN1.LineNum FOR XML PATH ('')
      ))-1
      )+' Mfg. invoice date is missing'
      END
      if(ISNULL(@error_message,'')='')
      BEGIN
      select
      @error_message='In line number(s), '+ substring
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      where
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('D','S') AND PDN1.U_MfgQty=0
      order by
      PDN1.LineNum FOR XML PATH ('')
      ),1
      ,LEN((
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      WHERE
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('D','S') AND PDN1.U_MfgQty=0
      order by
      PDN1.LineNum FOR XML PATH ('')
      ))-1
      )+' Mfg. invoice Quantity is missing'
      END
      if(ISNULL(@error_message,'')='')
      BEGIN
      select
      @error_message='In line number(s), '+ substring
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      where
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('D','S') AND PDN1.U_MfgValue=0
      order by
      PDN1.LineNum FOR XML PATH ('')
      ),1
      ,LEN((
      select CONVERT(char(2),PDN1.LineNum)+','
      from
      OPDN
      inner join PDN1 on OPDN.DocEntry=PDN1.DocEntry
      WHERE
      OPDN.DocEntry=@list_of_cols_val_tab_del AND OPDN.DocType='I' AND OPDN.U_InvType in ('D','S') AND PDN1.U_MfgValue=0
      order by
      PDN1.LineNum FOR XML PATH ('')
      ))-1
      )+' Mfg. Assessble value is missing'
      END
      if(ISNULL(@error_message,'')<>'')
      BEGIN
      return -1
      END
      else
      begin
      return 0
      end
    END

    Hello Nabil
    Could you explain what is the point of making PDN12.Trancat mandatory? I am asking this because at my end that field has got NULL value in all PDN12 table entries, and I am not sure if this field can be updated manually when creating a Good Receipt PO. Considering this, it seems that by making this field mandatory TN will block all Good Receipts from addition.
    Regards

  • Need to wipe hard drive to restore to previous date from time machine back up.  Unclear how to do this.  Please advise or provide link to this procedure on website.  Thanks.

    Need to wipe hard drive to restore to previous date from time machine back up.  Unclear how to do this.  Please advise or provide link to this procedure on website.  Thanks.

    See Pondini's TM FAQs for starters.

  • My computer wont recognize my iphone 4. when i plug it into any computer it doesnt charge. i followed the procedure on the website but the device manager still says unknown device. any ideas how to fix this???

    My computer wont recognize my iphone 4. when i plug it into any computer it doesnt charge. i followed the procedure on the website but the device manager still says unknown device. any ideas how to fix this??? the weird thing is it use to work until yesterday. thanks

    Will it charge when connected to a wall outlet? The USB port on your computer must be 2.0
    Powering Apple and third party peripherals through USB

  • How to call this procedure in my report to print my procedure output

    Hi,
    i have a table named letter,it contains 2 columns named as letter_id and letter_content.
    select * from letter;
    letter_id letter_content
    103 Dear MFR
    103 This is in regards to the attached DM List
    103 Please Credit us after reviewing it.
    103 Thanks
    103 Regards
    103 xxxx
    108 Dear customer
    108 This is to inform that ur DM List is as follows
    108 Credit us according to the Dm after reviewing it.
    108 Thanks
    108 Regards
    108 xxxx
    now my requirement is,i need send a parameter as letter_id to a procedure or function in pl/sql in oracle,the output should be as follows:
    if we will pass parameter(letter_id) = 103 then it displays as follows:
    Dear MFR
    This is in regards to the attached DM List.Please Credit us after reviewing it.
    Thanks
    Regards,
    XXXXX.
    if we will pass parameter(letter_id) = 108 then it should displays as follows:
    Dear customer,
    This is to inform that ur DM List is as follows. Credit us according to the Dm after reviewing it.
    Thanks
    Regards,
    XXXXX.
    the procedure for my requirement is like below.now my problem is how to call this procedure in my report.so that if i will send a parameter as letter_id then it should get my report stated above.
    CREATE OR REPLACE PROCEDURE letter_text ( p_letter_id letter.letter_id%TYPE , p_letter_contents_out OUT SYS_REFCURSOR )
    IS
    BEGIN
    OPEN p_letter_contents_out
    FOR
    SELECT letter_content
    FROM letter
    WHERE letter_id = p_letter_id
    ORDER BY line_seq;
    END letter_text;
    which you might call with something like
    SQL> var results refcursor
    SQL> exec letter_text(103, :results)
    PL/SQL procedure successfully completed.
    SQL> print :results;
    CONTENT
    Dear MFR
    this is in regards to the attached DM List
    Please credit us after reviewing it
    thanks
    Regards
    EXP
    6 rows selected.
    so, the same out put i need to get it in a report.
    Thanks

    Thanks for ur suggestions.
    i have 2 select statements.1st query is the main query for the report.so i used it at the time of report created with datablock.
    now my 2nd query is
    select letter_content
    from ( select content_seq,
         content || case content_seq
    when 2 then
    ' ' || lead(content) over (partition by letter_id order by content_seq)
    end as letter_content
    from exp_letter_contents
         where letter_id = 103)
    where content_seq <> 3;
    i had taken 2parameters 1 for the main query and 2nd is for the above query(parameter is letter_id).
    now i have to write the above select statement in the report.
    so i had taken a field object in the report and then i had written this code in before report trigger.
    function letter_contentFormatTrigger return boolean is
    begin
    select letter_content
    from ( select content_seq,
                        content ||
                        case content_seq when 2 then
                             ' ' || lead(content) over (partition by letter_id order by content_seq)
                        end as letter_content
              from exp_letter_contents
              where letter_id = 103)
    where content_seq <> 3;
    return (letter_content);
    end;
    when i tried to compile it.i got an error as follows :
    error 103 at line6,column 5
    encountered the symbol "CASE" when expecting one of the following:
    (- + mod null <an identifier>
    <a double-quoted delimited-identifier><a bind variable> avg...etc
    so,where can i write this select statement.
    i am using oracle reports6i
    Message was edited by:
    user579585

  • How to run this procedure .......pls help with example

    /*it shows an warning */
    --how to remove this warning
    CREATE PROCEDURE EMP_TITLE_GENERATOR (EMP_GENDER IN CHAR (1),EMP_TITLE OUT VARCHAR2)
    IS
    BEGIN
    EMP_TITLE:=DECODE(EMP_GENDER,'M','Mr','F','Ms','INVALID');
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE(SQLERRM);
    END;
    Edited by: 923746 on Apr 18, 2012 7:58 PM
    Edited by: 923746 on Apr 18, 2012 7:59 PM

    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> CREATE PROCEDURE EMP_TITLE_GENERATOR (EMP_GENDER IN VARCHAR2,EMP_TITLE OUT VARCHAR2)
      2  IS
      3  begin
      4  select DECODE(EMP_GENDER,'M','Mr','F','Ms','INVALID') into emp_title from dual;
      5  EXCEPTION
      6  WHEN OTHERS THEN
      7  dbms_output.put_line(sqlerrm);
      8  END;
      9  /
    Procedure created.
    SQL> set serveroutput on
    SQL> DECLARE
      2    EMP_GENDER VARCHAR2(200);
      3    EMP_TITLE VARCHAR2(200);
      4  BEGIN
      5    EMP_GENDER := 'F';
      6 
      7    EMP_TITLE_GENERATOR(
      8      EMP_GENDER => EMP_GENDER,
      9      EMP_TITLE => EMP_TITLE
    10    );
    11    DBMS_OUTPUT.PUT_LINE('EMP_TITLE = ' || EMP_GENDER);
    12    DBMS_OUTPUT.PUT_LINE('EMP_TITLE = ' || EMP_TITLE);
    13  END;
    14  /
    EMP_TITLE = F
    EMP_TITLE = Ms
    PL/SQL procedure successfully completed.
    SQL>

  • Updating iTunes 12.1 and get error message "The procedure entry point CMBlockBufferCopyDataBytes could not be located in the dynamic link library CoreMedia.dll - what went wrong and how to resolve this?

    Updating iTunes 12.1 and get error message "The procedure entry point CMBlockBufferCopyDataBytes could not be located in the dynamic link library CoreMedia.dll". What went wrong and how to resolve this?

    Entry point errors can often be fixed by deleting the offending dll, then repairing the component it is part of.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If the advice above doesn't resolve things you could try this alternate version:
    iTunes 12.1.0.71 for Windows (64-bit - for older video cards) - itunes64setup.exe (2015-01-28)
    which is a 64-bit installer for the 32-bit version of the core application, similar to previous 64-bit releases.
    Or roll back to the previous build:
    iTunes 12.0.1.26 for Windows (32-bit) - iTunesSetup.exe (2014-10-16)
    iTunes 12.0.1.26 for Windows (64-bit) - iTunes64Setup.exe (2014-10-16)
    tt2

  • I have to re-install acrobat standard 9 becaus of 'unable to extend license procedure (148:3)'. Where can I download? Or better to upgrade to XI (what is the price and how to do this)

    I have to re-install acrobat standard 9 becaus of 'unable to extend license procedure (148:3)'. Where can I download? Or better to upgrade to XI (what is the price and how to do this)

    Hi riffpizcy,
    Error 148:3 is a licensing error.
    Try following the steps mentioned in the KB: Error "Licensing has stopped working" | Windows
    You can download Acrobat 9 Std. from: https://files.acrobat.com/a/preview/8d640488-4a92-4f7d-b50b-d8eb7f96bff8
    You can upgrade from Acrobat 9 to Acrobat 11 Pro at $199 USD
    Please refer: Buying guide | Adobe Acrobat XI Pro  for more information.
    Regards,
    Rave

  • How to get the store procedure name inside this store procedure?

    how to get the store procedure name inside this store procedure?

    Why cant you get the procedure name as hard code as the proc name is going to change.
    Are you looking for getting the parent proc name from child proc name which is getting executed within parent proc?
    Try the below:
    --Parent Proc
    Alter Proc sp_test
    as
    Begin
    Declare @s varbinary(MAX) = Cast('sp_test' as Varbinary(MAX));
    SET CONTEXT_INFO @s;
    exec sp_test2
    End
    --Child proc
    Alter proc sp_test2
    as
    SELECT Cast(CONTEXT_INFO() as varchar(100));
    --Test execution
    Exec sp_test
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped.
     [Blog]

  • How to use this procedure.

    hellow everyone.
    i created the following procedure in sql> but now i want to use in form,plz how to use the following procedure in form?
    SQL> DECLARE
    2 v_Calc NUMBER := 0;
    3 BEGIN
    4 WHILE v_Calc <= 10 LOOP
    5 v_Calc := v_Calc + 1;
    6 DBMS_OUTPUT.PUT_LINE('The value of v_Calc is ' || v_Calc);
    7 END LOOP;
    8 END;
    9 /
    Mehwish

    Mehwish,
    Check the parameter p_hiredate. Now it is treated as IN parameter. And in the procedure, its an OUT parameter. So change the procedure declaration line from
    create or replace procedure emp_query(p_deptno in number, p_empno in out number, p_ename in out varchar2, p_job out varchar2, p_hiredate date, p_sal out number) isto
    create or replace procedure emp_query(p_deptno in number, p_empno in out number, p_ename in out varchar2, p_job out varchar2, p_hiredate out date, p_sal out number) isAnd to call the procedure try,
    DECLARE
       Num_p_empno number;
       Str_p_ename varchar2;
       Str_p_job varchar2;
       Dt_p_hiredate date;
       Num_p_sal number;
    BEGIN
       Num_p_empno := <value_for_parameter>;
       Str_p_ename := <value_for_parameter>;
       emp_query(<p_deptno_value>, Num_p_empno, Str_p_ename, Str_p_job, Dt_p_hiredate, Num_p_sal);
    END;Regards,
    Manu.
    Edited by: Manu. on Jul 27, 2010 1:54 PM

  • How to call a stored procedure from my JSP?

    Hi to all,
              I have a very simple jsp page and a simple sql server stored procedure!
              I need to call this stored procedure by passing two parameters.
              My result set will have 4 columns.
              I would really appreciate any input on how to issue this call to a SP.
              I am new to JSP.
              Regards,
              Sam
              

              Sam,
              BEA provides examples that are shipped with the product under
              <beahome>\weblogic700\samples\server\src\examples\
              Look at the jsp directory for JSP examples that access a database and look at
              say the jdbc\oracle\storedprocs.java for an example of java code calling out to
              a stored procedure - - by combining one of the jsp database examples with this
              stored procedure example you should be 'good to go'
              Chuck Nelson
              DRE
              BEA Technical Support
              

  • How to Split a Stored Procedure into  4 SP's URGENT!!!!!!!!!!!!!!!!

    hi,
    Every thing is set now. But only one issue is left over.
    CREATE OR REPLACE package dyn_query_MBU21
    is
    type r_cur is ref cursor;
    procedure get_query(p_scorecard_id in integer,p_user_id in integer,p_start_bu in integer,p_end_bu IN INTEGER,p_parent_srsid in integer);
    procedure printQuery(p_scorecard_id integer,p_user_id integer,p_start_bu integer,p_end_bu integer,p_parent_srsid integer);
    end dyn_query_MBU21;
    CREATE OR REPLACE package body dyn_query_MBU21
    is
    procedure get_query(p_scorecard_id in integer,p_user_id in integer,p_start_bu in integer,p_end_bu IN INTEGER,p_parent_srsid in integer)
    is
    l_query VARCHAR2(32700);
    v_temp varchar2(300);
    v_strLength integer;
    val integer;
    --p_start_bu INTEGER;
    --p_end_bu INTEGER;
    --v_cur r_cur;
    l_buCount integer default 0;
    BEGIN
    l_query := 'select
    a.PLAN_TO_WIN PTWID,
    a.SPQRC SPQRCID,
    l.NAME Plan_to_Win,
    m.NAME BPD,
    a.metric_id,
    a.NAME Key_Measures,
    a.DESCRIPTION,
    c.DATE_MONTH_DIM_KEY,
    c.CALENDAR_MONTH_NBR,
    c.CALENDAR_YEAR_MONTH_CDE,
    e.SRS_ID,e.YEAR_VALUE,
    f.YTD_VALUE YTD,
    g.CALENDAR_YEAR_NBR,
    h.FIRST_NAME || h.LAST_NAME Scorecard_Owner
    , j.TYPE_NAME Management_Level,
    k.NAME Business_Unit
    , N.SCORECARD_ID
    , N.NAME
    , K.LOC_CURRENCY_ID
    --decode(ltrim(rtrim(k.PARENT_SRS_ID)),' || p_parent_srsid || ', k.NAME) Parent_BU ';
    , decode(ltrim(rtrim(k.PARENT_SRS_ID)),3,''Bill Boggs'') Parent_BU ';
    for x in ( select distinct NAME from SRS_DIM where parent_srs_id = p_parent_srsid and rownum < 20)
    loop
    l_buCount := l_buCount + 1;
    l_query := l_query ||
    ' , decode(ltrim(rtrim(K.NAME)),'''||ltrim(rtrim(x.NAME))||''', D.MONTH_VALUE ) '||replace(to_char(x.NAME),' ','_');
    -- dbms_output.put_line('this is the query'||l_query);
    end loop;
    l_query := l_query ||
    ' FROM
    METRIC_DIM A,TARGET_MONTH B,DATE_MONTH_DIM C,METRIC_SRS_MONTH_EVAL D,TARGET_YEAR E,METRIC_SRS_YTD_EVAL F,DATE_YEAR_DIM G,
    GM_USER_DIM H,USER_PRIV I,SRS_ITEMTYPE_DIM J,SRS_DIM K,PLAN_TO_WIN_DIM L,SPQRC_DIM M,SCORECARD_DIM N
    WHERE
    L.PLAN_TO_WIN_ID= A.PLAN_TO_WIN
    AND M.SPQRC_ID= A.SPQRC
    AND A.METRIC_ID=B.METRIC_ID
    AND B.DATE_MONTH_DIM_KEY=C.DATE_MONTH_DIM_KEY
    AND B.SRS_ID=K.SRS_ID
    AND B.SRS_ID=F.SRS_ID
    AND D.SRS_ID=F.SRS_ID
    AND D.SRS_ID=K.SRS_ID
    AND D.DATE_DIM_KEY=C.DATE_MONTH_DIM_KEY
    AND D.METRIC_ID = B.METRIC_ID
    AND D.METRIC_ID = E.METRIC_ID
    AND D.METRIC_ID = F.METRIC_ID
    and d.SRS_ID=b.SRS_ID
    and d.DATE_DIM_KEY=b.DATE_MONTH_DIM_KEY
    AND E.SRS_ID = F.SRS_ID
    AND G.DATE_YEAR_DIM_KEY = E.DATE_YEAR_DIM_KEY
    AND G.CALENDAR_YEAR_NBR = C.CALENDAR_YEAR_NBR
    AND F.DATE_DIM_KEY = E.DATE_YEAR_DIM_KEY
    AND K.PARENT_SRS_ID =n.SRS_ID
    AND N.SCORECARD_ID= :p_scorecard_id
    AND H.USER_ID = :p_user_id
    AND K.SRS_ID BETWEEN :p_start_bu AND :p_end_bu
    --AND P_PARENT_SRS_ID = :p_parent_srsid1
    -- ANd n.Scorecard_id=2
    -- AND H.USER_ID = 7000001
    AND J.TYPE_ID = :p_parent_srsid
    --AND K.SRS_ID = 8
    GROUP BY
    a.PLAN_TO_WIN,
    a.SPQRC,
    l.NAME,
    m.NAME,
    a.metric_id,
    a.NAME,
    a.DESCRIPTION,
    c.DATE_MONTH_DIM_KEY,
    c.CALENDAR_MONTH_NBR,
    c.CALENDAR_YEAR_MONTH_CDE,
    e.SRS_ID,
    e.YEAR_VALUE,
    f.YTD_VALUE,
    g.CALENDAR_YEAR_NBR,
    h.FIRST_NAME || h.LAST_NAME,
    j.TYPE_NAME,
    K.NAME,
    l.PLAN_TO_WIN_ID,
    m.SPQRC_ID,
    N.SCORECARD_ID,
    N.NAME,
    K.LOC_CURRENCY_ID,
    --decode(ltrim(rtrim(k.PARENT_SRS_ID)),' || p_parent_srsid || ', k.NAME) Parent_BU ';
    , decode(ltrim(rtrim(k.PARENT_SRS_ID)),3,''Bill Boggs'') Parent_BU ';
    for x in (select distinct NAME from SRS_DIM where parent_srs_id = p_parent_srsid and rownum < 20 )
    loop
    l_query := l_query ||' , decode(ltrim(rtrim(K.NAME)),''' || x.NAME || ''', D.MONTH_VALUE ) ';
    end loop;
    l_query := l_query ||'order by a.PLAN_TO_WIN';
    -- open p_cur for l_query using p_scorecard_id,p_user_id,p_start_bu,p_end_bu,p_parent_srsid;
    select (length(l_query)/255) + 1 into v_strLength from dual;
    dbms_output.put_line('String Lenghth is :'||v_strLength);
    for c in 1..v_strLength
    loop
    if c = 1 then
    v_temp := SUBSTR(l_query, 1, 255);
    else
    if length(l_query) > (255 * c) then
    v_temp := SUBSTR(l_query, 255 * (c-1) , 255);
    end if;
    end if;
    dbms_output.put_line(v_temp);
    end loop;
    end get_query;
    procedure printQuery(p_scorecard_id in integer,p_user_id in integer,p_start_bu in integer,p_end_bu IN INTEGER,p_parent_srsid in integer) is
    Begin
    get_query(p_scorecard_id,p_user_id,p_start_bu,p_end_bu,p_parent_srsid);
    End printQuery;
    end dyn_query_MBU21;
    I want to split this procedure into 6 procedures to make it look easier.
    1.getSQLSelect
    2.getSQLFrom
    3.getSQLWhere
    4.getSQLGroupBY
    5.getSQLOrderBY
    add another proc...getSQL that returns all the above procs ie,
    I need to build the entire sql & call "Open Cursor" meaning...getSQLSelect||getSQLFrom()...
    How to do this ?
    Thanks in Advance

    You're missing a comma.

  • I am no longer able to double click on a file and have it open.  Any suggestions on how to resolve this problem?

    I am no longer able to double click on a file and have it open.  Any suggestions on how to resolve this problem?

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

Maybe you are looking for

  • Can't deinstall, restore or install iTunes

    I've got a problem with deinstalling or restoring my old version of iTunes (7.0.0.70) when ever I try to deinstall or restore the old version I et an error saying: *invalid drive J:\* and after that an error saying something about an unrestorable fau

  • More and more JOptionPane dialogs

    weirdest problem I've ever had.. so far.. applet works fine in applet viewer.. and in browser thing is.. I have a button to save to database.. works fine.. when saved I used a JOptionPane to show a message with something like "save completed" all wor

  • Multiple Plant Material Master

    Hi, Following is the business scenario: The client has two plants: one is excise exempt and other is not. Same material is manufactured in both plants. They also have a registered sales office which is created as a depot in SAP. Profit centers are cr

  • Problem to get message

    Hi, I do not know why I still get the message written to the file, using such codes if (!Directory.Exists(@"c://AB_Position_List//P03RPR-DP03R_0722.txt")) sw.WriteLine("File 'P03RPR-DP03R_0722.txt' does not exist!"); return; while the file does exist

  • HD Settings in the sequence

    I need 720P video in HD. I created a sequence 720P which is 1280X720 resolution. What are the best quality Quick Time compression settings? Thanks,