Run query on all connected databases

Is there a way to run a query across all the databases that you have connections to using a script.

Fastest way I can think of is changing the connection in the drop-down list (upper right of the worksheet) between runs.
Regards,
K.

Similar Messages

  • Trouble with ADF portlet :) Connect Database

    Hi every body!
    Thank so much when you send time care to my trouble.
    When I deploy a simple ADF portlet without Connecting Database ==> It run :))
    After that, with Connecting Database and Create Bussiness Component from Table
    ==> It run but Result show in Portal: Could not get mark up ...
    I using Jdevelop 11g
    Thank again!

    OK

  • If we run a query,what all happens in background/what are phases of query processesing.?

    Hi Friends,
    if we run a query,what all happens in background/what are phases of query processesing.?
    Many thanks
    Shashikala

    It has to go through
    Parsing-on this stage it perform basic check on code (T-SQL,
    Binding(Algebrizer Stage)-on this stage does more parsing and perform query tree,
    Optimize- on this stage take query tree from Binding and parsing and find a better way to return the result that you need so cost might apply here and then
    Execute 
    To know about transaction Log we have to know first how Transaction log file internally works: when you are trying to make change in data as Insert, Update, Delete requests
    from applications using T-SQL or on object explorer, SQL Server will load (load) to the corresponding page data memory where we call this memory area as DATA CACHE.  Then the data in the data cache are changed which is also known as known as DIRTY PAGE.
    Next all changes we made by running query will be recorded in the transaction log file so they called the write-ahead log. At final stage, a process known as CHECK POINT PROCESS will check and write all the transaction has been committed AND completed to your
    hard drive by flushing the page.
    So simply put here are the steps
    Data modification sent by application
    Data pages are located in or read into, cache and modified
    Modification is recorded in transaction log on DISK
    Checkpoint writes committed transactions to database
    I hope this helps a bit in answering your question good luck.

  • Database is up and running but when I connect as oracle it's idle?

    Hi experts,
    I have a strange kind of problem. I installed Oracle10 on UNIX.
    When I connect to the Database remotely I am on a perfect working database but when I am connected directly on the machine via Oracle user, and run SQLPLUS I am connected to an idle instance. Also I can not startup this instance because I of 'ORA-01102: cannot mount database in EXCLUSIVE mode'.
    when I run SQLPLUS useing the '@' condition I am connected correctly.
    I checked SID settings and so on but it looks fine. I also only have one instance installed (I hope!).
    Any ideas?
    Thanks
    Flo

    Hi,
    I run the suggested ceckes and attached you my results below:
    Please note that I had to replace the hostname/passwords due to security reasons with a spaceholder. (;
    oracle@] /home/oracle > cat /etc/oratab
    root@<Host>_ECR: / > ps -ef | grep ECR
    oracle 278554 1 0 15:04:58 - 0:00 ora_q001_ECR
    oracle 319680 1 0 15:04:59 - 0:00 oracleECR (LOCAL=NO)
    root 397390 1634448 0 09:19:33 pts/0 0:00 grep ECR
    oracle 418028 1 0 15:04:43 - 0:00 ora_dbw0_ECR
    oracle 495674 1 0 17:03:21 - 0:00 ora_dbw0_ECR
    oracle 499716 1 0 15:04:43 - 0:00 ora_psp0_ECR
    oracle 569560 1 0 15:04:48 - 0:00 ora_qmnc_ECR
    oracle 577564 1 0 15:05:46 - 0:00 oracleECR (LOCAL=NO)
    oracle 639186 1 0 Apr 21 - 0:13 /oracle/ECR/102_64/bin/tnslsnr LEAlistener -inherit
    oracle 1437730 1 0 09:09:57 - 0:00 oracleECR (LOCAL=NO)
    oracle 1450066 1 0 17:03:21 - 0:06 ora_pmon_ECR
    oracle 1470680 1 0 15:04:43 - 0:02 ora_smon_ECR
    oracle 1491084 1 0 15:04:43 - 0:10 ora_mmnl_ECR
    oracle 1503234 1 0 17:03:21 - 0:00 ora_mmnl_ECR
    oracle 1519658 1 0 17:03:21 - 0:00 ora_psp0_ECR
    oracle 1552454 1 0 15:04:43 - 0:04 ora_mmon_ECR
    oracle 1560652 1 0 15:04:43 - 0:00 ora_mman_ECR
    oracle 1573098 1 0 17:03:21 - 0:00 ora_mmon_ECR
    oracle 1589450 1 0 17:03:21 - 0:00 ora_smon_ECR
    oracle 1605798 1 0 15:04:43 - 0:00 ora_lgwr_ECR
    oracle 1609876 1 0 15:04:43 - 0:08 ora_pmon_ECR
    oracle 1613844 1 0 17:03:21 - 0:00 ora_lgwr_ECR
    oracle 1630416 1 0 15:04:48 - 0:00 ora_arc1_ECR
    oracle 1638450 1 0 15:04:58 - 0:00 ora_q000_ECR
    oracle 1646726 1 0 15:04:48 - 0:00 ora_arc0_ECR
    oracle 1654972 1 0 15:06:15 - 0:13 oracleECR (LOCAL=NO)
    oracle 1659008 1 0 17:03:21 - 0:00 ora_mman_ECR
    oracle 1675264 1 0 09:09:22 - 0:00 oracleECR (LOCAL=NO)
    oracle 1683528 1 0 17:03:21 - 0:00 ora_reco_ECR
    oracle 1687780 1 0 15:04:43 - 0:00 ora_reco_ECR
    oracle 1712132 1 0 17:03:21 - 0:00 ora_ckpt_ECR
    oracle 1777898 1 0 15:04:43 - 0:03 ora_ckpt_ECR
    =========================================================
    # This file is used by ORACLE utilities. It is created by root.sh
    # and updated by the Database Configuration Assistant when creating
    # a database.
    # A colon, ':', is used as the field terminator. A new line terminates
    # the entry. Lines beginning with a pound sign, '#', are comments.
    # Entries are of the form:
    # $ORACLE_SID:$ORACLE_HOME:<N|Y>:
    # The first and second fields are the system identifier and home
    # directory of the database respectively. The third filed indicates
    # to the dbstart utility that the database should , "Y", or should not,
    # "N", be brought up at system boot time.
    # Multiple entries with the same $ORACLE_SID are not allowed.
    ECR:/oracle/ECR/102_64:N
    *:/oracle/ECR/102_64:N
    ->When I checked oratab it had no entries, so I added the ORACLE_HOME
    =========================================================
    oracle@] /home/oracle > tnsping ECR_<Host>.world
    TNS Ping Utility for IBM/AIX RISC System/6000: Version 10.2.0.2.0 - Production on 08-MAY-2008 09:15:26
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    /ixos/sw/config/oracle/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (Host = <Host>) (Port = 9027))) (CONNECT_DATA = (SE
    RVICE_NAME = ECR_<Host>.world) (INSTANCE_NAME = ECR)))
    OK (10 msec)
    =========================================================
    Below you can see my problem...
    oracle@] /home/oracle > sqlplus system/****@ECR_<Host>.world
    SQL*Plus: Release 10.2.0.2.0 - Production on Thu May 8 09:16:51 2008
    Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning and Data Mining options
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning and Data Mining options
    oracle@] /home/oracle > sqlplus system/****
    SQL*Plus: Release 10.2.0.2.0 - Production on Thu May 8 09:17:05 2008
    Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    Enter user-name:

  • Running a SPARQL query across all models

    Is there a concise way of running a SPARQL query against all models in the database (or at least all models owned by a db user) via the Oracle Jena Adapter? Do I have to manually find all models, add them to a GraphOracleSem, and pass a composite model (from the graph) to a QueryFactory.create() method or is there a simpler way like something synonymous to DatasetStore.create() that would pass back the entire dataset?
    Thanks

    I want to run the query against a merged graph of all the models.
    I see you can do this by attaching an Attachment containing the list of all model names to a graph. I could be dealing with several models. I really want to be able to query against the entire data set but this mean I must know the names of all the models (which means selecting from MDSYS>RDF_MODEL$). Here is the code I came up with. This gives me a Dataset that I can then pass to QueryExecutionFactory.create(Query, Dataset). Any suggestions?
    private static final String SELECT_MODELS =
    "SELECT model_name FROM MDSYS.RDF_MODEL$ WHERE owner=? and model_name != ?";
    private static final String MODEL_NAME = "model_name";
    * The name of a reserved model representing all semantic data in the database.
    private static final String DATASET_MODEL_NAME = "DATASET";
    public Dataset getDataSet() {
    Dataset ds = null;
    Oracle oracle = getOracle();
    // The hard way: manually
    try {
    // Get all accessible models in the store
    PreparedStatement stmt = oracle.getConnection().prepareStatement(SELECT_MODELS);
    stmt.setString(1, oracle.getConnection().getUserName());
    stmt.setString(2, DATASET_MODEL_NAME);
    ResultSet rs = stmt.executeQuery();
    // Add them to a composite model                    
    List<String> modelNames = new ArrayList<String>();
    while ( rs.next() ) {
    modelNames.add(rs.getString(MODEL_NAME));          
    stmt.close();
    // create a dataset from the composite model
    Attachment attachment = Attachment.createInstance(
    (String[])modelNames.toArray(new String[0]),
    new String[0],
    InferenceMaintenanceMode.NO_UPDATE,
    QueryOptions.QUERY_VALID_ONLY );
    GraphOracleSem graph = new GraphOracleSem( oracle,
    DATASET_MODEL_NAME, attachment );
    ds = DatasetFactory.create(new ModelCom(graph));
    } catch (SQLException e) {
    log.warn("SQL Exception caught", e);               
    } catch (Exception e) {
    log.warn("Exception thrown.", e);
    return ds;
    Thanks!

  • Running Query Database error

    I am creating a new Web intelligence document. When I run the queries, after a while I get the following message:
    "Running Query
    A database error occured. The database error text is: ORA-12154: TNS:could not resolve the connect identifier specified
    . (WIS 10901)"
    Any ideas what this error means and how to resolve?

    The message means that the oracle network layer tried to resolve the connection parameters given and failed.
    When you use infoview in the browser, the problem is on the physical server where the connection server runs.
    Ask the persons responsible to check the oracle client installation there and try to get a connection to that oracle database.
    It can be anywhere in the oracle names administration. The most common error is an incomplete tnsnames.ora file.
    Good luck,
    Marianne

  • VO running a select all query

    Hi,
    Hope that this is a simple q. I have a few VO's customised in iproc receipting. What is happening from the search page is that one VO (so far), when utilised is running a query against all lines in a table and seeming to ignore the parameters that are passed to it from the calling page. diagnostics show the req header id been passed in to the AM init query and execute, but yet it still seems to run a select * from table;
    The caveat is that the page the vo is launched from is navigated to via back and forwards buttons and click on the requisition link in the receipting page. Any ideas appreciated.

    Your only options is using .net code, then it will be no different than using a console app in a loop.
    using (SqlConnection connection = new SqlConnection(connectionString))
    connection.Open();
    Console.WriteLine("ServerVersion: {0}", connection.ServerVersion);
    Console.WriteLine("State: {0}", connection.State);
    and so forth for each connection string
    the connection string would come from the ForEach loop
    Arthur My Blog

  • Who can shed some light on my ongoing connection problem. After upgrading my iPad Air with IOS 7.06, I could no longer connect to the internet. I have 2 MacBooks Air, 1 ipad mini and one iPhone 4S running on the same network, and they are all connected to

    Who can shed some light on my ongoing connection problem.
    After upgrading my iPad Air with IOS 7.06, I could no longer connect to the internet.
    I have 2 MacBooks Air, 1 ipad mini and one iPhone 4S running on the same network, and they are all connected to the net and function well.
    So I cleaned up the ipad completely, installed the latest firmware and reinstalled my apps : no connection.
    I tried all things of resets and forgets. No result.
    I have been fondling with my Airport Extreme 5 , but that did not help much.
    This morning I went to a neighbor , hooked my ipad air on his network, typed the password and the thing all worked fine.
    I have tried to connect the ipad air as an ethernet client, but that did not work. „Not enough power“ was the statement
    Ideas anyone ?

    Yes I tried this manyfold. But did not work.  Reading on, I took Tesserac's advice. Shut down router and computer.
    Start router after 15 minutes and wait another 10 minutes before starting the computer.
    Et voila.... everything is back in working order,
    Regards form Curacao, Dutch Caribean.
    Pete van Linden

  • Frm-40208 from running in query mode. cannot change database fields

    Hi,
    Could some one help me with this.
    I am calling a form from another form. I am passing the parameter list to the calling form and doing a query by setting the block property. But when queries the message
    FRM-40208 Form running in query mode. cannot change database fields .
    I do not want the message to appear when they go the called form . Please some one could help me how could I avoid displaying the message.
    Regards
    Bain

    Hi,
    Good day! I am working with a module that also calls another form. It uses call_form with query mode parameter set to query_only. My problem is, whenever i call the other form using the call_form, it would display the called module and then as it populates the detail block of the called form, it will display frm-40208 from running in query mode. cannot change database fields per record. What I want is for the message to be displayed only once.
    I have tried capturing the error by using on-error trigger, but it doesn't go to that whenever the other form was being called. I think the message has to do with the post-query trigger, because it passes some values on a dbase block objects.
    Do you have any suggested solutions or workarounds to make the message display only once whenever the other form is being invoked by the call_form?
    I would greatly appreciate any suggestions/ideas.
    Thanks and regards,
    ASantiago

  • DMV quesiton. Can not run the DMV query in non system database.

    As the title .I can run following query when I use  'use master' , But don't work at the DB which be created my myself.
    --Error massage
    Msg 208, Level 16, State 1, Line 1
    Invalid object name 'SYS.DM_EXEC_QUERY_STATS'.
    --SQL Version : 2005
    --compatibility level : 90
    --The query
    SELECT TOP 10
    QT.TEXT AS STATEMENT_TEXT,
    QP.QUERY_PLAN,
    QS.TOTAL_WORKER_TIME AS CPU_TIME
    FROM SYS.DM_EXEC_QUERY_STATS QS
    CROSS APPLY SYS.DM_EXEC_SQL_TEXT (QS.SQL_HANDLE) AS QT
    CROSS APPLY SYS.DM_EXEC_QUERY_PLAN (QS.PLAN_HANDLE) AS QP
    ORDER BY TOTAL_WORKER_TIME DESC

    Yes, you can run the query under none system database.... Make sure that  your db is set 90.....
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • My Imac drive just died. Always backed up with Time machine to a WD My Passport. But after connecting it to my other imac (also running Snow Leopard) all the files are missing. I click on backup.backupdb but no files - just applications. Any ideas?

    My Imac drive just died. Always backed up with Time machine to a WD My Passport. But after connecting it to my other imac (also running Snow Leopard) all the files are missing. I click on backup.backupdb but no files - just applications. Any ideas?

    Welcome to the Communities.
    We want to help you but unfortunately you have given us insufficient information.
    Please find a moment to tell us more about your machine, the model identifier, the OS version, and the total amount of RAM you have.   It also helps to know where you are, nothing specific, just the country.   Macs do not run on iOS 6.1.6 as your profile says.
    Then fill those same details in your profile for future use
    These documents may prove helpful .. Solving Time Machine problems        Pondini FAQ
    http://pondini.org/TM/  Troubleshooting.html

  • How to run a select against multiple databases

    Dear experts,
    I need to run a select against all our databases, which are running on a separate server each.
    I found this:
    Looping between multiple servers for SQL*Plus
    which seemed to be doing the trick, but it relies on /etc/oratab, but in our environment this file
    is not in use, i.e.
    /var/opt/oracle/oratab - this file has comments only and does not contain any real entries
    /oracle/<SID>/11203/install/oratab - this file has 0 size
    Thank you!

    Hello
    Database link is a good technique for running a query against multiple database, but you will need to statically define the DB you want to access.
    Best regards
    CREATE DATABASE LINK dev_link CONNECT TO system IDENTIFIED BY password
    USING '(DESCRIPTION =  (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST =sapdev)(PORT = 1527)) ) (CONNECT_DATA = (SID = DEV) ) )';
    select * from sapsr3.REORGJOBS@dev_link;
    drop database link  dev_link;
    25383 - Database links, synonyms, remote DB

  • Failed to open the connection - database vendor code 17

    I'm upgrading a VB.net Windows Forms application from 1.1 to 4.0.  In the reporting form, the list of reports you can choose are pulled from a folder where the .rpt files reside.  Once the user chooses a report and executes it, vb code populates the current database connection information and displays the report in the report viewer control.
    The following things are true:
    - Version 1.1 works on my systems and my customers systems
    - The code has not been changed, except that it now targets .Net 4.0 instead of 1.1
    - The exact same .rpt files are being used
    - Version 4.0 connects to the same database my customer is using, and I can run the reports just fine from here.
    - Version 4.0 is able to connect to the database just fine from my customers systems (using the same connection information provided to the report)
    - My customer installed this:  http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_2.zip
    The only problem is that my customer encounters this error when trying to run any report from his systems:
    Failed to open the connection.
    Details:  Database Vendor Code: 17
    Failed to open the connection.
    Orders.BOL.TaskDetail {393C9017-0ED1-4E1E-8824-E222F4B9D14C}.rpt
    Details:  Database Vendor Code: 17
    I read all of the articles I could find, and they either don't describe this exact situation, or there is insufficient information for troubleshooting this issue.  Are there steps that I've missed to make Crystal Reports for VS2010 work on my customer's systems?
    Your help is appreciated,
    Mark

    Hi Mark,
    More information required -
    - Does this happen with all reports or few?
    - What is the connection type used for the report to connect to the database (OLEDB,ODBC etc)
    - Are you changing the database at runtime?
    few things you could check
    - Check if the database is accaessible from the client machine with proper permissions / rights.
    - If its an ODBC connection check if the DSN with same name is created on the client machine.
    - Check the driver / provided used by the report to connect to the DB, verify that the same is installed on the client machine. (SQL NAtive client, SQL Server etc)
    Also take a look at below articles discussing the simillar issue.
    [CR for VS2010: Failed to Open Connection [Database Vendor Code: 17 ]|CR for VS2010: Failed to Open Connection [Database Vendor Code: 17 ]]
    [1474461 - Unknown Database Connector Error when connecting to a Dataset in a VS .NET application |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333433373334333433363331%7D.do]
    Hope this helps,
    - Bhushan.

  • How to delete a record in a connected database?

    We are encountering a problem using the delete function for removing a record in a connected database table. The database is an excel-file and we are able to add a new record, update existing records but not delete records. We are using the following script in FormCalc since I read that the function does not work in JavaScript:
    $sourceSet.DataConnection.delete()
    The error message returned is:
    "Deleting data in a linked table is not supported by this ISAM."
    We are also curious to know how we can reload the connection so that for example a drop-down list containing values from each record in the table is updated automatically when we insert a new record.
    Thanks!
    Annika

    You also asked:<br /><br /><font color="grey"><i>We are also curious to know how we can reload the connection so that for example a drop-down list containing values from each record in the table is updated automatically when we insert a new record.</i></font><br /><br />You should be able to achieve this quite easily using the Data Drop Down List from the Library palette's Custom tab. This object has a pre-defined Initialize script which populates the list with items from a data connection you specify.<br /><br />While the object is pre-configured to load items from the data connection only upon initialization (which only occurs when the form is loaded and after a data merge), you could move the script into a Script Object function and call it whenever you insert a new record (just after the statement which inserts the record).<br /><br />This is the script from the Initialize event of the Data Drop Down list put into a Script Object function called LoadDropDownList which takes the drop down list to populate using the data connection as a parameter:<br /><pre>function LoadDropDownList(oDropDownList)<br />{<br />     /*     This dropdown list object will populate two columns with data from a data connection.<br />     <br />          sDataConnectionName - name of the data connection to get the data from.  Note the data connection will appear in the Data View.<br />          sColHiddenValue      - this is the hidden value column of the dropdown.  Specify the table column name used for populating.<br />          sColDisplayText          - this is the display text column of the dropdown.  Specify the table column name used for populating.<br />     <br />          These variables must be assigned for this script to run correctly.  Replace <value> with the correct value.<br />     */     <br />     <br />     var sDataConnectionName = "&lt;value&gt;"; //     example - var sDataConnectionName = "MyDataConnection";<br />     var sColHiddenValue = "&lt;value&gt;"; //     example - var sColHiddenValue = "MyIndexValue";<br />     var sColDisplayText = "&lt;value&gt;"; //     example - var sColDisplayText = "MyDescription"<br />     <br />     //     Search for sourceSet node which matchs the DataConnection name<br />     var nIndex = 0;<br />     while(xfa.sourceSet.nodes.item(nIndex).name != sDataConnectionName)<br />     {<br />          nIndex++;<br />     }<br />     <br />     var oDB = xfa.sourceSet.nodes.item(nIndex);<br />     oDB.open();<br />     oDB.first();<br />     <br />     //     Search node with the class name "command"<br />     var nDBIndex = 0;<br />     while(oDB.nodes.item(nDBIndex).className != "command")<br />     {<br />          nDBIndex++;<br />     }<br />     <br />     //     Backup the original settings before assigning BOF and EOF to stay<br />     var sBOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("bofAction");<br />     var sEOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("eofAction");<br />     <br />     oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayBOF", "bofAction");<br />     oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayEOF", "eofAction");<br />     <br />     //     Clear the list first so that we replace any existing items<br />     <b>oDropDownList</b>.clearItems();<br />     <br />     //     Search for the record node with the matching Data Connection name<br />     nIndex = 0;<br />     while(xfa.record.nodes.item(nIndex).name != sDataConnectionName)<br />     {<br />          nIndex++;<br />     }<br />     var oRecord = xfa.record.nodes.item(nIndex);<br />     <br />     //     Find the value node<br />     var oValueNode = null;<br />     var oTextNode = null;<br />     for(var nColIndex = 0; nColIndex < oRecord.nodes.length; nColIndex++)<br><br />     {<br><br />          if(oRecord.nodes.item(nColIndex).name == sColHiddenValue)<br><br />          {<br><br />               oValueNode = oRecord.nodes.item(nColIndex);<br><br />          }<br><br />          else if(oRecord.nodes.item(nColIndex).name == sColDisplayText)<br><br />          {<br><br />               oTextNode = oRecord.nodes.item(nColIndex);<br><br />          }<br><br />     }<br />     <br />     while(!oDB.isEOF())<br />     {<br />          <b>oDropDownList</b>.addItem(oTextNode.value, oValueNode.value);<br />               oDB.next();<br />     }<br />     <br />     //     Restore the original settings<br />     oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sBOFBackup, "bofAction");<br />     oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sEOFBackup, "eofAction");<br />     <br />     //     Close connection<br />     oDB.close();<br />}</pre><br />The required modifications to the original script are in bold.<br /><br />The easiest way to create the Script Object is to right-click on the top-level form object ("form1" by default) in the Hierarchy palette and select the <i>Insert Script Object</i> option. This will insert an un-named Script Object which you should then rename to something meaningful like, "ScriptObject". Once you've done this, you can call the function from any event on any object on your form with the following JavaScript:<br /><pre>ScriptObject.LoadDropDownList(&lt;SOM expression for drop down list&gt;);</pre><br />If you were calling this function on an "add record" button's Click event, the drop down list was named "DropDown" and both objects were in the same subform, you would do this:<br /><pre>ScriptObject.LoadDropDownList(DropDown);</pre><br />Stefan<br />Adobe Systems

  • How to change the explain plan for currently running query?

    Hi All,
    I am using Oracle enterprise 9i edition. I have a query which frames dynamically and running in the database. I noticed a table with 31147758 rows
    in the query which has no indexes and taking more time to process. I tried to create an INdex on that table. I know the query is already running with a FULL table scan. Is it possible to change the explain plan for the current running query to consider the INDEX?
    [code]
    SELECT /*+ USE_HASH (c,e,b,a) */
    d.att_fcc extrt_prod_dim_id,
    d.att_fcc compr_prod_dim_id,
      a.glbl_uniq_id glbl_uniq_id,
      to_date(c.dit_code,'RRRRMMDD')STRT_DT,
      (to_date(c.dit_code,'RRRRMMDD')+150)END_DT,
      a.pat_nbr pat_id,
      a.rxer_id       rxer_id,
      e.rxer_geog_id  rxer_geog_id,
      a.pharmy_id pharmy_id,
      a.pscr_pack_id pscr_pack_id,
      a.dspnsd_pack_id dspnsd_pack_id,
      DENSE_RANK () OVER (PARTITION BY a.pat_nbr ORDER BY c.dit_code) daterank,
      COUNT( DISTINCT d.att_fcc ) OVER (PARTITION BY a.pat_nbr, c.dit_code) event_cnt
      DENSE_RANK () OVER (PARTITION BY a.pat_nbr,
    d.att_fcc
      ORDER BY c.dit_code) prodrank,
      DENSE_RANK () OVER (PARTITION BY a.pat_nbr,
    d.att_fcc
      ORDER BY c.dit_code DESC) stoprank
      FROM
      pd_dimitems c,
       pd_pack_attribs   d ,
        lrx_tmp_rxer_geog e,
        lrx_tmp_pat_daterank p,
        lrx_tmp_valid_fact_link     a
        WHERE c.dit_id = a.tm_id
        AND   e.rxer_id = a.rxer_id
        AND   a.glbl_uniq_id = p.glbl_uniq_id
        AND   p.daterank > 1
      AND   a.pscr_pack_id = d.att_dit_id
    [/code]
    The table lrx_tmp_pat_daterank is having that 31147758 rows. So I am wondering how to make the query to use the newly created index on the table?

    Why do you think using Indexes will improve the performance of the query? How many rows this query is returning? Optimizer might chose a Full table scan when it finds out that Index plan might not be useful. Why are you using /*+ USE_HASH (c,e,b,a) */ hint? This Hint will force oracle to use Full table scan instead of using the index. Try removing it and see if the plan changes.
    Regards,

Maybe you are looking for

  • Error occurred during initialization of VM. Could not reserve enough space

    Dear All, I am trying to install SAP NetWeaver 7.0 SR2 SP9 on Oracle 10.2 and platform is Windows 2003 32 bits. While installing, in t he restarting the JAVA Instance step, server0 node is getting shutdown. When I further analyzed dev_server0 log, I

  • Dbms_lob.getlength() returns different values

    Hi ! I am not a developer.. So, possibly cannot answer developer specific question. We have two instances running on 10.2.0.4 but both giving different value for declare      xml varchar2(32676) := 'SELECT XT_STRATEGY, ACCT_DESCRIPTION,sum(MON_PL) PL

  • How to set a song to a contact on my I phone.

    How to set a song to a contact on my I phone.

  • Can't open Final Cut Project

    I'm running FCP 5.1.2 on a MBP with Leopard. The project in question was created on the same system with the same version of FCP, but while running Tiger back in 2007. All project files and media are in the same place on an external FW800 drive, but

  • Regarding LDB PCH

    Hi, i need to hide all the defualt select options for LDB PCH and add the custom select potions. how to hide the default select options completely. Thanks in advance.