About PL/SQL usage!!!

Where do I use PL/SQL procedures for example? Do I put the calls to them in java methods?

There is no simple answer to such a simple question.
When I analyze your question I think that you are struggeling with an application architecture matter. Basically, the first answer that springs to mind would be:
- You should use PL/SQL when you have to implement functionality that is databound.
In other words: when your process is about manipulating data rather than doing complex arithmetic, you should use PL/SQL.
When it comes to the question on how to integrate the PL/SQL code with the other components that make up your information system, than the question is raised what type of information system you are building and what the infrastructure is on which it will be running.....
In all cases, please realise that PL/SQL code is running in the database tier of your application infrastructure!!!
Hope this helps...
Message was edited by:
Toine

Similar Messages

  • Zen Sleek Photo Freezes/Locks Up after about 5 minutes usage (need to drain battery to recov

    Hi,
    My 20G Zen Sleek Photo has just recently transformed itself into a useless brick.
    No matter what I try and do, it always ends up freezing after about 5 minutes usage. When you force a reset it does unlock but when it comes back on it sticks on the Creative "copyright" start up screen.
    I've reformatted and re-installed the firmware several times but with the same result.
    font face="comic sans ms,sans-serif">
    The only time it totally unlocks is when you either:
    () let the battery fully drain and then recharge it or
    (2) you disconnect the battery lead and then press the On/Off switch for several minutes.
    I've looked everywhere for a solution/reason but nothing. You find plenty of people with the same problem but no answers. Surely someone knows how to fix the problem
    Is it a faulty battery (unlikely because mine charges up fine and holds it charge well)
    Is it the hard dri've (very unlikely since the player can start up correctly [given the above recovery procedure] and play tracks within the 5-0 minutes you have available)
    Is it the firmware (I doubt it, I can't see what the firmware's got to do with a delayed lock up, having worked fine up to that point)
    Is it the motherboard (maybe....., to my mind it points to a component failure that allows an electric charge to build up and not dissipate, the only way to discharge it is to short the battery pins [with, I hasten to add, the battery removed!])
    font face="comic sans ms,sans-serif">
    Has anyone within the Creative community successfully solved this problem Has anyone received a decent answer from Creative
    I find it staggering that the guys at Creative have washed their hands of this problem. They, after all, are the most likely people to identify the problem - only they have a schematic of the motherboard that would allow them to investigate and locate the problem.
    For the record the firmware I'm using is v .0.0.
    Any guidance would be much appreciated,
    Victor

    Is there really no one with an answer to this problem or have I overlooked a previous post that explained the fault.
    BR
    Victor

  • I DO NOT want to send anonymous reports to Mozilla about my computer usage and so on. How do I get rid of the question that comes up every time I open Fiorfox up?

    I DO NOT want to send anonymous reports to Mozilla about my computer usage and so on. How do I get rid of the question that comes up every time I open Fiorfox up?

    See:
    * https://support.mozilla.org/en-US/kb/Options%20window%20-%20Advanced%20panel
    * go to Firefox/Tools-Option-Advance and uncheck submit performance data

  • I have a recently acquired iPhone 4. Is it true if I am using PhotoStream to upload photos to my PC via iCloud, photos are only pushed when wifi is available?  This means I don't have to worry about extra data usage, right? Thank you.

    I have a recently acquired an iPhone 4. Is it true if I am using PhotoStream to upload photos to my PC via iCloud, photos are only pushed when wifi is available?  This means I don't have to worry about extra data usage, right?
    Thank you.

    Correct.
    On an iOS device, new photos you take will be automatically uploaded to your photo stream when you leave the Camera app and are connected to Wi-Fi. Note: My Photo Stream does not push photos over cellular connections.

  • [ask] about oracle sql injection and escalation

    Hello,i'm student , i'm studying oracle,now i want to research about oracle sql injection,i had read some tuttorial such as *'Hacking Oracle From Web,Advanced SQL Injection In Oracle Databases,Oracle Hacker HandBook ...'* but when i try to demo on localserver (11.0.1.6) but not run,and this is my demo
    -- first,i created table users
    create table users (name nvarchar2(50),pass nvarchar2(50))
    -- then i created procedure with system user
    create or replace procedure system.adduser(u nvarchar2,p nvarchar2)
    as
    begin
      insert into users values(u,p);
    end;
    -- grant execute privilege to oc user
    grant execute on adduser to oc
    -- login with user oc and create a procedure
    create or replace procedure sqli
    as
    begin
      execute immediate 'grant dba to oc';
    end;
    -- and then,i run system's procedure
    declare
    begin
      system.adduser('admin','admin'' ; execute immediate  ''declare begin sqli() end;');
    end;
    i hope oracle master help me to i can understand and improving my knowledge
    Thanks

    The best forum for this is probably Forum Home » Java » SQLJ/JDBC
    Presumably you are refering to oracle.sql.TIMESTAMP. While this is intended to (and does) correspond to java.sql.Timestamp it can't be a subclass because it needs to be a subclass of oracle.sql.Datum.

  • Meaning about PL/SQL

    HI All,
    I have some question about PL/SQL Collection like Associative Arrarys is like
    Single Dimension
    Unbounded
    Homogeneous
    Can I know the meaning for above terms I may think about Unbounded and Bounded it's like
    Associative Arrays have much space at runtime where
    Arrays are bounded like CHAR data type I will have limited space correct me if I am wrong. Give some example for between understand.

    1007945 wrote:
    HI All,
    I have some question about PL/SQL Collection like Associative Arrarys is like
    Single Dimension
    Unbounded
    Homogeneous
    Can I know the meaning for above terms I may think about Unbounded and Bounded it's like
    Associative Arrays have much space at runtime where
    Arrays are bounded like CHAR data type I will have limited space correct me if I am wrong. Give some example for between understand.
    An associative array is a name-value pair. And is of very little use in 99% of general PL/SQL programming.
    Such arrays are one dimensional. You reference the array with a single index value - unlike a 2D (standard non-associative) array where each cell in the array is referenced by an index pair (x,y) for example.
    Associative arrays are also homogeneous - it only supports native scalar types (e.g. string, number, date).
    And associative arrays are unbounded. You do not place a limit with the definition of the type, on the number of cells it can hold (unlike a VArray type definition for example).
    Associative arrays are largely useless in the PL/SQL environment. It is a specialised form of an array. And within PL/SQL and database context, dealing with name-value pairs in a non-scalable program language structure (as oppose to a SQL based table structure) raises all kinds of questions.
    Which is also why the majority of PL/SQL  code and samples and examples using associative arrays are wrong.

  • About Oracle SQL Certification Details

    Hi All,
    I want to Details About Oracle SQL Certification. How many Type and what are there.
    Thanks & Regards

    You will get better answers in the [Oracle Certification Forum|http://forums.oracle.com/forums/forum.jspa?forumID=459]
    Thanks,
    Karthick.

  • Difference about the SQL Statement

    Hi,
    I have a doubt, It in one of my application i wrote a select query like this
    sql> select * from quartz;
    but my DBA told me not to use the *(star), instead he told me to use the column names. when i asked him, he said there will be performance issues.
    Now my question is can u explain me the difference.
    Thanks in advance,
    Siva

    Did the DBA explain what performance issue he was concerned about? Obviously, Oracle has an extra step to resolve the * to the appropriate column list, but this is likely to be an imperceptibly small portion of the time required to execute the query.
    In an actual application, you would normally want to explicitly list column names so that your code isn't affected when new columns are added to the tables.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Question about PL/SQL Function in report

    Hi all. I have a (basic) question about using a PL/SQL function in a report. In my report page I have an item (PL/SQL function) that has the following syntax:
    return username from t1
    where username like 'Le%'
    I reference this item in an email process. Ideally this function would return all usernames that begin with 'Le' in the drafted email; however, its not looping so I'm only getting a return on the first name.
    I have a few books on PL/SQL but I'm not exactly sure where to start - I imagine there is a loop process I need to integrate into the function but, like I said, I'm not sure.
    I would have posted this to the PL/SQL forum but also wanted some feedback on whether or not using this method is the best way forward. Essentially I have a table with usernames and just want to send email messages based on some simple logic.
    Thanks!
    Len

    Hi Sergio,
    First, it's an honor to have you reply to my post. Thanks!
    To be more specific,
    T1 is a table containing the results from a user security scan. Username is a column in this table containing user names. What I have done is create a page in HTML DB with the following elements:
    1. An 'Item' containing the PL/SQL function that is hidden. The purpose of this Item is to generate information from T1 that meets the simple logic parameters - in this case, the user names that begin with "Le". I have called this Item P145_TT
    2. A 'Process' containing references to HTMLDB_MAIL. The 'Process' looks similar to this:
    HTMLDB_MAIL.SEND(
    P_TO => '[email protected]',
    P_FROM => 'Anon Email Account',
    P_BODY => 'Note: This message was automatically generated. Do not attempt to reply to this email.
    These are the users that begin with Le: '||:P145_TT||' ',
    P_SUBJ => 'Summary');
    3. A 'Button' to submit the process and (hopefully) send the message containing all users that adhere to the logic in the function.
    4. If I use 'return username from t1...' I will get a username generated, but like I said previously, it only gives me the first and does not loop.

  • A problem about Ms Sql 7 - Oracle 8.1.5 ?

    hi
    I used OMWB to migrate MS sql 7 to Oracle 8.1.5, both of our env are on chinese character set,it worked well. Thank OMWB work team. The whole process of migration did't meet any problem. But I met a problem about character set,I don't see right content on CLOB column,all data in CLOB columns are like the following something :
    0F5C3A53A44E1A904575BE8FBF4F776302303052FD56388D01303100380006529F943052B065164E
    I maped text datatype of SQL to CLOB datatype,I can see the right data directly in SQL by select command,but I can't see the right data in SQL*PLUS.
    How can I do? Migration workbanch don't support the multi-bit char set such as chinese?
    null

    I already knew the solution of the problem,but I met another problem.
    I checked my sql 7 database again, I found large columns are ntext datatype. I changed the ntext to text and migrated data again. In SQL*PLUS ,I found the data of clob columns change to '????.?-?'. I know this is caused by NLS_LANG, my NLS_LANG=simplified chinese_china.zhs16gbk. How do i set my nls_lang to get the right data?
    null

  • Help about EL/JSTL usage

    Hello,
    When we declare any bean on jsp using jsp:useBean i read that we can use that bean either in scriptlets or in expressions on jsp.
    Im not clear about the same when we create any variable using JSTL like <c:set var="jspBean" value="myname"/>
    as i know EL variables cannot be used in scriptlets or expressions, can they be used only in JSTL tags involving EL or we can use it any where.
    Also, can we use JSTL in between some html formatting tags like <div> , <table>, <span> etc like :
    <div <c:if test="${jspBean == 'myname'}"> style="width:9px;"</c:if> >
    some text
    </div>
    If there is any nice tutorial/notes that shows the usage of EL, please let me know.
    Please help me with my above questions

    Best way to learn is to experiment :-)
    Originally ${expr} only worked within specifically written tags.
    Since JSP2.0, ${expr} can be used anywhere that you can use <%= expr %> - they are now both runtime expressions evaluated by the container (eg Tomcat 5)
    Also, can we use JSTL in between some html formatting tags like <div> , <table>, <span> etc like :Yes. It will evaluate at runtime, and produce an HTML page to send to the client. The EL/JSTL gets evaluated on the server, the client never sees the if statement.
    I would recommend reading the JSTL specification: http://java.sun.com/products/jsp/jstl/reference/api/index.html.
    Cheers,
    evnafets

  • Query about TRAILING NULLCOLS usage

    Hi,
    I'm using SQL Loader for loading flat files to Tables.
    Here is my datafile
    empid|name|dept|salary|grade|
    1|shekhar|projects|1000|C|
    2|ravi|projects|800|D|
    3|rob|projects|1200||
    4|Mathew|projects|1400||
    my ctl file
    LOAD DATA
    INFILE emp.txt "str '|\r\n'"
    APPEND INTO TABLE EMP
    FIELDS TERMINATED BY '|'
    EMP_ID
    , NAME
    , DEPT
    , SALARY
    , GRADE
    Its giving error message
    Column not found before end of logical record (use TRAILING NULLCOLS)
    I think TRAILING NULLCOLS is used to put null for the columns which are not found. But in my case the grade column value is empty for the empid 3 & 4
    If I'm wrong please explain me the usage of TRAILING NULLCOLS.
    Thanks

    the record delimiter specified in the INFILE clause is not considered part of the record. for record 3 and 4, SQL Loader is parsing:
    3|rob|projects|1200|
    4|Mathew|projects|1400|
    There are only 4 field values for these records because the last '|' is stripped off. Try changing the INFILE line to
    INFILE emp.txt "str '\r\n'"
    This should preserve the ending '|'
    Of course. the other option is to us TRAILING NULLCOLS in the control file.

  • About Nokia 5800xm usage

    Most of time I'm using my Nokia 5800xm (about 12hours per day). I mean I'm living with my phone.
    so i wanna know any risk of using? will my usage harm to my phone. but I'm using it very carefully.
    Glad to help
    Solved!
    Go to Solution.

    haha I'm using it more than 12 hours but carefully.still no issue with it. firmware has lit bug. but works fine.
    thanks jimmy.
    Glad to help

  • About embedded SQL in J2ME

    Hi There...
    I am working with the Database project in J2ME.So that i have used java.sql.
    But after build the project J2ME wireless toolkit shows the error that package java.sql.* does not exist.
    Following is the code...
    import java.sql.*;
    public class ModelMIDlet
    private Connection Database;
    private Statement DataRequest;
    public ModelMIDlet()
    String url="jdbc:odbc:CustomerInformation";
    String uid="umesh";
    Stirng password="umeshD";
    try
    }catch(ClassNotFoundException er)
    System.err.println("Unable to load the JDBC/ODBC bridge" +er);
    System.exit(1);
    catch(SQLException er)
    System.err.println("Cannot connect to the database" +er);
    if(Database!=null)
    try
    Database.close();
    }catch(Exception e){}
    System.exit(2);
    try
    {}catch(SQLException er)
    System.err.println("SQL error" +er);
    if(Database!=null)
    try
    Database.close();
    catch(Exception ex){}
    System.exit(3);
    if(Database!=null)
    try
    Database.close();
    catch(SQLException er){}
    public static void main(String args[])
    final ModelMIDlet sql1=new ModelMIDlet();
    System.exit(0);
    error:package java.sql does not exist
    So please give me a guidence.
    also give info about database handling.

    You can't use any JDBC driver to communicate your J2ME application with the Apache or any database on the server side. What maximum you can do is :
    1. Create a Web Service and use it over GPRS to get connencted to your Apache.
    Or,
    2. Create JSP and call it by creating HttpConnection from the J2ME client over GPRS and start talking to your Tomcat.
    Shan!!!

  • Help! problem about jstl sql with "LIKE?" in query

    Hi All,
    I have a problem about getting data by using "LIKE" in my sql statment.
    here is my case:
    <sql:query var="tmp">
    SELECT ...... FROM ...
    WHERE a LIKE ?
    <sql:param value="%${param.a}%"/>
    </sql:query>
    Once I used "LIKE" keyword, the query failed to use this critica.
    and couldn't find any match cases
    thx or help
    Micheal

    besides, i found that:
    this works:
    "AND a.block LIKE '%' + 'a' + '%'"
    but these don't work:
    "AND a.block LIKE '%' + 'a' + '' + '%'"
    or
    "AND a.block LIKE '' + '%' + 'cp' + '%'"
    or
    "AND a.block LIKE '%' + 'cp' + '%' + ''"
    it seems '' is the casue of error... so strange, anyone has idea?
    micheal

