How to obtain URL in PL/SQL
How do I obtain the URL of the page I'm sitting on within PL/SQL? I have a dynamic page with PL/SQL code and I need to obtain the URL how would I go about that?
Is this a PSP (PL/SQL Server Page)?
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
Similar Messages
-
How to obtain IR report dynamic SQL in Apex 4.0
Hello,
I have 2 regions on the same page
Interactive Report –
Chart (Flash Chart) – This is a sub region of the above
Now the requirement is when user applies a filter to the interactive report I would like to apply the same filter criteria to the flash chart so that data representation in flash chart matches with the IR report content. I am fairly new to the Apex, apologies if used any apex terminology in correctly
Appreciate if you can point me in the right direction
Thank you
-RajHello , I did some research how to achieve this , one way is to get the IR report dynamic sql using APEX_IR.GET_REPORT package and apply the same sql for the chart so that the chart representation will match with the IR report data, But the challenge is as i am using the APEX 4.0.0.00.46 version, the APEX_IR package is not available in that version , Any other way we can achieve this in Apex 4.0??
Thanks
-raj -
How to encode URL parameters in pl/sql?
How to encode url and its paramters in PL/SQL to call a page using html GET method? Is there any equiavlent method of java's URLEncoder.encode() method in pl/sql (in any web packages) ?
Any help/pointers highly appreciated.
P.S. : URGENT PLEASE!!!http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:371959198986
-
How to obtain a sql.Date in dd/mm/yyyy format
hi everybody,
I made a sql query in a jsp where a column of resultset is a Oracle Date, but I want to present it to the user in the format DD/MM/YYYY, how to do it ? with sql.getDate() ???
thanks for your incoming help .Yuo can use the oracle function to convert the date format to a string for display purposes.
Something like this I think
SELECT TO_CHAR(thedatecolumn, 'DD/MM/YYYY')
FROM thetablename; -
How can I enable embedded pl/sql gateway to run on port 80
I have a new 11G install on OEL 4.0, database created. I would like to be
able to access the instance using the pl/sql gateway. Works fine with
port 8080, the default. How to I enable it to run on port 80?
I found this statement in the following docuementation:
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb22pro.htm#ADXDB2500
Using HTTP(S) on Nonstandard Ports
By default, HTTP listens on a nonstandard, unprotected port: 8080. To use HTTP(S) on
the standard port, such as 80, your DBA must chown the TNS listener to setuid ROOT
rather than setuid ORACLE, and configure the port number in the Oracle XML DB
configuration file /xdbconfig.xml.I have root priviledges on the box.
I've tried setting the listener file permissions:
chown root:dba /u01/app/oracle/product/11.1.0/db_1/bin/tnslsnr
chmod 6775 /u01/app/oracle/product/11.1.0/db_1/bin/tnslsnr
Also put root in the dba group.
The permissions turn out like this:
-rwsr-sr-x 1 root dba 830854 Jun 17 21:04 /u01/app/oracle/product/11.1.0/db_1/bin/tnslsnr
I stopped the listener, bounced the database, and started the listener again.
But it still shows the process being owned by oracle:
oracle 29682 1 0 21:08 ? 00:00:00 /u01/app/oracle/product/11.1.0/db_1/bin/tnslsnr LISTENER -inherit
Changing the port is easy:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SYS>select dbms_xdb.gethttpport as "HTTP-Port" , dbms_xdb.getftpport as "FTP-Port" from dual;
HTTP-Port FTP-Port
8080 2100
At this point, I can access the apex home page with the following url:
http://hostname:8080/apex/f?p=4550:10:1454849288245548
I can than change it to port 80:
SYS>begin
dbms_xdb.sethttpport('80');
dbms_xdb.setftpport('2100');
end;
2 3 4 5
PL/SQL procedure successfully completed.
SYS>SYS>select dbms_xdb.gethttpport as "HTTP-Port" , dbms_xdb.getftpport as "FTP-Port" from dual;
HTTP-Port FTP-Port
80 2100
When I try to access apex with the following url:
http://rmdcopslnx1.us.oracle.com/apex/f?p=4550:10:1454849288245548
I get the following:
Failed to Connect
Firefox can't establish a connection to the server at hostname.com.
Though the site seems valid, the browser was unable to establish a connection.
* Could the site be temporarily unavailable? Try again later.
* Are you unable to browse other sites? Check the computer's network connection.
* Is your computer or network protected by a firewall or proxy? Incorrect settings
* can interfere with Web browsing.I can set the port. Just can't talk to it.
This is the entry from the listener log:
<msg time='2008-07-03T15:40:09.741-06:00' org_id='oracle' comp_id='tnslsnr'
type='UNKNOWN' level='16' host_id='hostname'
host_addr='xxx.xxx.xxx.xxx'>
<txt>TNS-12546: TNS:permission denied
TNS-12560: TNS:protocol adapter error
TNS-00516: Permission denied
Linux Error: 13: Permission denied
</txt>
</msg>
So this looks like an permissions problem. But where? I posted
this on the apex forum here:
Re: How can I enable embedded pl/sql gateway to run on port 80
They suggested asking here.No, that thread did not provide the information that I need. Some more data:
I have the port set to 8080:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SYS>select dbms_xdb.gethttpport as "HTTP-Port" , dbms_xdb.getftpport as "FTP-Port" from dual;
HTTP-Port FTP-Port
8080 2100
At this point, I can access the apex home page with the following url:
http://hostname:8080/apex/f?p=4550:10:1454849288245548
I can than change it to port 80:
SYS>begin
dbms_xdb.sethttpport('80');
dbms_xdb.setftpport('2100');
end;
2 3 4 5
PL/SQL procedure successfully completed.
SYS>SYS>select dbms_xdb.gethttpport as "HTTP-Port" , dbms_xdb.getftpport as "FTP-Port" from dual;
HTTP-Port FTP-Port
80 2100
When I try to access apex with the following url:
http://rmdcopslnx1.us.oracle.com/apex/f?p=4550:10:1454849288245548
I get the following:
Failed to Connect
Firefox can't establish a connection to the server at hostname.com.
Though the site seems valid, the browser was unable to establish a connection.
* Could the site be temporarily unavailable? Try again later.
* Are you unable to browse other sites? Check the computer's network connection.
* Is your computer or network protected by a firewall or proxy? Incorrect settings can interfere with Web browsing.
I can set the port. Just can't talk to it. -
How to obtain date of creation if image is obtained using getImage()
When Image is obtained using getImage() method , how to
obtain date of creation or another header value if image is
obtained using getImage method.Actually, some formats do indeed have creation or modification dates built in. e.g. http://www.w3.org/TR/PNG-Chunks.html#C.tIME. (Of course since most programs save a new copy of the file every time, the two dates are the same.) However, just because formats have this data doesn't mean it's reliable or even present. Your best bet is to pass creation dates in an Applet param tag for applets (assuming you were referring to Applet.getImage()) or to parse out a filename from a classloader URL and use a File object to check (assuming you were instead referring to Toolkit.getImage(URL)). That's the best answer I have without knowing more about what you are trying to accomplish.
-
Encoding for blank spaces in url in a sql statement in report
1. What function or process do I use to encode for blank spaces in a url link in a report?
I need to link from a report to a 2nd report and pass 5 variables. I believe that I need to do that by embedding my own url in the sql for the report, since the standard report sets up for only 3 variables to be passed.
One of my variables PARTNER_FIRM has spaces in it, so how do I encode for that in the query. Currently, I have the following (... simplified).
select partner_firm,
count(distinct event) distinct_events,
'<a href="f?p=18509:4:&SESSION.::NO:4:P4_PARTNER_FIRM,P4_QUARTER,P4_CATEGORY,P4_PRODUCT_CATEGORY,P4_EVENT:' ||
partner_firm ||
'%2C&P3_QUARTER.%2C&P3_CATEGORY.%2C&P3_PRODUCT_CATEGORY.%2C&P3_EVENT.">' ||
count(distinct lower(attendee_email)) || '</a>' distinct_attendees
from all_events ...
but partner_firm has spaces which are returned. I think there is some way that I can encode for that?
Thanks,
StephenSure there is:
select apex_util.url_encode('http://ww.oracle.com/') from dual
Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this reply by marking it as either Helpful or Correct ;-) -
Obtaining url patterns for a user Role/Group
I am looking for a way to find out how to obtain a the list of accessible urls (url
patterns) for a role/group defined in weblogic.
I have gotton as far as if checking if a user is in a group using: javax.ejb.SessionContext
isCallerInRole(java.lang.String roleName)
After checking if a user is in a role/group I want to access the url pattern authorised
for a particular role under weblogic.
Can this be done.I am looking for a way to find out how to obtain a the list of accessible urls (url
patterns) for a role/group defined in weblogic.
I have gotton as far as if checking if a user is in a group using: javax.ejb.SessionContext
isCallerInRole(java.lang.String roleName)
After checking if a user is in a role/group I want to access the url pattern authorised
for a particular role under weblogic.
Can this be done. -
How to obtain POST request parameters
Does anyone know how to obtain POST request parameters after form submit like we can get GET parameters after form submission via {module_url, parameterName}?
"garry.b" <[email protected]> wrote in
message
news:gnndbf$i2q$[email protected]..
> Hi,
>
> When using AS3 to generate an HTTP POST request:
>
> var service:HTTPService = new HTTPService ();
> service.url = "
http://localhost:9090/service";
> service.method = "post";
> // service.request = {itemId: "12345"};
> service.send ({itemId: "12345"});
>
> my CherryPy web server complains about unexpected body
parameters:
>
> HTTPError: (400, 'Unexpected body parameters: itemId')
>
> Using Firebug's Network display, its Post tab shows the
following content:
>
> Referer:
http://localhost:8080/log/log-1.0-SNAPSHOT.swf
> Content-type: application/x-www-form-urlencoded
> Content-length: 12
>
> itemId=12345
>
> which looks very strange to me as I would expect the
Referer, etc.,
> request
> headers to show up in the Request Headers section and
not as POST body
> content.
> While this could be some Firebug issue, I think the
request message is
> really
> formatted incorrectly. When the web server gets the
request, it does
> recognize
> 'itemId' as a body parameter but then complains that
it's unexpected.
>
> I've googled the error message, studied HTTPService
examples, spent
> several
> hours playing with it and am stumped. Tracy Spratt
suggested setting the
> service 'request' to force a POST and I tried it but am
getting the same
> error.
> How do I make a POST request? Can I get POST data into
the message body?
> Stick with URL parameters only?
What happens if you post to the same service using an html
form? -
How to obtain the license for the mentioned products.
Hi All,
Please help me in below licensing issues.
1) Our functional team got the below error while accessing "Job Scheduling Workbench".
Error: The Workbench is inaccessible because Oracle Manufacturing Scheduling has not been licensed. Please work with your Account Manger to purchase the license.
2) Another error message while accessing the navigation Flow Manufacturing --> Product Sync --> Flow Routings
Error: APP-BOM 20972: You cannot access this form
Cause: You do not have a license for Oracle Flow Manufacturing.
Action: Obtain a license for Oracle Flow Manufacturing.
Please guide me how to obtain the license for the above products.
Environment: eBS R12.1.3 on Linux 5.8
Regards,
SivaThanks for providing the document. I follow the document and get back to you for any issues.
Regards,
Siva. -
How to delete URL Maintenance in peoplesoft
how to delete URL Maintenance in peoplesoft , Please any one suggest to me how to delete identifier.
Navigation : Main menu -->Peopletools --> Utilities --> Administration --> URL
in this url page have URL maintenance.I added one identifier .
URL Identifier:
*Description:
*URL:
Comments:
Regards,
lokeswarMain Menu>PeopleTools>Portal>Structure and Content>Traverse to the URL by clicking on the links(Peopletools --> Utilities --> Administration --> URL)>Click on Edit Link
Check the box for "Hide...." -
How to find leap year in sql query
How to find leap year in sql query
Select
CASE
WHEN result = 0 THEN 'Leap_Year'
WHEN result <> 0 THEN 'Not_A_Leap_Year'
END
From (Select mod((EXTRACT(YEAR FROM DATE '2013-08-24')), 4) result FROM DUAL); -
How to see dbms_output on oracle sql developer
ned immediate help
how to see dbms_output on oracle sql developerHi,
In sql developer u have a tab named DBMS Output in your result sheet. In that the first Icon is Enable DBMS Output. turn it on (After on it will give the message set serveroutput on in the sheet) and then run your code.
In the code u have to use the dbms_output.put_line package.after running the code u have to see the result in DBMS Output tab.
Regards,
NTR -
How to obtain the timestamp of a schedule for which I get the details?
Please find below the extract from documentation showing the syntax of XML returned by the Web Services call. What is missing for me, is the timestamp. I wonder if you guys encountered this and have any idea how to obtain this (timestamp) information about the schedule via RESTFUL web services ?
<schedule>
<id>9439</id>
<name>GC-now-schedule</name>
<format type="webi"/>
<status>Completed</status>
</schedule>Hi Jacek,
There is also the BIPlatform .Net SDK, the Java SDK and the SOAP DSWS web services which have both Java and .NET consumers.
you can find various samples for common workflows here: http://scn.sap.com/docs/DOC-51445
that may help. -
How to define variables in toad sql script editor - newbie
I have just pull out the script of a Function and want to run it on toad SQL editor.
I am little bit confused how to define the VARIABLEs here in toad SQL editor to run my script.
SELECT
NVL(SUM(debit), 0) - NVL(SUM(credit), 0)
INTO l_accountBalance
FROM
GLP_VoucherMaster vm
INNER JOIN GLP_VoucherDetail vd ON vm.GLP_VoucherMaster_ID = vd.GLP_VoucherMaster_ID
INNER JOIN GLP_ChartOFAccounts coa ON vd.GLP_ChartOfAccounts_ID = coa.GLP_ChartOfAccounts_ID
WHERE
vm.isActive = 'Y' AND vd.isActive = 'Y'
-- *** how to define variables in toad sql script editor ***
AND vm.voucherDate < p_cDate
AND coa.AccountCode LIKE p_accountCode || '%';
Thanks
w\Just prefix with a colon (:)
SELECT NVL (SUM (Debit), 0) - NVL (SUM (Credit), 0)
INTO L_accountbalance
FROM Glp_vouchermaster Vm
INNER JOIN
Glp_voucherdetail Vd
ON Vm.Glp_vouchermaster_id = Vd.Glp_vouchermaster_id
INNER JOIN
Glp_chartofaccounts Coa
ON Vd.Glp_chartofaccounts_id = Coa.Glp_chartofaccounts_id
WHERE Vm.Isactive = 'Y'
AND Vd.Isactive = 'Y'
AND Vm.Voucherdate < :P_cdate
AND Coa.Accountcode LIKE :P_accountcode || '%';
/:p
Maybe you are looking for
-
Home hub 3 manager password change.
I have searched the site for this subject but found nothing that matched my problem. Recieved my hub today and had no problems getting onto the net. As I have no wireless on my PC I connect my hub via an eithernet cable. As my laptop does not support
-
IPhone 2.0 Update Debacle = Free App ???
I suggest Apple, once they get this whole problem worked out, gives us all a free app or credit towards the purchase of a free app. I'm sure they've got some good ones up their sleeve in Cupertino that they could give to us. You gotta make the custom
-
PSE 6 - dosnt have all its selections and preferences since i installed new printer driver?
Hi I have a Mac. Installed PSE 6 - worked great. My printer broke so got a new one - installed new driver and now I cannot print multiple photos, contact sheet or picture package at all - they are greyed out and I am unable to select them. Any ideas
-
Can't access SLIDESHOW module.
When attempting to access the SLIDESHOW module I get the error message "an error occurred when attempting to change modules. This occurrs when using either the main task bar at the very top of the page under "WINDOW" or the horizontal list of module
-
Why I can´t find the FM 'RFC_REMOTE_EXEC'? I´m in 4.6C version and I can´t find functions like this... Thanks in advance, Éder