Need username for call to url

I have attempted to use
select user_name
from wwsec_person$
where user_name = portal30.wwctx_api.get_user
to get the username to pass to an url in an omni portlett and I am getting the following:
Error in executing Query : [ORA-14551: cannot perform a DML operation inside a query ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "PORTAL.WWCTX_SSO", line 1579 ORA-06502: PL/SQL: numeric or value error ORA-14551: cannot perform a DML operation inside a query ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "PORTAL.WWCTX_SSO", line 1579 ORA-06502: PL/SQL: numeric or value error ORA-14551: cannot perform a DML operation inside a query ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "PORTAL.WWCTX_SSO", line 1579 ORA-06502: PL/SQL: numeric or value error ORA-14551: cannot perform a DML operation inside a query ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "PORTAL.WWCTX_SSO", line 1579 ORA-06502: PL/SQL: numeric or value error ORA-14551: cannot perform a DML operation inside a query ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "PORTAL.WWCTX_SSO", line 1579 ORA-06502: PL/SQL: numeric or value error ORA-14551: cannot perform a DML operation i]
Does anyone know how to pass the username in a url call using omni portlett or a simple url

are you getting these errors when you run this query in sqlplus or some other tool and not in portal? i suspect that would be the case.
anyway. you can directly get user from wwctx_api for the current login user instead of pulling that from wwsec_person$.
also, you might wanna create a small sql-block to get the user using wwctx_api and pass on the value to wherever you wanna pass it to. something of this sort:
declare
v_user varchar2(30):=null;
begin
select wwctx_api.get_user into v_user from dual;
exception
when others then
htp.p('ERROR');
end;
hope that helps.
AMN

