Dynamic IN clause for the PL/SQl NDS

Hi all

How to make the following statement to analyze

IF v_cn_station = 1 THEN
IN_clause_string: = ' ' (1);
ON THE OTHER
IN_clause_string: = '(1,0);
END IF;

IMMEDIATE EXECUTION
' SELECT s.sm_cmr_lbl, s.sm_sysm_lbl, s.sm_tts_desc
OF station_message sm,.
special_message_data smd,
s special_message
WHERE smd.sm_dte =: dos_Dte
AND sm.post_id = smd.post_id
AND sm.sm_enable_cd IN: In_Clause
AND smd.sm_id = s.sm_id
AND sm.station_id =: station_ID
AND sm.ssm_dir_cd =: direction_CD'
BY v_StationMessage_IVR.t_CMR,
v_StationMessage_IVR.t_SYS,
v_StationMessage_IVR.t_TTS
With the HELP of v_dos_Dte,.
IN_clause_string,
v_station_ID,
v_direction_CD;

I get an error invalid number

Thank you
brand

See the changes below, you concatenate the string not use it as a variable binding.

-- USE This way example
select * from emp  ,
(
with t1 as (select level l from dual connect by level < 1000)
,    t2 as  (select 'SCOTT,ALLEN,KING'||',' c from dual)
select
substr(c,
nvl(lag(instr(c,',',1,l))over( order by null),0)+1,instr(c,',',1,l)
-1-nvl(lag(instr(c,',',1,l))over( order by null),0)) dyn_emp
from t1,t2
)
where dyn_emp = ename
/

SQL> /

     EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO DYN_EMP
---------- ---------- --------- ---------- --------- ---------- ---------- ---------- -------
      7788 SCOTT      ANALYST         7566 19-APR-87       3630                    20 SCOTT
      7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30 ALLEN
      7839 KING       PRESIDENT            17-NOV-81       5000                    10 KING
-- IN CLAUSE cannot use bind variable but can be done like this
-- The above method is preferred method.
 IF v_cn_station = 1 THEN
       IN_clause_string:= '(1)';
     ELSE
       IN_clause_string:= '(1,0)';
     END IF;

     EXECUTE IMMEDIATE
      'SELECT s.sm_cmr_lbl, s.sm_sysm_lbl, s.sm_tts_desc
              FROM station_message     sm,
                   special_message_data   smd,
                   special_message        s
             WHERE smd.sm_dte = :dos_Dte
               AND sm.post_id = smd.post_id
               AND sm.sm_enable_cd IN '|| In_Clause_string||  ---Change this
               AND sm.station_id = :station_ID
               AND sm.ssm_dir_cd = :direction_CD'
         INTO v_StationMessage_IVR.t_CMR,
              v_StationMessage_IVR.t_SYS,
              v_StationMessage_IVR.t_TTS
        USING v_dos_Dte,
              IN_clause_string,
              v_station_ID,
              v_direction_CD;

Tags: Database

