Better practice question on sqlite operation

Hi everyone,
This is an open ended question, and I am sure there will be a lot of different directions on this, so here goes....
I have a master template database (empty), that I copy to a working location.
At this point, i need to load the working database with some items from another query of the master item list.
the databases do not have the same fields, only an identifier that tells the application what group of items to copy from the master list and place into the working database.
So the question is this.....
What is the better approach to performing this operation?
The databases are different, so an inline SQL query will not work, and my guess is that an array of items that is built from a query that performs the proper where clause and sorting, then write that array to the working database.
Does anyone have a better approach?
take care
tony

A similar approach if you do not need the data to be transferred for any other process would be to generate the SQL insert/update statement from your query and then execute the array of statements.

Similar Messages

  • SAP Adapter Best Practice Question for Deployment to Clustered Environment

    I have a best practices question on the iway Adapters around deployment into a clustered environment.
    According to the documentation, you are supposed to run the installer on both nodes in the cluster but configure on just the first node. See below:
    Install Oracle Application Adapters 11g Release 1 (11.1.1.3.0) on both machines.
    Configure a J2CA configuration as a database repository on the first machine.
    Perform the required changes to the ra.xml and weblogic-ra.xml files before deployment.
    This makes sense to me because once you deploy the adapter rar in the next step it the appropriate rar will get staged and deployed on both nodes in the cluster.
    What is the best practice for the 3rdParty adapter directory on the second node? The installer lays it down with the adapter rar and all. Since we only configure the adapter on node 1, the directory on node 2 will remain with the default installation files/values not the configured ones. Is it best practice to copy node 1's 3rdParty directory to node 2 once configured? If we leave node 2 with the default files/values, I suspect this will lead to confusion to someone later on who is troubleshooting because it will appear it was never configured correctly.
    What do folks typically do in this situation? Obviously everything works to leave it as is, but it seems strange to have the two nodes differ.

    What is the version of operating system. If you are any OS version lower than Windows 2012 then you need to add one more voter for quorum.
    Balmukund Lakhani
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    | Facebook
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • Question on executing operations in Background

    Hi All,
    I am building up an universal app targeting 8.1 runtime and also new to whole .NET world.
    I have some operations  in my application which I want to perform in parallel, asynchronously and also in background. These operations include file upload, download (both I/O and compute bound).
    So I wanted to execute them In threads.  I would like to process them in 3 threads. Each thread will work on the operation queue and keep waiting perpetually (in while(true) loop) unless an operation is available for execution. These threads would also
    pass task status or progress updates to UI.
    Would also like to have these threads running on Application lock or if the app suspends . If my application terminates or if the network connections is lost these threads will stop. Also would like
    to cancel the operations running in the threads according to me requirements (like cancelling a file download).
    My initial hunch was to use threads. But since threads are not available for windows store apps and my exploration about threading in Windows store apps revealed to use task to perform this.
    I read about the Tasks Asynchrony pattern (TAP) whitepaper published by MS ,channel 9 videos from Bruce Kyle and lot of other blogs. I am convinced to use Tasks .As it runs on a thread pool which
    can take advantage  of multi core processor and is better performing
    Questions on Tasks will be
    Will it be useful as background thread. Can tasks be run as a background thread perpetually.
    I don't really need my tasks to return results. The result from the operations can be relayed to UI through events.
    Do I have to schedule my tasks from a background task API when the app suspend ?
    Does the Task API fit my scenario ?
    Are Background tasks in Windows same as services in Android.  ?
    Thanks a lot and Regards,
    Saurav

    You app's threads will all suspend when the app suspends. If you need to continue running in the background you will need to register a background task.
    BackgroundUploader and Downloader are the best ways to accomplish uploading and downloading in the background.
    For other functionality in the background it depends on what specifically you need to do. Background processing is deliberately limited, but you can create Background Tasks for specific purposes. As hereafter suggested, please see
    Guidelines for background tasks

  • HT4623 Hi I have a question, I am operating my iPhone 4S on 6.1.1iOS, as my power button is not working, I have jailbreoked my device so that I have a option to restart and shutdown my device. If i upgrade to iOS 7 do i have such option?

    Hi I have a question, I am operating my iPhone 4S on 6.1.1iOS, as my power button is not working, I have jailbreoked my device so that I have a option to restart and shutdown my device. If i upgrade to iOS 7 do i have such option?

    Jailbreaking your iPhone forfeits your ability to receive any support on that phone, including from this forum.
    You'll have to search elsewhere for answers to your issue.

  • Best Practices Question: How to send error message to SSHR web page.

    Best Practices Question: How to send error message to SSHR web page from custom PL\SQL procedure called by SSHR workflow.
    For the Manager Self-Service application we’ve copied various workflows which were modified to meet business needs. Part of this exercise was creating custom PL\SQL Package Procedures that would gather details on the WF using them on custom notification sent by the WF.
    What I’m looking for is if/when the PL\SQL procedure errors, how does one send an failure message back and display it on the SS Page?
    Writing information into a log or table at the database level works for trouble-shooting, but we’re looking for something that will provide the end-user with an intelligent message that the workflow has failed.
    Thanks ahead of time for your responses.
    Rich

    We have implemented the same kind of requirement long back.
    We have defined our PL/SQL procedures with two OUT parameters
    1) Result Type (S:Success, E:Error)
    2) Result Message
    In the PL/SQL procedure we always use below construct when we want to raise any message
    hr_utility.set_message(APPL_NO, 'FND_MESSAGE_NAME');
    hr_utility.raise_error;
    In Exception block we write below( in successful case we just set the p_result_flag := 'S';)
    EXCEPTION
    WHEN APP_EXCEPTION.APPLICATION_EXCEPTION THEN
    p_result_flag := 'E';
    p_result_message := hr_utility.get_message;
    WHEN OTHERS THEN
    p_result_flag := 'E';
    p_result_message := hr_utility.get_message;
    fnd_message.set_name('PER','FFU10_GENERAL_ORACLE_ERROR');
    fnd_message.set_token('2',substr(sqlerrm,1,200));
    fnd_msg_pub.add;
    p_result_message := fnd_msg_pub.get_detail;
    After executing the PL/SQL in java
    We have written some thing similar to
    orclStmt.execute();
    OAExceptionUtils.checkErrors (txn);
    String resultFlag = orclStmt.getString(provide the resultflag bind no);
    if ("E".equalsIgnoreCase(resultFlag)){
    String resultMessage = orclStmt.getString(provide the resultMessage bind no);
    orclStmt.close();
    throw new OAException(resultMessage, OAException.ERROR);
    It safely shows the message to the user with all the data in the page.
    We have been using this construct for a long time for all our projects. They are all working as expected.
    Regards,
    Peddi.

  • Oracle Asset (Functional) Practice Questions for Interviews and Exam

    https://www.createspace.com/3495382
    http://www.amazon.com/Functional-Questions-Interviews-Certification-Examination/dp/1456311581/ref=sr_1_4?ie=UTF8&s=books&qid=1289178586&sr=8-4
    List Price: $29.99
    Add to Cart
    Oracle Asset (Functional) Practice Questions for Interviews and Certification Examination (Release 11i and 12)
    Functional Consultant
    Authored by Erp Gold
    This book contains 150 Oracle Asset Practice Questions for functional consultants. Very useful for interviews and certification examinations.
    Publication Date:
    Oct 26 2010
    ISBN/EAN13:
    1456311581 / 9781456311582
    Page Count:
    94
    Binding Type:
    US Trade Paper
    Trim Size:
    6" x 9"
    Language:
    English
    Color:
    Black and White
    Related Categories:
    Computers / General

    Reported as spam!

  • Oracle Asset (Functional) Practice Questions for Interviews and Certificati

    https://www.createspace.com/3495382
    List Price: $29.99
    Add to Cart
    Oracle Asset (Functional) Practice Questions for Interviews and Certification Examination (Release 11i and 12)
    Functional Consultant
    Authored by Erp Gold
    This book contains 150 Oracle Asset Practice Questions for functional consultants. Very useful for interviews and certification examinations.
    Publication Date:
    Oct 26 2010
    ISBN/EAN13:
    1456311581 / 9781456311582
    Page Count:
    94
    Binding Type:
    US Trade Paper
    Trim Size:
    6" x 9"
    Language:
    English
    Color:
    Black and White
    Related Categories:
    Computers / General

    Reported as spam!

  • Best practice question -- copy container, assemble it, build execution plan

    So, this is a design / best practice question:
    I usually copy containers as instructed by docs
    I then set the source system parameters
    I then generate needed parameters / assemble the copied container for ALL subject areas present in the container
    I then build an execution plan JUST FOR THE 4 SUBJECT AREAS and build the execution plan and set whatever is needed before running it.
    QUESTION - When i copy the container, should i delete all not needed subject areas out of it or is it best to do this when building the execution plan? I am basically trying to simplify the container for my own sake and have the container just have few subject areas rather than wait till i build the execution plan and then focus on few subject areas.
    Your thoughts / clarifications are appreciated.
    Regards,

    Hi,
    I would suggest that you leave the subject areas and then just don't include them in the execution plan. Otherwise you have the possibility of running into the situation where you need to include another subject area in the future and you will have to go through the hassle of recreating it in your SSC.
    Regards,
    Matt

  • SAP Adapter Best Practice Question for Migration of Channels

    I have a best practice question on the SAP adapter when migrating an OSB project from one environment (DEV) to another (QA).
    If my project includes an adapter channel that (e.g., Inbound SAP Proxy listening on a channel), how do I migrate that project to another environment if the channel in the target environment is different.
    I tried using the search and replace mechanism in the sbconsole, but it doesn't find the channel name in the jca and wsdl files.
    What is the recommended way to migrate from one environment to the other when the channel name changes?

    I have a best practice question on the SAP adapter when migrating an OSB project from one environment (DEV) to another (QA).
    If my project includes an adapter channel that (e.g., Inbound SAP Proxy listening on a channel), how do I migrate that project to another environment if the channel in the target environment is different.
    I tried using the search and replace mechanism in the sbconsole, but it doesn't find the channel name in the jca and wsdl files.
    What is the recommended way to migrate from one environment to the other when the channel name changes?

  • Looking for authorized 1Z0-514 practice questions

    I'm studying for the 1Z0-514 - Oracle Database 11g Essentials exam. I have gone through all of the tutorials in the 11g 2-day DBA manual and Oracle By Example supplement. I think I'm ready but would like some practice questions to test myself. According to http://www.certguard.com/, every hit on Google for "1Z0-514" is a braindump. That site also lists a number of reputable sites for practice exams, although none of them includes 1Z0-514.
    Q1: Does anyone know of a verified source of legitimate 1Z0-514 practice questions?
    Q2: Does anyone know how relevant OCA practice exams (1Z0-052) would be for 1Z0-514? They seem to have a lot of common ground.

    Hi, I had the same problem you are having now a few months ago, after studying the 11g 2-day DBA manual I couldn't find any authorized practice questions.
    I ended up going through OCA books and practice questions. I advise you use them, the 1z0-052 and 1z0-514 exams cover very similar topics.

  • Need 1z0-144 Practice Questions (Dumps)

    Hi All
    I need practice questions for 1z0-144 exam.
    Study material, as everybody knows, is available but in scattered form.
    Please tell me any resource for getting the questions.
    Thanks and Regards.

    Using such methods is illegal.
    See Need Oracle OCA Dumps and other such threads. Use the search link above.
    http://blogs.oracle.com/certification/entry/0477
    http://blogs.oracle.com/certification/2009/05/the_route_you_choose.html
    HTH
    Srini

  • Question concerning WiSM operation

    I have a question concerning the operation of the wireless network and the WiSM in a 6500 that we have put in place. My customer has the following setup: On thier mainsite, they have a core 6500 with a WiSM module in place. They have 4 remote sites, with several APs at each remote site. Each remote site is setup in an all Cisco environment, where its typically AP --> cisco switch --> fiber to main site cisco switch --> core --> then on to where ever. I have an engineer telling me this, that whatever wireless data traffic (internet, anything) that hits the AP (at any site), it must go THROUGH the WiSM module. I would have thought that the WiSM module would be for ONLY management of APs, not for data traffic handling.
    Again, he says that ALL traffic (internet, etc) goes through the WiSM module, then on out through the infrastructure.
    I would have thought that traffic would go through the AP only, then through the infrastructure.
    Can you verify wheather data traffic from any wireless device through the AP actually traverses the WiSM module or not?
    Again, I thought the WiSM module would be only for management of APs. Thanks.

    The engineer is largely correct. By default, the APs will tunnel all traffic to the controller to be distributed according to VLAN/SSID. The controller and the AP work together to perform the normal wireless <-> wired bridging. This allows some flexibility in how the infrastructure handles mobile clients. There are many benefits to the Cisco Unified model (or LWAPP).
    We have three hospital campuses and only a couple remote wireless sites. They are all well-connected. As all our primary app servers are on one campus, we only have controllers on that one campus. The client traffic is bridged at the main campus.
    The Cisco Unified model does offer other modes of operation (H-REAP for example) that allow some local traffic to bypass the controller and be bridged by the AP to the local LAN. There are some caveats to this, however, and you'd want to read up on it before trying it:
    http://www.cisco.com/univercd/cc/td/doc/product/wireless/control/c44/ccfig41/index.htm
    or more specifically:
    http://www.cisco.com/univercd/cc/td/doc/product/wireless/control/c44/ccfig41/c41hreap.htm

  • Need oracle practice question for OCA

    Need oracle practice question for OCA.
    Edited by: 823938 on Dec 27, 2010 10:21 PM

    It's illegal to use dumps.
    Read the following link:
    http://www.certguard.com/braindumps.asp

  • Practical question: How to transfer ASM backup files?

    Hi friends:
    A practical question:
    all dev, production database using ASM for storage, production db using RMAN did full backup. (everyday night, one copy redundancy)
    For example, production database is down, then in short time, it is hard to repaire back online, then, I want to transfer ASM backup files(sets) to dev database, make dev as a quick temporary production db.
    question: how can you find full backup sets (location) and how to trasnfer?
    thanks a lot in advance.
    Message was edited by:
    jerrygreat

    You can find backupsets by using the
    list backupset
    command
    and you can transfer them using the
    backup backupset command.
    Both commands are fully documented in the RMAN documentation for 10g.
    Please read it.
    Obviously changing a dev database into a production one has little to do with proper backup and recovery procedures.
    Sybrand Bakker
    Senior Oracle DBA

  • ALE is a better practice for this requirement???

    Dear Friends,
    I'm in one Implementation Project. My client 'A' is having Mainframe System. My client's client 'B' is having SAP system.
    MAINFRAME <-> Txt File <- - - -> CENTRAL SERVER <- - - -> iDoc <-> SAP
    (Client A)          <- - - - - - - - ->       (For Data Mapping) <- - - - - - - - - - - - ->            (Client B)  
    The data is being transferred in the above fashion.
    If SAP is implemented in Client A (means that Mainframe will be replaced  by SAP), then how the data will be transferred?
    My task is to identify the suitable way for integration.
    Should we implement ALE concept in Client A as well?
    Is it better practice?
    Your valuable suggestions are rewarded with points.
    Thanks & Regards,
    Neeraj K

    Hi Neeraj,
    Welcome to SDN.
    If there is planning to change manframe to SAP for your Client A in the nearest future, I would recommend to use ALE IDoc interface from middeware system (data mapping system) to SAP Client B. In this case, when Client A is ready with SAP, you only need only to setup ALE IDoc interface in Client A without major changes interface in client B. Perhaps only performing unit and integration testing to ensure the data process flow is correct between SAP Client A -> Middleware -> SAP Client B or directly SAP Client A -> SAP Client B without middeware system.
    If there is no plan to change to SAP for your Client A, then perhaps you can use file base and BAPI interface. In other word, you can map the data source from mainframe and create flat file(s) in middeware system and send (FTP) to SAP Client B. Then the flat file(s) will be procesed via BAPI in SAP Client B.
    You can also use BDC solution as well for the interface.
    Hope this will help to start with.
    Regards,
    Ferry Lianto

Maybe you are looking for