Database functions without using a database

I think I should have posted this here instead of on the
basics are. Anyway here is my problem.
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?

There are several options - all require some simple
scripting. To name a couple:
Director can write to text files with the built-in Fileio
xtra, so you could create a delimited text file database.
Director's list functions are perfect for creating a simple
database. You can save lists to files easily using the propSave or
vList xtras - fre IIRC for simple this simple functionality
http://www.updatestage.com/products_table.html
hth
johnAq

Similar Messages

  • Add a new record in database table without using table maintance generator

    Hi Expart ,
                  Plz. tell me how to add new record in database table without using table maintance ganerator ....give me one ex.
    Regards
    Bhabani

    Hi,
    The other way to safely handle the modification of tables is through is by programs that can be done with SE38 or SE80.
    To insert into database table we use INSERT statement :
    1. To insert a single line into a database table, use the following:
    INSERT INTO <target> VALUES <wa>.
    INSERT <target> FROM <wa>.
    2. To insert a several lines into a database table, use the following:
    INSERT <target> FROM TABLE <itaba>.
    Or even we can use MODIFY statementas this single statement is used to insert as well as update the records of database table.
    MODIFY <target> FROM <wa>.
    or MODIFY <target> FROM TABLE <itab>.
    thanx.
    Edited by: Dhanashri Pawar on Sep 10, 2008 12:25 PM
    Edited by: Dhanashri Pawar on Sep 10, 2008 12:30 PM

  • Database refresh without using RMAN duplicate

    Hi All,
    I am planning to refresh my test instance to a PIT using RMAN backups from PROD. I would like to know the process without connecting to PROD database and without using RMAN duplicate command.
    Thanks.

    imran khan wrote:
    Can you please show the demo first then we will discuss on it more.. what if the folk wants to refresh it ten times then we have to change the database name ten times using NID?
    >Can you please show the demo first then we will discuss on it more.. what if the folk wants to refresh it ten times then we have to change the database name ten times using NID?
    1) You use nid only to change the dbid.
    2) I have done this type of cloning much more than 50 times.
    3) As Iordan Iotzov pointed out, in 11gR2 you can run DUPLICATE database without being connected to the PROD
    Here is a sample code of how to do it assuming both file system are the same:
    # -- RMAN Restore to another server
    rman <<EOF2
    CONNECT TARGET /;
    STARTUP NOMOUNT
    SET DBID 987654321;
    CONNECT CATALOG rman/rman@rcvcat
    RUN {
        SET UNTIL SEQUENCE=5678 THREAD=1;
        ALLOCATE CHANNEL ch0 DEVICE TYPE DISK;
        RESTORE CONTROLFILE;
    ALTER DATABASE MOUNT;
    RUN
      SET UNTIL SEQUENCE=5678 THREAD=1;
      ALLOCATE CHANNEL ch0 DEVICE TYPE DISK;
      ALLOCATE CHANNEL ch1 DEVICE TYPE DISK;
      ALLOCATE CHANNEL ch2 DEVICE TYPE DISK;
      ALLOCATE CHANNEL ch3 DEVICE TYPE DISK;
      RESTORE DATABASE;
      RECOVER DATABASE;
    EXIT;
    EOF2:p

  • Insert XML file into Relational database model without using XMLTYPE tables

    Dear all,
    How can I store a known complex XML file into an existing relational database WITHOUT using xmltypes in the database ?
    I read the article on DBMS_XMLSTORE. DBMS_XMLSTORE indeed partially bridges the gap between XML and RDBMS to a certain extent, namely for simply structured XML (canonical structure) and simple tables.
    However, when the XML structure will become arbitrary and rapidly evolving, surely there must be a way to map XML to a relational model more flexibly.
    We work in a java/Oracle10 environment that receives very large XML documents from an independent data management source. These files comply with an XML schema. That is all we know. Still, all these data must be inserted/updated daily in an existing relational model. Quite an assignment isn't it ?
    The database does and will not contain XMLTYPES, only plain RDBMS tables.
    Are you aware of a framework/product or tool to do what DBMS_XMLSTORE does but with any format of XML file ? If not, I am doomed.
    Constraints : Input via XML files defined by third party
    Storage : relational database model with hundreds of tables and thousands of existing queries that can not be touched. The model must not be altered.
    Target : get this XML into the database on a daily basis via an automated process.
    Cheers.
    Luc.

    Luc,
    your Doomed !
    If you would try something like DBMS_XMLSTORE, you probably would be into serious performance problems in your case, very fast, and it would be very difficult to manage.
    If you would use a little bit of XMLType stuff, you would be able to shred the data into the relational model very fast and controlable. Take it from me, I am one of those old geezers like Mr. Tom Kyte way beyond 40 years (still joking). No seriously. I started out as a classical PL/SQL, Forms Guy that switched after two years to become a "DBA 1.0" and Mr Codd and Mr Date were for years my biggest hero's. I have the utmost respect for Mr. Tom Kyte for all his efforts for bringing the concepts manual into the development world. Just to name some off the names that influenced me. But you will have to work with UNSTRUCTURED data (as Mr Date would call it). 80% of the data out there exists off it. Stuff like XMLTABLE and XML VIEWs bridge the gap between that unstructured world and the relational world. It is very doable to drag and drop an XML file into the XMLDB database into a XMLtype table and or for instance via FTP. From that point on it is in the database. From there you could move into relational tables via XMLTABLE methods or XML Views.
    You could see the described method as a filtering option so XML can be transformed into relational data. If you don't want any XML in your current database, then create an small Oracle database with XML DB installed (if doable 11.1.0.7 regarding the best performance --> all the new fast optimizer stuff etc). Use that database as a staging area that does all the XML shredding for you into relational components and ship the end result via database links and or materialized views or other probably known methodes into your relational database that isn't allowed to have XMLType.
    This way you would keep your realtional Oracle database clean and have the Oracle XML DB staging database do all the filtering and shredding into relational components.
    Throwing the XML DB option out off the window beforehand would be like replacing your Mercedes with a bicycle. With both you will be able to travel the distance from Paris to Rome, but it will take you a hell of lot longer.
    :-)

  • Database connectivity without using Class.forName()

    Hi,
    Can anyone please tell how we can connect to a database without in java without using the Class.forName() method , and then how the database driver gets loaded.
    Regards,
    Tanmoy

    Hi,
    I recently wrote code that connects to a database without using Class.forName() in order to be compatible with Microsoft's JVM. I read about it here:
    http://www.idssoftware.com/faq-e.html#E1
    Basically, you create a new Driver object and use its connect method.
    Here's what my particular code ended up being:
    String url = "jdbc:mysql://localhost:3306/test?user=root&password=mypass";
    Driver drv = new org.gjt.mm.mysql.Driver();
    Connection con = drv.connect(url,null);

  • How can I access a database remote without using dblink, synonyms,aliases?

    My store procedure access a remote tables using dblink, synonyms, alias, but by business company requirenments I nedd to use another data base access method. My PL/SQL statement looks like
    select c.cus_id, c.cus_name, p.bankaccno
    into v_cus_id, v_cus_name, v_bankaccno
    from customer c, payment@finantial p
    where c.cus_id = p.cus_id
    Are any method else to connect to several remote databases concurrently?
    If Yes, plase say me how is it, or tell me where do I obtain some examples, or any documentation.
    Edited by: user518321 on Apr 21, 2009 1:58 PM
    Ok, But I must not use any of these data base access method, metioned: dbliks, aliases, synonyms.
    Edited by: user518321 on Apr 21, 2009 2:05 PM
    Ok, It is enough for now, I am surprised for the response time and for their arguments, thanks a lot.
    Edited by: user518321 on Apr 21, 2009 2:50 PM

    If you want to access a table in a remote database using SQL, you will need a database link. It would be exceptionally odd for the business to require that you access a remote database and to prohibit the use of database links. What is the business reason for that combination?
    If you want to look into rather more esoteric solutions, you could load a JDBC driver for the remote database, write a Java stored procedure that queries the remote table using that JDBC driver, and then cobble together some PL/SQL that joins the two result sets. You won't be able to reference the remote table in SQL and the solution won't scale well as data volumes increase and you'll be writing a whole lot of code to manually join tables together, but it does avoid database links. Of course, whatever concerns lead to the ban on database links would probably apply to loading a JDBC driver into the database and writing Java stored procedures to access the remote database, but since you haven't explained the reasoning behind the restrictions, we're just guessing.
    Justin

  • What kind of database driver should use for database adapter  in BPEL?

    what kind of database driver (XA or non-XA) should use for database adapter in BPEL? I have only one database adapter and no JMS.
    Thanks
    Jo
    Edited by: 799095 on Sep 30, 2010 8:35 AM

    Hi
    It depends on wheter you need XA transaction or not.
    See http://www.theserverside.com/discussions/thread.tss?thread_id=21385 third reply.
    If you only have one database and no synchronous dependency to the caller, non-XA should be OK.
    -Johan

  • Point Database tutorial but using Derby Database in NetBeans IDE

    Hi
    I am getting an error when I am trying to run the EJB Entity beans BMP example "savingsaccount" in the examples folder of j2eetutorials .
    I have using NEtBeans IDE + Sun APP server and the following the tutorial Netbeans + J2ee tutorials...
    THe problem is the tutorial talks about a "pointdatabase" 8.1 verson and the Sun App Server I have is 8.2 which has "Derby Database".
    However I made the necessary changes in the code. Siill the error is someting like this :
    "ar 27, 2006 3:40:57 AM com.sun.corba.ee.spi.logging.LogWrapperBase doLog
    INFO: "IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/1366"
    Exception is caught: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException: ejbCreate: Invalid argument: parameter index 1 is out of range.
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException: ejbCreate: Invalid argument: parameter index 1 is out of range.
    at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:161)
    at javax.rmi.CORBA.Util.mapSystemException(Util.java:67)
    at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:142)
    at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
    at bank._SavingsAccountRemoteHome_DynamicStub.create(_SavingsAccountRemoteHome_DynamicStub.java)
    at savingsaccountclient.Main.main(Main.java:64)
    Caused by: java.rmi.RemoteException: ejbCreate: Invalid argument: parameter index 1 is out of range.
    ....and more...
    So I am not sure whether this is some fault of the application or the database access errior...?
    Someone who tried this let me know plz...
    thanks
    deepesh

    Microsoft SQL Driver 2005 JDBC Driver is not the Derby driver.
    You need the correct JDBC driver for the database you are using, you can't simply grab the first one you find.

  • GUI search apps without using a database

    What do people use in the way of GUI based search apps (without a DB backend) to search their disks?  Or are there none, and you just run Agent Ransack under wine (which works well BTW)?
    Searchmonkey used to be an (excellent) Agent Ransack clone but has recently been rewritten and is  considerably less powerful than it used to be.  I'd like something with the power of AR but linux based.

    I know they're not GUI, but you can build your own app if you have too, based on find & grep.
    Or use something like http://linuxappfinder.com/package/catfish
    [karol@black ~]$ locate -S
    Database /var/lib/mlocate/mlocate.db:
    14346 directories
    133301 files
    7953252 bytes in file names
    3289543 bytes used to store database
    [karol@black ~]$ df -h
    Filesystem Size Used Avail Use% Mounted on
    udev 10M 144K 9,9M 2% /dev
    /dev/disk/by-uuid/bf1d191b-0f0d-4961-bd67-4d023a2e5873
    7,3G 3,5G 3,5G 50% /
    none 499M 0 499M 0% /dev/shm
    /dev/sda1 99M 15M 80M 16% /boot
    /dev/sda4 30G 17G 12G 59% /home
    If I'm reading that right, my database is 3.2MB and indexes about 20 GB of data (filenames only). If you have many small files, YMMV,
    Edit: I think the CLI excels with repeatable, scriptable tasks. Muscle memory works with the kbd too, aliases and functions can abbreviate a long line to a couple keystrokes.
    Last edited by karol (2010-09-27 22:00:42)

  • How to identify database records without using rowid.

    Hello,
    I want to find a way to identify records uniquely in my database without the use of the rowid.
    What I want to do is the following :
    I have a table that contains images. Something like that :
    Table images (id number, image blob).
    Lets say that in this table I have scanned images of persons, invoices and orders.
    I want to be able to associate a record with different records from different tables from my ERP via an association table.
    this table could be :
    Table image_associations (imageid number, rowid_column varchar2(100))
    The "rowid_column" would contain the rowid of the row that is associated with the image.
    The problem is that the rowid is something that changes (for example after export/import).
    So I do not want to use rowid.
    Any ideas?
    Thanks

    What you are saying is you want to avoid theaccepted relational design theory and subvert the
    fundamental principles of very model?
    Yes !!!!Then you are very short sighted and will fail. Why would you want to do this? How is it that you think you are smarter than the forefathers of our industry? an idea so compelling that huge companies have many massive profits implementing the concepts? (sometimes even properly) and how is it that you imagine you can work outside the concepts underlying those tools, within the tool and come to a better solution? this is arrogance surely.
    >
    I think a lot of people use rowid to identify within
    plsql code a record instead of using the table-key.
    There is very limited specific application of the ROWID for temporary reference within known bounds.
    You shouldn't rely on the ROWID. Think about what it actually is: a physical location address hash.
    Don't use it. Just don't.
    As I can remember from my classrooms (a lot of years
    ago) rowid was never mentioned in ER models. Still
    that helps a lot..For very good reason. Rowid is an implementation concept, and not a logical concept.
    Oracle already makes provision at the physical storage level to store BLOBs out of line with a record. You don't need to try to do this at the logical level as I said already.

  • COMPARE DATABASE SCHEMA WITHOUT USING TOAD

    Hi all,
    I have always used toad to compare database schema ....
    Does anyone know about any other way to go about comaparing schema?
    e.g script etc.....

    There are many different ways of doing this, depending on how detailed you want to get and what is relevant to you.
    The first place to start is the "Oracle Reference" manual which describes the various DBA_ views. You can build up your won comparison routine fairly easily simply by running differences. Using SQLPlus, you could go down the road of
    Prompt Objects missing in &2 that are in &1
    SELECT object_type, object_name
    FROM DBA_OBJECTS
    WHERE OWNER=&1
    MINUS
    SELECT object_type, object_name
    FROM DBA_OBJECTS
    WHERE OWNER=&2
    Prompt Objects missing in &1 that are in &2
    SELECT object_type, object_name
    FROM DBA_OBJECTS
    WHERE OWNER=&1
    MINUS
    SELECT object_type, object_name
    FROM DBA_OBJECTS
    WHERE OWNER=&2
    etc.
    This has the advantage of allowing you complete control over what you see (as compared to giving that control to some other developer, such as the Toad Team). There are some disadvantages, including:
    you need to understand what you want and why;
    you need to be familiar with the documentation and the structure of the DBA_ views;
    you need to maintain the scripts
    You could always purchase Oracle's Change Management Pack add-on to Enterprise Manager or use tools like SQLDeveloper as well.

  • How to delete the records from database table without using work area

    Hi all,
    The purpose of the down program is to delete the entire contents from all the tables. The deletion of the table should be in sorted manner. Is there any other way to write the code more efficiently,
    TABLES: ZFFMCTL_AP, ZFFMHDR_AP, ZFFM_CHANGE_LOG, ZFFMDTL_AR, ZFFMHDR_AR, ZFFMDTL_JV, ZFFMHDR_JV, ZFFMDTL_SKF,ZFFMHDR_SKF,ZFINVOICE_DETAIL, ZFFMMASTER, ZFFMLOGREAD_CLUS, ZFFMCTL.
    DELETE ZFFMCTL_AP.
    IF SY-SUBRC = 0.
    DELETE ZFFMMHDR_AP.
    IF SY-SUBRC = 0.
    DELETE ZFFM_CHANGE_LOG.
    IF SY-SUBRC = 0.
    DELETE ZFFMDTL_AR.
    IF SY-SUBRC = 0.
    DELETE ZFFMHDR_AR.
    IF SY-SUBRC = 0.
    DELETE ZFFMDTL_JV.
    IF SY-SUBRC = 0.
    DELETE ZFFMHDR_JV.
    IF SY-SUBRC = 0.
    DELETE ZFFMDTL_SKF.
    IF SY-SUBRC = 0.
    DELETE ZFFMHDR_SKF.
    IF SY-SUBRC = 0.
    DELETE ZFINVOICE_DETAIL.
    IF SY-SUBRC = 0.
    DELETE ZFFMMASTER.
    IF SY-SUBRC = 0.
    DELETE ZFFMLOGREAD_CLUS.
    IF SY-SUBRC = 0.
    DELETE ZFFMCTL.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDIF.
    Waiting for response,
    Thanks in advance
    John

    Write this way....
    TABLES: ZFFMCTL_AP, ZFFMHDR_AP, ZFFM_CHANGE_LOG, ZFFMDTL_AR, ZFFMHDR_AR, ZFFMDTL_JV, ZFFMHDR_JV, ZFFMDTL_SKF,ZFFMHDR_SKF,ZFINVOICE_DETAIL, ZFFMMASTER, ZFFMLOGREAD_CLUS, ZFFMCTL.
    DELETE ZFFMCTL_AP.
    CHECK SY_SUBRC = 0.
    DELETE ZFFMMHDR_AP.
    CHECK SY_SUBRC = 0.
    DELETE ZFFM_CHANGE_LOG.
    CHECK SY_SUBRC = 0.
    DELETE ZFFMDTL_AR.
    CHECK SY_SUBRC = 0.
    DELETE ZFFMHDR_AR.
    CHECK SY_SUBRC = 0.
    DELETE ZFFMDTL_JV.
    CHECK SY_SUBRC = 0.
    DELETE ZFFMHDR_JV.
    CHECK SY_SUBRC = 0.
    DELETE ZFFMDTL_SKF.
    CHECK SY_SUBRC = 0.
    DELETE ZFFMHDR_SKF.
    CHECK SY_SUBRC = 0.
    DELETE ZFINVOICE_DETAIL.
    CHECK SY_SUBRC = 0.
    DELETE ZFFMMASTER.
    CHECK SY_SUBRC = 0.
    DELETE ZFFMLOGREAD_CLUS.
    CHECK SY_SUBRC = 0.
    DELETE ZFFMCTL.

  • Column Group Values Function without using Analytics?

    I'm looking for a out-of-the-box Oracle SQL function that will visually group column values. (As shown in the Department column below).
    I know that you can accomplish this using analytic lead/lag functions (also shown below), but I figure there must be another simpler, straight-forward function than this?
      SELECT   CASE
                  WHEN LAG (deptno)
                          OVER (PARTITION BY deptno
                                ORDER BY ename) IS NULL
                  THEN
                     deptno
               END department,
               ename,
               empno
        FROM   scott.emp   
    ORDER BY   deptno,
               ename;
    DEPARTMENT     ENAME     EMPNO
    10          CLARK     7782
              KING     7839
              MILLER     7934
    20          ADAMS     7876
              FORD     7902
              JONES     7566
              SCOTT     7788
              SMITH     7369
    30          ALLEN     7499
              BLAKE     7698
              JAMES     7900
              MARTIN     7654
              TURNER     7844
              WARD     7521

    Solution with model
    select deptno  ,empno,ename,ind
    from emp
    model
    partition by ( deptno dept )
    dimension by (row_number()over(partition by deptno order by empno) rn)
    measures(empno,deptno , ename, 0 ind)ignore nav
    rules(deptno[rn>1]=null,
    ind[rn>1]= 1
    )order by dept,ind
    SQL> select deptno  ,empno,ename,ind
      2  from emp
      3  model
      4  partition by ( deptno dept )
      5  dimension by (row_number()over(partition by deptno order by empno) rn)
      6  measures(empno,deptno , ename, 0 ind)ignore nav
      7  rules(deptno[rn>1]=null,
      8  ind[rn>1]= 1
      9  )order by dept,ind
    10  /
        DEPTNO      EMPNO ENAME             IND
            10       7782 CLARK               0
                     7934 MILLER              1
                     7839 KING                1
            20       7369 SMITH               0
                     7566 JONES               1
                     7902 FORD                1
                     7876 ADAMS               1
                     7788 SCOTT               1
            30       7499 ALLEN               0
                     7900 JAMES               1
                     7844 TURNER              1
                     7698 BLAKE               1
                     7654 MARTIN              1
                     7521 WARD                1
                     4568 salim               0
    15 rows selected.
    SQL> Edited by: Salim Chelabi on Mar 31, 2009 3:33 PM

  • Global functions without using unique AS file

    Hi all,
    I'm tinkering around with things in AS3, and now that programming the reaction of buttons involves a bit more code, I'm trying to figure out how to kill a few redundancies.
    With the file I'm working with, at different points, using different objects, the user will click some specific thing to advance the main timeline one frame.
    Now, the way I've been doing it is, for each object, I have an addEventListener, which calls a function that only contains:
    MovieClip(root).nextFrame();
    So I've got, on every frame, unique functions that each require three additional lines of code -- I realize it's not much, and it's not a lazy thing, just an organizational, minimization thing.
    Since it's just that one thing, I don't see the point in making an entire AS file, so I didn't know if there was a way to make a function that could be called from any frame, from any object, rather than just have them local.

    I've tried that, but the objects that call the function are all within movie objects that are on the main timeline.  Since they aren't on the main time line, even if I declare a function on the main time line, the code inside the object doesn't see that function declaration and I get an "Access of undefined property" error.

  • How do I send SQL statement to SQL Server and return data without using Database Connectivi​ty Toolkit?

    Hi,  I've been trying to figure out how to pull data out of my SQL Server databases and from reading some posts and doing some tests with examples, I can kind of get data connecting into my SQL server, but so far nothing that helps.  Is it possible to actually get data out of a SQL Server database without using the Database COnnectivity Toolkit?  and if so, how?  are there whitepapers and/or examples of this?  So far, I cannot find anything that works.  thanks.

    I haven't ever done it before in LabVIEW and don't have the time to do much of the research right now.
    That having been said, you will want to look for either a .NET library or an ActiveX control. Aside from the toolkit, you aren't going to find a native solution to LabVIEW - which means using other libraries. A quick google search returns this:
    http://msdn.microsoft.com/en-us/library/ms810810.a​spx
    which may help.

Maybe you are looking for

  • Crystal report hangs when calling oracle package

    hi i have a oracle package that calls a proceadure, if i test this package in PLSQL developer it compiles and i get sensible results this package has been designed using a ref type cursor to be called from crystal reports. it primary objective when t

  • Link to .pdf on Desktop

    Good day, everyone, Does anyone know of a way to put a link to a .pdf document on the desktop? I have GoodReader to read .pdfs, but I would like to just "otuch" and icon to get to documents I refer to frequently. Thanks in advance! Ray

  • [SOLVED]Xorg closes when hitting X in Fluxbox

    Greetings, been away for some time and I apologize for the sudden "login" for help, but anway: I've got a problem with my recent install of Archlinux. After an clean install and been doing some tweaking I've wanted to use fluxbox this time around, we

  • Error with AJRW

    I am doing a test run of year end closing in our test client.  I have posted all depreciation through year end.  I have executed AJRW in test and got the green light. When I uncheck the test button and execute AJRW in background, I receive the follow

  • Po no in invoice from order

    hi guru's i  do order related billing ........when i create invoice  it not copy the P O no. mention in  order. to invoice....... pls suggest