How to use use the name of the database schema in global variables?

I created a global variable with the following query:

"SELECT WeekID from * dr_errdb*.last_dailyload.


But when it goes into production and the CONTEXT is changed, certainly will not work because the database is set in the query ("dr_errdb").

What method and how the database directly from the SCHEMA to complete this query?

How to do something like this:

Select WeekID from 'a method '. last_dailyload

Hello

rather than hardcode the name of schema, use the API< %="odiRef.getSchemaName" (« nom_logique","d")="" %="" >="" où="" le="" nom="" logique="" est="" le="" nom="" de="" votre="" schéma="" logique="" que="" vous="" avez="" définie="" dans="" la="" topologie="" et="" (j’espère)="" utilisez="" dans="" votre="" « schema »="" pendant="" l’actualisation="" de="" la="">

Therefore, you can change the physical schema as defined in the context that you use for the logic diagram to point to the different DB.

Your query is transformed in "SELECT WeekID from < %="odiRef.getSchemaName" (« nom_logique »,="" « d")%=""> .last_dailyload.

See you soon

BOS

Published by: Bos on February 14, 2011 16:16

Tags: Business Intelligence

Similar Questions

  • Can I use the timestamp to a global variable that is published to network to reduce network traffic?

    I would use a couple of network-has published the global variables that will contain large groups of data.  I want to host them on a device, but read them in several - consider a distributed control system.  The data will be updated very rarely, but when that happens, I want that all my GUI to know quickly.  I have all the GUI, simply read data 4 x per second (which would be fast enough), but I was wondering if there is a more elegant solution (always using global variables).  If I read only the timestamp 4 x per second each of the HMI, compare to the last reading and then interrogate the integer variable if timestamps are different, which will require fewer resources that just enter the integer variable each time?  In other words, the read timestamp uses the same amount of resources as the reading of the entire variable?

    With really simple code, assuming that the cluster "Data" is big enough, made...

    .. .get me no benefit on...

    mark3545 wrote:

    Which means that they are already doing what I want anyway, no?  If the reader is updated when it changes the writer, I can survey as often I want without increased traffic, correct?

    That is right.

  • Loding data using the database link.

    Dear all,

    I am new to Oracle GoldenGate...

    How to use the database connection in GG?

    below is the script...


    I have a source table in the client machine (. 28) and I have Norman to laod given in the target computer (. 149) per database connection.

    I run application GG in (. 28) and create the link of database called docqvoice_db alos.

    I used below extracted code also

    REPLICAT load6
    Username, PASSWORD sh
    ASSUMETARGETDEFS
    CARD sh.products, TARGET products@docqvoice_db;

    I have created the structure of the source in the target also.
    I got the error

    WARNING OGG - 01194 Oracle GoldenGate for Oracle, LOAD5.prm Capture: EXTRACT task LOAD6 added: Table PRODUCTS@DOCQVOICE_DB does not exist in the target database.


    Please advice...
    Thanks in advacne...
    Amina Hussain
    [email protected]
    No cell + 91-9886006549

    Amina,

    You have two choices. First choice, that's what you do, but your syntax is off. It should be:

    REPLICAT load6
    Sh@docqvoice_db username, PASSWORD sh
    ASSUMETARGETDEFS
    CARD sh.products, sh.products of the TARGET.

    Second choice is to create a view on the source using the link from the target database and map display just as in:

    REPLICAT load6
    Username, PASSWORD sh
    ASSUMETARGETDEFS
    CARD sh.products, sh.view_on_products of the TARGET.

    Good luck
    -joe

  • using the function - how to use the values of the input variables on the table select statement names

    Hello community, I have a problem when creating a function. The purpose of this function is to check the table of weather gave yesterday or not. We must check this on different tables on different sachems. We are creating a function with input variables.

    CREATE OR REPLACE FUNCTION IN_SCHEMA.IS_YDAYDATA_TO_TABLE

    (

    in_schema IN VARCHAR2,

    in_tablename IN VARCHAR2,

    in_datefield IN VARCHAR2,

    )

    RETURNS INTEGER

    AS

    -Declaring variables

    v_is_true INTEGER.

    BEGIN

    SELECT

    CASE

    WHEN MAX (in_datefield) = TRUNC(SYSDATE-1)

    THEN 1

    ON THE OTHER

    0

    END

    IN

    v_is_true

    Of

    in_schema.in_tablename

    ;

    RETURN v_is_true;

    END;

    /

    When creating, I got error: [error] ORA-00942 (44:19): PL/SQL: ORA-00942: table or view does not exist

    How to use the values of the input variables on the table select statement names?

    Hello

    Here's a way you can use dynamic SQL statements for this task:

    CREATE OR REPLACE FUNCTION IS_YDAYDATA_TO_TABLE

    (

    in_schema IN VARCHAR2,

    in_tablename IN VARCHAR2,

    in_datefield IN VARCHAR2,

    in_first_date DATE DEFAULT SYSDATE - 1,.

    in_last_date DATE by DEFAULT NULL

    )

    RETURNS INTEGER

    AS

    -IS_YDAYDATA_TO_TABLE returns 1 if in_schema.in_tablename.in_datefield

    -contains all the dates in the in_first_date of the range through included in_last_date

    - and it returns 0 if there is no such lines.

    -If in_last_date is omitted, the search only the data on in_first_date.

    -If in_first_date is omitted, it defaults to yesterday.

    -Time parts of the in_first_date and in_last_date are ignored.

    -Declaring variables

    sql_txt VARCHAR2 (1000);

    v_is_true INTEGER.

    BEGIN

    sql_txt: = 'SELECT COUNT (*).

    || 'FROM ' | in_schema | '.' || in_tablename

    || 'WHERE ' | in_datefield | ' > =: d1'

    || «AND» | in_datefield | '< >

    || 'AND ROWNUM = 1';

    dbms_output.put_line (sql_txt |) '= sql_txt in IS_YDAYDATA_TO_TABLE");  -For debugging

    Sql_txt EXECUTE IMMEDIATE

    IN v_is_true

    With the HELP of TRUNC (in_first_date) - d1

    TRUNC (NVL (in_last_date

    in_first_date

    )

    ) + 1                -- d2

    ;

    RETURN v_is_true;

    END is_ydaydata_to_table;

    /

    DISPLAY ERRORS

    If you must use dynamic SQL statements, put all the SQL statement in a single string variable, such as sql_txt in the example above.  In this way, you can easily see exactly what will be executed.  Comment out the call to dbms_output under test is completed.

    Try to write functions that will address not only the question that you have now, but similar questions that you may have in the future.  For example, now that interest you only to the verification of the data of yesterday, but later, you might want to check another day or range of days.  The above function combines the convenience of a function simple (looks like yesterday data if you don't tell him otherwise) with the power of a more complex function (you can use the same function to check any day or range of days).

  • How to find a table, using the name of the column in the database schema

    Dear all,

    Please help me on

    using the name of the column, how to find a table name in the database schema.

    Thanks in advance

    Hello

    You can query the data dictionary views all_tab_columns and user_tab_columns.
    For example, to find the tables in the scott schema have called deptno columns:

    SELECT  table_name
    FROM    all_tab_columns
    WHERE   owner           = 'SCOTT'
    AND     column_name     = 'DEPTNO';
    

    Remember that anything inside quotes is case-sensitive.

    The all_tab_columns view has one row for each column in each table (or view) that you have the privileges to use.
    The user_tab_columns view is a subset of all_tab_columns, containing only your own tables (and views).

  • How to use the node to call a library function to convert C++ source codes

    Hi all

    There are two dll name 'QMSL_WLAN_Transport.dll' and 'QCAMSL_MSVC10R.dll' and some codes c ++ to connect to the DUT. The two DLLs work together for communicaite with the DUT.

    I am confused as how to use the node to call a library function to load the 'QCAMSL_MSVC10R.dll' function as

    g_hResourceContext = QLIB_ConnectServer_UserDefinedTransport((HANDLE) USER_HANDLE,
    UserDefinedSend,
    UserDefinedReceive,
    UserDefinedFlushTxRx,
    true,
    true);
    

    It seems that 'UserDefinedReceive, UserDefinedSend, UserDefinedFlushTxRx' Processaddress?  And "UserDefinedReceive, UserDefinedSend, UserDefinedFlushTxRx"'s functions in 'QMSL_WLAN_Transport.dll '.

    UserDefinedReceive = (_UserDefinedReceive)GetProcAddress(hUDT,"UserDefinedReceive");
    UserDefinedSend = (_UserDefinedSend)GetProcAddress(hUDT,"UserDefinedSend");
    UserDefinedFlushTxRx = (_UserDefinedFlushTxRx)GetProcAddress(hUDT,"UserDefinedFlushTxRx");
    

    Attached DLLs and C++ code snippets.

    Need help.

    Thank you.

    These parameters are reminders - pointers to functions that are called by the DLL - and there is no way to duplicate this purely in LabVIEW. Search this forum for the word "recall" and you will find similar questions (for other DLLs). You will need to write your own DLL (in C, C++, etc.) that implements these functions and provides a way to transfer data to LabVIEW.

  • How to use the Go buyback program?

    There is a program that restores your computer exactly what he had on it a while ago. I've used it before, but I don't remember how I got him. Can someone tell me the name of the program if it has changed, or how to access it?

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-system-restore

    What is system restore?

    http://www.bleepingcomputer.com/tutorials/tutorial143.html

    A very good tutorial on how to use the system restore is at the link above.

    Restore point:

    Do Safe Mode system restore, if it is impossible to do in Normal Mode.

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    See you soon.

    Mick Murphy - Microsoft partner

  • How to use the global variable in the table target?

    Hello

    I am trying to load several files into a single interface. the data is loaded successfully. 92. the files are there. for this I used variables and package.

    My requrement is 92 files of data loaded into the target table. I want to know what data from file.

    to this I added a column (filename) to the existing target table.

    If I used joints (not same condition), its totally wrong. all file names are coming.

    Please see the following screenshots.

    err27.jpg

    exit; target table.

    err26.jpg

    in fact in the target table. first 10 lines are coming from file.i.e first _ACCOUNT_LIMIT_511.TXT. but all the files names are coming.

    I'm confuse. After the first data file inserted then insert second data file. in that all file names are coming. Please help me.

    I thought that the global variable is preferable to identify the data came from which file.

    to do this, the global variable is used in the target table. I don't always have my exit.

    Please help me.

    Thanks in advance.

    err25.jpg

    Hello

    You can use the same way, how you use the project variable, just you have to do a thin is #GLOBAL.variable_name for example: #GLOBAL. SMART_AL_FILE_NAME_S

    Note: Make sure you that while you use one variable overall in interface, indicator should be staged as you chose above the screen

    hope this helps you

    Kind regards

    Phanikanth

  • How to use the data object 'DatastoreHostMount '.

    I train to iterate on the grouping value in vCenter and for each data store found, determine whether a host has mounted data store or if it is visible to the host. I am using data object 'DatastoreHostMount' , but I don't know exactly how to use the object to retrieve the name of host configuration.

    Here's the perl code snippet and I get an error for:

    #get all hosts within cluster and check the connectionState and compare with all datastores found
    #is there a more efficient way to combine this section with the next section?
    
            my $hosts = Vim::get_views (mo_ref_array => $cluster->host);
    
            foreach my $host (@$hosts) {
                    if ($host->runtime->connectionState->val eq 'connected') {
                            my $datastores = Vim::get_views (mo_ref_array => $cluster->datastore);
                            foreach my $datastore (@$datastores) {
                                      print "  Datastore ", $datastore->host->summary->config->name,"\n"
                            }
                    }
                    elsif ($host->runtime->connectionState->val eq 'disconnected') {
                            print "\t|", $host->summary->config->name, "|Disconnected|\n"
                    }
                    elsif ($host->runtime->connectionState->val eq 'notResponding') {
                            print "\t|", $host->summary->config->name, "|Not Responding|\n"
                    }
            }
    

    Cannot call method 'Summary' on some wrapping 71 de./listCluster.pl.

    Disconnection of the end

    =========================================================================

    -William

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    OK, I remembered how it works. Sorry for the noise:

    |

    My $datacenter = Opts::get_option ('Center');

    My $datacenter_view = Vim::find_entity_view (view_type = > 'Data center',)

    filter = > {name = > $datacenter});

    If (! $datacenter_view) {}

    Die "data center" "» $datacenter. "" not found\n ";

    }

    My $cluster_views = Vim::find_entity_views (view_type = > 'ClusterComputeResource',)

    begin_entity = > $datacenter_view);

    My $counter = 1;

    Print "Clusters found: \n";

    {foreach (@$cluster_views)}

    Print "$counter:". "." $_-> name. "\n";

    My $datastores = Vim::get_views (mo_ref_array = > $_-> data store);

    foreach my {$datastore (@$datastores)}

    my $instances = @{$datastore-> host};

    my $instance = 0;

    while($instance < $instances) {}

    My $x = Vim::get_view (mo_ref = > $datastore-> Home-> \[$instance\]-> key);

    print $datastore--> summary-> name, "Datastore", $x-> name, "\n";

    $instance ++;

    }

    }

    $counter ++;

    }

  • How to use the ESD document with structured templates

    Hello

    I started to learn working with SEDD. I have an existing ESD, now I'm suppose to use it to create documents. I created a new book and imported this ESD file to it. I can see all the items in the catalog of the element. But when I start to add items to the book and add a new document, the elements are turning to red. Referring to the User Guide, it is said EDD cannot be used directly and must be used with structured patterns. But I do not have these models structured with me. Can someone please tell me how to create these structured templates and how to use the ESD file with these models, and out of this problem.

    Thanks in advance.

    Although ESD exist in the form of a separate document, the only way that it can be used is when it is part of the model. As a model of structured FrameMaker, a structured model contains master pages, pages reference, character formats, paragraph formats, etc. IN ADDITION, a structured model contains a DSP. To add the EDD to your template file, or any document FrameMaker who will use it, open the template file and the file of ESD. Click anywhere in the template file, and then select file > import > element definitions. In the dialog box, select the EDD file as source and click Import. Then save the template file.

    To use the template file, open it and save it as a FrameMaker document, giving it the name you want. You can now create your structure.

    If you use a book, all documents in the book must use the same ESD. Open the template file. In the book file, select all the documents in the book. Then select file > import > element definitions. In the dialog box, select the template file and click Import. Once completed, all documents in the book have the same ESD. In addition, ESD is copied into the file of the book itself.

    You say:

    But when I start to add items to the book and add a new document, the elements are turning to red.

    It is is not clear to me what you do. While it is true that SOME elements of a book are in the book file, you cannot add a book of items in the folder (at least not as far as I know). In general, the book file, it encapsulates elements around the documents root elements in the book. You may need to update the book to get a part of the Red disappear lines. You may need to rearrange items in the structure of the book to remove the red lines.

    Hope this helps,

    Van

  • How to use the search otherwise condition as

    Oracle 9i

    Hi all

    I work in the management of control here, we have a table named as OE_ORDER_LINES_ALL and the name of the column called UPI, and its length is 16 tank.

    Now the customer has the UPI with 13 tank and now, I need to check if all the IPUS are in the table.
    I have almost 600 of the UPI and I can't able to use as an operator. Y at - it one option other than as an operator.

    For example

    Resemble UPI this 050 009714373007G, but the customer gave this G 009714373007.

    Is there a UPI then I would use like this

    "Select upi in oe_order_lines_all where the upi as ' 009714373007 G %.

    If there is more than 2 UPIs how to use the search condition

    Any help is highly appricatable

    Thanks and greetings
    Srikkanth.M

    If you know that you will benefit from a number of values of UPI 13 characters and you should look for if there are rows in the table that match the 13 first characters

    select upi
      from oe_order_lines_all
     where substr(upi,1,13) IN( '009714373007G', <> )
    

    Justin

  • How to use the same services-config for servers the and remote.

    My flex project works very well using the bottom but when I download my flash on the server I do not work, all the files and related paths are the same execpt remote is a linux server.

    <? XML version = "1.0" encoding = "UTF-8"? >
    <>services-config
    < services >
    < id = 'amfphp-flashremoting-service' service
    Class = "Flex.Messaging.services.RemotingService"
    messageTypes = "flex.messaging.messages.RemotingMessage' >"

    < destination id = "amfphp" >
    <>channels
    < Ref channel = "my-amfphp" / >
    < / channels >
    Properties of <>
    < source > * < / source >
    < / properties >
    < / destination >
    < / service >
    < / services >
    <>channels
    < channel-definition id = "my-amfphp" class = "mx.messaging.channels.AMFChannel" >
    " < endpoint uri = ' http://localhost/domainn.org/AMFPHP/gateway.php "class="flex.messaging.endpoints.AMFEndpoint"/ > "
    < / channel-definition >
    < / channels >
    < / services-config >

    I think the problem is the line


    " < endpoint uri = ' http://localhost/domainn.org/AMFPHP/gateway.php "class="flex.messaging.endpoints.AMFEndpoint"/ > "

    but I don't know how to use the same services-config for servers the and remote.

    I'll back up a bit.

    Breakpoint URLS are defined as follows in the services - config.xml:

    https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure

    The meaning of each of the tokens is clearer when we see them as part of a complete url. If your context root is set to http://localhost , then I have no idea how your application runs in any environment.

    If you leave the server.name and server.port chips in your configuration file, then they will be replaced when executing according to the location from which your application is served. However, the context.root token is replaced at the time of the compilation based on the value that you specify in Flex Builder or when calling mxmlc.

    In order to reuse your file services - config.xml, you must use the same context-root on your development environment and to your deployment environment.

  • How to use the error at the level of the mapping table?

    Hi all

    Please tell me how to use the errors table in the mapping level or how to handle errors in mapping.
    I create a table of errors in oracle, but I don't know how to use it in the map.


    Thanks in advance.

    Kumar

    Hi Kumar,

    You use the Table of errors with the data rule.

    Error tables are used with logical errors (data rules) managers. Detailed description on the use of data rules is explained in the following document

    http://www.Oracle.com/technology/products/warehouse/PDF/OWB10gR2_ETLandBusinessRules.PDF

    In a nut shell, use of the tables of the error is the following.

    1 create a rule of data associated with a table (target table or a table in which you load data).

    2. use the table in a map as a target table.

    3 deploy the table and mapping.

    Now, in the schema target a single table will be created with the name _ERR. When executing a mapping data that violate the rule of data enters the error table.

    The following must be done to have the name of the wrong choice of the customers table.

    1. right click on the table and click Configure.
    2. give the name of the table in the section "name of the shadow table.
    3 pull out the table.
    4. use this table in a map. Now in the mapping on this table properties in the section 'Error Table name' the name of the table that is specified in 'the shadow table name' will be fulfilled.

    Thank you
    Fati

  • With no headphone jack, how to use the iPhone in my car 7

    Okay, so here's the challenge.  I have a power source and a headphone and not Bluetooth.  It works perfectly with iPhones before 7.  But with 7, it isn't possible to use the same configuration I had for years.  I own my car, and I have no interest in buying a new car just to support a new phone.  And since this will be a problem for the years to come if I stay with Apple, I would like to know what are the solutions are available.

    So, how to use the new iPhone 7 while remaining responsible and using my car speakers?  Dongles Bluetooth that I need to reload, it's probably not.

    Thus, looking for ideas that might have people.  I can't be the only one with this concern.

    It's almost a certainty that a third party adapter will appear quickly. The new Macbook has a single port usb - c and people asked the same question, 'how to load and use USB at the same time." There are today dozens of solutions for the Macbook, and then it will be with the iPhone 7. An adapter with a 3.5 mm jack and a port of loading Lightening would be my guess. Kickstarter entrepreneurs are probably already working on it.

  • How to use the capture and the print button

    I tried to figure out how to use the capture and the "print" button, or add or what you call. I press it and the whole page of a different color changes, so I try to cut the section I want but I don't know how to send it to the printer. Can someone help me with this. I'm not at savvy with tech stuff, but when I find a recipe or something and it doesn't have an option to print a certain area, I can't understand how to use it?

    Thank you

    Andi Starbuck

    That happens to me is, I click and drag to make a rectangle of yellow selection, and as soon as I raise my finger on the mouse button, the part I've selected is captured as an image, a new tab opens and preview before printing, the image display. I can use the installation of the Page or simply print. But if I close the preview, this temporary image vanishes and I'm back on the page where I started. You see something different?

Maybe you are looking for

  • MCB2400 LabVIEW 2009 Embedded build error

    Hello I am evaluating MCB2400 with embedded LabVIEW 2009. Whenever I try to compile the application (even with a VI empty, no code block diagram), I get the following error: "" [15:35:15] status: error ""which connects....\Obj\LabVIEW.axf: error: L60

  • Seting place labview as a remote OPC client

    I'm having trouble extraordinary setting LabVIEW as an OPC client on a remote computer.  I followed the guide of the OPC foundation on Windows (http://www.opcfoundation.org/DownloadFile.aspx?RI=326) dcom configuration. On a single machine seems to ha

  • deactivation of the system 66811396

    I need the addminstrator or turn on code... my system disable # is 668113906 please help

  • W700 detail docking cradle - when will be available?

    I received my W700 a couple of weeks with new style keyboard cover instead of the docking station. I really want to have the best of both worlds and get a dock.  The Acer store does not list it, but I found a few online suppliers that list the he (pa

  • Windows Vista; the files show offline even though I am connected to the network

    I work in Windows Vista business and the contents of my Home Directory is grey and have the grey "X" as if they are not available. I am connected to the network, everything else works (e-mail, navigation, printing, etc.). Is it possible to get the sy