Similar Messages

  • Need code for call a report from stored produre in oracle9i(using rwclient)

    dear all,
    i need a stored procedure to run the report 9i(.rdf) from pl/sql.But i have code in older version(rwcgi60).So i want stored procedure for rwclient.
    The below code not working in oracle9i version.its very urgent.Thanks in advance..
    create table report
    (id number not null primary key,
    filename varchar2(100) not null,
    report_connection_id number not null,
    destype varchar2(5) not null)
    create table report_connection
    (id number not null primary key,
    user_id varchar2(100) not null,
    pass varchar2(100) not null,
    database_server varchar2(50) not null,
    report_server varchar2(50) not null)
    alter table cm.report add foreign key (report_connection_id) references cm.report_connection (id)
    insert into report_connection values (1, 'scott', 'tiger', 'orcl', 'Rep60_Dev');
    insert into report values (1, 'test.rdf', 1, 'PDF');
    commit;
    procedure pr_example (p_id report.id%type) is
    cursor cur_data is
    select r.filename,
    c.user_id,
    c.pass,
    r.destype,
    c.database_server,
    c.report_server
    from report r,
    report_connection c
    where r.report_connection_id = c.id
    and r.id = p_id;
    v_blob blob;
    v_url varchar2(2000);
    v_pieces utl_http.html_pieces;
    v_buffer raw(2000);
    v_buffer_size integer := 2000;
    begin
    for v_rec in cur_data loop
    v_url := 'yourserver.domain.com/dev60cgi/rwcgi60.exe?report=' || v_rec.filename || '&desformat=' ||
    v_rec.destype || '&userid=' || v_rec.user_id || '/' || v_rec.pass || '@' || v_rec.database_server ||
    '&server=' ||v_rec.report_server || '&destype=cache';
    if v_rec.destype = 'PDF' then
    owa_util.mime_header('application/pdf', false);
    htp.p('content-disposition: filename='||v_rec.filename);
    owa_util.http_header_close;
    --you can add a bunch of elsif logic here for different destypes and setting the correct mime type.
    end if;
    --sets transfer timeout to be one hour
    utl_http.set_transfer_timeout(3600);
    --runs the report
    v_pieces := utl_http.request_pieces(v_url,64000);
    v_blob := empty_blob();
    dbms_lob.createtemporary(v_blob,true);
    for i in 1 .. v_pieces.count loop
    v_buffer := utl_raw.cast_to_raw(v_pieces(i));
    v_buffer_size := utl_raw.length(v_buffer);
    if v_buffer_size > 0 then
    dbms_lob.writeappend(v_blob, v_buffer_size, v_buffer);
    end if;
    end loop;
    wpg_docload.download_file(v_blob);
    end loop;
    end;
    Now run this url:
    http://yourserver.domain.com/pls/dad_name/pr_example?p_id=1
    regards
    mani

    JosAH wrote:
    A couple of years ago Sun supplied their javax.comm package (mysteriously versioned as version 2)
    but they stopped it for the PC Windows.
    There's an alternative: rxtx which offers an identical API as Sun did and their own native implementation for serial and parallel port handling; I have used both and the rxtx version is clearly superior to Sun's old version: http://www.rxtx.org
    This question popped up recently.
    tschodt wrote in [http://forums.sun.com/thread.jspa?messageID=10863769#10863769:}
    [Java Communications API|http://java.sun.com/products/javacomm/]
    Implementations of the API are currently available for Solaris SPARC, Solaris x86, and Linux x86.follow the Download link to find
    Sun no longer offer's the Windows platform binaries of javax.comm, however javax.comm 2.0.3 can be used for the Windows platform, by using it in conjunction with the Win32 implementation layer provided by the RxTx project. To use that, download javax.comm for the 'generic' platform (which provides the front-end javax.comm API only, without platform specific back-end implementations bundled). Then acquire the Windows binary implementation rxtx-2.0.7pre1 from http://www.rxtx.org.

  • I need to use a reserved word as parameter name in proc called from URL

    Let me preface this post by saying I already know this is terrible to attempt, but it's short term fix only.
    Ok, so I have to create a procedure that will be called by a vendors application via a API that calls our URL to send data over. The terrible part is
    that the API they have uses the parameter FROM=vendor_data A change is on the way so in the future the API won't use FROM as a paramter, so this isn't something I want to do, but it's a workaround.
    So the nastiness is this..., I can create a procedure that'll compile when I enclose FROM in double quotes "FROM" as my input parameter
    but if I try to call my procedure via URL (as their application will do) the procedure isn't working. I searched for someway to do an inline
    replace of the FROM parameter to something else, but no luck. I'm open to all positive comments. I cannot go outside of Oracle
    to do this, so I can't call a shell script and replace. Basically I need some way to use a reserved word as a parameter name, and then be able to call
    that proc from a URL, or someway to change the FROM in the URL inline. Any help on this admittedly whacky situation would be appreciated much.
    I tried ...\myproc?from=text
    ...\myproc?"from"=text
    ...\myproc?'from'=text
    proc is simple test procedure
    create or replace procedure myproc
    ("from" in varchar2 default 0)
    is
    v_from varchar2(30);
    begin
    v_from:="FROM";
    insert into test(col1) values(v_from);
    end;
    **** Update
    I didn't get any more replies but came to a solution that I thought I'd post. It's much better, more elegant and maybe can help others.
    So instead of using FROM as the parameter name I did some research and decided I can use flexible parameters. Basically you end up having
    2 input parameters for a procedure, one holds a parameter name the other holds the parameter value. They get loaded into arrays
    and you access the values with regular name_array(1), value_array(1), etc. ?v=parameter&v2=value
    Once I figued I could use flexible parameter it took me tons of research to find out the actual syntax. I'll post some examples for others
    later, but was suprised with the lack of resources consideriing how "flexible" they are.
    Thanks again for the replies. Cheers.
    Edited by: Mitz on Jul 29, 2009 11:37 PM

    Scott,
    Thanks for the reply. I'm not familiar with the wwv_flow_epg_include_mod_local, however I know that the
    myproc is available via URL. I passed the my procedure name(myproc) on to the dba a while back to make it "accessible" so, I'm assuming that he
    added it to this the www_flow_epg_mod_local (assuming this has something to do with access control).
    If I modify myproc procedure and remove "FROM" as the input variable, and replace with say,
    IN_FROM I can then call the procedure via the URL ./myproc?in_from=test without any problems.
    I'm pretty confident that it's the "FROM" that is the hurdle and not a security or setup issue. The proc is fine to call from the URL until I got the curveball that the only available parameter was FROM. How the URL should be when inputing to that parameter?
    Edited by: Mitz on Jul 25, 2009 7:36 PM
    Edited by: Mitz on Jul 25, 2009 9:16 PM

  • What is the right Call Back url for twitter OAuth in BlackBerry eclipse plugin 9550 simulator

    Hi friendz
    Being optimistic to get the proper help regarding the "Call Back" Url for twitter, I'm here. Actually I'm implementing 
    "TwitterAPIME-RIM-OAuthSample" for twitter. Here I am feeling helpless when callback url has been asked.
    I read somewhere that call back url is not required for java me. But here after putting my credentials in web view, I can't return back to my app as I'm passing "" in callback url param(as I think).
    How to handle this thing... please suggest me??

    CallBack URL is the url where the twitter redirects after successful authentication. The callback url can be a webpage that builds in any web tech like php etc. for the application. Then the mobile app moves to that redirected page after successful authentication. We can set www.google.com as Callback Url. In that case we need to check the url in the onPageStarted method of the WebViewClient as to finish the webview otherwise it redirects it to www.google.com.
    if (uri != null && uri.toString().startsWith(TwitterConnector.CALLBAC​K_URL)) {
     finish();

  • Need help on integrated ITS URL format for CIC Account Overview

    Hello CCS Experts,
        We just upgraded from 46C to ECC 6.0 ( CCS 464 to UT 6.0 ). We used to have external ITS for CIC0 in 46C , Now we are trying to make CIC0 work with Integrated ITS. Our basic Integrated ITS services work , did all the configuration like SICF activation of necessary services ( Including EWB_WEBGUI and EWHV for call center ), publishing sevices to INTERNAL site using SE80 etc... And Test service works fine on all these services.
    But when I go to CIC0 and click on Account overview , I get Service Can not be reached. I have checked transaction CICAM and maintained it point to the internal ITS machine with the right port number. But no luck...
    The old URL used to be as below for ISUACCOUNTOVERVIEW.
    http://dr3-da-1:8001/scripts/wgate/zzewhv_acct_ovw/!?view=ao_isuacct&classid=isuaccount&~okcode=+
    My question is how should the URL be changed to work with Integrated ITS , Need specific format. Has anyone had this issue , or can direct me to some customizing documentation.
    Thanks
    Regards
    Venu

    Looks like you have a customized overview instead of the standard one. The standard URL looks like this
    http://<your.its.url>/scripts/wgate/ewhv_acct_ovw/!?view=ao_isuacct&classid=isuaccount&~okcode=+
    Your URL shows "zzewhv_acct_ovw" instead of the standard "ewhv_acct_ovw". See if you have created a custom class based on the standard one.

  • Function in select statement need to be called only for the last record.

    Select state,
    local,
    fun_state_loc_other_details(19) details
    from state_local
    where pm_key=19
    resuts:_
    State Local Details
    AP APlocal details1
    UP UPLocal details1
    MP MPLocal details1
    i) The above query returns 100 records
    ii) fun_state_loc_other_details is also getting called 100 times. But I want this function to be called only for the last record that is 100th record.
    is there any way to do that?

    Thanks amatu.
    One more small query. Can I do it on condition based.
    Select state,
    local,
    fun_state_loc_other_details(19) details
    from state_local
    where pm_key=19
    Like if one state it need to be called once.
    AP -- 50 records
    UP - 20 records
    MP -- 10 records.
    fyi: this record no. varies
    I want the function to be called for AP once, UP once, MP once.

  • Registering for Caller Display. Do I need to?

    Quick history:
    Mod on this forum arranges new deal for me for combined Infinity/Call package.
    I agree to new deal on condition that I get everything on my account as it was.
    New contract starts (Broadband/Calls/Line Rental) on 10th of September 2013.
    My Call Package includes BT Privacy, etc. at no extra cost. See pic below...
    A few days later news breaks that BT intend to start charging for the same calling features.
    I write to the Mod asking if I will have to start paying the fee for these services. He doesn't reply. Eventually I get a reply (obviously automated) telling me the info is on the website, and links to same.
    I write back asking for a proper reply to my question; this time I get a reply from 'Yunus', but it doesn't answer the question, (he only confirms that line rental will go up 6.4%), so I try other means.
    I use the price increase checker linked to on the other thread here; it tells me the Infinity/Calls Package will go up, but there is no mention of any changes to my Calling Features prices.
    I try Live Chat; holy sh!t, these people are useless! Are they paid to just tell you want to hear?
    First guy tells me 'no increase' in any of my prices';
    second guy says line rental going up, Infinity going up, but caller features package will not go up as they were included free in the package I signed up for with the Mod here
    third, it's a girl; she says everything will go up, and if I choose to leave I need to pay a full year's charges for cancelling.
    Plainly, they are not all correct.
    All I want to know is, what is going up? When? Do I have to sign up/pre-register for this free year's Caller Display thing? Won't that mean my contracts for BB/Calls, and Line Rental will have different end dates?
    I have read the big long thread about the rises, so do not require a repeat of the answers given there as most of them contradict each other anyway, just like Live Chat.
    It would be helpful to get a reply from a Mod (preferably the one who signed me up to this new contract in the first place) and not from any of the BT 'groupies'.
    Thanks.
    Incidentally, I've not had any letter or e-mail informing me of the price rises at all.
    I'm a Private person; I respect those who respect my Privacy.

    DavidM wrote:
    Hi Old_Bear,
    Thanks for posting. Not sure what you mean by BT 'groupies' but you can check if you're directly affected by the pricing change by entering your details here.
    Cheers
    David
    Hi David
    Old_Bear wrote: 
    I use the price increase checker linked to on the other thread here; it tells me the Infinity/Calls Package will go up, but there is no mention of any changes to my Calling Features prices.
    Been there, done that!
    Also spoke to Live Chat - pretty useless!
    My questions were:
    What else will go up?
    Will I start being charged for caller display, etc. when they are clearly included free as part of the package I agreed to sign up for with your colleague?
    Do I have to sign up/pre-register to get it for free when BT do start charging?
    Will this mean my Line Rental and BB/Calls contracts will have different end dates?
    I only want a straight answer to my questions; Customer Service have so far given me 5 different answers.
    I'm a Private person; I respect those who respect my Privacy.

  • Calling a URL from WD for ABAP 2004s

    Hi,
    In our scenario we would like to call workflow items from a web dynpro for abap application. We do not use a portal.
    I have build an alv from where the user can select his workflow tasks. A button then calls a method to trigger workflow. Within the method I have te workitem and the correct url available.
    Please let me know how to call the url and if possible let the url start the session in the current browser window (the window from where I started the url).
    Message was edited by: Raymond Does
    Solved it. Solution can be found in the Quiz example.
    Message was edited by: Raymond Does

    Hi Yash,
    There is the code :-)
    <Field name='fieldname'>
    <Display class='Link'>
    <Property name='name' value='link to launch jsp'/>
    <Property name='URL' value='http://localhost:8080/idm/output?param="hello"'/>
    </Display>
    </Field>
    thanx
    Shant

  • What is the need for calling default constructor by JVM?

    What is the need for calling default constructor by JVM? why the JVM should intiializes default values to the data
    fields if the constructor is not there in our class?

    mahar wrote:
    What is the need for calling default constructor by JVM? Huh? The JVM does not need to call the default constructor. It needs to call a constructor.
    You decide which one by the way you use "new".
    why the JVM should initialize default values to the data fieldsHuh?
    ... if the constructor is not there in our class?Huh? The default constructor is always there. It may be private but it is still there.

  • Need 2x click or confirmation screen for calling / texting

    This is a call out to Apple to implement double click for calling / texting - or at least offer a confirmation screen when dialing from screens like 'favorites' or 'recents'
    I can not tell you how many times I have initiated calls erroneously when attempting to scroll (or I've called the wrong number because I didn't hit the correct contact on first touch), and how many times I have inadvertently hit send on text messages before I was ready, simply because I was trying to type 'o', 'u' or 'p', or my finger just touched the screen in the wrong place.
    The phone is all screen and it's really difficult not to touch it. The issue is that just touching the screen often initiates an unintended call or other action, especially if trying to operate the phone with one hand or while in motion.
    Please chime in here to let Apple know that this is an issue that needs to be addressed. I know many of you are having the same usability issues. Let Apple know by responding to this post with your stories of frustration.
    Thanks,

    If apple would add that feature there would be allot more users requesting it taken off than the users that would actualy want it so I am sure that they would not want to add features just for a select few customers
    There are to many taps allready up the point when you place a call, why add more
    There is an easy fix for your problem: be carefull when you tap on your screen

  • Need to take MIB File for Call Manager

    Hi,
    Can anyone help me how to take MIB file for Call Manager. We have a cluster of 6 CUCM servers (1 pub + 5 Sub). we need this MIB file for monitoring purpose. If you need anyother information regarding this please let me know.

    Hi
    Below MIBs are supported in CUCM.  Refer the link attached for details. Btw which Version are you running ?
    •CISCO-CCM-MIB
    •CISCO-CCM-CAPABILITY
    •CISCO-CDP-MIB
    •CISCO-SYSLOG-MIB
    http://www.cisco.com/en/US/partner/docs/voice_ip_comm/cucm/managed_services/cisco_mibs.html
    Thanks.

  • NEED DEMO FOR APPLE TV AT HOME SITE......... HAVE ANY IDEA WHERE I DO CALL FOR THE SAME...........

    NEED DEMO FOR APPLE TV AT HOME SITE......... HAVE ANY IDEA WHERE I DO CALL FOR THE SAME...........

    This is a user forum. I suggest you call Apple or visit your local store to ask.

  • I just received my new 4gs  do I need to UPdate my phone by call *228 like I needed to for my LG touch

    I just received my new 4gs  do I need to UPdate my phone by call *228 like I needed to for my LG touch

    You need to activate it through itunes and then complete the *228, option 1 if you want.
    A word of note, if you have any saved voice mails on the old phone, they will be deleted since the iphone uses a different voice mail system and the old saved ones are not transferable.

  • Re: Registering for Caller Display. Do I need to?

    Old_Bear: loved your reference to the BT 'groupies'. I know exactly what you mean and we all know the biggest of them all.

    DavidM wrote:
    Hi Old_Bear,
    Thanks for posting. Not sure what you mean by BT 'groupies' but you can check if you're directly affected by the pricing change by entering your details here.
    Cheers
    David
    Hi David
    Old_Bear wrote: 
    I use the price increase checker linked to on the other thread here; it tells me the Infinity/Calls Package will go up, but there is no mention of any changes to my Calling Features prices.
    Been there, done that!
    Also spoke to Live Chat - pretty useless!
    My questions were:
    What else will go up?
    Will I start being charged for caller display, etc. when they are clearly included free as part of the package I agreed to sign up for with your colleague?
    Do I have to sign up/pre-register to get it for free when BT do start charging?
    Will this mean my Line Rental and BB/Calls contracts will have different end dates?
    I only want a straight answer to my questions; Customer Service have so far given me 5 different answers.
    I'm a Private person; I respect those who respect my Privacy.

  • Creation of DB Adaptert for calling stored procedure in MS SQL server

    Hi,
    I need to create a DB adapter to call a stored procedure in MS SQL Server.
    I have gone thru the thread MS SQL Server database connection
    It mentions that we need to use a command line utility for generating the wsdl and xsd for calling stored procedures in MS SQL server. Please provide information where to find this utility and how to use it.
    Any links to tutorials are welcome.
    Thanks !!.
    Silas.

    Command line is required for stored procedures, if you are using the basic options you don't need to worry.
    (1) Download MS SQL Server 2005 JDBC Driver from Microsoft Site. http://msdn.microsoft.com/en-us/data/aa937724.aspx
    (2) The download is self extracting exe file. Extract this into Program Files on your machine. It should create folder as "Microsoft SQL Server 2005 JDBC Driver"
    (3) In above mentioned folder search for sqljdbc.jar copy this file into JDeveloper\JDBC\lib folder.
    (4) Open JDeveloper/jdev/bin/jdev.conf file add following entry.
    AddJavaLibPath C:/Program files/Microsoft SQL Server 2000 Driver for JDBC/lib
    While executing this step make sure that your JDeveloper is closed.
    (5) On command prompt go to J Developer folder and execute following command
    jdev -verbose
    This will open JDeveloper.
    (6) Now go to JDeveloper > Connections > Database Connections > New Database Connection
    (7) Select Third Party JDBC
    (8) Specify MS Sql Server User Name, password and Role.
    (9) In connection page specify following
    - Driver Class: com.microsoft.sqlserver.jdbc.SQLServerDriver
    - For class path browse to C:/Program files/Microsoft SQL Server 2000 Driver for JDBC/lib folder, select sqljdbc.jar add it as library.
    - Specify URL as following.
    jdbc:sqlserver://SERVERNAME:1433;databaseName=MSSQLDBNAME;
    (10) Go to Test page and test it.
    cheers
    James

Maybe you are looking for