Maybe you are looking for

  • How to extract the number of employees (Head count) in a particulr month

    Hi Experts, We are trying to have a customized report  on  Having the  employee  headcount  for a particular month  with number of employees joined on the month and number of employees left the organisation.What is the way to get it. Please advice. V

  • Oracle java connection

    Hi, I've a problem in the connection between a Oracle DBMS 7.3.3 to a java application. The Oracle DBMS is working on AX 4.3 (Unix) machines and my java 1.1 application in working on a linux machines. I look for a jdbc driver for oracle 7.3.3 but I f

  • Confused why my video exports at 640x480 when all the clips are 1280x720

    All of my clips are from a canon 7d shot at 1280 60fps mostly surfing so I can slow it down. I added one clip which is at 640 to the project and when I exported the project in H.264 or any other setting it is only at 640. So I went back removed the c

  • What the IP address does the Web Server get?

    Hi all, We have a scenario like this: Client——>Proxy(like squid)—........—>Web Server( 6.1 SP7)——>Application We know that the Web Server will get the remote IP address, and set as proxy-ip in HTTP Header. But, what the exact remote IP address does t

  • Building a speedometer using Java2D

    I am looking for suggestions on how to animate a speedometer needle. I am currenlty using Java 2D to build the speedometer and am looking for advice on the best way to move the needle as the speed increases. I have recently constructed a analog clock