Database Functions

I'm creating a little standalone program that needs to have
database like functions. The program needs to store data fields
like names, titles, etc. that can be modified/customized by the
user. I've done this before in mySQL. But I don't want the user to
have to go to a website or have a database loaded on their
computer. I just want the fields to be stored in some type of
document file that would be in the same folder as the program. Any
suggestions?

In that case, you can use propSave which is free:
http://pimz.com/?id=xtras&section=propsave
Of course that one doesn't handle encryption, so you would
have to use
BuddyAPI or something to encrypt the file (baEncryptText
should do the
trick), and it is free as long as you use only 1 or 2
functions.
-Mike
Dean Utian wrote:
>> Then, to save it to the hard drive, use the free
vList xtra:
>>
>>
http://www.updatestage.com/xtras/vlist.html
>>
>> This will save the list to a text file with optional
encryption (so
>> others cant open it and see your data). vList is
super fast and easy to use.
>
> vList Xtra isn't free though. It was sold by updatestage
but is being moved to
> Tabuleiro. See
>
http://www.updatestage.com/status_xtras.html
>
> I've recently tried BuddyWeb Xtra which can also save
lists to a file in an encrypted
> format. It isn't free either:)
>
http://www.mods.com.au/frameset.htm
>
> regards
> Dean
>
> Director Lecturer / Consultant
>
http://www.fbe.unsw.edu.au/learning/director
>
http://www.multimediacreative.com.au
>
>
>