Similar Questions

  • Very Urgent: Setting dynamic where clause for Popup list VO

    Hello world


    It is a very urgent requirement please help as soon as possible.


    I have a custom page in iSupplier. I created two supplier site, number of PO fields.

    Site of beg - choice of Message and PO number - Message LOV of entry


    I have a named VO under xxisupplier.oracle.apps.pos.home.poplist.server for site begging and xxisupplier.oracle.apps.pos.home.lov.server for PO number.

    I have joined these two VO AM homepage.




    Now the question is

    1. I want to restrict these VO vendor_id-based so I'll put dynamically where clause for these two VO of in my CO


    VO SITE PROVIDER QUERY


    SELECT POVs.vendor_site_code site, pov.vendor_id
    OF po_vendors pov, povs po_vendor_sites_all
    WHERE pov.vendor_id = povs.vendor_id
    AND TRUNC (povs.inactive_date) IS NULL


    PO NUMBER LOV QUERY VO


    SELECT DISTINCT ai.invoice_num, ai.vendor_id, ai.invoice_date, poh.segment1
    AI ap_invoices_all,.
    help ap_invoice_distributions_all,
    po_headers_all poh,
    po_distributions_all pda,
    Al ap_lookup_codes
    WHERE aid.po_distribution_id = pda.po_distribution_id
    AND ai.invoice_id = aid.invoice_id
    AND poh.po_header_id = pda.po_header_id
    AND ai.invoice_type_lookup_code = al.lookup_code
    AND al.lookup_type = 'INVOICE TYPE'


    I am creating where cluase as below in CO



    If (vendor_id1! = null)
    {
    System.out.println ("vendor_id:" + vendor_id1);
    OAViewObjectImpl vo = (OAViewObjectImpl) am.findViewObject ("PO_LOV_VO");
    if(vo!=null)
    {
    vo.clearCache ();
    VO. Reset();
    System.out.println ("inside IN. VO:" + vendor_id1);
    vo.setWhereClause (null);
    vo.setWhereClause ("vendor_id =: 1");
    vo.setWhereClauseParams (null);
    vo.setWhereClauseParam(0,vendor_id1);
    vo.setOrderByClause ("invoice_date DESC");
    String INVQRY = vo.getQuery ();
    System.out.println ("INVQRY:" + INVQRY);
    vo.executeQuery ();
    VO. First();
    System.out.println ("after the query appear" + vo.getRowCount ());
    }

    OAViewObjectImpl sitevo1 = (OAViewObjectImpl) am.findViewObject ("SUPPLIER_SITE_VO1");
    if(sitevo1!=null)
    {
    sitevo1.clearcache ();
    sitevo1. Reset();
    System.out.println ("Interior site:" + vendor_id1);
    sitevo1.setWhereClause (null);
    sitevo1.setWhereClause ("vendor_id =: 1");
    sitevo1.setWhereClauseParams (null);
    sitevo1.setWhereClauseParam(0,vendor_id1);
    String SITEQRY = sitevo1.getQuery ();
    System.out.println ("SITEQRY:" + SITEQRY);
    sitevo1. ExecuteQuery();
    sitevo1. First();
    System.out.println ("after the query appear" + sitevo1.getRowCount ());
    }



    Here he works for the purchase order number but the where cluase does not work for Supplier Site. Please help as soon as possible.


    2 and also if supplier site to return multiple values then this field should show as messagechoice. If it returns a single value, then it should be the style text message
    How can I achieve this.



    Thank you
    CSK

    Try

    vo.setWhereClause ("IN vendor_id (" + vendor_id_qry + ")" ");

    vendor_id_qry is the query that retrieves the list of provider IDS. You don't need to put the vendor column id as whereClauseParam unless you want to have IN the clause in your query of VO and pass the list as 1,2,3 values to the parameter.

    Thank you
    Shree

  • Different plan for the same sql id

    Hello

    Our team of application reported recently that a query ran longer than usual.

    Search in tables AWR (dba_hist_active_sess_history & dba_hist_sqlstat), it was a change of plan_hash_value. The next day, without intervention from anyone (collect statistics did not run, no change in the tables involved) the sql used the former plan and completed quickly.

    The differences in the plan was the index that was used to access the table.

    What could be the reason for the optimizer to choose a bad plan and return once more the good thing. ?

    The code sql that has been run twice & three in one day and then it years off cursor cache.

    Regime shifts are normal.

    Flipfloppping plans are quite normal.

    I'd be willing to bet that a large percentage of your SQL shows variations in implementation plans and you never notice.

    And there are several reasons why you might get a different plan.

    1 bind variable peeking - it is normal SQL for the age from the cache and then get analyzed once again with different bind variable leading to different cardinality estimates and plans

    2. the statistics change - it is normal that the statistics of change over time causing different cardinality estimates and the various plans, especially if the histograms are involved and changing buckets

    3. data change - especially if you use dynamic sampling it is normal to get a different sample of data leading to different cardinality estimates and plans

    4 SYSDATE - it's normal for queries with SYSDATE in them to recognize that time is never on leave and which, in conjunction with statistics or data, can lead to different cardinality estimates and plans

    5. integrated optimization features - it's normal for features like ACS to kick in and notice that they got forecasts wrong in an execution plan and force the recalculation to a different plan with an adjusted cardinality.

    Using DBMS_XPLAN. DISPLAY_CURSOR or DISPLAY_AWR you can get different plans (provided that they are in memory or AWR). The notes section should indicate cardinality comments have been a factor. You can also get links peeked with format mask of "+ PEEKED_BINDS".

  • Action dynamic set value for the Shuffle.

    I have a Select list that bears the name of the servers. Depending on the value selected in the select list, the random component must be filled. I created a dynamic action to select the list complete the Shuffle. It does not work. Any help is appreciated.

    I gave shuffle as the name of the item assigned to the dynamic action, I chose the option to set value, set SQL statement type and the following query:
    SELECT DISTINCT MOUNT_POINT IN SERVER_DISK_SPACE_UTILIZATION WHERE SERVER_NAME =: P2_SERVER_NAME

    Thank you.

    Hi Nicolas,.

    If you use APEX 4.0 or more, then the feature you're looking for is given for the selection list and shuttle (non-random) I think!

    My assumptions are:

    Select the list item: Servers (P2_SERVER_NAME)

    Shuttle point: Mount Points

    Just what you need to do is, in shuttle item properties there is a section from the list of values :
    Set
    Cascading LOV Parent items to P2_SERVER_NAME

    List of values definition of

    SELECT DISTINCT MOUNT_POINT FROM SERVER_DISK_SPACE_UTILIZATION WHERE SERVER_NAME=:P2_SERVER_NAME
    

    I hope that helps!
    Kind regards
    Kiran

  • How can I access other demo sample such as sh (sales history) patterns similar to hr &amp; oe I use to study for the exam SQL?

    I installed Oracle 12 c database on my Tablet Windows Pro 8.1 and I chose to install demo (sample) patterns in an additional download of oracle.com/downloads.  Then, on the instruction of the book corrected Oracle, I've unlocked users 'HR' and 'oe' using the following commands:

    ALTER user HR account unlock identified per hour;

    ALTER user oe account unlock identified by oe;

    I've been connecting to connections HR and oe to write and execute sql commands following fundamentals of SQL as well as the book in preparation for the exam successfully.  Now, in Chapter 10 of the book, he mentions the "sh" (historical sales) pattern.  I tried to launch a slight spin on orders above change/unlock to unlock the 'sh' user when logged in sysdba, but I get an error message indicating that the user "sh" is not found.  So I've navigated to the .sql file sh_main.sql and opened it with SQL Developer to run it, but it requires parameters that are not in the book, as if they were in Chapter 1 of 'oe' and 'hr '.  I know put sh as password, USERS, TEMP and V3 for version, but I do not know the path of log file to use (or type as a parameter).  Maybe I go about it the wrong way at this point?  It is not as simply by running the command user unlock, because it does not recognize the "sh" user even if that user exists in the directory tree under connect sysdba "other users".

    What am I supposed to do to connect to the less common, but still useful demo schema "sh" (sales history)?

    Thank you

    Heather

    It works well for me.

    BTW in V11 + passwords are CaSeSenSiTive

    SQL > select username from dba_users where username like 'P % ';

    USERNAME

    ------------------------------

    PHPDEMO

    PLS

    PM

    SQL > account user PM ALTER unlock identified by PM;

    Modified user.

    SQL > connect h/h

    ERROR:

    ORA-01017: name of user and password invalid. connection refused

    WARNING: You are more connected to ORACLE.

    SQL > connect h/h

    Connected.

    SQL > USER TO SEE THE

    The USER is "PM".

  • Too big for the grouped SQL 2 K 8 Express Database?

    I'm plodding through the vCenter Server 5.1 Upgrade Guide, all the time, assuming that I didn't need to worry about installing a complete SQL DB for 5.1, and I come across this Page 51:

    > Microsoft SQL Server 2008 R2 Express: group database that you can use for small deployments of virtual hosts up to 5 and 50 machines.

    I have 3 guests and 36 VMs.  These 36 VMs, about 25 are critical.  We you will develop, but we should be good for another year or more.

    Question1: should I worry about the time, licenses, etc. to create a complete SQL DB for vCenter 5.1 upgrade?

    Question2: is SQL 2 K 8 R2 Express come with the file .iso image for the upgrade to vCenter and just install/upgrade it first?

    Ty

    -lc

    Answer 1: You can go with the Express for your deployment. In fact, the limitation is a soft and only has an impact on the size of DB stored by vCenter (R2 Express now have a 10 GB limit size of DB) and performance. You CAN have more than 50 virtual machines / 5 ESX, but if you have a problem with your vCenter service (i.e. vCenter start fail, slow performance when you access the inventory, etc.), VMware will not support you in this case. Virtual machines will not be affected by this.

    Answer 2: Yes, SQL Express are delivered on the installation of VC. He moved with vCenter (you can choose during installation).

  • Node affinity d ' execution for the PL/SQL Packages?

    Colleagues dbas,

    We have a problem of random performance on one of our database RAC 11 GR 1 material due to waiting for IO.

    In fact, we've tracked down the problem and noticed that the sql packages are executed on the bad weather causing node 1 and were executed on node 2 with good results.

    Now the question is how we apply these pl/sql packages, that are called via batch external, must be running on node 2?

    Affinity of the proceeding came to my mind, but I have no idea whatsoever how to apply for parcels and incorporated the pl/sql code.

    Can you please give me an advice?

    Thanks for your comments!

    Best regards

    Sebastian

    You must define a service to run on node 2 with failover to node 1 and give a your batch jobs a string of connection that connects to this service:

    Add srvctl service d a s batchserv - r node2 - a node1

    and in your tnsnames.ora,.

    batchserv =

    (description =

    (address_list =

    (failover = on) (load_balance = on)

    (address = (node1...) (address = (node2...))

    )

    (connect_data = (service_name = batchserv))

    )

    I recorded several demos of this thing of the kind,

    Database Oracle 12 c and g 11 tutorials free for Administration and developers SkillBuilders

    --

    John Watson

    Oracle Certified Master s/n

  • Dynamic JNDI name for the database in BPEL adapter

    Hi all

    I have some problems trying to give the JNDI location for the dynamic database adapter (10.1.3.4). I already went through the following link, but that has not worked for me: http://www.oracle.com/technology/pub/articles/bpel_cookbook/carey.html

    The example below works, but only the first round. Second time around the first tracks JNDI value gets stored and connects to this database.

    That's what at least worked the first time.

    I set the JNDI with a variable defined in the definition of partnerlink in the bpel.xml

    In Bpel. XML

    < partnerLinkBinding name = "updatetbl" >
    < property name = "wsdlLocation" > updatetbl.wsdl < / property >
    < property name = "CONN" > eis/DB/na < / property >
    < property name = "retryInterval" > 60 < / property >
    < / partnerLinkBinding >



    In the updatetbl.wsdl file

    < service name = "updatetbl" >
    < name of port = "updatetbl_pt" binding = "tns:updatetbl_binding" >
    < jca:address location = "$CONN" / >
    < / port >
    < / service >


    At runtime, I change the variable CONN partnerlink in embedded Java.


    Try
    {
    Element targetAdapterElement = (Element) getVariableData("Invoke_getFromTbl_OutputVariable","getFromTblOutputCollection","/ns2:getFromTblOutputCollection/ns2:getFromTblOutput/ns2:SRC_JNDI");
    getLocator ().lookupProcess("JndiIssueTest").getDescriptor () .getPartnerLinkBindings () .getPartnerLinkBinding ("updatetbl") .setPropertyValue ("CONN", targetAdapterElement.getTextContent ());
    ("updatetbl").GetPropertyValue ("CONN"));
    }
    catch (Exception ex)
    {
    addAuditTrailEntry ("Error is" + ex);
    }


    It works fine the first time but the second time I launch it looks like a different value of CONN, it connects somehow always using the first value of tracks!

    If I redeploy or erase the cache WSDL, it works. But we intend to run it several times to several environment manually or programmatically clearing WSDL is not the right solution.

    Can someone tell me what is the standard process to do to make it work every time?

    Thank you
    Shaf

    Shaf,

    Please refer to the thread of e-mail for more details. If you want I can send you (send me your email id) the sample BPEL process that uses dynamic JNDI.

    Re: How to outsource the JNDI name (dynamically set the JNDI name)

    Thank you

    Sen

  • Plans of multiple executions for the same SQL statement

    Dear experts,

    awrsqrpt. SQL shows several plans for a single SQL statement executions. How is it possible that a single SQL statement will be several Plans of executions within the AWR report.

    Here is the output of the awrsqrpt for your reference.

    WORKLOAD REPOSITORY SQL Report
    
    Snapshot Period Summary
    
    DB Name         DB Id    Instance     Inst Num Release     RAC Host
    ------------ ----------- ------------ -------- ----------- --- ------------
    TESTDB          2157605839 TESTDB1               1 10.2.0.3.0  YES testhost1
    
                  Snap Id      Snap Time      Sessions Curs/Sess
                --------- ------------------- -------- ---------
    Begin Snap:     32541 11-Oct-08 21:00:13       248     141.1
      End Snap:     32542 11-Oct-08 21:15:06       245     143.4
       Elapsed:               14.88 (mins)
       DB Time:               12.18 (mins)
    
    SQL Summary                            DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
    
                    Elapsed
       SQL Id      Time (ms)
    ------------- ----------
    51szt7b736bmg     25,131
    Module: SQL*Plus
    UPDATE TEST SET TEST_TRN_DAY_CL = (SELECT (NVL(ACCT_CR_BAL,0) + NVL(ACCT_DR_BAL,
    0)) FROM ACCT WHERE ACCT_TRN_DT = (:B1 ) AND TEST_ACC_NB = ACCT_ACC_NB(+)) WHERE
     TEST_BATCH_DT = (:B1 )
    
              -------------------------------------------------------------
    
    SQL ID: 51szt7b736bmg                  DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
    -> 1st Capture and Last Capture Snap IDs
       refer to Snapshot IDs witin the snapshot range
    -> UPDATE TEST SET TEST_TRN_DAY_CL = (SELECT (NVL(ACCT_CR_BAL,0) + NVL(AC...
    
        Plan Hash           Total Elapsed                 1st Capture   Last Capture
    #   Value                    Time(ms)    Executions       Snap ID        Snap ID
    --- ---------------- ---------------- ------------- ------------- --------------
    1   2960830398                 25,131             1         32542          32542
    2   3834848140                      0             0         32542          32542
              -------------------------------------------------------------
    
    
    Plan 1(PHV: 2960830398)
    -----------------------
    
    Plan Statistics                        DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
    -> % Total DB Time is the Elapsed Time of the SQL statement divided
       into the Total Database Time multiplied by 100
    
    Stat Name                                Statement   Per Execution % Snap
    ---------------------------------------- ---------- -------------- -------
    Elapsed Time (ms)                            25,131       25,130.7     3.4
    CPU Time (ms)                                23,270       23,270.2     3.9
    Executions                                        1            N/A     N/A
    Buffer Gets                               2,626,166    2,626,166.0    14.6
    Disk Reads                                      305          305.0     0.3
    Parse Calls                                       1            1.0     0.0
    Rows                                        371,735      371,735.0     N/A
    User I/O Wait Time (ms)                         564            N/A     N/A
    Cluster Wait Time (ms)                            0            N/A     N/A
    Application Wait Time (ms)                        0            N/A     N/A
    Concurrency Wait Time (ms)                        0            N/A     N/A
    Invalidations                                     0            N/A     N/A
    Version Count                                     2            N/A     N/A
    Sharable Mem(KB)                                 26            N/A     N/A
              -------------------------------------------------------------
    
    Execution Plan
    ------------------------------------------------------------------------------------------------
    | Id  | Operation                    | Name            | Rows  | Bytes | Cost (%CPU)| Time     |
    ------------------------------------------------------------------------------------------------
    |   0 | UPDATE STATEMENT             |                 |       |       |  1110 (100)|          |
    |   1 |  UPDATE                      | TEST            |       |       |            |          |
    |   2 |   TABLE ACCESS FULL          | TEST            |   116K|  2740K|  1110   (2)| 00:00:14 |
    |   3 |   TABLE ACCESS BY INDEX ROWID| ACCT            |     1 |    26 |     5   (0)| 00:00:01 |
    |   4 |    INDEX RANGE SCAN          | ACCT_DT_ACC_IDX |     1 |       |     4   (0)| 00:00:01 |
    ------------------------------------------------------------------------------------------------
    
    
    
    
    Plan 2(PHV: 3834848140)
    -----------------------
    
    Plan Statistics                        DB/Inst: TESTDB/TESTDB1  Snaps: 32541-32542
    -> % Total DB Time is the Elapsed Time of the SQL statement divided
       into the Total Database Time multiplied by 100
    
    Stat Name                                Statement   Per Execution % Snap
    ---------------------------------------- ---------- -------------- -------
    Elapsed Time (ms)                                 0            N/A     0.0
    CPU Time (ms)                                     0            N/A     0.0
    Executions                                        0            N/A     N/A
    Buffer Gets                                       0            N/A     0.0
    Disk Reads                                        0            N/A     0.0
    Parse Calls                                       0            N/A     0.0
    Rows                                              0            N/A     N/A
    User I/O Wait Time (ms)                           0            N/A     N/A
    Cluster Wait Time (ms)                            0            N/A     N/A
    Application Wait Time (ms)                        0            N/A     N/A
    Concurrency Wait Time (ms)                        0            N/A     N/A
    Invalidations                                     0            N/A     N/A
    Version Count                                     2            N/A     N/A
    Sharable Mem(KB)                                 26            N/A     N/A
              -------------------------------------------------------------
    
    Execution Plan
    ---------------------------------------------------------------------------------------------
    | Id  | Operation                    | Name         | Rows  | Bytes | Cost (%CPU)| Time     |
    ---------------------------------------------------------------------------------------------
    |   0 | UPDATE STATEMENT             |              |       |       |     2 (100)|          |
    |   1 |  UPDATE                      | TEST         |       |       |            |          |
    |   2 |   TABLE ACCESS BY INDEX ROWID| TEST         |     1 |    28 |     2   (0)| 00:00:01 |
    |   3 |    INDEX RANGE SCAN          | TEST_DT_IND  |     1 |       |     1   (0)| 00:00:01 |
    |   4 |   TABLE ACCESS BY INDEX ROWID| ACCT         |     1 |    26 |     4   (0)| 00:00:01 |
    |   5 |    INDEX RANGE SCAN          | INDX_ACCT_DT |     1 |       |     3   (0)| 00:00:01 |
    ---------------------------------------------------------------------------------------------
    
    
    
    Full SQL Text
    
    SQL ID       SQL Text
    ------------ -----------------------------------------------------------------
    51szt7b736bm UPDATE TEST SET TEST_TRN_DAY_CL = (SELECT (NVL(ACCT_CR_BAL, 0) +
                  NVL(ACCT_DR_BAL, 0)) FROM ACCT WHERE ACCT_TRN_DT = (:B1 ) AND PB
                 RN_ACC_NB = ACCT_ACC_NB(+)) WHERE TEST_BATCH_DT = (:B1 )
    Your contribution is very much appreciated.

    Thank you for taking your time to answer my question.


    Concerning

    Oracle Lover3 wrote:
    How will I know (from Plan 1 and Plan 2) whose execution plan chose for the current run?

    Since you're already on 10.2, you can identify the actual execution plan by checking in V$ SESSION SQL_ID and SQL_CHILD_NUMBER column. This can be used to identify the plan in V$ SQL_PLAN (columns SQL_ID and CHILD_NUMBER) and in 10g, you can use the convenient DBMS_XPLAN. Function DISPLAY_CURSOR for the information of the real plan using these two parameters.

    Kind regards
    Randolf

    Oracle related blog stuff:
    http://Oracle-Randolf.blogspot.com/

    SQLTools ++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676 /.
    http://sourceforge.NET/projects/SQLT-pp/

  • Question about the clause for the EVE of BACKUP command

    Hello

    I would like to know the exact difference between BACKUP CONTROLFILE CURRENT and BACKUP CONTROLFILE CURRENT for INTELLIGENCE in Oracle 11 g. I searched the docs and My Oracle Support OTN, but still I have not found an answer. I would be grateful for any explanation or references.

    Thanks in advance.

    Hello

    Allows to consider from scratch,

    What is a controlfile :--> its a small binary file that records the physical structure of the database.
    The control file includes:
    The name of the database
    The names and locations of the partners of the data files and redo log files
    The timestamp of the creation of the database
    The current sequence number
    Control point information

    Now, down to backup controlfile--> will have the exact backup of the controlfile used by the database (including the role of the database) Please note that this controlfile cannot serve as a controlfile standby when you try to use it it will return the error

    Backup controlfile as Eve--> will anything similar as for the previous command except for the role of database that are not primary indicator but would be pahysical Eve, all other information would be same.. like with it it will not be an exact replica of the primary database.

    It is the only difference from what I understand concepts.

    Regrads

  • left outer join and the where clause for the table to the right

    I want to join two tables a and b, where a is a must and b is a result set in option. When I use a left outer join to a to b, I want to achieve:

    1. Select a single column, two columns of b (not the join columns)
    2 - even if theres no friendly on the join column does not return data from one.
    3. If there is a match applies when the criteria on column b (table in option)

    so, how can I avoid no_data_found in this case? When I apply where criteria for b, so it does not return the data from one, which is a must.

    Sounds like a regular outer join to me...

    select a.col1, b.col2, b.col2
    from   tableA a
           left outer join tableB b
           on (a.id = b.id and b.colX = 'X')
    
  • Dynamic variable naming for the Sound object

    Is it possible to dynamically name a variable? I would like to create a new Sound object on the fly, so that I can use the sound.load() method several times. I would simply create and name the variable and add a number at the end of the name (i.e.; var "audio_1": Sound). I'm sure it's possible. However, I can't seem to get it figured out.

    :

  • How I created the dynamic personalized stamps for the PDF stamp with?

    Trying to create a dynamic custom stamp, so that I can stamp PDF with either "reviewed" or "refused" to a given date and time

    Some tutorials

    https://acrobatusers.com/tutorials/filter/search&keywords=dynamic+stamp&channel=tutorials& category = 13 & tut_type = video + OnDemand + graphics + HTML.

    Be well...

  • How to use PL/SQL to create dynamic action to set the value of a selection by another list?

    Hello

    I would like to know how to use PL/SQL to create dynamic action to set the value of a list of selection by another selection list.

    1.PNG

    I wish can create dynamic action to manage the two above the Room select list (: P9_ROOM) and building (: P8_BUILDING).

    When you select "1074" in the bathroom, building highlights like "BRM BLD 5"

    When you select 'Area of the black box' in the room, building must assign the value "7 BLD BRM"

    When the room is Null, building should also be Null.

    I thank you,

    Alice

    I forgot to mention, for the PL/SQL Code, because you are working with items in the selection list, the return values are different from the display on your LOV values, you must instead use the return values.

    Thank you

    Erick

  • Subquery 'WITH SAWITH0 AS' OBIEE 11 g factoring clause contained in the generated sql code

    I have observed that OBIEE 11 g generates in physics request log query using the (subquery factoring) WITH clause to the generated sql code elegantly readable. It's great! Thanks for the developers. However I have a few questions about it.

    __Background__
    Oracle database ' default behavior is that if you have only a subquery in the section, it runs as a perspective in line and he not materialized before the main sql is running. If you have more than one default database engine materializes all the in the order of definition. In some cases, it can completely blow up the SGA and make a query without end. To divert this behavior, you can apply two tips that work both in inline views in subqueries as well: / * + MATERIALIZE * / and / * + INLINE * /, however Analytics 11 g does not seem to have capabilities of Board at the table level logical, only at the level of the physical table.

    If we go with the current default settings, the developers do not know this feature can fall on serious performance problems for the sake of a few sweets of syntax to the generated sql level, I'm afraid.

    __Questions__

    * It is possible to turn the Analytics Server to not use WITH but views inline instead?
    * Is it possible to sneak in a few boards that would the / * + INLINE * / allusion to the proper place in the subqueries generated if necessary
    * Is the Oracle database has any initialization parameter that can influence the behavior of this subquery factoring and divert by default?

    The WITH statement is not added to make the query more elegant, it is added for performance reasons. If your queries slow to run, then you can have a design problem. In a typical DWH DB SGA should be increased seriously given that ran queries are much larger and complex than on an OLTP DB. In all cases, you can disable the WITH statement in the administration tool by double clicking on your database on the physical layer from object in the features tab. The function is called WITH_CLAUSE_SUPPORTED.

Maybe you are looking for