Webutil usage on Windows and Unix clients - Host and Temp dir issues

Hello,
I am in the process of writing a Forms application which makes use of WebUtil to handle the uploading and downloading of files, as well as launching the files on the client PCs. The code below is my current 'Launch' program which works great in a Microsoft Windows environment. It gets the TEMP directory location, builds a file name, downloads the file to the TEMP directory and uses the Host command to launch the file.
PROCEDURE Launch_DB IS
l_directory varchar2(200) := client_win_api_environment.get_temp_directory(true);
l_success boolean;
BEGIN
:file_block.full_file_name := l_directory || '\' || :file_block.file_name;
l_success := webutil_file_transfer.DB_To_Client_with_progress
(clientFile => :file_block.full_file_name
,tableName => 'FILES
,columnName => 'FILE_DATA'
,whereClause => 'ID = ' || :file_block.id
,progressTitle => 'Download from Database in progress'
,progressSubTitle=> 'Please wait'
if l_success then
WEBUTIL_HOST.NONBLOCKING('CMD /C "' || :file_block.full_file_name || '"');
else
exception
     when others then
     message('File download failed: '||sqlerrm);
END;
My problem is that I've just discovered that there's a new group of users that will want access to these forms, and they're using non-windows machines - mostly Solaris and Linux. As such, I have these problems:
- " client_win_api_environment.get_temp_directory " is a Microsoft Windows specific function. Is there any way to determine a temporary storage area on a Unix machine?
- " WEBUTIL_HOST.NONBLOCKING('CMD /C "' || :file_block.full_file_name || '"'); " - CMD is Microsoft Windows specific function. What should I do to launch a file from Unix? (Sorry, my Unix skills are pretty minimal).
- I'm guessing that I'll need to determine the operating system so that I can use different methods to determine the TEMP dir, and to execute the HOST command. Assuming that Microsoft Windows and Unix variants are the only OS's that I need to provide access to, what is the best way to determine the client environment ( eg. IF UPPER(WebUtil_ClientInfo.Get_Operating_System) like '%WINDOWS%' THEN ... ELSE ... END IF; ) . I only have access to Windows XP for testing so I don't know what values "WebUtil_ClientInfo.Get_Operating_System" will return for any other OS.
Thanks in advance for any assistance.
Regards,
Michael.

Hi,
as far as launching the file goes, if teh program that runs the file exist on teh local computer, you can use teh host command in webutil to access teh program and file. CMD is what you use to open teh command line on windows, but the host command is supposed to work on the UNIX client as well.
For the temp directory, you have two options
The short term option: Pass the temporary directory name as a user variable to Forms when starting the application. This can be user specific if adding this information to the URL using teh otherparams parameter
The longterm option: Log a TAR with Oracle customer support to add a function to teh getClientInfo function that retruns the temporary directory for the authenticated user.
Frank

Similar Messages

  • Windows Server 2012 R2 Session Host Server Temp Profile issue.

    HI,
    I successfully Deployed Windows server 2012 r2 Terminal services with High Availability.
    After Rebooting Session Host Server i am facing Temp Profile issue. After i Deleted registry and rebooting server and tried to login again but same popup message you have login with temp profile.
    Any suggestions or any hints would be GREATLY appreciated
    /HR

    how did you delete the profile?
    also are you using UPD disks?
    What errors are shown in the event log if any?
    Regards,
    Denis Cooper
    MCITP EA - MCT
    Help keep the forums tidy, if this has helped please mark it as an answer
    My Blog
    LinkedIn:

  • Smartform Main window and Footer Overlap Issue

    Hi,
    I have a problem in printing my invoice smartform.
    I have to print the footer at the bottom of the main window. If the line items flow to the next page the footer should be printed only on the last page.
    I have overlapped the main window and footer windows in first and next page so that the footer window space in the main window is not left empty when there are more than one pages
    The problem is sometimes the main window is overlapping into the footer window space.
    Can someone suggest a solution for this.
    Thanks,
    Viswas

    Hi,
    Solution: The issue faced after overlapping the main window with footer window can be achieved by creating a folder within the main window and using the events to check whether there is enough space to print the footer.
    Following are the steps.
    Step 1:  Create a Secondary window say “Footer” which would be the footer window. Overlap the main window on the footer window as shown below.   
    The footer window will be behind the main window
    Step 2:  Create a folder within the main window say “Check_Footer”.
    Go to Tab “Events”, select the checkbox “Footer with Height” and give the required height of the footer. Select the checkbox “at End of Table”. Specify the “Minimum height” as required.
    Now, go to “Conditions” tab and select the checkbox “Only before end of main window”.   
    This is basically done to check whether there is enough space to print the footer on that page. The Footer window would then print the output.
    Step 3: Go to the created “Footer” window .Under the Conditions tab, select the checkbox “Only after end of main window”. Create a  text/tamplate/window whatever you want to display at bottom or footer data.
    Step 4: Save & Activate the Smartform and check the output.
    regards
    Rohit

  • Sql to find the complete database usage including redo and temp

    can i get a sql or script through which i can find the complete usage statistics of the complete database which includes temp and redo log space.

    can i get a sql or script through which i can find
    the complete usage statistics of the complete
    database which includes temp and redo log space.Define 'usage statistics'. Sounds like you mean disk space usage. There are several DBA_* views such as DBA_DATA_FILES, DBA_TEMP_FILES, etc. See the Reference Manual at http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/toc.htm. I leave the rest as an exercise for the student.

  • Oracle iLearning 5.0 on Windows and email notifications issue

    Hi!
    We are upgrading from iLearning 4.3 to iLearning 5.0 on Windows 2000 server and I have a question related to that.
    iLearning 5.0 is certified for Windows.
    The accompanying release.txt states that:
    --'Email', 'Email and Web' notifications options for Learner Rating and Authorized Enrollment/Unenrollment are not available on Windows platforms. Only web-based notifications should be used.
    Through a Technical Assistance request (TAR Number 4439000.992 ) I've found that this problem is due to the use of Workflow 2.6.2 stand-alone which requires sendmail, which is not available on Windows.
    This worries me because I want the system to be able to:
    * notify admin when authorization is needed for enrollment
    * notify course participants about changes or a cancelled course.
    * Certification reminder and expiration
    * Assessment submission
    * Notification to all learners currently enrolled in an offering
    The suggested workaround from Metalink is to use a Unix/linux server.
    Metalink suggestion:
    "you can set up a notification mailer on UNIX to work with stand-alone Workflow
    hosted on Windows. The following MetaLink article is a step-by-step guide on how
    to do this: Note:254973.1 How To Configure UNIX Sendmail To Work With Oracle Workflow Running On Windows
    This would be useful if UNIX was an option for me. It is not.
    I have some questions:
    1)Can I use WorkFlow 2.6.3.5 on windows with iLearning 5.0?
    I know Workflow 2.6.3.5 is working with MS Exchange.
    2)Can I use sendmail in some form or shape?
    IIS 5.0 (or 4.0) has a mail gateway that can be utilized by a sendmail program.
    Sendmail software for windows:
    http://www.glob.com.au/sendmail/
    http://www.indigostar.com/sendmail.htm
    http://www.ntsendmail.com/
    http://www.windowsitpro.com/Windows/Article/ArticleID/5289/5289.html
    Has anyone tried any of theese?
    I'd like to make a suggestion to my IT department on how to solve this issue.
    Thanx for any help in advance :-)
    Kristian Amlie, Bergen Norway

    There are a couple of patches available that allow a customer to upgrade their Oracle iLearning database to 10g and with that, upgrade Oracle Workflow to version 2.6.3 which supports email notifications through workflow on windows.
    Patch #s are 4321769 and 4485520
    Thanks!
    Scott

  • Since yesterday morning Firefox can not load Facebook. Every other browser works fine. Tried many computers, both Windows and Macs, same issue. Help!

    Facebook loads fine on multiple PCs and Macs in any number of browsers but NOT with Firefox on any of them. Started Friday AM. It tries to load but takes FOREVER and never gets "up". Frustrating since FF is my browser of choice despite the fact it has recently become the slowest of all the browsers I've tried. Be nothing like THIS slow. Other sites seem to be unaffected, just Facebook.

    What you describe look like a problem of infection, for me.
    I have W7 and FF34 as you, and FF is faster than Chromium.
    So, except a problem of corruption of the code of your Firefox (and maybe problems generated by some addons or plugins), I' rather believe that there is malware(s) on your computer.
    For FB, it could be the adware pushow**.dll, like pushow35.dll, in c:\windows\system32
    What security programs do you use on your computer ?
    If you want, you could also try to start Firefox in "safe mode", to see if there is a difference of speed and on FB.

  • Mail Viewer Window and Email Opening Issues

    About a week ago I began having some significant problems using Mail on 10.5.8 that I have never had before. I opened Mail, only to find that while it opened on my menu bar and I had the little circle indicating it was open in my dock, no Viewer Window opened. Also, I couldn't quit the app without Force Quitting through the Apple menu in the menu bar. I could right click on the icon in the dock and open a Compose Email or a New Note window, however it would not allow me to send said composed email. Instead, Mail would hang and I would have to force quit as "Application not Responding". The beach ball would also be evident and a Force Quit required.
    A buddy recommended trying to open a Viewer Window through the File folder in the menu. I did that, a viewer window DID open and mail synced itself up to allow my inbox to show all recent emails I had received and read. Unfortunately, if I clicked on any email in my inbox, it would not load the email in the preview pane or open the email with a double click. Instead I would get a message saying "Loading" and the beach ball reappeared. Force Quit required.
    I found some solution somewhere which suggested rebuilding the database by moving the Envelope Index to my desktop from Home/Library/Mail to allow it to rebuild. I did this and it rebuilt a new Envelope Index, but the same problems exist. Frankly, I only have about 100-125 emails in my system so it is not exactly an overburdened mail system. I also do not have any mail haxies which would be causing this. Any thoughts or solutions? I would like to be able to check mail from somewhere other than the Mobile Me web browser app. Thanks.

    Not trying to be "That Guy" but I am bumping in the hopes that someone has a solution to this annoying and vexing issue. Thanks.

  • Windows 7 KMS client activation error

    hi,
    Windows 7 KMS client activation error
    Any known issue?
    Thanks

    This problem occurs if the KMS server does not find a valid Windows marker in the ACPI_SLIC table in the computer's BIOS program. This problem occurs for one of the following reasons.
    Cause 1
    You purchased a computer that has a qualifying Windows operating system installed. However, the Windows marker in the ACPI_SLIC table is corrupted.
    Cause 2
    You purchased a computer that does not have a qualifying Windows operating system installed. In this case, the Windows marker is not present in the ACPI_SLIC table.

  • ACS and unix clients

    Does Cisco have any client application (pam module) for unix clients (solaris) to work with Cisco ACS ?
    I would like to integrate unix users in the ACS (without using any ldap server). I tested with a pam_radius module and it works the authentication and authorization phase. But I can't get the ACS to send same attributes that are essential to a user session, like user id, home directory and group id.
    Same time ago I remember to saw, in a newsgroup, a solution for proftpd where authentication were made by radius or tacacs and the attributes necessary to it were provided by ACS (userid, home directory, etc). Does anyone know anything about that? Probably I will need a client module for unix and specific VSA on ACS…

    Hi,
    as far as launching the file goes, if teh program that runs the file exist on teh local computer, you can use teh host command in webutil to access teh program and file. CMD is what you use to open teh command line on windows, but the host command is supposed to work on the UNIX client as well.
    For the temp directory, you have two options
    The short term option: Pass the temporary directory name as a user variable to Forms when starting the application. This can be user specific if adding this information to the URL using teh otherparams parameter
    The longterm option: Log a TAR with Oracle customer support to add a function to teh getClientInfo function that retruns the temporary directory for the authenticated user.
    Frank

  • Difference in performance of SBA between Windows and Unix

    Hi,
    I am using a  MSF routine which uses SBA to recursively search a sysbld suprerblock and its children to find a specific type block (in this case a ucb). It works fine on both Windows and Solaris Xmath. However, for very large models, there is a huge performance difference. I ran the algorithm on a model containing around 1000 superblock and 10000 blocks. Under Solaris (7.1.5) it takes around 30 seconds while under Windows XP (7.1.6) it takes more than 8 minutes.
    Any thoughts on the reason behind this difference.
    Thanks
    Farshid
    P.S. The MSF file is attached
    Attachments:
    finducb.zip ‏1 KB

    I'm aware I may get some flack for this statement.^^^Some. <grin>
    I'll give you the counter-argument. Those Unix shops with incredibly stable environments? Have you done a count of actually used applications? The ones that mimic the business' current needs? The ones that reflect the business', uh, business? Perhaps it's just the clients I interact with, but those often have a mixture of "dead" apps in with the live ones. I rarely see that with Windows and yes, the app count is sometimes crazy high on the Unix side -- certainly beyond what EAS can comfortably navigate (I was on a 9.2 environment once that had 200+ apps -- Shared Services was essentially broken at that site, but so was 9.2 in general.)
    Anyway, I've observed that IT tends not to do a terribly good job of producing flexible analytical applications. They are very good at stability, sustainability, security, and all sorts of other things Essbase (and other, especially transactional) environments must have. Until they become fossilized in their SOPs, their policies, and their requirements. At which point a different transformational technology that the business can control pops up -- heard of TM/1 lately? I am super curious (for all kinds of obvious reasons) to see where my beloved Essbase ends up in a few years.
    I'm not coming down on either side, just saying that I've seen this play out multiple times since the mid-1980s. While both sides have their merits, at the end of the day, if a super well maintained environment is just a monument to IT's ego, it's worthless. And yes, I have seen Windows environments that are just that.
    Regards,
    Cameron Lackpour
    Edited by: CL on Jul 12, 2011 9:54 AM
    Smiley faces no longer work. Why oh why oh why?

  • Display image in forms & reports developed on windows and deployed on Unix

    Hi,
    We are upgrading from Forms and reports 6i to forms10g.
    We need to insert image in forms and reports. Recompile and deploy on unix server.
    So can anyone let me know the exact steps to create jar file containing images, where to place the jar file.
    Corresponding folder, file and configuration changes required on windows and unix.
    Av.

    Hi Frank,
    thanks for the link it helped me in understanding how images work for forms.
    But my real concern is how this will work in reports?
    As we dont have any reportsweb.cfg nor any java path for reports?
    Can you help me in understanding how to embed image in reports that will be displayed even after porting the report on unix oas.
    Regards,
    Av.

  • I want to install a third operating system on my macbook pro. I already have windows and i want install unix or linux in there. Is it possible??

    I want to install a third operating system on my macbook pro. I already have windows and i want install unix or linux in there. Is it possible??

    Yes, it's possible, but if your Windows system is on a Boot Camp partition then you have to first remove it. Then create however many partitions you want for the operating systems. You have OS X on one, so you need two more - one for Windows and one for Linux. You then install Windows and Linux separately to their respective partitions. Download rEFIt
    Use it as the replacement bootloader so you can properly boot from each OS properly.

  • RDWeb Server 2008 R2 and WIndows 8.1 Clients

    Hi
    I have an issue with RDWeb and Windows 8.1 clients. Works fine with Windows 7 and Windows 8 clients, yet 8.1 is a no go. I can log on to RDWeb, display the available apps for the logged on user, but when trying to connect to an app it never loads. If I click
    'Show Details' on the app, I can see the desktop load but then that is it. Screenshot below is when I try to launch Sage. Sits at the blue desktop screen.
    I have tried compatibility mode in IE to no avail. I found a post on here where a user was having similar issues. I tried her fix, but again, nothing.

    Hi,
    Thanks for your comment.
    I am afraid to say but still there is no any Hotfix for this, but you ca try December 2014 updates might it get it work for you.
    December 2014 update rollup for Windows RT 8.1, Windows 8.1, and Windows Server 2012 R2 
    http://support.microsoft.com/kb/3013769/en-us
    Thanks for oyur understanding and Support!
    Regards.
    Dharmesh Solanki
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Windows 8 MAIL client renames G-Mail PDF attachments filename and extension to PDF????

    Hi PPL,
    I have the Windows 8 MAIL client configured to get G-Mail based on an imap configuration.
    When opening gmail.com in Internet Explorer and looking at a specific email I do see 2 attachments for example with name: "Mail Attachement1.PDF" &  "Mail Attachement2.PDF" In the browser I can open the attachment as pdf files.
    When opening the mail in the Windows 8 MAIL client the attachment are renamed to:
    ATT000442.ext & ATT000445.ext
    I can't find what is causing this, please help!!
    Regards,
    Arjan

    same issue....
    Do a Network capture of the HTTP message flow.  E.g. use Fiddler4 in order to get its Enable Local Loopback utility
    http://blogs.msdn.com/b/fiddler/archive/2011/12/10/fiddler-windows-8-apps-enable-loopback-network-isolation-exemption.aspx
    Most likely you will find that a Content-type header is what is causing your symptom.  Then you could ask the administrator of the server to change that to make sure that it looks like .pdf and not what you are getting.  Note that Fiddler would
    allow you to create your own override to test whatever change you would like to be implemented.
    Robert Aldwinckle

  • String.getBytes (java) o/p different in Windows and Unix

    Hi,
    I was trying out the following code, which gives me a byte array from a
    String object.
    byte[] bytArr = null;
    bytArr = <String object>.getBytes("UnicodeBigUnmarked");
    System.out.println(bytArr.toString());
    The output is different in Windows and in Unix. The assumed that the reason could be because Intel architecture is based on little_endian so the difference in output. I changed the code to the following
    bytArr = <String object>.getBytes("ISO8859_1");
    and then ran the class file by using "java -Dfile.encoding=ISO8859_1" so that the toString can also take the character encoding of ISO8859_1 rather than using the platform dependent one. Still the result is different in Windows and Unix.
    What could be the reason for this? How can I correct this ? Any help in this regard is welcome.
    cheers
    kk

    Hi Sabre150,
    Thanks for the suggestion, it worked. Both the o/p shows the same if I use System.out.println(Arrays.toString(bytArr));
    I am assigning full points to you. Thanks a ton for the help.
    To end with I have one more question, the method Arrays.toString is introduced from jdk1.5, so if I want to use jdk 1.4 what should I use instead of Arrays.toString ?
    It would be great if I can get this answer.
    cheers
    kk

