PL/SQL must effect due to the change of stress

It is the original procedure which works very well with a unique constraint on msisdn_ndc.

create or replace PROCEDURE 'GET_STACK_SP '.

(p_msisdn varchar2,

p_stack_id out varchar2,.

p_tariff_id number,

p_sas_name out varchar2) is

l_status varchar2 (30);

Start

Select c.stack_id, c.tariff_id, vsp.sas_name and c.status

in p_stack_id, p_tariff_id, p_sas_name, l_status

Customer c

Join virtual_service_provider on c.service_provider_id = vsp.service_provider_id vsp

where (substr (p_msisdn, 1, 2) = c.msisdn_cc

and substr (p_msisdn, 3, 3) = c.msisdn_ndc

and substr(p_msisdn,6) = c.msisdn_subs)

or (substr (p_msisdn, 1, 2) = c.msisdn_cc

and substr (p_msisdn, 3, 4) = c.msisdn_ndc

and substr(p_msisdn,7) = c.msisdn_subs);

If l_status! = 'active' then

raise_application_error (-20071, 'Non-active MSISDN!');

end if;

exception

When no_data_found then

raise_application_error ("-20070, ' MSISDN Not Found!");

end;

But after the change of the unique constraint (msisdn_ndc + status), the output of procedures gives us several Msisdn which is not necessary.

possible workaround: "" and c.status ='active ".

but with this workaround, we get msisdns with status = 'deactivation_pending. '

to solve procedure must:

(1) If a msisdn found, this msisdn data must be

(2) If a found more misisdn then the msisdn with status = 'active' data should appear.

need your help...

Best K.

Thanks john..., it works...

Tags: Database