Similar Messages

  • How can I call a Report From database function

    Hi all,
    I want to call a Report from a database function. Could you hel
    me???
    Rgds

    Hello there!
    There is a solution for executing an executable like RWRUN60
    from PL/SQL on http://asktom.oracle.com/pls/ask/f?
    p=4950:8:227101::NO::F4950_P8_DISPLAYID,F4950_P8_B:150612348067,Y
    Or you can invoke the CGI from the Reports-Server through
    UTL_HTTP
    Hope this helps
    Dannys

  • How to find which all workbook is using Database function ( User Defined)

    Hi All,
    Is it possible to find out which all workbook is using Database function( User Defined).
    Thanks,

    Hi,
    If I had to do this detective work, I would probably do the following:
    1. Activate for a period of time the function, eul5_post_save_document. This function when activated is triggered at the time a workbook is saved. If you look at its columns, it save the worksheet's SQL.
    2. Next, I would parse the EUL5_WORKSHEET_SQL.SQL_SEGMENT column which is a varchar2(4000) column. There are many effective Oracle functions which could aid you in this effort (e.g. instring or perhaps a regular expression function).
    I hope this helps.
    Patrick

  • Return value from database function taking a lot more time than the query

    Hi guys,
    I have a Query that does a call to a database function. The function takes in a few parameters and returns a Date. Now, the query within the function takes barely .05 seconds. However, doing a select get_join_dates from dual is taking almost 6 seconds for each call.
    Here is the Query:
    select s.student_id, s.student_name, s.organization_code
    from   student s
    where  s.student_id = :p_student_id
    and    s.student_enrollment_date = get_join_dates( :p_year,
                                                       :p_month,
                                                       :p_student_id,
                                                       s.organization_code );And here is the database function. The select inside this function barely takes 0.05 seconds per call. This function gets called 3 times in my case as there are 3 records in the org_body table for this student.
    create or replace function
    get_join_dates( p_yyyy in org_body.fiscal_yyyy%type,
                           p_month in  org_body.fiscal_mm%type,
                           p_student_id in student.student_id%type,
                           p_organization_code in org_body.organization_code%type) return date as
        t_enrollment_date  date;
        cursor cur_latest_enrollment_date is
          select max(enrollment_date)
          from   org_body
          where  fiscal_yyyy = p_yyyy
          and    fiscal_mm = p_month
          and    student_id = p_student_id
          and    organization_code = p_organization_code;
      BEGIN
        open cur_latest_enrollment_date ;
        fetch cur_latest_enrollment_date into t_enrollment_date;
        close cur_latest_enrollment_date ;
        return t_enrollment_date;
      exception
        when others then
          null;
    end;owever, when I run the following statement below, it takes close to 6 seconds to retrieve a record. In turn, my Query is becoming really slow and taking almost 35 seconds. Imagine that with more records.
    select get_join_dates( 2010, '01', '2167543', 'PSYCH01' ) from dual;If I run my query with this condition below, it takes 0.5 seconds.
    select s.student_id, s.student_name, s.organization_code
    from   student s
    where  s.student_id = :p_student_id
    and      s.student_enrollment_date = '01-JAN-10'Any ideas would be greatly appreciated.

    Any reason why you are doing this with the stored function?
    You could just do this with SQL. Embed the query in the function as a subquery in your initial query from STUDENT.
    select s.student_id, s.student_name, s.organization_code
    from   student s
    where  s.student_id = :p_student_id
    and    s.student_enrollment_date =
    (select max(enrollment_date)
          from   org_body
          where  fiscal_yyyy = :p_year
          and    fiscal_mm = :p_month
          and    student_id = s.student_id
          and    organization_code = s.organization_code);Why your function is not performing: I cannot say that with the information you have provided.
    Maybe sqltrace a call and see what the reason is.

  • Problem in using query-database() function in Transformation

    Hi All,
    I am using JDev and SOA 10.1.3.4.
    I have an async process.
    In that I am doing a transformation in which source is InputVariable and target is result.
    In Transformation I am using query-database function to fetch a record from DB and am assigning that to result.
    *<xsl:value-of select='orcl:query-database(concat("select ename from emp where empid=",/ns1:DBXSLProcessRequest/ns1:input),false(),false(),"jdbc:oracle:thin:scott/tiger@localhost:1521:abcd")'/>*
    I am not getting any error but query-database is not returning any thing I maen it is returning null.
    If i run that query in SQL prompt it is returning the empname.
    Please help me out.
    Regards
    PavanKumar.M

    Hi Pavan
    I tried following in BPEL transform actvity's XSL file, and it works fine and returns the sysdate for me.
    <xsl:value-of select='orcl:query-database("select sysdate from dual",false,false,"jdbc/myDS")'/>
    Can you try above in new XSL file of Transform activity and let me know its gives you the result? if it works you can start making changes according to your requirement.
    steps to follow:
    1.create connection pool in EM, and make sure its working fine by using test on connection pool.
    2.create Datasource and point to above created connection pool. and restart the oc4j_soa
    3.rename the xsl file name of transform activity in BPEL and use above query-database function.some times xsl files are cached even if you make changes it will not take effect so for testing if you rename it will be good.
    Thanks
    Seshagiri.Rayala
    http://soabpel.wordpress.com/

  • How to Oracle Database Function in OBIEE Administration Tool

    Hi All,
    I want to use a Oracle Database Function in as a column in OBIEE (BM, Presentation Model). Can anybody has done this inOBIEE. Any pointers to this is much appreicated.
    Thanks,

    Hi user7417334,
    You cannot use any formulas in the presentation layer (not that I know of). But you can definitely use oracle database functions in the BMM layer.
    You want to use the EVALUATE function. It works like this:
    e.x. EVALUATE( 'TO_DATE(%1,%2)' AS DATE, '12/31/2009', 'MM/DD/YYYY')
    Generic Version: EVALUATE( '<FUNC>' AS <DATATYPE>, VALUE1,VALUE2,etc)
    FUNC) Is the syntax for the function you are calling. Any parameters have to be replaced by %<number>, where number refers to the order in which you specify your parameters.
    DATATYPE) The datatype that the function will evaluate to. In this case, DATE.
    VALUE1) The latter part of the formula is a comma separated list of all the parameters used in the function. In this case, it's the date I want to cast
    VALUE2) This is the second parameter. You need as many as you referenced in your function. In this case, it's the date format.
    Good luck and if you found this post useful, please award points!
    best regards,
    -Joe

  • How to use query-database() function in transformation?

    Hi All,
    How to use query-database() function in transformation?
    It is giving four fields but if i write select query in sqlquery field it is saying select node is not found....
    plz help me out
    Regards
    Pavankumar
    Edited by: [email protected] on Jul 29, 2009 2:49 AM

    Hi,
    To answer your query:-
    http://abhishek-soablog.blogspot.com/2008/08/orclquery-database.html
    Cheers,
    Abhi...

  • Query to identify Workbooks dependent on Discoverer/Database Function

    Hi,
    We are having a Discoverer/Database function that is being used in several Discoverer Reports.
    We now have to add a parameter to that function and we are not sure on what all reports are actually using this function.
    Can you please provide me the query (or) an approach to identify all the discoverer workbooks that are dependent on this function?
    Appreciate your help.
    Thanks,
    Kesava

    Hi Tracy,
    there is no connection between those workbooks, the adjusted reports are saved as new reports and
    there is no pointer to the original report it was created from.
    Tamir

  • Calling Database Functions

    Hi All,
    Just wondering whether anyone has experienced problems in calling a database function. We have Forte 3.0.L.2 and Oracle 8.1.7. Here's how the function is being called:
    l_tdCurrentStatus = (SQL EXECUTE PROCEDURE me_status.get_status(input I_MCR_ID = theMember.CurMCR.MCR_ID) ON SESSION self.DefaultDBSession);
    We are using SQL EXECUTE PROCEDURE syntax to call the function since there is no specific way to call functions.
    We have tried calling the function in a SELECT clause and didn't face any issues so far. But I'd like to know the right way to call a function.
    Any help is greatly appreciated.
    Thanks,
    Madhu
    Fri Feb 13 15:40:21 : Database Error: Procedure me_status.get_status was invoked with a parameter named I_MCR_ID which
    h is unknown.
    Fri Feb 13 15:40:21 :
    Fri Feb 13 15:40:21 : USER ERROR: Procedure me_status.get_status was invoked with a parameter named
      I_MCR_ID which is unknown.
        Class: qqdb_UsageException with ReasonCode: DB_ER_PARAMETERERROR
        Error #: [801, 166]
        Detected at: qqdb_OracleData::VendorInitProcedure
        Last TOOL statement: method MemberPOM.GetMemStatusDyn
        Error Time: Fri Feb 13 15:40:21
        Server: @taz2rr, UserName: ecuser
        Database Statement: begin
          me_status.get_status(I_MCR_ID=>:I_MCR_ID);
          end;
        Exception occurred (locally) on partition "MWRouting_cl1_Part3",
          (partitionId = DD242BB0-B4AC-11D7-989B-C2D07EBCAA77:0x10435:0x1, taskId =
          [DD242BB0-B4AC-11D7-989B-C2D07EBCAA77:0x1042b:0x1.53094]) in application
          "MWRouting_cl1", pid 1036484 on node ServerNode in environment frt1ec.
        USER ERROR: Procedure me_status.get_status was invoked with a parameter
          named I_MCR_ID which is unknown.
            Class: qqdb_UsageException with ReasonCode: DB_ER_PARAMETERERROR
            Error #: [801, 166]
            Detected at: qqdb_OracleData::VendorInitProcedure
            Last TOOL statement: method MemberPOM.GetMemberStatus
            Error Time: Fri Feb 13 15:40:21
            Server: @taz2rr, UserName: ecuser
            Database Statement: begin
              me_status.get_status(I_MCR_ID=>:I_MCR_ID);
              end;
            Exception occurred (locally) on partition "MWRouting_cl1_Part3",
              (partitionId = DD242BB0-B4AC-11D7-989B-C2D07EBCAA77:0x10435:0x1,
              taskId = [DD242BB0-B4AC-11D7-989B-C2D07EBCAA77:0x1042b:0x1.53094]) in
              application "MWRouting_cl1", pid 1036484 on node ServerNode in
              environment frt1ec.

    Hello Madhu,
         The best to do this is:
    l_intmcrid : integer;
    l_intmcrid = theMember.CurMCR.MCR_ID;
    l_tdCurrentStatus : TextData;
    SQL EXECUTE PROCEDURE me_status.get_status(l_intmcrid) ON SESSION self.DefaultDBSession);
    If you want to get some kind of information out from the procedure then you will need to make a output variable on the procedure:
    SQL EXECUTE PROCEDURE me_status.get_status(l_intmcrid, output l_tdCurrentStatus) ON SESSION self.DefaultDBSession);
    This is the only way I know to call Oracle procedure. There are many examples in the CSAPOM project.
    ka

  • Database adapter: how to invoke database functions

    Hi there,
    i'm new in this forums. My name is Giulio and i work in Italy.
    I'm trying to invoke a database functions inside a bpel process.
    The function is very simple, this is the source code:
    create or replace function FNC_WriteSailing(PEventCode in varchar2, PXML In sys.xmltype) return number is
    begin
    Insert Into table_with_xml_column (filename, xml_document)
    Values (PEventCode, PXML);
    Commit;
    return(1);
    Exception When Others Then Return (0);
    end FNC_WriteSailing;
    I've tried to invoke functions withe only primitive data type as parameter. But i'm not able to invoke functions with CLOB or XMLTYPE parameter.
    I'm using jdeveloper version 11.1.1.4.0
    Could anyone help me? Thanks in advance.
    Regards,
    Giulio Dottorini

    you're not able to invoke them or you don't see them in the browser of the wizard of the db adapter?
    you should see them in there

  • XSL Database Functions throwing "ORA-01000: maximum open cursors exceeded"

    In my BPEL process, I have a large dataset requiring enrichment of the data by looking up values in a database. I'm doing this in an XSL transformation using either; orcl:lookup-table() or orcl:query-database() functions. This works ok for a number of records, but then fails with "ORA-01000: maximum open cursors exceeded".
    This implies that these functions are not closing down open cursors after use. Is this a bug, or can I configure the data-sources to handle this?
    Thanks.

    I don't see any settings to fix this on the data-source itself.
    http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28988/trouble.htm#BABCBFHA
    4.11.2 ORA-00604: Error Occurred at Recursive SQL Level 1 ORA-01000: Maximum Open Cursors Exceeded
    If i see this..Oracle just advices just to set the PROCESSES parameter on the database high enough so it wont happen :)

  • How to pass parameters to query-database function [Solved]

    Dear All,
    I'm working on a BPEL process which reads a file and the data is passes on
    to a web service. In the transform activity to transform data from the source to the
    web serivice parameters, I want to use the query-database function to check if
    the value given in the file exists in the database. I have added a 'If' XSL construct
    for this. Now when the query is static (given with hardcoded where clause), the
    query-database function works fine. But I want to use one of the column in the
    source variable in the SQL query I'm using in the query-database function.
    i.e. If I give the query as below it is working:
    <xsl:if test="orcl:query-database("select empno from emp
    where empno='10'",.....) > 0">
    I want to replace the hardcoded value 10 with the value from the source variable.
    I'm not sure how this should be done. If I refer to the element directly in the XSL
    it is not working. I've shown this below.
    <xsl:if test="orcl:query-database("select empno from emp
    where empno='/tns:Root-Element/tns:Data/:tns:Empno'",.....) > 0">
    Something like above does not work. I'm not sure also if the syntax is correct. It
    does not give any error, but the transformation does not happen.
    Is there any way you can pass any input value as a parameter to the
    query-database function?
    Thanks in advance
    -Ruban

    Hi Dipal,
    The concat works! Thank you very much for the help. I didn't try concat before.
    I was using a alphanumeric field, so it was required to add one more concat
    for enclosing the value with single quotes. For numerical fields, one concat would
    be enough as you had shown.
    My xsl looks like this now:
    <xsl:if test="orcl:query-database(concat(concat("select empno from emp
    where empno='",/tns:Root-Element/tns:Data/:tns:Empno),"'"),
    false(),false(),"jdbc/DbConnection") > 0">
    This works properly.
    Regards,
    -Ruban

  • Reasons for Introducing database functions for Discoverer Reporting Needs

    Hi All,
    I would like to know the criteria other organizations have used in creating custom database functions specifically for Discoverer reporting needs. It seems good and appropriate to identify these reasons in order that they have a sufficiently good reason (e.g. in presenting this to a change management board).
    Here is a quick swipe:
    -query explain plan improvements
    -take away the complexity of having the end user deal with complex calculations
    -consistency of a value (e.g. a complex amortization calculation)
    -an attribute is used from a dependent table with a minimum cardinality of zero
    Can anyone list other good reasons in terms of Discoverer reporting?
    Thanks,
    Patrick
    Edited by: Patrick Bacon on Jul 15, 2009 10:30 AM

    Hi Patrick
    In addition to the reasons you have given the reasons for having functions anyway apply just as equally to Discoverer as they do to other applications.
    Typically the main reasons why I would use a function are:
    a) due to the complexity of the code, or
    b) to evaluate something which an end user either could not do or does not have access to.
    For example if a user needs to have aggregations from multiple tables side by side in a report, typically from tables which have no joins between them, I write functions to go get the individual results.
    One specific function that I use a lot is one that calculates the number of working days between any given two days. Some of my HR customers use such a function to calculate the number of sick days for an employee when obviously only working days should count. Doing this in a normal Discoverer calculation would be very hard. Retail customers might use this for calculating the number of days it took to ship and item.
    There are other reasons why I use functions but these are the typical ones.
    Best wishes
    Michael

  • Including native database functions in partnerlink

    Is there a way to include native Oracle database functions (such as NVL) in the definition of a partnerlink based on a database adapter?

    Hi there,
    right now we do not support functions when visually creating the where clause in the dbadapter wizard.
    But there is a way to specify raw sql for the select outside the wizard.
    Please see the tutorial:
    integration/orabpel/samples/tutorials/122.DBAdapter/PureSQLSelect
    Thanks
    Steve

  • Query on Database Functions

    Hi ,
    I was failed to send input value to sql Query in query-database() function.
    <xsl:value-of select='orcl:query-database("select C_Code from Test_Currency where C_Name=/ns1:SyncTestProcessRequest/ns1:input",false(),false(),"jdbc:oracle:thin:system/admin@localhost:1521:XE")'/>
    If i give like below it gives correct value
    (select C_Code from Test_Currency where C_Name ='INR',,,)
    But I want to send input value to that query, then how can I pass my i/p value to query.
    don't suggest me use DB adapter :-)
    Regards
    Bhargavi

    wrong forum. This is for the SQL Developer tool, not SQL questions. There are several other fora which you can use for this. On another note, why dont u use DB Adapter? ;-)

  • Setting default value through a database function?

    I have a form to create and display records. When a new record is created, a certain field has to be filled out with a value generated by a database function. When the form is used to display an existing record, off course this function does not have to fill out this field.
    I tried to work with a computation with a query that calls the function, but I have problems assigning it to the item. I fiddled around with the Source option (Source used) with the result that either the field is always filled out (when I choose for "Only when current value in session state is null") by the function, or never (when I choose the other option).
    What am I doing wrong here? What is the best method to have a default value filled out in this form by a database function? Extra info: the result of this database function is based on the place in the application where the form is called. Sometimes the result is something like "ABC-123456789", sometimes it has to be something like "T-123456789".

    Hi ,
    is this you are expecting?
    default value
    type = function body return
    select seqname.nextval into :p1_id from dual
    select count(*) into :p2_total from emp;
    this will fill the form field with seq number.
    Thanks
    Mark Wyatt
    Edited by: Websoft on Oct 14, 2009 12:45 AM

Maybe you are looking for

  • ID3 Tags and MP3 player

    Hello, I can't afford a new iPod at the moment so brought an Archos MP3 player. It is a drag and drop device so all I need to do is drop the MP3 file in the music folder on the MP3 player. The only issue I am having is that the songs are not labeled

  • Will apple tv mirror game apps of iPod touch

    Will apple tv mirror game apps on iPod touch

  • How to get Terminal Name in Signon Audit reports

    Hi, I am running the Signon Audit report from System Administrator responsibility, I am getting the other info but terminal name column is blank. How to populate this field? Please give advice. Regards,

  • Display MENGE field with no decimals in smartfroms

    Hi Experts, I  want to print MSEG-MENGE field with no decimals in smartforms , how do i declare this field, I have also declared this field in global defination in quantity/currency field... But i am unable to get the output.. I tried using &mseg-men

  • Unable to open pages between MAC and iPad

    Since yesterday I have been unable to open new pages documents on my MAC that where wriiten on my IPAD. No updates are required on either system. My Mac is Mountianlion Osx 10.8.5     pages 09 4.3 My Ipad IOS 7.0.4            pages 2.0.1 when i click