Maybe you are looking for

  • SRF compile time taking 5 hours!!!

    Hello, I am not sure if this is the right place to post this question, but I will start here. I am using a Siebel 6 install on a Win XP desktop. In the past, the srf times would take around 2 hours, now, they go upwards to 5-6 hours, which is causing

  • Advanced LabVIEW tutorials

    Hello, I just have a fairly simple question. I'm looking for some more advanced LabVIEW tutorials. All the tutorials I can find talk about basic structures, indexed addressing, math functions, and all of the general basics of LabVIEW, but I know that

  • Attach a selection screen to a Tcode before accessing the table Contents

    Hi All,      I have a requirement where when we access table from se16 we get a default selection screen...So the same selection screen should b displayed when that table is accessed directly with a transaction code attached to it..i mean the path is

  • Userexit EXIT_SAPLV01Z_001 for COR1 (batch numbering)

    Hi guys, I have a strange problem. Our customer is upgrading from 4.6B to 6.0 (701), and their user exit EXIT_SAPLV01Z_001 (used for automatic batch numbering in transaction COR1) stopped working. I just don't seem to pass through this code while deb

  • New Macbook And I Love IT BUT ONE QUESTION

    Hello everyone. I am a new mac user i just got my new macbook on the release day of leopard and i love it so far. I just have one question though. iv been a windows user for many years so i dont know. How DO I COPY PAIST THINGS ???