Similar Questions

  • Are made and shipped to the United States at the Canada Apple books and so have shipping and additional costs due to the change of currency?

    Are made and shipped to the United States at the Canada Apple books and so have shipping and additional costs due to the change of currency? A book of dollar $50 USA could go to over $ 100.

    Apple print products are quoted and charged in the local currency

    and the calculation of your Exchange rate is whack too - the CD is $0.77 USD - no $0.. (50) but the exchange rate is not serious since quotes and fees are in local currency

    LN

  • due to the change of operating system android, Manager of files hp no longer write to external sd car

    due to the change of operating system android, Manager of files hp no longer write to external sd card.
    Please provide your comments to HP normal file manager.

    Hello and welcome to the HP support community!

    This was caused by the upgrade of Android Kit Kat (4.4)

    There are many free file managers that work still available in the game store.

    WyreNut

  • How to re-enable professional acrobat 7 due to the change of system

    I need to reactivate my Acrobat 7 Professional due to the change of system, but have lost all original re news account login.  I have the serial number.  How can I reactivate it?

    Error: "Activation Server is not available. CS2, Acrobat 7, pass a hearing 3

  • Acrobat trial has expired due to the change of system clock?

    Hello

    I have been using Acrobat DC trial for maybe a week and a half. I tried to make a pdf to expire, so I changed my system clock. When I opened Acrobat DC again, it said my trial was expired! Is it possible to recover my trial? Have not yet seen a lot of what can do DC Acrobat. Thank you.

    No.. A clock change cause the trial to end.

  • Cannot connect to the labmanager due to the change in ldap server

    Dear community

    I use a Lab Manager 4.02 configured for ldap authentication, operating under windows 2008. Lately our ldap servers have been replaced by new servers with new names. However, this change has not been configured on the console of the Lab Manager and consecvently it is not possible to connect. I tried to locate any type of parameters to change the name of the ldap server, but failed. No idea how to solve this problem?

    Best regards

    Evald

    Yes, never lose this account.  Even if you do, you can call a support aid if LDAP changes IP & you forget the no name/password ldap.

    Kind regards

    Jon Hemming, b.SC., RHCT, VMware vExpert 2009
    http://Twitter.com/vJonHemming

    If your question or problem has been resolved, please click the "right answer".  If someone helped him, please click "useful answer.

  • Change directories within the FDM due to the change in storage

    We are trying to replace our storage and directory names will change. I need to identify the places in applications where these mount points are configured, so when we pull off a cutting area, we can re - configure the application to point to the new shares with the migrated data.

    Can someone help identify these places? After we have identified, we can work on a time to cut these courses.

    Other facts about our environment
    FDM, HFM, Hyperion Planning 11.1.1.3
    Two Applications: One for HFM and one for Hyperion Planning
    Two environments: one for testing and the other for Production usage.

    Environment sharing drive\dhyp_fdm \\test $: data files, box of reception, Outbox and reports
    \\Production environment sharing drive\hyp_fdm$: records of data, Inbox, sent and reports box.

    Thanks in advance for your answers. Please let know us if I need to add more information to this Forum of Discussion/Question.

    Roman

    You set the location of the directories in your application when you create the application of FDM. However, you can change the location of this share. When connecting, to wither the Web or client Workbench select Add an Application in the application drop-down list. Log in as an administrator. Select the application you want to change the part of the demand for, and then click Modify. You then have a path of the application that you can change. Just be sure that your directories for both apps FDM migrated to newly specified directory locations

  • Need drivers for XP due to the change in Vista

    I have Vista and want to exchange it for XP can I download the drivers and save on cd to load on XP? If yes how?

    Hey Buddy,

    You can try it here:

    http://EU.computers.Toshiba-Europe.com/cgi-bin/ToshibaCSG/download_drivers_bios.jsp

    http://209.167.114.38/support/download/ln_byModel.asp

    Maybe you will find some drivers you need here.
    Give some feedback if you have any additional questions.

    Welcome them

  • I can't install After Effects due to the error: "getting started with Setup failed." This could be due to a missing file "."

    I'm trying to install this program on my new laptop with Windows 64-bit 10. I also tried to install it on the other computer with Windows 7 64 bit and the same error occurred. Computers are very good and I'm sure that they meet the hardware configuration of the AE.  I'll be very grateful for any assistance. (Sorry for my gramma )

    I'll also tell you that I did not use the creative cloud download AE, because during the installation of creative cloud occurred error: "cannot install creative application Cloud services (error code: 1)"»

    Hi Pawe % C5% 82g 81597370,

    Please see the link below:

    Installer [CS5.5] initialization failed. Please download Adobe Support Advisor to detect the problem.

    Installation and launch log errors | Adobe Creative Suite 6, Adobe Creative Suite 5.5, Adobe Creative Suite 5

    Resolution of the error messages in the bootstrapper to CS5 and Adobe Creative Suite 5.5

    Troubleshoot installation of Adobe Creative Suite with log files

    Let us know if that helps.

  • winndow will not start due to hardware changes.

    I recently had a fearsome crush at home. Had to replace the card motherboard and CPU. Now, windows will not boot due to the change of material even after running windows repair. What can I do?

    Once you change a motherboard, you should be able to reinstall Vista.

    Vista would have the old drivers of the motherboard installed.

    See you soon.

    Mick Murphy - Microsoft partner

  • My Lightroom CC suddenly slowed down dramatically? is this due to the new Mac OS or LR was last updated?

    Hello

    My Lightroom CC slowed. Everything is slow, images export / import of images, the develop Module. Very frustrating. This is due to the change of OS of IMAC or the new upgrade of the CRD.

    Hi Photo-Shoto,

    6.3/CC 2015.3 Lightroom is now available - try to update to this version which includes the previous import feature, bug fixes and new support for photo/target device profile: Lightroom CC 2015.3 / 6.3 now available

    Concerning

    Pete

  • Should "Advanced" jpg be exported so that the changes are recognized by the other viewers/software?

    I have the box checked in the catalog preferences to include the parameters of development within jpg files.

    What I have to export jpg files from Lightroom for other programs and photo viewers to 'see' the changes I did to jpg files in LR 5.3?

    Yes, normally develop Raw files but I was wondering how jpgs, I import into LR, are treated when I make changes to their in LR?

    Jpg is treated exactly the same way in RAW format with regard to display in other non-Adobe applications. They must be exported for the changes to be visible in non-Adobe applications. Including the development in a JPG file parameters do not help non Adobe applications to see the changes.

  • Dynamic SQL with in bulk in the record type

    Oracle 10.2 g

    I received this Tom

    [http://asktom.oracle.com/pls/apex/f?p=100:11:0:NO:]

    I'm able to do this without dynamic SQL, but my requirement is to do it in dynamic SQL
     create table t1 ( x int, y int );
    
     insert into t1 select rownum, rownum+1 from all_users where rownum <= 5;
    
     create table t2 ( x int, y int, z int );
    
     declare
                type array is table of t1%rowtype;
                l_data array;
        begin
                select * bulk collect into l_data from t1;
      
                forall i in 1 .. l_data.count
                
                       execute immediate 'insert into (select x, y from t2) values :x' using l_data(i);
        end;
     
    Error at line 1
    ORA-06550: line 9, column 90:
    PLS-00457: expressions have to be of SQL types
    ORA-06550: line 9, column 20:
    PL/SQL: Statement ignored
    There is a work around in 11g, but can we do something in 10g?



    Thank you
    HESH.

    HESH wrote:

    but following does not.

    declare
    type array is table of t1%rowtype;
    l_data array;
    begin
    select * bulk collect into l_data from t1;
    
    forall i in 1 .. l_data.count
    
    execute immediate 'insert into (select x, y from t2) values :x' using l_data(i);
    end;
    

    I want just a dynamic SQL code for the insert with FORALL statement would adopt as well as collections.

    Doesn't make much sense.

    Extract you the data from the SQL engine in the table of the record type. If the output data that cursor SQL must be read in the SQL engine and copied into the memory of PL/SQL engine.

    Then, you send that VERY SAME DATA back to the SQL engine to be used by a SQL insert cursor.

    Where is the logic behind the extraction of data from SQL in a PL/SQL table structure and then push this same structure table on the SQL engine database? What is the purpose to send data on a detour of underperforming and non-scalale through the PL/SQL engine?

    You have any justification (technical or functional wise) to back up this absurd approach?

    Why this can be achieved using a single SQL cursor that does both the choice (extraction) and (in bulk) insertion - using the plain old INSERT... SELECT structure?

    And if the insert is variable, then what? Create a dynamic INSERT... SELECT cursor and execute it (using bind values). This simple... Right?

  • after effect to duplicate the issue of the composition: in the 2nd composition, change the first

    I downloaded free after effect models.

    after effect to duplicate the issue of the composition: in the 2nd composition, change the first

    This means that if I write "Ahmed" for the second, one automatically becomes even.

    I'm new in after effect. I have less idea of 'Master of composition and scene files.'

    How can I fix happening like that?

    simpler.jpg

    You should get some basic skills in After Effects.  It is not a program, you can just start using without having to learn the basics and expect to have success at all.

    That being said here, that's what you need to do.

    Comp 2 duplicate in the project (not the layer panel) Panel in order to have a '3 Comp '.  Add a layer to 1 Comp.  Now modify Comp3, and you will see the difference.

    Understand that Comp2 will always be Comp2 little matter how many times you duplicate in the layer panel.  Whenever you make a change to Comp2 that change will be seen in each layer named Comp2 any composition it is nested in. That's what you need to do.

    I just gave you a fish, but it won't last long.  Soon you will ask for another.  So now, I'll give you a fishing rod: you must learn how nesting compositions in After Effects.   You must take some time to learn the basics of After Effects, or else you're going to be here every day asking why this, why that. Every day ask for a fish.  You can simply download a model and expect to be able to use it.  It is an unrealistic expectation. .

  • Urgent! Help, please. I want to create an effect of deformation that changes little by little through the image

    Hello. I have a model that consists of a large number of small irregular dots in a diagonal pattern that I have repeated it. I need to make some sort of Warp effect so that the points at the top of the image are crushed together making them more "dense" and low points are tight and more spaced making it "less dense". This effect must be gradually from top to bottom. Essentially points to the environment will be like in the original, in the upper part that they will be crushed and down spread.

    I'm new to Illustrator and have tried envelope distort, but can't seem to find an effect that will give me the progressive change. Can someone help me please?

    use an envelope distort > make with a net.

    knit 1 row 1 column value.

    then move the handles to get the desired section and the squish.

    blue dots indicate the position of the original handle

    red dots indicate the new position of the handle

Maybe you are looking for

  • Import photos only

    I have 199 photos taken today and that I imported into the Photos.  However, they appear - so I thought I did something wrong and I tried again.  They will not be imported.  I tried their import to iPhoto and that worked perfectly.  Tried a third tim

  • M300 DVD device i/o error

    HelloYou just bought a M300. Having problems playing DVDs. There is no problem reading CDGet an i/o device error. This could be a hardware or software problem?Best regards / jesper

  • OfficeJet 6600: Confusion of Fax-printer

    I had to get a new wireless router, and after a lot of trial and error, I've restored the network connection. But now my printer wwill send only fax - I can print anything.

  • EliteBook 8460p: BIOS password problem

    I wanted to make my starting the computer from a USB/CD/DVD key, but there is no option to do so. There is a BIOS password on the computer It is entered incorrectly 3 times. No 'CNUxxxx' code is seen, only "system locked, please restart" or something

  • Device driver unknown dv2718us in the system compatible ACPI Microsoft

    Gentlemen. I have a HP Pavilion dv2718us and I need all the drivers for windows 7 Ultimate 64-bit, the only show of HP in the site for Vista 64-bit drivers, so I have problem. Today I install the unknown in the system compatible ACPI Microsoft device