Problem with sqlplus when called from forms

Dear friends,
I have the following problem, we are using forms 10g and database 10g,we are using client_host command to call sqlplus from form and the query which is being run by sqlplus is supposed to take an input from the client and return results. there is no problem in that. but the problem is the sqlplus window opens only in minimized mode and the users wants it open in maximized mode by default.
this is the code i am using to do this
pat:='sqlplusw -s'||:global.text||'@i:\sqls\codewise.sql'
client_host(pat);
please help me
prawin

I'm not sure allowing end users access to a sqlplus session is such a good idea. A savvy user having a bad hair day and becoming disgruntled could wreak havoc on your database if he/she has the right permissions. Besides, I've heard rumors that Forms is really good at accepting user input, querying the database, and displaying the results :P

Similar Messages

  • Strange problem with SQLPLUS when client and server on the same box

    Hi,
    I have the problem with SQLPLUS when clinet and server on the same machine.
    With client and server on the same machine i am running the command
    sqlplus -l username/password@connect_identifier as SYSDBA.
    With this command, even if you pass in wrong username or wrong password or both as wrong you can able to connect to database and execute queries.
    Once Connect_identifier is correct and trying to log in as SYSDBA ,sqlplus will log in to DB with any username and password.
    How to get rid of this behaviour. Is there any way to do this.
    I am running this command by creating a process in C#
    Edited by: user11000236 on Jun 16, 2009 10:31 AM

    user11000236 wrote:
    Thanks for the info.
    How does Oracle/SQLPLUS allows any username or password to log in to DB with SYSDBA Privillages? What is the concept behind this.?
    This is explainted in the above mentioned link:
    Operating system authentication takes precedence over password file authentication. If you meet the requirements for operating system authentication, then even if you use a password file, you will be authenticated by operating system authentication.

  • Is it possible to call diff  report queries when called from form

    hello all
    I want to know if it is possible to call different report queries when called from oracle 9i form .
    i tried to use he
    SET_REPORT_OBJECT_PROPERTY(REPORT_QUERY = 'q_diff' )
    option and actualy called the report name
    but it dint seem to work !!!
    also is it possible to chng the title of the browser at runtime

    Sandeep,
    this property is used with passing Record Groups as data parameters from Forms.
    Passing the query name indicates that the values contained in the record group substitutes the result of the named query. This may work in client/server Reports, but it definitively doesn't work on teh Web because you can't pass a Record Group as a data parameter in this environment.
    Te problem with changing a Reports query is that you must meet the same number of columns and column types as they exist in the Report. I didn't spend much time with XML based runtime customization in Reports. I think that you can change the Reports query through this feature. In Forms you would create the XML file using text_io and the merge it with an existing Reports. I never did this before. So it could be that all I am saying does not work in the end. Before following this idea, you may better ask in teh Reports forum on OTN if it is possible to use the runtime customization feature to modify the Reports query.
    Fran

  • WDA app not launched with SSO when called from portal

    Hi,
    we have configured our systems so that our portal (NW Portal 7.0) is issuing logon tickets and ERP6.0 is receiving them in the backend for single sign-on.
    When launching a SAP GUI for Windows transaction (System admin->Support->SAP Application) to test if the SSO is set up correctly, all goes well and I'm able to call e.g. SU01 with logon tickets from the portal.
    My problem is that when calling a Web Dynpro for ABAP application in the same backend system from the same portal, I get an error "SSO logon not possible; logon tickets not activated on the server" and need to login manually when starting the application.
    When looking at the WDA app URL, I see http://<backend server>.<domain1>.com/... and the portal is sitting on http://<portal server>.<domain2>.com. Could it be a problem if the backend system is in another domain? And if yes, how come the SAP GUI for Windows launch then works (related to an http connection and domain relaxing?)? How to go forward and make it work all right?
    Best regards,
    Mikko

    Hi Navarro,
    Merry Xmas:)
    >>We did the same test with the demo app from you (MS)
    http://msdn.microsoft.com/en-us/library/windows/apps/hh202967(v=vs.105).aspxand it still don't work. (remember to setup
    fast app resume)
    Yes, I can reproduce your issue using the official sample.
    I think this issue is caused by the mechanism of Fast app resume, please refer to the following reference:
    #Fast app resume for Windows Phone 8
    http://msdn.microsoft.com/en-us/library/windows/apps/jj735579(v=vs.105).aspx
    Quote:
    With Fast Resume, when an app is resumed, the system creates a new page instance for the target of the launch point and this page is placed on top of the app’s existing backstack.
    This official sample can also help us to understand how it works:
    https://code.msdn.microsoft.com/windowsapps/Fast-app-resume-backstack-f16baaa6
    We could find that the Application.Launching event will not be triggered if we used Fast app resume, this will affect responding Toast's parameter(Deep Link).
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Reports layout/format problem when called from forms

    hi,
    using forms and reports builder 10g OS winxp
    i have created web and paper layout report with pre-defined template gray (rdf). when i run the web layout there is no problem.
    when i call this report from form using
    web.show_document('http://machine:8889/reports/rwservlet?report=mail_report.rdf&destype=cache&desformat=HTML&userid=abc/xyz@dbname&para1='||:parameter1, '_blank');
    the layout (cell bgcolors of the table) does not appear.
    pl guide what am i missing out.
    thanks

    Hi,
    that has nothing to do with forms. Your call inside web.show_document is a servlet-call. With this you get the paper layout of a report. If you want to get the web-layout, you have to call the report with a jsp-call. In your case that might look like http://machine:8889/reports/mail_report.jsp?userid=.....
    If you store your report as jsp-file, you can use it for paper & web-layout, as rdf only paper-layout is possible.
    http://download.oracle.com/docs/cd/B25016_08//doc/dl/bi/B14048_02/pbr_arch.htm#i1005927
    http://download.oracle.com/docs/cd/B25016_08//doc/dl/bi/B14048_02/pbr_run.htm#g1022421
    Regards
    Rainer

  • XSLT Mapping - problem with prefixes when calling template

    Hi all,
    I am having a problem with using an XSLT mapping in XI to combine various fields from 2 input messages of different structures into a single output message.  I understand that XI puts a wrapper around the 2 input messages so the structure of the XML I am mapping is:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns2:Messages xmlns:ns2="http://sap.com/xi/XI/SplitAndMerge">
    <ns2:Message1>
    <ns:(root of first message)>
    </ns:(root of first message)>
    </ns2:Message1>
    <ns2:Message2>
    <ns:(root of second message)>
    </ns: (root of second message)>
    </ns2:Message2>
    </ns2:Messages>
    Currently my XSL looks like the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns="http://example.co.uk/example" xmlns:ns2="http://sap.com/xi/XI/SplitAndMerge" xmlns:javamap="java:systemDate.CurrentDate" version="2.0">
    <xsl:output method="xml" version="1.0" encoding="UTF-8"/>
    <xsl:param name="inputparam"/>
    <xsl:template match="ns2:Messages">
    ...<xsl:calltemplate name="FormattingTemplate"/>
    </xsl:template>
    <xsl:template name="FormattingTemplate">
    </xsl:template>
    </xsl:stylesheet>
    When I test the mapping it works fine until it calls the FormattingTemplate.  Then it throws out a "transformer exception" error saying the prefix 'ns2' is not mapped to a namespace.
    If anyone could tell me where I am going wrong I would be very grateful.
    Thanks,
    Mike

    Hi Udo,
    Thanks for your reply.
    When testing the stylesheet locally with XMLSpy, it works fine, but I have just noticed that it adds information in the root tag of the target message as follows:
    <(root of target message) xmlns:javamap="java:systemDate.CurrentDate" xmlns:ns="http://example.co.uk/example" xmlns:ns2="http://sap.com/xi/XI/SplitAndMerge">
    I checked the root tag of the target message in XI and it does not automatically add this information. Thus I added it in my stylesheet so the information above is projected in the target message, but the same error message appears when the call template function is called.  Do you know if I need to somehow add a namespace to templates other than the main one? If so, do you know how I go about doing that?
    Thanks,
    Mike

  • Report does not come up when called from Forms

    I have installed Oracle 9i database and dveloper suit on my pc. When I run reports from forms, the report does not come up. I have Adobe Acrobat reader 6. The report does get created, I can see it in the cache directory.
    It created an error file, I am posting the begining of this file here.
    Please help.
    Thanking you in advance.
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x65553878
    Function name=Java_oracle_reports_engine_EngineImpl_CGetEnv
    Library=C:\orahome1\bin\rw90.dll
    Current Java thread:
         at oracle.reports.engine.EngineImpl.CGetEnv(Native Method)
         at oracle.reports.engine.EngineImpl.getEnvs(EngineImpl.java:453)
         at oracle.reports.engine.EngineClassPOATie.getEnvs(EngineClassPOATie.java:152)
         at oracle.reports.engine.EngineClassPOA._invoke(EngineClassPOA.java:205)
         at oracle.reports.engine.EngineClassPOA._invoke(EngineClassPOA.java:62)
         at com.inprise.vbroker.poa.POAImpl.invoke(POAImpl.java:2355)
         at com.inprise.vbroker.poa.ActivationRecord.invoke(ActivationRecord.java:104)
         at com.inprise.vbroker.GIOP.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.java:492)
         at com.inprise.vbroker.IIOP.ServerProtocolAdapter.doRequest(ServerProtocolAdapter.java:64)
         at com.inprise.vbroker.GIOP.GiopProtocolAdapter.dispatchMessage(GiopProtocolAdapter.java:653)
         at com.inprise.vbroker.orb.TPDispatcherImpl$TPDispatcher.run(TPDispatcherImpl.java:99)
         at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:76)

    Hi ,
    Looks like this is not a Forms side problem or even a Reports Servlet problem
    Some guesses.
    From the exception
    at oracle.reports.engine.EngineImpl.CGetEnv(Native Method)
    at oracle.reports.engine.EngineImpl.getEnvs(EngineImpl.java:453)
    it looks like engine crashing. Did you see the server GUI up and running ? Server might not have started
    Give
    rwserver server=<server_name> in command line.
    The server GUI should come up and show "ready "
    You have multiple Oracle Homes on the same machine. So this could be a PATH problem.
    1) Go to ControlPanel -> System - Advanced - Env variables - System Variables
    Copy the IDS specific PATH to clipboard
    Go to iDS_HOME\bin\ and open a command window. Set only the above PATH here. Start a standalone server
    rwserver server=<server_name>
    and try
    (If this works you could write a batch file later)
    2) For trouble shooting purposes use a different server name to start the standalone server.
    3) Also look in your registry
    HKLM\Software\Oracle\Home<x>\
    Here please see whether you have any "very long" environment variable (say more than 256 chars or 512 chars).
    This is just a guess.
    4) To confirm this is not a Reports servlet problem
    give
    rwclient report=<report_name> + ..... <server=server_name>
    If you get same error, then it is not a servlet problem. It could be that Reports server is crashing
    Thanks
    Ratheesh
    [    All Docs     ]
    http://otn.oracle.com/documentation/reports.html
    [     Publishing reports to web  - 10G  ]
    http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
    http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
    [   Building reports  - 10G ]
    http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
    http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
    [   Forms Reports Integration whitepaper  9i ]
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf

  • Can report created with BIP be called from forms?

    Hello.
    We have many forms.
    And now we ned complex reports. With BIP we can create them.
    But is there a way to call them from forms, like reports created with Report builder?
    Can we transfer parameters from forms to BIP reports, so data can be queried on that form parameters?
    Thanks.

    Hi,
    yes, there are several ways you can do this.
    DejanH, we discussed at the BI Publisher Forum, here just for the others.
    The document you're looking for is here: http://www.oracle.com/technology/products/xml-publisher/docs/Forms_BIP_v21.pdf
    or here
    http://www.oracle.com/global/de/community/forms/documents/Forms_BIP_v21.pdf
    Jan,
    it's a new version of the mentioned paper at the OTN-Forms-Side and the old one was removed.
    The document describes the way, how to integrate BI Publisher via Web Services into Forms. There are other ways available like
    - using HTTP calls via show_document
    - using the JavaAPI of BI Publisher and import the needed classes to Forms
    Regards
    Rainer

  • Sound problems with Yosemite when switching from internal speakers to earbuds

    After upgrading to Yosemite on my Macbook Pro, when I switch from using the internal speakers for sound and plug in my (Apple) earbuds, the sound stops working.  The sound also stops when I do the reverse and unplug my earbuds, nothing comes out of the internal speakers.  The only way to restore sound is to go into System Preferences, Sound, and select the output device (internal speakers, earphones, etc..).  Anyone else experiencing this problem after installing Yosemite, or know of a fix?

    I have the same problem..
    there is something else happened twice with me, I plugged my macbook with a HDMI cable to the TV, and everything was ok, until I closed the macbook (sleep mode), when I opened the mac again,, the sound has gone! No sound from TV or macbook,, the only solution is to "RESTART"

  • Problem with BAPI_PO_CHANGE when called within ME_PURCHDOC_POSTED BADI Implementation

    Hi All,
    We have a situation where PR to PO conversion needs to happen through a custom program which submits ME59N in batches. During this conversion, it's a business requirement to update the PO's GS Partner function based on the manufacturer in the first item's inforecord.
    In order to do this, we have implemented the badi "ME_PURCHDOC_POSTED". The only method within this is "POSTED"
    In order to update the PO, I use "BAPI_PO_CHANGE" inside this badi with IN BACKGROUND TASK addition. The reason behind this is that this BADI is called before the commit that creates the PO happens. And by calling the BAPI_PO_CHANGE in a background task, I ensure that it's run after the commit has happened.
    This approach works extremely well, but fails in certain scenarios when executed for large PR to PO conversion where certain PRs exceed 300 line items.
    Since the background task call cannot be debugged, I used the enjoy bapi_po_change exit EXIT_SAPL2012_004 to dump the return table to a custom table or the application log, to check what has happened.
    In the instances that this has failed, the return table's content was -> function "change purchase order" performed in test
    I assure you I have NOT used the test flag. I even applied a couple of SAP notes that mention this issue, but still had no success. I am waiting for a proper response from OSS at the moment but this is a real headscratcher.
    Also importantly at this point, the PO was successfully created.So the partner function change should happen without issues  :'(
    Have any of you come across this issue before ? What steps have you taken to overcome this issue ?
    Regards,
    Tharindu

    Hi All,
    We have a situation where PR to PO conversion needs to happen through a custom program which submits ME59N in batches. During this conversion, it's a business requirement to update the PO's GS Partner function based on the manufacturer in the first item's inforecord.
    In order to do this, we have implemented the badi "ME_PURCHDOC_POSTED". The only method within this is "POSTED"
    In order to update the PO, I use "BAPI_PO_CHANGE" inside this badi with IN BACKGROUND TASK addition. The reason behind this is that this BADI is called before the commit that creates the PO happens. And by calling the BAPI_PO_CHANGE in a background task, I ensure that it's run after the commit has happened.
    This approach works extremely well, but fails in certain scenarios when executed for large PR to PO conversion where certain PRs exceed 300 line items.
    Since the background task call cannot be debugged, I used the enjoy bapi_po_change exit EXIT_SAPL2012_004 to dump the return table to a custom table or the application log, to check what has happened.
    In the instances that this has failed, the return table's content was -> function "change purchase order" performed in test
    I assure you I have NOT used the test flag. I even applied a couple of SAP notes that mention this issue, but still had no success. I am waiting for a proper response from OSS at the moment but this is a real headscratcher.
    Also importantly at this point, the PO was successfully created.So the partner function change should happen without issues  :'(
    Have any of you come across this issue before ? What steps have you taken to overcome this issue ?
    Regards,
    Tharindu

  • Problems with project when switched from Labview 8.2.1 to Labview 10

    Hi everyone,
    I recently switched from Labview 8.2.1 to Labview 10.
    Before I can run the project I get the error which you can see in the attachment.
    (The project is running well in Labview 8.2.1)
    I did already check if variables end with a space, but none of them are.
    The variables are also without any slashes, so that couldn't be the problem either.
    Does anybody has any idea what the problem can be, please let me know.
    I hope to hear from some of you soon.
    Regards,
    Kenny
    Attachments:
    Error Labview 10.JPG ‏19 KB

    Your other post in the other thread indicates you've looked at that thread. Based on that have you checked your variable names to see if any of them are multi-line? The error message is basically telling you that you have illegal characters. A carriage return (\r) or a new line (\n) is an illegal character.

  • Problem with sound when import from Premiere into After Effects

    Hi!
    I imported a sequence from a Premiere Pro project using File -> Import -> Adobe Premiere Project...
    The video in the sequence showed up in the After Effects project as a composition.  However, the composition did not include the sound from the sequence!  Is there a way to keep the sound from the sequence upon import into After Effects?
    Thanks

    i`m sorry about the screenshot size, but i could only upload pics with 605 px width.
    Nevertheless it seems that you saved my day. looks like it was all about the scale to framesize thing.
    thank you so much!!!!

  • IP Cache problem with Safari when browsing from Google

    I've been experiencing what appears to be an ARP Cache corruption problem when using Safari. It typically occurs when I've been browsing links off of a Google Search page. Tonight's specific example is where www.youtube.com is now resolved to wikipedia.com's ip address. The only way to fix the problem (short of a reboot) is to shut down the network interface and then restart (after waiting a few seconds)
    This normally fixes the problem (which is why I think its the ARP cache.)

    This sounds like it could be related to a problem between Safari 5's DNS prefetching and your router. It may be possible that your router is scrambling DNS replies. Could you try manually entering a known good DNS server like OpenDNS into your network prefs?

  • Naming Problems with EJB when accessing from WebApplication

    Hi all,
    I'm trying to deploy an application consisting of several stateless session beans, one message driven bean and a web application. Everything works fine, until I try to log in (webapp). Then I get the following error:
    com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at ik, the whole lookup name is ik/sec/IKAuthenticationEJB.
    So the lookup name ik/sec/IKAuthenticationEJB is used in the code, whereas the JNDI Name of the requested bean is
    sap.com/Integrationkernel/IKAuthenticationEJB (As showed in the Admin Tool). I'm wondering why there is this "sap.com" as I choosed a different name for the provider (But the error remains even if I change it to "sap.com").
    As I cannot find any information about the "NameNotFoundException" I just tried the following:
    - add a "ejb-ref" section to web.xml
      <ejb-ref>
         <ejb-ref-name>ik/sec/IKAuthenticationEJB</ejb-ref-name>
         <ejb-ref-type>Session</ejb-ref-type>
         <home>com.tsystems.ik.security.authentication.IKAuthenticationEJBHome</home>
         <remote>com.tsystems.ik.security.authentication.IKAuthenticationEJBRemote</remote>
         <ejb-link>sap.com/Integrationkernel/IKAuthenticationEJB</ejb-link>
      </ejb-ref>
    - add a web-j2ee-engine.xml to the Web Application:
         <web-j2ee-engine>
             <ejb-ref>
                <ejb-ref-name>ik/sec/IKAuthenticationEJB</ejb-ref-name>
                <jndi-name>sap.com/Integrationkernel/IKAuthenticationEJB</jndi-name>
            </ejb-ref>
         </web-j2ee-engine>
    Does anybody know what to do? Did I declare the references in a wrong way?
    Is there a complete API Javadoc available? I just found the very small one on SDN...
    Thanks a lot,
    Nadine

    Hi Nadine,
    in order to lookup ab EJB from a web component you have to declare an ejb reference (ejb-ref section) in the web.xml. The jndi name in the web-j2ee-engine.xml  can be omitted if you are sure that the information provided by the "ejb-ref" section is sufficient to identify the EJB component.
    From the example you wrote I see that the ejb-link element is not correct. According to the EJB 2.0 FR specification (Appendix B, page 518) "ejb-link element must be the ejb-name of an enterprise bean". Probably this inconsistent information misleads the EJB Container in resolving the right reference.
    My advice is simply to omit this and leave the "home" and "remote" elements. They should be enough.
    A hint: you can use the "lsn" shell command from the "naming" group to observe the JNDI tree on a particular server node.
    I hope this will help you.
    Best regards,
    Svetoslav

  • Strange problem with LabPython when calling datetime.strptime()

    Here's my code.
    Whenever this is run, I get the following error:
    Error 1050 occurred at PYTHON Execute Script__ogtk.vi->Writer.vi:<type 'exceptions.TypeError'>, attribute of type 'NoneType' is not callable
     The code works perfectly in python. Any ideas of how to get around this problem?
    Attachments:
    snippet problem.png ‏23 KB

    Hello,
    As noted by nyc, LabPython is not supported by National Instruments.
    To help you, I give you a piece of advice :
    If you want to integrate in LabVIEW a script in Python which has been developed by you, I suggest you to try to replace all the VI by  the Python 2.2 Script node
    If you want to share the library "python.27.dll", I suggest you to try to reverse the first and the second VI (first, use Python New Session.VI and then use
    Python Set Servers Path.VI)
    This link could help you:
    http://labpython.sourceforge.net/palette.html
    Best regards,
    Guillaume D

Maybe you are looking for

  • How do I activate continuity calls on my macbook pro? I have an iPhone 6 and Macbook Pro Retina Mid 2014 and I live in Dubai

    I have an iPhone 6 and Macbook Pro Retina Mid 2014 and I live in Dubai, I bought my macbook from Canada and iPhone from UAE so it doesn't have FaceTime but i should be able to get calls on my mac right?

  • How to do 2:1 transformation using XSLT in ccBPM?

    Hi, We have the following ccBPM defined:       A    A    B   A/C   D    E    F Start---R1---T1---S2---T2---S3---T3---S1---END R1: Receives Synch XML message A via plain HTTP adapter and opens S/A bridge. T1: Transforms A into message B using XSLT S2:

  • How to view a mp3 file in chinese

    I'm having trouble viewing the music file in chinese. I have the Ipod nano language setting set to chinese, but I don't know how to set it to where the song title can also shown as chinese instead of the scribbly fonts. HElP !

  • How do I get the time clock to stop circling on an undelivered email?

    I created a small movie using quick time player. I attached it to an email to send to family through Safari. The email won't go through. The time clock has been circling for 4 hours. It's slowing down my email and I can't do anything to stop it. What

  • Regarding Party Creation

    hello all,    i have a problem where i need to send an idoc from my R/3 system to my xi system process it ans store it in a specific location, but the idoc i am sending is of type "Customer" i.e KU. i am able to find the xml idoc send from the R/3 sy