What  are the advantages over sql in pl/sql...can you please answer this?

Hi,
what are the main differences between sql and pl/sql...why v are using pl/sql rather then sql...can you please answer this question?

SQL is used to access the database. PL/SQL is a programming language where SQL is seamlessly integrated. In order to access the database in PL/SQL, you have to use SQL.
Think of it as two pieces of software, two "engines". If you want to interact with the database, then performance wise it's best to use only one engine (SQL only), instead of two (PL/SQL and SQL). If a PL/SQL program executes a SQL statement, it does a "context switch", i.e. saving its state in PL/SQL before giving control to the SQL engine and vice versa. This is quite fast, but do a lot of them and it is slow, so beware of programming SQL statements inside loops.
Another way to put it: SQL is a fourth generation language (4GL) where you tell what you want, not how. The software, the optimizer, will decide for you how to process the statement. PL/SQL is a third generation language (3GL), or at least the PL-part is, where you describe how things should be processed. Leading to more code and more control. With every Oracle release, SQL becomes more powerful and the optimizer gets better, so using SQL is increasingly important.
For complex processing, using PL/SQL is still necessary. But use it with care.
Hope this helps.
Regards,
Rob.

Similar Messages

  • What are the advantage of using Oracle Database when compare to SQL SERVER

    Hi all
    Please tell anyone about
    what are the advantage of using Oracle Database when compare to SQL SERVER
    Thanks in advance
    Balamurugan S

    user12842738 wrote:
    Hi,
    There are various differences between the two.
    1. SQL Server is only Windows, but Oracle runs on almost all Platforms.
    2. You can have multiple databases in SQL Server, but Oracle provides you only one database per instance.Given that the very term 'database' has s different meaning in the two products, this "difference" is absolutely meaningless.
    3. SQL Server provides T-SQL for writing programs, whereas Oracle provides PL/SQLWhich means what? Both products have a procedural programming language. They named them differently, and the languages are not interchangeable. Means nothing in comparing the features/strengths/weaknesses/suitability to purpose.
    4. Backup types in both are the same. (Except Oracle provides an additional backup called Logical Backup.)You make that sound like "Logical Backup" is something more than it is. It is nothing more than an export of the data and metadata. Many experts don't even consider it a backup. I'm sure SQL Server provides the same functionality though they probably call it by some other name.
    5. Both provide High Availability.Well, I guess they both have a suite of features they refer to as "High Availability". But what does that really mean? The devil is in the details. Remember, the two products don't even agree on what constitutes a "database".
    6. Both come in various distributions.???
    >
    If you are going for an Implementation, you can try SQL Server Express Edition and Oracle XE which are free to use.
    Then you can choose whichever is comfortable for your needs.
    Thanks.

  • What are the advantages/disadvantages of using PS/CS5 in 64bit over 32bit please?

    What are the advantages/disadvantages of using PS/CS5 in 64bit over 32bit please?

    From a practical perspective, besides the 64 bit version being a bit faster at just about everything, limitations on document size are lifted in the 64 bit version.  Essentially, how much can do is limited only by how much RAM you have installed in your system.  You can do things like have larger documents, deeper history, etc. and have it all work quickly.
    On the other hand, many 3rd party plug-ins, especially older ones, only provide 32 bit versions, which will only run in 32 bit Photoshop.
    Both 32 and 64 bit versions are installed by default.  It's important to note that most of the preferences are separate between the two, so you can have two slightly different setups that might help with specialty operations you might need.  This gets pretty subtle, but for example I keep the 32 bit version configured with only 1 cache level, so all previews of high bit depth images are always composited in high bit depth.  This aids me with some aspects of astroimage processing.  It's slower, but more accurate.  By contrast I have more cache levels configured for my 64 bit version, so that's faster for general photography work.
    -Noel

  • Mobile hotspots---what are the advantages?  better reception?

    What are the advantages of getting a mobile hotspot---such as the Verizon Jetpack 4G LTE Mobile Hotspot MiFi 4620L---over simply using the hotspot feature of a tablet (such as the Samsung Galaxy 7.7" or a Motorola Xyboard 8.2") or smartphone (such as the Samsung Stratosphere)?
    More specifically, is the reception better?  For example, in an area of marginal data signal strength, would the mobile hotspot be more likely (as a sort of specialized device) to get a usable signal than would a mobile-hotspot-enabled tablet or smartphone?

    Mobile Hotspot devices like the MiFi products are likely to be more configurable than the hotspot features you are provided with by your smart phone/tablet. 
    Probabally the biggest difference is that a MiFi can support more devices than your smart device.  Another example would be purchasing a larger battery for a MiFi.  Running a hotspot feature on your phone will drain your phone battery quicker.  Haveing a MiFi may extend your battery life and connection sessions simply because the connected devices and mifi do not rely on each other for power.  As AZ mentioned, performance will boil down to the hardware/radios that have been installed.  More powerful equiptment will always perform better.
    In reality they both do the same thing, provide you and others a connection to the internet that you can bring where ever you go.

  • FM7.1 to FM10 : What are the advantages?

    Hello,
    I have to use FrameMaker on Solaris, in a networked environment.
    Currently I am using 7.1 and want to move to 10.
    7.1 already has serious issues with importing pdf files.(http://forums.adobe.com/thread/891661?tstart=30)
    You see I need to give some good reasons to my boss so as to convince him!
    So 1st I want to know if there is a stable 10 ver. that works on Solaris.
    2nd-ly it would be excellent if someone can say very briefly, what are the advantages/problems in ver 10 over 7.1 for Solaris environment.
    Particularly looking out answers from the user "Error7103 "!
    Thanks in advance,
    DP

    FrameMaker 8 supports Unicode too and is faster and more stable than FrameMaker 10.
    Another question that has to be considered is:
    SoLarry?
    Do you want to make any investments in the former Sun platforms now owned by Leisure Suit Larry Ellison?
    If you are running Frame native on Solaris, you are running on SPARC workstations. Sun discontinued those over a year prior to the Oracle Assimilation. Since then, even the Solaris x86 workstations are gone. Oracle is out of the desktop biz, except for thin clients. If a seriously nasty security exploit appears for SparcStations, ORCL may not patch it promptly. As your hardware ages and fails, you may find yourself getting parts from eBay.
    I suspect that the bottom line for this inquiry is that it's not likely to be a an FM7 to FM8 upgrade on Solaris, but a total platform migration to Windows. The label on that can reads: Worms: species, quantity and condition unknown.

  • What are the advantages..

    Hi friends,
          can you please tell me <b>what are the advantages of using MVC?</b> because <b>i can use ABAP Objects without using MVC.</b>
    Thanks in advance,
    Regards,
    Kannan.

    Hi Kanna,
            For Dynamically componentised you need to use controller.In the main page you partition for what you want to present dynamically and then call controller as a response to the user.What the action you have take in case of Page flow logic(Event Handler) need to be placed in controller.
    Using the MVC design pattern has the following advantages:
    ·        Structuring BSP applications is simplified, since the view is cleanly separated from the controller and the model.  This not only facilitates changing BSP applications, but also considerably improves their maintenance.
    ·        You have the option of generating program-driven layout. The HTML/XML output is therefore created by program code instead of a page with scripting.
    ·        Navigation using the <bsp:goto> element and call using the <bsp:call> element. The advantage of using <bsp:goto> navigation over redirect is that there is no additional network traffic. Furthermore, you remain in the same work process, which can have advantages for creating objects and memory space. The call using <bsp:call> element is more variable than adding them using INCLUDEdirective, since it is triggered at runtime.
    With the call option using <bsp:call>, you can also distribute the user interface into components.
    ·        Optimized performance due to fewer redirects.
    ·        Intuitive and east-to-use interface for application development.
    Main advantage of MVC is that you can keep these(Model View ,Controller) separately.If you need to change in logic you do not have to worry about presentation(View).
    Regards,
    Albert

  • What is workflow ? What are the advantages of using workflow? What are the

    what is workflow ? What are the advantages of using workflow? What are the steps for building a workflow ?

    Hi Leela,
    Your question is very straight question.
    Better u can follow these links.
    http://www.esnips.com/doc/90b7763b-f9d9-4861-a273-04674b9fe3f2/Workflow
    http://www.esnips.com/doc/991843e0-8686-4949-94b9-f45d90081b22/workflow
    And i'll give some theory answer for ur questions
    i.e.,SAP Business Workflow can be used to define business processes that are not yet mapped in the R/3 System. These may be simple release or approval procedures, or more complex business processes such as creating a material master and the associated coordination of the departments involved. SAP Business Workflow is particularly suitable for situations in which work processes have to be run through repeatedly, or situations in which the business process requires the involvement of a large number of agents in a specific sequence.
    You can also use SAP Business Workflow to respond to errors and exceptions in other, existing business processes. You can start a workflow when predefined events occur, for example an event can be triggered if particular errors are found during an automatic check.
    SAP provides several workflows that map predefined business processes. These workflows do not require much implementation. For an overview of these SAP workflows, refer to Workflow Scenarios in Applications.
    Integration
    SAP Business Workflow uses the existing transactions and functions of the R/3 System and does not change the functions. You can combine the existing functions of the R/3 System to form new business processes with SAP Business Workflow. The workflow system takes over control of the business processes. If you are already using SAP Organizational Management, you can use the organizational structure created there to have the relevant agents carry out the individual activities. It is possible to have an activity carried out by a position. This ensures that the respective occupiers of the position can carry out the individual activities during execution of the workflow. This means that personnel changes in your organization are taken into account immediately in the execution of a workflow.
    Features
    SAP Business Workflow provides a number of tools for defining and analyzing workflows as well as for monitoring operation.
    The Workflow Builder is for displaying and making changes to workflows. You can make small extensions directly to the original workflows supplied by SAP, such as carrying out your own agent assignments or changing deadline monitoring.
    There are several Workflow Wizards to support you in the definition of workflows, with which you can create specific parts of a workflow. The Workflow Wizard Explorer gives you an overview of the existing Workflow Wizards.
    In order to make the functions of the R/3 Systems available to a workflow, you use business objects, which you can define and analyze in the Business Object Builder. These business objects are made available to the workflow in reusable tasks. The Business Wizard Explorer gives you an overview of all existing tasks.
    The end user receives information about the activities they are to carry out in their Business Workplace. This provides them with a central overview of all the activities that they are authorized to carry out. They can commence the activities from here.
    Several tools are available to the workflow system administrator, with which they can control and analyze the current workflows. The workflow system administrator is notified of problems automatically by the system.
    Workflow tutorials with step-by-step and with screenshots are available at http://www.****************/Tutorials/Workflow/Workflow.htm
    This has a step by step procedure :
    http://fuller.mit.edu/workflow/debugging.pdf
    www.erpgenie.com/sap/workflow/debugging.htm
    http://www.erpgenie.com/workflow/debugging.htm?2b5de440
    Rewards if it is useful.

  • What are the advantages of using an internal table with workarea

    Hi,
    can anyone tell me
    What are the advantages of using an internal table with workarea
    over an internal table with header line?
    thnks in adv
    regards
    nagi

    HI,
    Internal tables are a standard data type object which exists only during the runtime of the program. They are used to perform table calculations on subsets of database tables and for re-organising the contents of database tables according to users need.
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/content.htm
    <b>Difference between Work Area and Header Line</b>
    While adding or retrieving records to / from internal table we have to keep the record temporarily.
    The area where this record is kept is called as work area for the internal table. The area must have the same structure as that of internal table. An internal table consists of a body and an optional header line.
    Header line is a implicit work area for the internal table. It depends on how the internal table is declared that the itab will have the header line or not.
    e.g.
    data: begin of itab occurs 10,
    ab type c,
    cd type i,
    end of itab. " this table will have the header line.
    data: wa_itab like itab. " explicit work area for itab
    data: itab1 like itab occurs 10. " table is without header line.
    The header line is a field string with the same structure as a row of the body, but it can only hold a single row.
    It is a buffer used to hold each record before it is added or each record as it is retrieved from the internal table. It is the default work area for the internal table
    1) The difference between
    whih header line and with out heater line of internal table.
    ex:-
    a) Data : itab like mara occurs 0 with header line.
    b) Data: itab like mara occurs 0.
    -While adding or retrieving records to / from internal table we have to keep the record temporarily.
    -The area where this record is kept is called as work area for the internal table.
    -The area must have the same structure as that of internal table. An internal table consists of a body and an optional header line.
    -Header line is a implicit work area for the internal table. It depends on how the internal table is declared that the itab will have the header line or not.
    a) Data : itab like mara occurs 0 with header line.
    table is with header line
    b) Data: itab like mara occurs 0.
    table is without header line
    2)work area / field string and internal table
    which one is prefarable for good performance any why ?
    -The header line is a field string with the same structure as a row of the body, but it can only hold a single row , whereas internal table can have more than one record.
    In short u can define a workarea of an internal table which means that area must have the same structure as that of internal table and can have one record only.
    Example code:
    data: begin of itab occurs 10,
    ab type c,
    cd type i,
    end of itab. " this table will have the header line.
    data: wa_itab like itab. " explicit work area for itab
    data: itab1 like itab occurs 10. " table is without header line.
    Regards,
    Padmam.

  • What are the advantages of using CACHE and NOCACHE Hint

    What are the advantages of using CACHE and NOCACHE Hint & difference of them.I saw one of oracle.sql script have CACHE & oracle rac script include NOCACHE .Why is that

    924250 wrote:
    In a SOA product include db scripts,when we install the product we want to execute the db script to create sequence both oracle RAC & Oracle db
    Oracle DB
    CREATE SEQUENCE REG_LOG_SEQUENCE START WITH 1 INCREMENT BY 1 NOCACHE
    Oracle RAC DB
    CREATE SEQUENCE REG_LOG_SEQUENCE START WITH 1 INCREMENT BY 1 CACHE 20 ORDERas sb mentioned, this has nothing to do with oracle hints.
    you'll want to search the documentation about sequences.

  • What are the advantages to adding a server to my home/home office system?

    What are the advantages to adding a server to my home/home office system?

    It's hard to give you specific answers unless we know your current setup. Any server, or specifically OS X server, may not be appropriate for your workflow.
    A server is a centralized computer which can act as a file repository for other computers and devices to access. It can also centrally manage authentication for other resources (ie, have a single sign in for multiple services), can act as a web server, a calendar server, and other features. Of course, many of those things are available from other providers, but having your own server means that you have more control (and responsibility) over them.
    This is a good place to start:
    https://www.apple.com/osx/server/
    Matt

  • What are the advantages of idoc compare to flat file. how data is secure

    what are the advantages of idoc compare to flat file. how data is secure in idocs compare to flat file

    Hi Ramana,
    In simple words, Main advantage with idoc over flat file is security....
    I will explain you some scenario here U got a flat file with all the data...Now u r having the flat file if you want u can modify the data in it, or somehow any one can modify the data in it  if they were able to access this file. That means u maintained the file in the presentation server
    One level of higher security to the above level is maintaining the flat file in application server, at point also even though lot of people r not having the access to that file, super user who is  having  the access may modify the data or delete the data from it rite....
    so in both of those levels u don't have 100% security...
    So there come to the picture of idocs, Idocs simply data carriers, those r generated by a program but not manually...data will be divided into number of segments based upon ur program. So manually its not so easy to modify the data in these idocs. If any changes to be made in the data then u have to modify the data in the application and then u have to update the idoc or you have to generate the new idoc with that corresponding data. so in this case not even super user can manipulate the data directly in the idoc....
    I think u got my point what I mean to say.....
    If you find it useful mark the points
    ~~Guduri

  • Converting RAW to DNG! What are the advantages / disadvantages?

    I have Canon cameras and shoot RAW, but the question itself is surely also valid for Nikon, Sony or other brand-shooters.
    When importing my pictures to Lightroom, I could convert them to DNG but didn't do this up to now, because I do not know what I loose. I suppose that I loose the ability to process my files with DPP, but I will not do that anyhow. I can appreciate the advantage of having the file in an open documented format, where even I could easily write a reader for it. So the answer should not be what I can easily find in the Adobe introduction into DNG. I have also the DNG specification in front of me, and I can read it, because I once wrote a program to read TIFF files. I understand that I could add the original RAW image stream, but I do not want using up the space wasted for this. I know, that all development parameters used for the specific RAW image can be written with the image file instead of having those stored in a database or a side-car-file.
    But what I did not find until now a technical explanation about what happens during the convert. Who can enlighten me? Where do I find the missing technical explanations?
    Thanks in advance!
    Lucien.

    Feierwoon wrote:
    That wasn't the question... .
    Based on the title of the thread and your initial post, it seems like your question had a lot of
    "What are the advantages / disadvantages?"
    in it, and only a little
    "What happens at a technical level when converting"
    But if you want more detailed info about conversion, and you have the aptitude to understand, I recommend doing what Lr5user-pt recommended:
    Download the DNG SDK and dig in - all your questions will be answered (and if not, you can also ask DNG-specific technical questions in the DNG forum).
    As far as my "sources" regarding the technical summary I presented, they are many and varied, none of which are the DNG SDK. In other words, my knowledge is based more on experience over the years - I don't know all the details under the hood..
    Some experiments to consider doing:
    * exiftool (-X) a proprietary raw file, then convert to DNG and repeat.
    * open a proprietary raw in a DNG-supporting software of your choice and inspect metadata, then open the converted DNG in the same software and re-evaluate. Compare to proprietary raw opened in manufacturer's software, and what you see via exiftool.
    Tom Hogarty (Lightroom project manager) and others who know have said: "DNG converter discards no metadata", and I believe them, but haven't verified for myself. Yet once proprietary metadata is in the DNG, most (all?) software will no longer decode it. A prime example is focus points - presumably they're there, but once converted, focus point feature is no longer supported. The amount of work required to support converted focus point data is unknown (to me), but as far as I know, no software has ventured to do it. If you want focus points, don't convert.
    If you want the truth, I think for most people it's "not wise" to convert to DNG. Why? because unless you already know why you are converting (and need to convert to satisfy your goals), or you already know why you must NOT convert (e.g. so you can open the files in mfr.software, and see focus points..) the pros and cons are likely to be a wash, and now you have twice the number of raw files, unless you discard your originals, which would be REALLY "not wise", in my opinion. If you find the notion of "openly documented format" sufficiently compelling, then, ya know, more power to ya (I don't judge..), but there is no guarantee that DNG will outlast NEF (or..), and if it does, there will be ample opportunity to convert before you're left in the cold, unless you're stuck in a cave for a few decades, or are kryogenically frozen.. True, if all companies die, you may be able to write your own DNG converter (/reader), given the DNG documentation, but FWIW, NEF is also thoroughly documented (document is in freely downloadable SDK), and reverse engineerable (that's what Adobe and Phil Harvey does), so you could also write your own NEF converter, so not really a very compelling argument, not this year anyway - ask me again in a few decades..
    If filesize is a main draw, then be sure NOT to save the hi-rez previews in your DNGs, otherwise you've just lost most or all of the filesize advantage. Also, you can strip previews from some proprietary raws (e.g. NEFs), to reduce filesize.
    Personally, if DNG supported sidecars, I would be more likely to convert, because file-management/backup is only an issue if you "forget" about xmp sidecars (and I do not forget), and I'd rather have my xmp in separate ready-to-read xml text files, rather than embedded in binary files, but hey, that's me..
    PS - I always use/encourage-others-to-use DNG when distributing raws to others for use in Adobe software, so xmp is not separate and can not get lost.
    PPS - proprietary raws and dngs are both just glorified tiff files - raw data, previews, and metadata..
    Don't get me wrong: I am NOT anti-DNG, and in fact - just the opposite: I am PRO dng, it's just that I wouldn't (don't) convert my own raws to DNG at this point. If you find the reasons to convert now are sufficiently compelling, you have my complete support and cooperation, fwiw..
    Cheers,
    Rob

  • What are the advantages of compressor and it it even necessary

    what are the advantages of compressor and it it even necessary?

    Necessary for some and not for others – probably a large majority – who can by with the presets avalaible in FCX.
    The users who need Compressor are those who want to control the parameters of the encodes to get the best possible trade-off between file size and quality. Or those who want to do things like standards conversions, complex frame speed changes, better re-scaling capabilities, de-interlacing, re-interlacing, output formats beyond which are available in FCX, chapter markers for DVD and Blu-Ray authoring, batch conversions for multiple purposes through droplets, access to clusters for faster rendering.
    Russ

  • What are the advantage of using a passive monitoring technique ?

    What are the advantage of using a passive monitoring technique

    Hi Plawansai,
    I saw your question that is still unanswered.
    I believe an advantage of using a passive monitoring technique is that it won't interfer with live traffic, as it does not inject traffic into the network or modify the traffic that is already on the network.
    One drawback anyway, is that post-processing time can take a large amount of time with passive monitoring!
    A combination of the two monitoring methods seems to be the route to go.
    V.

  • What are the advantages of WiFi + cellular as to just WiFi devices

    What are the advantages of WiFi + cellular as to just WiFi devices

    Advantages of Wi-Fi and cellular iPad.
    1. You can use it in places without Wi-Fi.
    2. The cellular model have GPS.

Maybe you are looking for

  • Cannot activate used iPhone 5 - is it blocked somewhere?

    My company had a branch office in Japan which recently closed. Among equipment in the office were several iPhone 5 devices, one of which was the loaner I used while in country.  We canceled the contract with the carrier and (according to them) are pa

  • Connecting a new computer through linksys router

    I have a WRT54G wireless router ... I want to connect a new laptop through it ... but I need either a network key or a password ... cant locate these .. can anyone help?

  • Variable One to One - difficult question

    Hi I am using a Variable One to One mapping but TL is not using the class indicator information to produce the correct SQL and I wonder what I am doing wrong. I have the following simplified database design: Users: userId (pk) Applications: applicati

  • How many photos is too much

    I realize that this is one of those "your mileage may vary" type questions, but here goes: How many photos is too much for a single iphoto library? Have people either encountered problems after reaching a certain threshold? Or are there people who ha

  • Question:SAP MaxDB

    I would like to ask if is it normal that the Z Tables and some tables in SAP MaxDB doesn't contain any record? Because after I install the SAP NetWeaver 7.01 ABAP Trial Version and write an SQL Statement(e.g select * from ZCUSTOMERS) I got a message