How can I use unix commands from oracle report
I have to use the following command from oracle reports.
In oracle forms we can use the HOST command but what about oracle reports2.5.
I have to email the attached file 100245.pdf from oracle reports to the given email id
uuencode 100245.pdf 100245.pdf | mailx -s "test" [email protected]
Hi,
It's because .bat (or .cmd) files are scripts and not executables and are interpreted using the command line executable - which is normally cmd.exe (although you can buy others).
So you need to call cmd.exe passing the bat file name as a parameter, something like
cmd.exe /c batchfilename
Without the /c you will never get a response.
However, this brings us to the bizarre conclusion that you are going to:
call cmd.exe (a shell interpreter)
to launch a batch file
that calls cygwin (another shell interpreter)
which then runs ls
When shouldn't that just be:
call cmd.exe to run the dir command
Or better yet, If you are just after a file name listing and you seem to understand Java stored procs, why not just write a JSP to list the contents of a directory? No problems with OS dependant commands, scripts and 3rd party interpreters. Plenty of examples of that out on the internet as well.
HTH
Chris
Similar Messages
-
How to create pdf files in UNIX directory from oracle reports
I would like to know how to create pdf files in UNIX directory from oracle reports.
Thanks,Please make your question more clear . Also mention the reports version.
1) If you are runnning reports in Unix, you can give
.... destype=file desformat=pdf desname=<filename>
in command line
Please refer docs below.
2) If by your question you mean
"My reports server is running in Windows but I want to ftp my files to Unix after creating it"
then the answer is that you can use pluggable destination "ftp"
.... destype=ftp desformat=pdf desname=<ftp url>
Pluggable destinations download
http://otn.oracle.com/products/reports/pluginxchange/index.html
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 -
How can i run unix script from my apex page
how can i run unix script from my apex page and take the output of unix script as a hidden variable and display it on the report region of that page
I had a requirement to run a Fortran program against some data that woudl be extracted from the database after the user set up their filtering criteria and made some additional input. SInce the program was to complex to conver to PL/SQL, we decided to try and invoke it from Apex. This is how I did it.
1. I followed the steps in Tim Archer's excellent article "Oracle External Procedure to Run Host Commands" (http://www.timarcher.com/?q=node/9). If the link does nto work, google the article's title.
Using this steps I created a function which accepts any OS command, including calling my own shell scripts, and runs them. I called my PL/SQL function "shell" instead of "USF_RUN_HOST_CMD " as Tim did in his example (step 9).
2. In Apex,
a. I created a button to run my shell command. (I named it P2_RUN_SHELL)
b. I created a PL/SQL process whose source looks as follows:
shell('/home/ackness/scripts/cr_xcf_file.sh > /tmp/cr_scfp_file.log');
and which was conditioned on the the button P2_RUN_SHELL.
It works like a charm.
Note: since you can run your own scripts using this method, you can encapsulate a series of commands in a UNIX shell script and invoke that script from Apex. This allows you to be able to test or run you commands from the command line as well as Apex and makes it easier to develop/debug/enhance the scripts in the future.
Ackness -
How can I use srvctl command line for change "Failover type" and "F method"
Hi all,
I am using Oracle One Node (11.2.0.3), and I have a service:
/u01/11.2.0/grid/bin/srvctl config service -d orcl
Service name: orcldb
Service is enabled
Server pool: orcl
Cardinality: 1
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: false
Failover type: NONE
Failover method: NONE
TAF failover retries: 0
TAF failover delay: 0
Connection Load Balancing Goal: LONG
Runtime Load Balancing Goal: NONE
TAF policy specification: BASIC
Edition:
Preferred instances: orcl_1
Available instances:
I would like to change "Failover type" and "Failover method" to:
Failover type: SELECT
Failover method: BASIC
How can I do that? Is there any graphical tool for it? Or, How can I use srvctl command line for change it?
Thanks in advance.
Leonardo.user10674190 wrote:
Hi all,
I am using Oracle One Node (11.2.0.3), and I have a service:
/u01/11.2.0/grid/bin/srvctl config service -d orcl
Service name: orcldb
Service is enabled
Server pool: orcl
Cardinality: 1
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: false
Failover type: NONE
Failover method: NONE
TAF failover retries: 0
TAF failover delay: 0
Connection Load Balancing Goal: LONG
Runtime Load Balancing Goal: NONE
TAF policy specification: BASIC
Edition:
Preferred instances: orcl_1
Available instances:
I would like to change "Failover type" and "Failover method" to:
Failover type: SELECT
Failover method: BASIC
How can I do that? Is there any graphical tool for it? Or, How can I use srvctl command line for change it?
Thanks in advance.
Leonardo.srvctl modify service -d database_name -s orcldb -q TRUE -m BASIC -P BASIC -e SELECT -z 180 -w 5 -j LONG
Also see
11gR2(11.2) RAC TAF Configuration for Admin and Policy Managed Databases [ID 1312749.1] -
How can I use LDAP searching from OSX Lion Server to Mozilla Thunderbird?
How can I use LDAP searching from OSX Lion Server to Mozilla Thunderbird? We have a super awesome contacts server that works great for our Mac users. About 30% of our company are on PCs, and I would like to use the Mozilla Thunderbird mail client for them. I see that in Thunderbird I can set up LDAP searching, and would like to have this feature point to our contacts server. I've tried several different settings, and looked all over the web, but could not find the proper way to configure this. Does anyone know if this can be done, or if not, would have a better suggestion? Thank you for your time!!
try double clicking keychain acces should launch and ask if you want to install login, system, System roots
A dialog box will launch asking where to install the cert since your configuring a vpn I would put the certificate it in system. -
I can not find my playlists on apple tv. How can I use my playlists from itunes on apple tv ?
Hey luisathome,
Thanks for the question. The following resource outlines how to setup Home Sharing between your Apple TV and computer:
iTunes 11 for Mac: Play items in your iTunes library using Apple TV (2nd generation or later)
http://support.apple.com/kb/PH12153
Thanks,
Matt M. -
How can I use a pic from iPhoto as a background for a page, How can I use a pic as a background for a page
cd,
Insert the picture and position it as you desire
Make sure the picture is set to Floating in the Wrap Inspector
Arrange > Send Objects to Background
Regards, -
How can i use Unix database in java?
How can i use Unix database in Java?
Message was edited by:
JProI have not a clue about FoxPro, but the db then is FoxPro and not Unix. The better question would be "How do I connect to FoxPro DB running on Unix with JDBC?".
My answer to that would be, search the Internet for a JDBC driver. -
How can i use migration assistant from a Power PC G4 powerbook?
How can i use migration assistant from a Power PC G4 laptop that can't run 10.5 to a new mini running Lion? Mini's MA says I have to upgrade the laptop's MA but the upgrade requires 10.5 as a minimum
help,please
janThat is correct. You'll need either an ethernet cable or a firwire cable and a firewire to thunderbolt adapter to connect the two macs together. Here's info on Migration/Setup assistant
http://support.apple.com/kb/HT4889?viewlocale=en_US&locale=en_US -
HT5467 how can i use location services from my pc to find my lost ipod?
how can i use location services from my pc to find my lost ipod?
Find My iPod
http://www.apple.com/sg/icloud/features/find-my-iphone.html -
How can I use my camera from sony xperia z2 on my laptop
How can I use my camera from sony xperia z 2 on my laptop? Please help me Thanks!
You need an app, something like this
https://play.google.com/store/apps/details?id=com.busywww.cameraremote&hl=en -
Can we use Dynamic SQL in Oracle Reports ?
Hi ,
Can we use Dynamic SQL in Oracle Reports ?
If yes please give some examples .
Thanx
sriniI believe the built-in package SRW.Do_Sql is what you are looking for
Example from the document:
/* Suppose you want to create a "table of contents" by getting the
** first character of a columns value, and page number on which its
** field fires to print. Assume that you want to put the "table of
contents"
** into a table named SHIP. You could write the following construct:
DECLARE
PAGE_NO NUMBER;
PAGE_FOR INDEX NUMBER;
SORT_CHAR CHAR(1);
CMD_LINE CHAR(200);
BEGIN
SORT_CHAR := :SORT_NAME ;
IF :CALLED = Y THEN
SRW.GET_PAGE_NUM(PAGE_FOR_INDEX);
SRW.USER_EXIT(RWECOP PAGE_FOR_INDEX
P_START_PAGENO);
SRW.MESSAGE(2,TO_CHAR(:P_START_PAGENO));
END IF;
SRW.GET_PAGE_NUM(PAGE_NO);
CMD_LINE := INSERT INTO SHIP VALUES
(||SORT_CHAR||,||TO_CHAR(PAGE_NO)||);
SRW.MESSAGE(2,CMD_LINE);
SRW.DO_SQL(CMD_LINE);
COMMIT;
EXCEPTION
WHEN DUP_VAL_ON_INDEX THEN
NULL;
WHEN SRW.DO_SQL_FAILURE THEN
SRW.MESSAGE(1,FAILED TO INSERT ROW INTO SHIP TABLE);
WHEN OTHERS THEN
COMMIT;
END; -
How can i use Progress bar in IR Report
Hi ,
I have created IR Report based on the View so, it's been taking 10-15 mins of time to execute the IR Report. Here user want to see the Progress bar while executing the IR Report. How can i use Progress bar in IR Report.
Anybody have idea on Progress bar please help me.
Regards
Narender BHi ,
Thanks for your information.
I am new to the APEX.*i need to show Progress bar while opening the each page* then user can know some process is happening from the backside and i don't know where i need to add and call the below function.could you please provide the steps for the progress bar.
In my application there are almost 100 pages are there so, i need to show progress bar on each page while opening .could you please provide Global function to call on each page.
function html_url_Progress(pThis){
$x_Show('AjaxLoading');
window.setTimeout('$s("AjaxLoading",$x("AjaxLoading").innerHTML)', 100);
//doSubmit('APPLY_CHANGES');
redirect(pUrl);
Regards
Narender B -
How/can I use boe search 4 all reports that use specific tables
How/can I use boe search 4 all reports that use specific tables
can this be done with query builder
or
is there a way to search all sql of all reports for specific strings and report names so that I can find all report sql that uses table1 for example?Hi Bart!
You can use VBScript to extract the dataprovider within the reports (Search for SDK Desktop Intelligence).
If you can wait a few days longer, I can provide my script.
ciao Hakan -
How can I use UNIX "ls -lt" command in JAVA?
I have a piece of java code whose function is to search for all
the files in a directory and attach the time of the file creation.
How can I do it? Also, I know that in UNIX, "ls -lt" will give me
all the file names and the creation times. So how can I use "ls -lt"
in Java?O,I see you have notice my friend tsith,its not really about what language is better its about what language is better to start off with,this is the twist and the diffrents to other postings and so far I have not seen a good argument saying y java is a better language to start off with.Anyways the ? still stands is java a better language to start off with then c/c++???.If you ask me c/c++ is better and I am just waiting for a good argument to give my reasons.Anysways good to see you are still around tsith ;-).
Maybe you are looking for
-
Re - RADIUS and Cisco 2611 router
Cassandra: There is a response to your latest post that would easily be missed. The thread has rolled to a second page. The response is on the second page, and would be missed if you did not take note of the "Previous and Next" links at the bottom of
-
Correct Urls for iCal / Sunbird / Lightning
Hi, Was struggling with this through a few threads etc., and happened upon the answer from playing around with the URLS on my own server. This works for HTTPS:// (I presume for normal HTTP traffic, change to HTTP:// instead, and change port to 8008)
-
SCE SCA BB Console and Subscriber Manager problem
Hi, I need to do a Backup/restore of Subscriber in a SCE2020 engine. I try to connect into the SCE with SCA BB Console and Subscriber Manager tools. I dosn't work. I can't get the backup .csv file. + 22.11.10 12:16:37 CET | INFO | Connecting to 192.1
-
How to change agent upload frequency
Hi, I am looking for a way to change the frequency at which the agent checks the local targets and uploads the information. The reason - say on the Dev database targets, I want to prevent Agent from collecting information frequently and uploading the
-
I'm having trouble buying a season pass for The Americans. I have purchased passes to Justified for the past 4 years with no problem. Can't figure out why this purchase won't work.