Query does not not in shell scripts

Hi Experts,

I created a query to check the temp tablespace use in production servers and I wanted to run the query using shell scripts, but when I run the query in the script I get no error or output I am unale to correct where exactly, I make the mistake

This is the query

SELECT A.tablespace_name 'space', D.gb_total, ROUND (SUM (A.used_blocks * D.block_size) / 1024 / 1024/1024,2) "gb_used", ROUND (D.gb_total - SUM (A.used_blocks * D.block_size) / 1024 / 1024/1024,2) 'gb_free' v$ \sort_segment A, (SELECT B.name, C.block_size, ROUND(SUM (C.bytes) / 1024 / 1024/1024,2) 'gb_total' v$ \tablespace B, v$ \tempfile C WHERE B.ts #= C.ts # GROUP BY B.name, C.block_size) D WHERE A.tablespace_name = D.name GROUP by A.tablespace_name D.gb_total

You can help in this.

Thank you...

Basic Linux/Unix shell script format

#! / bin/sh

oracle set environment #.

Export ORACLE_HOME =...

export of SID =... or TWO_TASK = export

.. etc.

# launch sqlplus

sqlplus-s/nolog<>

Connect scott/tiger

together... environment of sqlplus

-execution of script sql (or sql query)

@script.sql

output

EXPRESSIONS OF FOLKLORE

#end script

Character $ is interpreted by the shell as environment variables, you must escape the $ character is as well as it not assimilated to the variable approx.

For example, v$ instance should be written as v$ instance.

Tags: Database

Similar Questions

  • Call the batch file and not the shell script using measures of the event

    Can I use EVENTACTIONS at the door of gold like

    eventactions (SHELL, /path-to-batch-file/test1.bat)

    will this work? I am on a windows machine, so I need to run a batch file and not a shell script

    In GGSCI, you can shell OUT to the BONE and call a command/executable file.

    For example on Windows:

    GGSCI (WIN2003) 2 > shell dir

    Volume in drive C has no label.

    Volume serial number is 8CCC-9E58

    Directory of C:\ggs

    18/08/2012 07:23

    .

    18/08/2012 07:23

    ...

    2010-10-15 06:37 bcpfmt.tpl 426

    2010-10-15 06:37 bcrypt.txt 1 725

    22/04/2011 03:41 2 560 category.dll

    05/11/2011 10:43

    cfg

    2010-10-15 07:15 739 chkpt_ora_create.sql

    ...

    What were the results when you tried this in an EVENTACTIONS clause?

  • Payroll Run query does not appear on the payroll LOV

    Hi all

    Am on 12.1.3
    DB - 11 GR 1 material

    Wen, trying to run on PAYROLL:
    FACE below error:
    Payroll Run query does not appear on the payroll LOV


    Thank you

    Please post the exact name of the simultaneous program you want to submit as well as all the parameters.

    I understand that you get an error when you try to select the LOV to pass parameters, right?

    If the program has not yet been presented, then it is an expected behavior not to find any file of log/output.

    Please see if these MOS Docs Help.

    Simultaneous request for payroll, payroll name Lov for payroll run Erros: APP-FND-1436: the list of values can not find all the values for you to choose [333524.1 ID]
    Payroll run parameter list of values (LOV) in the process "Retry Payroll Run" does not display any values [1368390.1 ID]

    Thank you
    Hussein

  • query does not run strange

    For some strange reason, the following query 1 runs but the 2nd query does not run...
    observe the slight difference for local conditions and quotes from final for her... in the first query the final citation is in the second line.
    I bring as query 2 but she sends me results I also tried ltrim (rtrim (local) = "en_US", it does not help
    What is the problem here?


    Query 1
    --------
    SELECT *.
    Of ats_rules_bkp
    Subclass WHERE = "payments".
    CATEGORY = "qsg.
    AND clazz = 'help '.
    AND right = "ach".
    AND country = 'India '.
    AND region = "South".
    AND market_segment = "primary".
    AND local = "en_US
    '
    AND status = 'Active '.

    ---------------------------------------------
    Query 2

    SELECT *.
    Of ats_rules_bkp
    Subclass WHERE = "payments".
    CATEGORY = "qsg.
    AND clazz = 'help '.
    AND right = "ach".
    AND country = 'India '.
    AND region = "South".
    AND market_segment = "primary".
    AND local = "en_US."
    AND status = 'Active '.

    As I expected, you have a carriage return in your data. the LOCAL column is not store the string "fr_FR." It has an extra carriage return (character ASCII 10) data. You can modify the query to add the character CHR (10)

    local = 'en_us' || CHR(10)
    

    but it is probably more sensible to fix the underlying data, if this is in fact to store the string "fr_FR."

    Justin

  • Password Oracle symbol # does not not in shell script

    I have the shell script that exports the database schema. My Userid password export subscription contains #. Shell script is throwing error. If we have the password without this character, then it works fine. How do we use the password in shell script to perform this task?

    $ORACLE_HOME/bin/expdp system/test #test = userid parfile test.par dumpfile = test.dmp =

    I tried to use double-quotes and apostrophes for this password... but it still does not. any help is appreciated.

    Please post the contents of test.par.

    You can try to run before running EXPDP:

    drop table SYSTEM.EXP_DEVDB06;
    

    Edited by: P. Forstmann on 27 Jan. 2010 17:46

    Edited by: P. Forstmann on 27 Jan. 2010 17:47

  • EEM Applet does not fire TCL script after expiration of the countdown

    We use currently EEM Applet below than securities has BGP route and if this path fails, it starts a countdown of 45 min, once the countdown expires, the router reloads. If the BGP route restores it will remove the countdown applet.

    I'm trying to change this applet to reproduce the same type of behavior, but instead to recharge after 45 minutes, I am changing the cell parameters via Script TCL or other means besides.

    Is this possible? Can someone direct me how to proceed?

    Cisco 1941 Version 15.4 (3) M2

    event handler applet track down
    Description "this applet will add the countdown applet when BGP 10.66.66.66 road goes down."
    Event track 10 down state
    command action 1.0 cli 'enable '.
    Action 2.0 cli command "config t.
    Action 3.0 cli command "event manager applet countdown."
    action 3.1 cli command "description This cmdlet is the countdown and will cause the router reload after 2700 seconds if BGP route is always down.
    Action 3.2 cli command "event timer countdown 2700".
    action 3.3 cli command "reload action 1.0.
    Action 4.0 cli command "end".
    command action 4.1 cli 'enable '.
    Action 4.2 cli command "wr mem".
    Event Manager applet track-up
    Description "this cmdlet will delete the countdown applet when restores BGP route to 10.66.66.66.
    Event State track 10 upwards
    command action 1.0 cli 'enable '.
    Action 2.0 cli command "config t.
    action 3.0 cli command "no event manager applet countdown."
    Action 4.0 cli command "end".
    !

    This is the applet changed, with that I have had the most success. The issue I'm running into is, sound without waiting 60 seconds (for testing I reduced to 1 minute) to run the tcl script. From my limited understanding, I discovered that, after the countdown event - the applet requires an action immediately after but does not accept a command like 'tclsh Cell.tcl' cli as 'action '. »

    event handler applet track down
    Event track 10 down state
    command action 1.0 cli 'enable '.
    Action 1.1, «config t» cli command
    Action 1.3 cli command "event manager applet countdown."
    action 1.4 cli command 'event timer countdown 30 '.
    action 1.5 cli command "action 1.0 wait 30.
    Action 1.6 cli command "end".
    Action 1.7 cli command "tclsh Cell.tcl.
    Event Manager applet track-up
    Event State track 10 upwards
    command action 1.0 cli 'enable '.
    Action 2.0 cli command "config t.
    action 3.0 cli command "no event manager applet countdown."
    Action 4.0 cli command "end".

    It is the TCL script that I use to run cellular changes.

    tclsh
    puts [open "flash: Cell.tcl' w +] {}
    ios_config "interface 1/0/0" "shut".
    ios_config "0/1/0 lte tech gsm cell".
    ios_config "interface 1/0/0" 'no shut '.
    After 10000
    ios_config "interface 1/0/0" "shut".
    ios_config exec 'cell auto 0/1/0 lte tech '.
    ios_config "interface 1/0/0" 'no shut '.
    }
    tclquit

    Thank you
    Robert

    These cmdlets will not accomplish what you want.  I also recommend never call EEM tclsh.  You don't need to do.  Use EEM MCI in native mode, or in your case, just use pure applets.  Take a look at https://supportforums.cisco.com/document/12723951/how-introduce-large-de... .  If you follow this example and put your config CLI commands in the countdown applet, you will be able to achieve what you want.

  • Run query does not return a lines

    Hello

    I find that the Executequery code does not return everything.

    {

    pageContext.writeDiagnostics (this, "connection entry-front connection", 1);

    Connection Conn = pageContext.getApplicationModule (webBean) .getOADBTransaction () .getJdbcConnection ();

    pageContext.writeDiagnostics (this, "connection entered" & conn, 1);

    pageContext.writeDiagnostics (this, "input connection [AJ]" & conn, 4);

    Dim Query = "select CODE a.secondary_uom_code, (select b.unit_of_measure from MTL_UNITS_OF_MEASURE b where b.uom_code = a.secondary_uom_code) GLU, xxtmxc_primary_selling_suom (: 3, a.inventory_item_id) ' PSUOM from mtl_system_items_b where a.inventory_item_id =: 1 and a.organization_id =: 2 and a.secondary_uom_code is not null ';"

    'UNION select 'OUR' CODE, UOM 'Number', 10 double PSUOM;

    String query = "" select secondary_uom_code CODE of mtl_system_items_b where inventory_item_id =: 1 and organization_id =: 2 and secondary_uom_code is not null '; "

    pageContext.writeDiagnostics (this, ' [AJ] after the query string", 4");

    pageContext.writeDiagnostics (this, "message query" + Query, 1);

    PreparedStatement stmt = conn.prepareStatement (Query);

    pageContext.writeDiagnostics (this, "prepared statement Post" + stmt, 1);

    stmt.setString(1,Item);  ver1

    stmt.setString(2,Org);  ver1

    stmt.setInt (3, Dis.intValue ());

    stmt.setString(3,Dis);

    stmt.setInt (3, Ext.intValue ());

    stmt.setString (3, Ext); ver1

    pageContext.writeDiagnostics (this, "Post Ext after SetString" + Ext, 1);

    ResultSet resultset = stmt.executeQuery ();

    pageContext.writeDiagnostics (this, "Resultset" + resultset, 1);

    If (resultset.next ())

    for (ResultSet resultset = stmt.executeQuery ();)

    ResultSet.Next ();)

    While (resultset.next ())

    {

    String code = resultset.getString ('CODE');

    String uom = resultset.getString ("UOM");

    String psuom = resultset.getString ("PSUOM");

    row.setAttribute ("UomCode", code);

    row.setAttribute ("UnitOfMeasure", GLU);

    row.setAttribute ("LineAdjustedPercent", psuom);

    pageContext.writeDiagnostics (this, "secondary UOM" + resultset.getString ('CODE') + resultset.getString ("UOM") + resultset.getString ("PSUOM"), 1);

    pageContext.writeDiagnostics (this, "secondary UOM" + row.getAttribute ("UomCode") + row.getAttribute ("UnitOfMeasure"), 1);

    pageContext.writeDiagnostics (this, "LineAdjustedPercent" + row.getAttribute ("LineAdjustedPercent") + "PSUOM" + resultset.getString ("PSUOM"), 1);

    }

    ResultSet.Close ();

    stmt. Close();

    }

    catch (SQLException sqle)

    {

    throw new OAException ("error in query Preparation" + sqle, OAException.INFORMATION);

    }

    pageContext.writeDiagnostics (this, ' [AJ] after try-catch: ", 4");

    }

    }

    }

    }

    Hi Bobo,

    I tried the same requirement in my local instance and changed the code for you.

    Please check process requires working Code of the form below:

    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    OAViewObject QuoteLinesLevel70VO1Obj1 = (OAViewObject) pageContext.getApplicationModule (webBean) .findViewObject ("QuoteLinesLevel70VO1Obj");
    if(QuoteLinesLevel70VO1Obj1!=null)
    {
    If (QuoteLinesLevel70VO1Obj1.GetCurrentRow ()! = null)
    pageContext.writeDiagnostics (this, "Current Row" + QuoteLinesLevel70VO1Obj1.getCurrentRow () .getAttribute ("UomCode"), 1);
    }
               
    pageContext.writeDiagnostics (, "concluded Save Button", OAFwkConstants.STATEMENT);
    If ("Event.Go".equals (pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM)))
    {
    OAViewObject QuoteLinesLevel70VO1Obj = (OAViewObject) pageContext.getApplicationModule (webBean) .findViewObject ("QuoteLinesLevel70VO1Obj");
    if(QuoteLinesLevel70VO1Obj!=null)
    {
    pageContext.writeDiagnostics (thie, 'enter in Count' + QuoteLinesLevel70VO1Obj.getFetchedRowCount (), 1);
    int count = QuoteLinesLevel70VO1Obj.getFetchedRowCount ();
    RowSetIterator Iter = QuoteLinesLevel70VO1Obj.createRowSetIterator ("Iter");
    {if(Count>0)}
    Iter.setRangeStart (0);
    Iter.setRangeSize (count);
    for (int i = 0; i)<>
    {
    OAViewRowImpl row = (OAViewRowImpl) Iter.getRowAtRangeIndex (i);
    If (row.getAttribute ("InventoryItemId")! = null & row.getAttribute ("OrganizationId")! = null)
    {
    String Item = row.getAttribute("InventoryItemId").toString ();
    String Org = row.getAttribute("OrganizationId").toString ();
    Number say = (Number) row.getAttribute ("LineAdjustedPercent"); LineAdjustedPercent
    Dim Ext = (String) row.getAttribute ("Attribute1");
                              
                               int item1 is Integer.valueOf (Item) .intValue ();.   Converted entire string
    int Org1 is Integer.valueOf (Org) .intValue ();.     Converted entire string
    Try
    {
    pageContext.writeDiagnostics (this, "connection entry-front connection", 1);
    Connection Conn = pageContext.getApplicationModule (webBean) .getOADBTransaction () .getJdbcConnection ();
    pageContext.writeDiagnostics (this, "connection entered" & conn, 1);
    pageContext.writeDiagnostics (this, "input connection [AJ]" & conn, 4);
    String query = "select xxtmxc_primary_selling_suom(:1,a.inventory_item_id) PSUOM from mtl_system_items_b where a.inventory_item_id =: 2 and a.organization_id =: 3"; Index link //Changed
    pageContext.writeDiagnostics (this, ' [AJ] after the query string", 4");
    pageContext.writeDiagnostics (this, "message query" + Query, 1);
    PreparedStatement stmt = conn.prepareStatement (Query);
    pageContext.writeDiagnostics (this, "prepared statement Post" + stmt, 1);
                                    Item1 is Integer.valueOf (Item) .intValue ();. Converted entire string
    ORG1 = Integer.valueOf (Org) .intValue ();  Converted entire string
    pageContext.writeDiagnostics (this, "Param1 all" + item1, 1);
    pageContext.writeDiagnostics (this, "Param2 all" + Org1, 1);
    pageContext.writeDiagnostics (this, "Param3 all" + Ext, 1);
    stmt.setString(1,Ext);
    stmt.setInt(2,item1);  ver1
    stmt.setInt(3,Org1);  ver1
    pageContext.writeDiagnostics (this, "Post Ext after SetString" + Ext, 1);
                                    
    for (ResultSet resultset = stmt.executeQuery (); resultset.next ();)  //Used for loop in Resultset
    {
                                       
    String psuom = resultset.getString ("PSUOM");
    pageContext.writeDiagnostics (this, "[AJ] z:" + psuom, 4 "); //Here we got the value of the function
    pageContext.writeDiagnostics (this, "m [AJ]:" + Ext, 4);
                                        
    }
                                    
    stmt. Close();
    }
    catch (SQLException sqle)
    {
    pageContext.writeDiagnostics (this, ' [AJ] with the Exception: "+ sqle.getMessage (), 4");
    throw new OAException ("error in query Preparation" + sqle, OAException.INFORMATION);
    }
    pageContext.writeDiagnostics (this, ' [AJ] after try-catch: ", 4");
    }
                              
    }
    }
                     
          
    }
             
    super.processFormRequest (pageContext, webBean);
    }
    }

    Thank you

    Dilip

  • Correlation query does not work

    create the table cust_age_sal (cust_id integer, integer whole age of sal);

    create the table new_cust_age_sal (cust_id integer, integer whole age of sal);

    insert into cust_age_sal values (1,10,100);

    insert into cust_age_sal values (2,20,200);

    insert into cust_age_sal values (3,30,300);

    insert into cust_age_sal values (4,40,400);

    commit;

    insert into new_cust_age_sal values (2,21,201);

    insert into new_cust_age_sal values (3,31,301);

    commit;


    Question

    I want to update cust_age_sal using the customer_id which are present in the new_cust_age_sal;

    I use queries, query1 and query2. Query1 is working and I get results and I want to know what is the problem with query2 and why it does not work

    Query1:

    UPDATE cust_age_sal u

    SET (age, sal) =

    (

    SELECT age, sal

    OF new_cust_age_sal

    WHERE cust_id = u.cust_id

    )

    where u.cust_id in (select cust_id from new_cust_age_sal)

    ---

    query2:

    UPDATE cust_age_sal

    SET (age, sal) =

    (

    SELECT age, sal

    OF new_cust_age_sal

    WHERE cust_id = u.cust_id

    )

    Hello

    2742751 wrote:

    It is except o/p I'm looking

    O/p: except

    I think you want to say "whereas", not "excluded".

    CUST_ID AGE SAL

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

    1                      10                     100

    2                      21                     201

    3                      31                     301

    4                      40                     400

    But when I run under query that is show below output even if I use the join on the target table condition. Why is it show empty for CUST_ID = 1 and 4

    UPDATE cust_age_sal u

    SET (age, sal) =

    (

    SELECT age, sal

    OF new_cust_age_sal

    WHERE cust_id = u.cust_id

    )

    CUST_ID AGE SAL

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

    1

    2                      21                     201

    3                      31                     301

    4

    A UPDATE instructions without WHERE clause will update with each row in the table.

    In the case of cust_id = 1, what will that do?  Well, what makes the following query?

    SELECT age, sal

    OF new_cust_age_sal

    WHERE cust_id = 1;

    ?  It produces no line.  When you use a subquery in a SET of an UPDATE statement clause (as you do) and the subquery returns no rows, then updated the columns with a NULL value.

    If you don't want to update all rows, but want lines updates which fulfil certain conditions (for example, have a corresponding row in new_cust_age_sal), and then use a WHERE clause in the UPDATE statement, as you did in your first UPDATE statement.

    Instead of an UPDATE statement, you can also use a MERGE statement, like this:

    MERGE INTO dst cust_age_sal

    With the HELP of new_cust_age_sal CBC

    WE (dst.cust_id = src.cust_id)

    WHEN MATCHED THEN UPDATE

    SET dst.age = src.age

    dst.sal = src.sal,

    ;

    In this way, you don't need to repeat what is essentially the same subquery in the GAME and WHERE clauses.

  • Managed server starts do not using shell script

    Hi all

    I have configure weblogic server and 3 servers managed in it. I wrote a script to start the server. I am able to start the database/earpiece and weblogic admin server. But I'm not able to start managed server.script is as below. UCM_server1 does not start. When I click on 4, it's just showing

    From UCM_server1

    nohup: redirect stdout stderr

    .

    and so on

    I just also field path and all the numnber port

    Please suggest how to debug and fix this.

    « 2 »)

    Claire

    #

    lsnr_num ='ps - ef | grep tnslsnr | grep - v grep | AWK ' END {print NR} "

    If [$lsnr_num - gt 0]

    then echo "Database already running listener."

    else echo 'starting Infrastructure Database listener... »

    Starting from $ORACLE_HOME/bin/lsnrctl

    FI

    db_num ='ps - ef | grep pmon | grep - v grep | AWK ' END {print NR} "

    If [$db_num - gt 0]

    the echo then "database running."

    else echo ' from Oracle Database... »

    $ORACLE_HOME/bin/sqlplus "/ as sysdba" < < EOF

    #connect eu1/sys as sysdba

    startup

    EXPRESSIONS OF FOLKLORE

    #

    Sleep 10

    echo "Database Services started successfully."

    #

    FI

    ;;

    #---------------------------------------------------------------------------------------------

    « 3 »)

    ECHO "from WLS_Admin..."

    admin_num ='netstat - nl | grep '$ADMIN_PORT ' | grep - v grep | AWK ' {print NR} end "

    If [$admin_num - gt 0]

    then echo "WebLogic Admin Server running."

    else echo "."

    CD $DOMAIN_HOME/bin

    echo "start WebLogic Admin Server... »

    nohup./startWebLogic.sh > weblogic.out &

    sleep 5;

    admin_run ='grep-i 'Server started in OPERATION' weblogic.out | grep v - grep | AWK ' {print NR} end "

    While [$admin_run - eq 0]

    do

    sleep 5;

    admin_run ='grep-i 'Server started in OPERATION' weblogic.out | grep v - grep | AWK ' {print NR} end "

    fact

    FI

    ;;

    #---------------------------------------------------------------------------------------------

    « 4 »)

    ucm_num ='netstat - nl | grep '$UCM_PORT ' | grep - v grep | AWK ' {print NR} end "

    If [$ucm_num - gt 0]

    then echo "UCM_server1 already running."

    else echo "."

    CD $DOMAIN_HOME/bin

    ECHO "from UCM_server1... »

    nohup./startUCMDebugMemory1GB.sh UCM_server1 > ucm.out &

    sleep 5;

    ucm_run ='grep-i 'Server started in OPERATION' ucm.out | grep v - grep | AWK ' {print NR} end "

    While [$ucm_run - eq 0]

    do

    sleep 5;

    ucm_run ='grep-i 'Server started in OPERATION' ucm.out | grep v - grep | AWK ' {print NR} end "

    fact

    FI

    ;;

    best way to debug is to find the location of the log. Go to the location of the specified managed server and check out ucm_server.log. Check what error u get

  • Query does not work on my iPad (was: media query question)

    I am a site for mobile/tablet/Office of coding and while my office and the iphone respond to the CSS, my ipad does not work. The changes that I do take the tablet in dreamweaver, but when they go live the ipad does not. Of course, my media query must be incorrect, but I can't understand the question. Any help is very appreciated.

    http://gbetza.mydomain.com/WebService2/test/KathrynFee/2014/profile.html

    Thank you.

    Yes.  It is inevitable because smart phones are getting bigger while tablets are smaller & more.  He's always going to be some crossover.   Think of it this way, when a Tablet is behaving as a mobile device, he takes over the mobile network.  When the shelf behaves more like a desktop computer, you need the layout of office.

    Similarly, a great smartphone in landscape mode is likely to resemble the layout of your tablet.

    See the FluidGrid example below:

    http://ALT-Web.com/FluidGrid/Fluid2.html

    Office = 4-col layout

    Tablet = 2-col layout

    Mobile = 1-col layout

    For purposes of illustration, I added a thick border of gold at the disposal of the Tablet only.

    / * Tablet Layout: 481px to 768px. Inherits the styles of: Mobile layout. */

    @media only screen and (min-width: 481px) and (max-width: 768px) {}

    .gridContainer {width: 92%; border: 16px solid gold}

    }

    Nancy O.

  • CFLocation does not launch new Script

    I have 2 servers, both running RHEL 5, Coldfusion 8, and PostGreSQL 8.4.

    I scriptA1.cfm on a server that has a single line of code: a cflocation with the URL of scriptB1.cfm tag that resides on the server B.  It works fine: I run scriptA1.cfm on a server and he calls (via the cflocation) scriptB1.cfm on ServerB, which displays a form user clicks submit and the rest of the scriptB1.cfm runs correctly.

    However, what I really want is for the process on the server B runs automatically after a similar process on the server A finishes, unless the user to click on submit or anything in between.  So I added a tag of cflocation at the end of scriptA2.cfm on server A, with a URL that calls scriptB2.cfm on ServerB.  scriptB2.cfm does not have a form to submit, he just immediately starts to run a process that updates a database.  When I run scriptB2.cfm directly from Server B, it works very well.  However, it does not work when it is called from the server A: scriptA2.cfm works correctly on a server and updates its database on server A and then it is supposed to call scriptB2.cfm on server B, but nothing happens.  It does not give an error, it seems that it just never works (Journal of both sides to a table of database when processes start and end and I never see this connection to Server B).

    Why the cflocation does not work in a situation and not the other?  I see no error in one of the coldfusion does one side or the other to explain what is happening.  Thanks in advance for your suggestions.

    Julie

    jdavenport11 wrote:

    ... what I really want, it's for the process on the server B runs automatically after the end of a process similar to a server, without the user to click on submit or anything in between.  So I added a tag of cflocation at the end of scriptA2.cfm on server A, with a URL that calls scriptB2.cfm on ServerB.  scriptB2.cfm does not have a form to submit, he just immediately starts to run a process that updates a database...

    ... After continuing looking for issues with cflocation, I found a hint that if he follows a cfflush, the cflocation is ignored.  I took the cfflush off the calling script, and then the 2nd script was called by the cflocation and practised.  While this works, I would like to know if there is an alternative, because I really need this cfflush here (it of a very long process and would show the progression of the user on the screen as it is running).

    From your description, redirect seems an inappropriate solution. You are the person who wants to do business with Server B. There is no interest for the customer.

    Your needs, I suggest so that you let the user to A server. Then just use cfhttp to run the page on the server B. For example, by placing something like that at the end of scriptA2.cfm

    method http://www.myOtherDomain.com/scriptB2.cfm' = 'get' / >

  • WS 2.0 query does not work

    Hi all

    I have a small problem...

    I'm trying to create a query with ws 2.0 but I Don t get a response but the 400 error message.
    The connection works very well and I also get my session ID, but when I try to do a query it always comes with the
    Server returned HTTP response code: 400 for URL: https://secure-ausomxgva.crmondemand.com/Services/Integration/CustomObject5;jsessionid=4e06330622aaf934c2068a7b02766c1c0a5eda9a04782b201b63fba91893bb80.e3iRbxiPbxj0bNaKaxaSa3n0;

    I Don t know why it does not work... my SOAP Message I send to the system looks like this:

    <? XML version = "1.0" encoding = "utf-8"? >
    < xmlns:soap: envelope soap = "http://schemas.xmlsoap.org/soap/envelope/" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance".
    xmlns:WSSE = "http://schemas.xmlsoap.org/ws/2002/xx/secext" container = "http://www.w3.org/2001/XMLSchema".
    SOAP: encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/" >
    < soap: Body >

    < CustomObject5QueryPage_Input xmlns = "urn: crmondemand/ws/ECB/customobject5/10/2004" >
    < ListOfCustomObject5 xmlns = "" urn: / crmondemand/CustomObject5/query/xml "pagesize ="100"recordcountneeded ="true"startrownum ="0">"
    < CustomObject5 searchspec = "[CustomObject5Id] AS ' *'" >
    < CustomObject5Id / >
    < / CustomObject5 >
    < / ListOfCustomObject5 >
    < / CustomObject5QueryPage_Input >

    < / soap: Body >
    < / envelope soap: >

    I programmed in Java. The Soap Action is "document / urn: crmondemand/ws/customobject5/10 / 2004:CustomObject5QueryPage.
    I hope someone can help me or identifies an error...

    If you want more information, just ask. I'm looking for this error several hours now without success...

    Thank you very much in advance!

    You could try changing your SOAPAction header to
    "document / urn: crmondemand/ws/ECB/customobject5/10 / 2004:CustomObject5QueryPage.

    Also, you should be able to recover the additional error information in your application. When I tried a request with the HTTP SOAPAction header that you use, I got the following error message:

    The remote server returned an error: bad request (400).

    The HTTP request did not contain a valid SOAP action header. The value of the header has been "document / urn: crmondemand/ws/customobject5/10 / 2004:CustomObject5QueryPage.

  • Query does not allow for good compilation of trigger

    I move some tables to test on my PC (ms access) to a server (oracle). Instead of typing these in hand in SQL * PLUS, I used CFQUERY to create my fields of data and tables. As Oracle requires a sequence and a trigger to reproduce the AutoNumber function, I also used CFQUERY to create triggers and sequences. The table and the sequence work very well. The trigger is my problem. When I use the code below and then try to insert a record into the table, I get an error: "MIKETEST_TRG is not valid and does not re-validation". If I go back and retype the creation of trigger through SQL * PLUS, everything works fine. I guess it has something to do with the compilation of the trigger and the slash at the end of my query below.

    Looking for suggestions how to fix or other means to recreate my access on my server oracle tables. Thanks in advance.

    < cfquery name = "crΘer" datasource = "datadrill_custom" >
    create or replace trigger miketest_trg
    Before Insert on miketest
    for each line
    Start
    Select miketest_seq.nextval in: double new.project_id;
    end;
    /
    < / cfquery >

    I've seen this before when you try to create triggers or still run anonymous PL/SQL blocks. The bad news is that it inserts the characters corrupt after each line. The good news is that you can get this by placing your set create statement "inline", i.e. all on one line, without line breaks. I just tested this with MX 7 and Oracle 9i and it worked. (Oh and leave the rear / as for SQL more.)

    Phil

  • Query does not get scanned with Explain plan index

    Hello
    I have a table with Index XXQP_SAMPLE_N1 in PROCESS_FLAG column. When I run the query below and see the plan to explain it, this table is to get access full table (with red color in Toad). It's not scan with the index. I also analyzed the table with command below. can anyone tell why he does not get scanned with index?

    exec DBMS_STATS.gather_table_stats ('XXQP', 'XXQP_SAMPLE', estimate_percent = > 30, cascade = > true);

    SELECT
    *
    Of
    XXQP_SAMPLE
    WHERE
    process_flag = 1;

    Thank you

    the number of records in the table to satisfy the condition process_flag = 1

    I wrote a little note on this topic. Reade case 1. It may be of your interest.

    http://karthickarp.blogspot.com/2008/12/it-is-often-asked-why-SQL-is-going-for.html

    Published by: Karthick_Arp on April 15, 2009 01:41

  • I've rolled back to firefox v3.6.19 v5 does not support "no script", "download status bar" or "forecastfox", or at least, I was unable to make them work. V5 is no good IMO.

    For the second time in as many months, I had to go back to version 3.6.19 as the new firefox (versions 4 or 5) could not use "no script", 'forecastfox' or 'download status bar '. I hope that mozilla will continue to support the v3.6.19 until my issues have been resolved. Also the after one or two clicks on one of the above extensions on the add-on bar/page v5 caused to hang.

    Create a new profile as a test to see if your profile is the source of the problems.

    See basic troubleshooting: make a new profile:

    If this new profile works then you can transfer files from the old profile to the new profile (be careful not to copy corrupted files)

    See:

Maybe you are looking for

  • Is there a way to track the use of Apple's music?

    I have the family plan and I would like to know how we as a family of broadcast music, primarily to determine whether to continue.

  • USB 2.0 should work on the Satellite 2410-303?

    Recently, I have re-installed XP on my Satellite and think I have all the latest drivers installed now - including drivers from the chipset of this site. When I plug a USB device, I get a message saying that this device can run faster, so her acting

  • How to remove Bing in Safari

    Looks like I've been infected by malicious software. Bing took my search engine and my Safari preferences does not open. How to I get rid of him?

  • Satellite A210 - 17L - SD reader is not working properly

    Hello My Equiuim A210 - 17l bought last January has a SD reader built in but when I insert my 4 GB SD card is not always recognize it is present or auto-launch. If it does not recognize the card he made "autoplay" but the picture have lines through t

  • X100e stops too hot,

    Last month and 4 times my X100e (AMD Athlon Neo MV-40, 3 GB of RAM) got too hot, to the point where he stopped himself. I did not notice that it was an emergency stop, temp of related, but I guess because the bottom of the unit has been extremely hot