Pipes, host function

Hello,
I upgraded a app from 4.5 to 10g, where oracle pipes was used to execute OS operation, now i've to replace it with host function, does anyone knows where i can gather some documentation, information with this topics.
Please help, it's very urgent.
thanks
JA

See
http://www.oracle.com/technology/sample_code/products/forms/index.html
and
http://www.oracle.com/technology/products/forms/htdocs/webutil/webutil.htm
Regards

Similar Messages

  • Replacing Oracle pipes with host function

    Hello,
    I upgraded a app from 4.5 to 10g, where oracle pipes was used to execute OS operation, now i've to replace it with host function, does anyone knows where i can gather some documentation, information with this topics.
    Thanks
    JA

    Sorry. I didn't see that my post to him was submitted...
    Just in case here's the result from his site:
    :P3_OUTPUT_STRING := regexp_replace(
    :P3_INPUT_STRING
    ,’:([a-zA-Z0-9_]*)’
    ,’v(”\1”)’);
    Martin

  • TC 2TB support the host function  with a  Sharkoon SATA QuickPort Duo

    I would like to buy a Sharkoon SATA QuickPort Duo:
    and I would like to connect it to my late 2009 TC 2TB.
    *Can I connect this thing to my TC and access both disks?*
    I contacted sharkoon for more info on the SATA QuickPort Duo:
    Hello,
    +we do not have any experience in Apple hardware. But when your device does+
    +support host function it should normally recognize both HDD. The used chipset+
    +in Quickport is JMicron which is normally supported by Apple comuters.+
    +Kind regards+
    +Andreas Klein+
    +SHARKOON Technologies GmbH+
    *The specs:*
    After the resounding success of the SATA QuickPort, comes the new SATA QuickPort PRO. Responding to the requests and needs of many customers, this update increases the functionality of an already excellent device.
    In addition to its ability to connect any SATA HDD (2.5" and 3.5") without a time-consuming installation, the SATA QuickPort PRO also offers 2 USB ports and a card reader that supports the formats SD, SDHC, and MMC/MS.
    The SATA QuickPort PRO connects to PCs using either the USB2.0 or significantly faster eSATA interface.
    Rely on only the most intelligent solution, our SATA QuickPort PRO ...
    Features:
    • Enables the direct connection of a SATA HDD to your PC
    • Suitable for 2.5" and 3.5" SATA HDDs
    • USB front hub (2 connectors)
    • Card reader (SD, SDHC, MMC/MS)
    • External interfaces: USB2.0 and eSATA
    • Premium craftsmanship
    • On/off button
    • LEDs for power and HDD access
    • No drivers needed for Windows ME/2000/XP/Vista, Mac OS X and higher
    Package content:
    • SATA QuickPort PRO
    • Power adaptor
    • USB cable
    • eSATA cable
    • Short manual
    http://www.guardiansystems.nl/image/verkoop/sataquickport_duo1.jpg
    http://www.sharkoon.com/html/produkte/externegehaeuse/sata_quickport_pro/indexen.html?id=11

    Yes. I use the MacSales Elite Classic and connect to the USB port. Then I had to go into the Airport Utility and set the Time Capsule to "share" this connected disk.
    Message was edited by: satcomer

  • Can't run host function in procedure and reports

    Hello
    i'm unable to use the host function in reports and procedure.
    host('ar60runb userid=apps/apps report=/vision/d01/oracle/visappl/fnd/11.5.0/reports/US/UBLPS1.rdf batch=yes mode=bitmap destype=file desname=/vision/d01/oracle/visappl/fnd/11.5.0/reports/US/UBLPS1.pdf desformat=pdf paraform=yes P_EMP_NO='||i.EMPLOYEE_NUMBER||' PAYDT='||i.PAY_RUN_DATE);
    Kindly help ASAP!!!!
    Regards
    Fahad

    "I noticed that when I publish apk from Flash I don't  have option to select path to android SDK below 2 checkboxes ( install app on device and run app on device after publishing)"
    Are you saying the 2 checkbox's are missing? If so ,(or even if not), perhaps you don't have the latest extension installed in flash?
    http://labs.adobe.com/technologies/flashpro_extensionforair/
    I had an issue like you describe before. Everything was updated with my machine and phone, usb debugging , allow installation of non market apps... but i was not able to manually install my own apk's on my device.
    If i were to put the .apk on my server or just drag it to the phone via USB i could not install it. it was "untitled" or "unknown" i forget.
    The only way it would work was on export "install application on the connected android device".
    However If i took anyone else's .apk made from flash, i could install it from my server or via usb drag/drop.
    Even at one point someone on the forum posted an apk and the source .fla
    Installed that apk? = YES
    Export the same .fla myself with no changes = FAIL to install (unless launching directly from flash).
    I was using windows xp, I happen to be upgrading my cpu last month so i installed windows 7 and re-installed flash, and now it works fine. I never figured it out. I was somehow producing non-viable .apks . However it works now and I have done nothing different (besides going from xp to win7 and reinstalling flash).
    "other air apps (from other ppl) work both on phone and device."
    I'm guessing you only installed other air4android apps from the market?
    If you haven't tried yet, i could email you a .fla and .apk, see if you can install that from your ftp. Then re-export if yourself and see if it fails again?
    edit:spelling

  • Concurrent calling of Host function

    Hi all,
    I had using HOST() function in my form's library to sent label printing command to printer, it work ok when only 1 client is print label, but when there is concurrent client calling printing label function, one of the label not success to printed and no error return. I had trace my program and both client is calling HOST() to send the label to printer, but I had no idea why one of the label not successful to printed out. Please Help!
    Beside that, is that any log file can i refer to whether HOST() function return any internal error that didn't show on the screen?
    Thanks in advance.
    p/s: I'm using webForm and my OracleAS version is 9.0.4.3
    ek

    Hi,
    I'm calling 'c:\bin\rfprint.exe "\\172.21.9.123\GENERICT" c:\wm\setup\lbl\166_609026.lbl >> c:\wm\temp\label.log'. 1st parameter is a application to print label. 2nd parameter is printer name, 3rd parameter is label file and 4th parameter is log file.
    Thanks.

  • Error in pipe row function.

    Hi,
    I wrote the below function,if i select the functions,it returns below error
    create or replace
    FUNCTION FUN_CHR_SEP(P_FLAG IN VARCHAR2)
    RETURN COLS_VAL PIPELINED
    AS
    cursor C_CHR_SEP is
    select text from
    (SELECT SUBSTR(
    txt,
    INSTR(',' || txt,',',1,LEVEL),
    INSTR(txt || ',',',',1,LEVEL) - INSTR(',' || txt,',',1,LEVEL)
    ) TEXT
    from (select P_FLAG TXT from DUAL) T
    connect by level <= length(TXT)-length(replace(TXT,',')) + 1);
    BEGIN
    for REC in C_CHR_SEP LOOP
    PIPE ROW (CHR_COLS_VAL(REC.text));
    END LOOP;
    END;
    select * from table(cast(FUN_CHR_SEP('A,C,V,B') as COLS_VAL));
    Error:
    ORA-06503: PL/SQL: Function returned without value
    ORA-06512: at "SHIPLUS.FUN_CHR_SEP", line 18
    Note : CHR_COLS_VAL and COLS_VAL are Type.
    Regards,
    Fame

    This is the forum for SQL Developer (Not for general SQL/PLSQL questions), you should ask your question in the SQL and PL/SQL forum.
    Having said that, your function has no return statement.

  • Pipe lined function error

    Hi can someone tell me whats wrong in the below function code? Its compilation error
    table and Type structure are below for creating the same function.
    SQL> desc tt
    Name                                      Null?    Type
    NO                                                 NUMBER
    NAME                                               VARCHAR2(20)
    SQL> select * from tt;
            NO NAME
            30 WSS
            40 SYS
            10 WSS
            20 SYS
    create or replace type tt_typ as object
    (no number,
    name varchar2(20));
    create or replace type rec_tt_type as table of tt_typ;
    Type created.
    create or replace function fn1 return rec_tt_type  pipelined as
    table_tt  tt%rowtype;
    var_tt tt%rowtype;
    cursor c1 is select * from tt;
    begin
    open c1;
      loop
      fetch c1 into table_tt;
       execute immediate ' select no, name from tt where no = :1'  into var_tt using table_tt.no;
      pipe row(var_tt);
    end loop;
    return;
    end;
    sho err;
    Errors for FUNCTION FN1:
    LINE/COL ERROR
    23/3     PL/SQL: Statement ignored
    23/12    PLS-00382: expression is of wrong type
    SQL>

    SQL> create table tt
    as
       select 30 no, 'WSS' name from dual
       union all
       select 40 no, 'SYS' name from dual
       union all
       select 10 no, 'WSS' name from dual
       union all
       select 20 no, 'SYS' name from dual
    Table created.
    SQL> create or replace type tt_typ as object
       (no number, name varchar2 (20));
    Type created.
    SQL> create or replace type rec_tt_type as table of tt_typ;
    Type created.
    SQL> create or replace function fn1
       return rec_tt_type
       pipelined
    as
       cursor c1
       is
          select * from tt;
       table_tt   c1%rowtype;
       var_tt     c1%rowtype;
    begin
       open c1;
       loop
          fetch c1 into table_tt;
          exit when c1%notfound;
          execute immediate ' select no, name from tt where no = :1 '
             into var_tt
             using table_tt.no;
          pipe row (tt_typ (var_tt.no, var_tt.name));
       end loop;
       return;
    end fn1;
    Function created.
    SQL> select * from table (fn1)
            NO NAME               
            30 WSS                
            40 SYS                
            10 WSS                
            20 SYS                
    4 rows selected.

  • XML Function pipe delimiter function error

    Hi SQL gurus,
    Thank you for any assistance. I was given the below query to use for taking a column that contains values and delimited with "|". below is a sample of the data in that column, the error, and the function with the query:
    XML parsing: line 1, character 199, illegal name character
    Item - Shim Stock | Type - Sheet | Material - Polyester | Thickness (In.) - 0.0005" | Thickness (mm) - 0.013mm | Thickness Tolerance - +/-0.000025" | Size - 5 x 20" | Width Tolerance - +/-0.0625" | Length Tolerance - +/-0.0625" | Moisture Absorption - 0.08% | Compress To - 1.00% | Color - Silver | Tensile Strength (PSI) - 30,000 psi | Temp. Range (F) - -90 to 300 Degrees | Meets/Exceeds - LP-377 | Package Quantity - 5
    CREATE FUNCTION [dbo].[split](
    @delimited NVARCHAR(MAX),
    @delimiter NCHAR(1)
    ) RETURNS @t TABLE (id INT IDENTITY(1,1), val NVARCHAR(MAX))
    AS
    BEGIN
    DECLARE @xml XML
    SET @xml = N'<t>' + REPLACE(@delimited,@delimiter,'</t><t>') + '</t>'
    INSERT INTO @t(val)
    SELECT r.value('.','varchar(MAX)') as item
    FROM @xml.nodes('/t') as records(r)
    RETURN
    END
    SELECT
    ItemNo, 2ItemNo,NameItem , SV.val, sv.id
    from #TableWithData v
    cross apply dbo.split(v.ColumnwithValues,'|') sv
    Edwin Lopera

    To get you moving, here is another example of a splitter that works with the examples you supplier:http://andrewtuerk.wordpress.com/2012/08/10/cross-apply-yes-you-can-use-a-table-valued-function-without-a-cursor/

  • Webutil HOST function

    Hi, everyone.
    I am trying to write some client_host commands in Oracle Forms 10g. I finished all I need in my application, but there is one problem. I need raise some notepad files on client file system. But problem is I MUST raise file without raise command prompt window ( unfortunately, it is always raising) and when I closed my notepad file command prompt is moved.
    I try with next webutil stuff:
    - webutil_host.nonblocking('cmd /c notepad') - i preferred this routine, cause I need several command, but everytime cmd raise on the screen
    - client_host('cmd /c notepad',no_screen) - no_screen does not work correctly
    - webutil_host.blocking('cmd /c notepad') - i try this, it is not work, but i rather like to use nonblocking
    I also combine all of this with Terminate_Process(process in PROCESS_ID) and Release_Process(process in out PROCESS_ID) .
    Is anyone have some praxis with that.
    Best regards.

    sorry, sorry it works ;-)
    Forms has write the result of the DIR command to the server
    the right code is
    dir > c:\text.txt
    with the next step i have a Problem
    when i use the command PAUSE in the betchfile
    test.bat:
    echo on
    pause
    dir > c:\test.txt
    webutil_host.host('cmd /c c:\test.bat');
    The CMD-Box hangs on
    reg. Alfred

  • Host function plus sudo command not working

    Hi,
    For normal command such as ls, it works.
    But when I run the following
    v_host := '/usr/bin/sudo -u devuser /test/app/dev/scripts/test.sh
    host(v_host);
    it does not work.
    anyone has idea ? Thanks.
    Ivan

    I imagine sudo is probably attempting to prompt for a password. I think it depends on who you are logged in as and who you are trying to log in as (and whether you have logged in recently within the last few minutes).
    The host command won't support this kind of interaction. It needs to be a command that returns its results without requiring any further prompting.
    That would be my guess.

  • HOST function does not redirect de output (result)

    Hi,
    I am trying to use HOST to run the Findstr (or find) command, it executes the command but if I use '>' to send the result to a File it doesn´t create the file.
    Instead if I use 'Dir' command or if I run 'findstr' directly from the DOS prompt, it does create the result file..
    I.E: HOST('findstr /M /I c:\frm\*.fmb "pfreferencias_v2" > c:\res\res_mat.sql'),
    What is wrong??
    Iam using Win XP. Forms 6i.

    Curious. I tried your example and got the same result. Very curious. I tried several different things to make it work and all had the same result. The only way I was able to make the 'Redirect" work was to write a Windows batch file and execute the batch (.bat) file from the Host command.
    Sorry, I couldn't be more helpful.
    Craig...

  • Interactive report on view based on pipelined table function.

    Hi,
    I want to build an Interactive Report on a view.
    The view definition contains a select on a pipelined table function. I use context functionality to pass paramaters to the pipelined table function.
    A plain select * from #my_view# in SqlPlus results in 121 different rows.
    However, If I base my Interactive report on this view, I get 15 repeated rows (all the same).
    Is it possible to use pipelined table functionality on an Interactive report? I can't seem to get it working.
    If I use the following approach (http://rakeshjsr.blogspot.nl/2010/10/oracle-apex-interactive-report-based-on.html) I do get results, but I can't use this solution for a reason that's not relevant.

    Hello,
    Is it possible to use pipelined table functionality on an Interactive report? I can't seem to get it working. I have used it in one instance and it works fine. However I was passing the values to pipe-lined function directly.
    IR Query..
    SELECT * FROM TABLE(fn_pipeline(:P1_ITEM_NAME))Call pipe-lined function from IR query directly (instead of using view)
    Try sending values to Pipe-lined function directly. In-case if the problem is with setting and getting values from the context?
    Regards,
    Hari

  • MuseJAssert:Error calling selector function: Error:Invalid argument

    Some people are reporting this error on one page of a site I am building.  Those users are all using IE for a browser.
    The site is www.shermanoaksstreetfair.org and it comes up with the main stage schedule page. 
    I took out all questionable links, but I think it may have something to do with the slide show. 
    Please advise if you have come across this error.

    Usually this is caused by an incomplete upload. If you change something in Muse, and export, Muse may export html files, css files, javascript files, images, etc. If you use Muse's 'upload to FTP Host' function, Muse will upload just the changed files. If you use an external FTP client, you have to be sure to upload all the files exported by Muse, or you may see errors like this.

  • Smpatch analyze gives different result after disabling Sun Connection Host

    Hi all,
    after disabling the Sun Connection Hosted functionality due to the EOL announcement I get a smaller number of patches from 'smpatch analyze' for a brand new jumpstarted server (227 patches before vs. 106 patches after).
    Trying e.g. a individual analysis for 126651-01 (Synopsis: SunOS 5.10: tar patch) results in
    Error: One or more of the updates specified do not have entitlement permissions.
    BTW: I ran the analysis for patch 126651-01 before without any problem.
    The entitlement file
    /var/sadm/spool/cache/entitlement/https%3A%2F%2Fgetupdates1.sun.com%2F%2Fentitlement_client
    looks like
    ----START-ENTITLEMENT-TOKENS----
    Solaris10Security
    SolarisSecurityUpdates
    SolarisDataIntegrityUpdates
    SolarisHardwareUpdates
    SolarisUtilityUpdates
    Public
    -----END-ENTITLEMENT-TOKENS-----
    And we do have a service plan!
    Any ideas?
    Kind Regards
    Marco

    Hi Shen,
    thanks for your reply. I tried this procedure from your thread
    Try re-registering the patch server after running these commands:
    # cacaoadm stop
    # cacaoadm status
    # rm -r /var/sadm/spool/cache/*
    # /usr/lib/cc-ccr/bin/eraseCCRRepository
    # rm /var/scn/persistence/SCN*
    # cacaoadm start
    # /usr/sbin/sconadm register -a -r registrationprofile.properties
    But unfortunately the problem persists. The entitlement file looks the same as before. The registrationprofile.properties files looks like
    userName=<username>
    password=<pw>
    hostName=<hostname>
    subscriptionKey=<key>
    portalEnabled=false
    proxyHostName=
    proxyPort=
    proxyUserName=
    proxyPassword=
    We use a direct connection to sun's update server without a SunUC proxy. (I disabled the proxy, because I had some trouble with it in the past).
    'smpatch get' gives
    patchpro.backout.directory - ""
    patchpro.baseline.directory - /var/sadm/spool
    patchpro.download.directory - /var/sadm/spool
    patchpro.install.types - rebootafter:reconfigafter:standard
    patchpro.patch.source - https://getupdates1.sun.com/
    patchpro.patchset - current
    patchpro.proxy.host - ""
    patchpro.proxy.passwd **** ****
    patchpro.proxy.port - 8080
    patchpro.proxy.user - ""

  • Pipelined Function with execute immediate

    Hello Experts,
    I have created a Pipe lined function with execute immediate, due to below requirement;
    1) Columns in where clause is passed dynamically.
    2) I want to know the data stored into above dynamic columns.
    3) I want to use it in report, so I don't want to insert it into a table.
    I have created a TYPE, then through execute immediate i have got the query and result of that query will be stored in TYPE.
    But when calling the function i am getting
    ORA-00932: inconsistent datatypes: expected - got -
    Below is my function and type, let me know i am going wrong, and is my logic correct.
    CREATE OR REPLACE TYPE OBJ_FPD AS OBJECT
                      (LOW_PLAN_NO VARCHAR2 (40),
                       FPD VARCHAR2 (5),
                       SERIAL_NO NUMBER,
                       CEDIA_CODE VARCHAR2 (2),
                       DT DATE);
    CREATE OR REPLACE TYPE FPD_TBL_TYPE AS TABLE OF OBJ_FPD;
    CREATE OR REPLACE FUNCTION FUNC_GET_FPD_DATE (P_LOW_PLAN_NO    VARCHAR2,
                                                  P_CEDIA_CODE     VARCHAR2,
                                                  P_SERIAL_NO      NUMBER)
       RETURN FPD_TBL_TYPE
       PIPELINED
    AS
       CURSOR C1
       IS
              SELECT 'FPD' || LEVEL TBL_COL
                FROM DUAL
          CONNECT BY LEVEL <= 31;
       V_STR        VARCHAR2 (5000);
       V_TBL_TYPE   FPD_TBL_TYPE;
    BEGIN
       FOR X IN C1
       LOOP
          V_STR :=
                'SELECT A.low_PLAN_NO,
               A.FPD,
               A.SERIAL_NO,
               A.cedia_code,
               TO_DATE (
                     SUBSTR (FPD, 4, 5)
                  || ''/''
                  || TO_CHAR (C.low_PLAN_PERIOD_FROM, ''MM'')
                  || ''/''
                  || TO_CHAR (C.low_PLAN_PERIOD_FROM, ''RRRR''),
                  ''DD/MM/RRRR'')
                  DT FROM ( SELECT low_PLAN_NO, '
             || ''''
             || X.TBL_COL
             || ''''
             || ' FPD, '
             || X.TBL_COL
             || ' SPTS, SERIAL_NO, cedia_code FROM M_low_PLAN_DETAILS WHERE NVL('
             || X.TBL_COL
             || ',0) > 0 AND SERIAL_NO = '
             || P_SERIAL_NO
             || ' AND cedia_code = '
             || ''''
             || P_CEDIA_CODE
             || ''''
             || ' AND low_PLAN_NO = '
             || ''''
             || P_LOW_PLAN_NO
             || ''''
             || ') A,
               M_low_PLAN_DETAILS B,
               M_low_PLAN_MSTR C
         WHERE     A.low_PLAN_NO = B.low_PLAN_NO
               AND A.cedia_code = B.cedia_code
               AND A.SERIAL_NO = B.SERIAL_NO
               AND B.low_PLAN_NO = C.low_PLAN_NO
               AND B.CLIENT_CODE = C.CLIENT_CODE
               AND B.VARIANT_CODE = C.VARIANT_CODE
    CONNECT BY LEVEL <= SPTS';
          EXECUTE IMMEDIATE V_STR INTO V_TBL_TYPE;
          FOR I IN 1 .. V_TBL_TYPE.COUNT
          LOOP
             PIPE ROW (OBJ_FPD (V_TBL_TYPE (I).LOW_PLAN_NO,
                                V_TBL_TYPE (I).FPD,
                                V_TBL_TYPE (I).SERIAL_NO,
                                V_TBL_TYPE (I).CEDIA_CODE,
                                V_TBL_TYPE (I).DT));
          END LOOP;
       END LOOP;
       RETURN;
    EXCEPTION
       WHEN OTHERS
       THEN
          RAISE_APPLICATION_ERROR (-20000, SQLCODE || ' ' || SQLERRM);
          RAISE;
    END;Waiting for your views.
    Regards,

    Ora Ash wrote:
    Hello Experts,
    I have created a Pipe lined function with execute immediate, due to below requirement;
    1) Columns in where clause is passed dynamically.No, that's something you've introduced, and is due to poor database design. You appear to have columns on your table called FPD1, FPD2 ... FPD31. The columns do not need to be 'passed dynamically'
    2) I want to know the data stored into above dynamic columns.And you can know the data without it being dynamic.
    3) I want to use it in report, so I don't want to insert it into a table.That's fine, though there's no reason to use a pipelined function.
    You also have an pointless exception handler, which masks any real errors.
    I'm not quite sure what the point of your "connect by" is in your query as we don't have your tables or data or know for sure what the expected output is.
    However, in terms of handling the 'dynamic' part that you've introduced, then you would be looking at doing something along the following lines, using a static query that requires no poor dynamic code, and no pipelined function...
    with x as (select level as dy from dual connect by level <= 31)
    select a.low_plan_no
          ,a.fpd
          ,a.serial_no
          ,a.cedia_code
          ,trunc(c.low_plan_period_from)+a.dy-1 as dt
    from  (select low_plan_no
                 ,dy
                 ,'FPD'||dy as fpd
                 ,spts
                 ,serial_no
                 ,cedia_code
           from (
                 select low_plan_no
                       ,x.dy
                       ,case x.dy when 1 then fpd1
                                  when 2 then fpd2
                                  when 3 then fpd3
                                  when 4 then fpd4
                                  when 5 then fpd5
                                  when 6 then fpd6
                                  when 7 then fpd7
                                  when 8 then fpd8
                                  when 9 then fpd9
                                  when 10 then fpd10
                                  when 11 then fpd11
                                  when 12 then fpd12
                                  when 13 then fpd13
                                  when 14 then fpd14
                                  when 15 then fpd15
                                  when 16 then fpd16
                                  when 17 then fpd17
                                  when 18 then fpd18
                                  when 19 then fpd19
                                  when 20 then fpd20
                                  when 21 then fpd21
                                  when 22 then fpd22
                                  when 23 then fpd23
                                  when 24 then fpd24
                                  when 25 then fpd25
                                  when 26 then fpd26
                                  when 27 then fpd27
                                  when 28 then fpd28
                                  when 29 then fpd29
                                  when 30 then fpd30
                                  when 31 then fpd31
                        else null
                        end as spts
                       ,serial_no
                       ,cedia_code
                 from   x cross join m_low_plan_details
                 where  serial_no = p_serial_no
                 and    cedia_code = p_cedia_code
                 and    low_plan_no = p_low_plan_no
           where  nvl(spts,0) > 0
          ) A
          join m_low_plan_details B on (    A.low_plan_no = B.low_plan_no
                                        and A.cedia_code = B.cedia_code
                                        and A.serial_no = B.serial_no
          join m_low_plan_mstr C on (    B.low_plan_no = C.low_plan_no
                                     and B.client_code = C.client_code
                                     and B.variant_code = C.variant_code
    connect by level <= spts;... so just remind us again why you think it needs to be dynamic?

Maybe you are looking for