Regarding retrieving path
hi all
iam doing a project in which iam giving an option to the user to backup his database
my problem is i have to give option to the user to save the .sql file according to his wish
how can i achieve this
i.e means the user can specify the path where to place the file
but how can we give him the interface i.e.,browse button is not satisfying the requirement
any help is appreciated
thanks in advance
You can't do this exactly unless you want to start messing around with applets and security settings but what you could do is change the content type:
Put the output of the sql file into a regular jsp as if you were displaying it to the user as a web page. Instead of the usual text/HTML change it to something like application/txt:
<%@page contentType="application/txt"%>
or
response.setHeader("Content-type","application/txt");
This should then allow them a choice to open the said sql file or to choose a place to save it. Depending on the local settings it may open it directly in their preferred text editor. Either way they will be able to save it where they want.
FYI: I know in PHP you can also specify the filename to use, not sure how to do this in java: header('Content-Disposition: attachment; filename="database.sql");
Similar Messages
-
Regarding Evaluation path used in Organisation structure.
Dear All,
How would i be able to get to know the evaluation path used by organisational structure to display the structure. What i found in tcode : ppome is that it is showing evaluation but not path name. I want to know the reference path name which it is using.
Thanks,
RajHi
Check the Report:
RHINFAW0 - Infotype reporting.
Regards,
Sreeram -
Regarding 'Direct Path Read' waits
As we all know, direct path read waits is a new feature in Oracle 11g. From Oracle Documents or others' articles, when it is full table scan, direct path read occured. But why it occured? I don't know clearly.
Below is Oracle Document description:
http://docs.oracle.com/cd/E18283_01/server.112/e17110/waitevents003.htm#sthref3849
During Direct Path operations the data is asynchronously read from the database files. At some stage the session needs to make sure that all outstanding asynchronous I/O have been completed to disk. This can also happen if during a direct read no more slots are available to store outstanding load requests (a load request could consist of multiple I/Os).
Question:
1. During Direct Path operations the data is asynchronously read from the database files. >> what does this statement mean? what's ''asynchronously read'?
2. describe above description for me in details.
3. who can clearly explain 'why direct path read waits occur' for me?
Thanks in advance.
LonionLonion wrote:
Question:
1. During Direct Path operations the data is asynchronously read from the database files. >> what does this statement mean? what's ''asynchronously read'?
2. describe above description for me in details.
3. who can clearly explain 'why direct path read waits occur' for me?
If you want to get very technical, Frits Hoogland has written lots of stuff about the implementation:
http://fritshoogland.wordpress.com/2013/05/09/direct-path-read-and-fast-full-index-scans/
http://fritshoogland.wordpress.com/2013/01/04/oracle-11-2-and-the-direct-path-read-event/
http://fritshoogland.wordpress.com/2012/12/27/oracle-11-2-0-1-and-the-kfk-async-disk-io-wait-event/
http://www.ukoug.org/what-we-offer/library/about-multiblock-reads/about-multiblock-reads.pdf
Regards
Jonathan Lewis -
can u tell me when go for replacement path rathe than default/manually entry in variable creation
plz tell me with example
waiting for reply
regards,
reddyhi!!
i will give u a scenario.
suppose u have a cube where u store summarized data,
an ODS where u store the detailed data or item level data.
when u click on the particular characteristic on the query output result of the cube, the detailed item level data should be fetched from the ODS for that particular characteristic.
The second variable i.e on the characteristic (ODS) wont ask you to enter the value as it will pick it up from the cube directly.It will be in the input off state.
Plz do assign points to this and also the previous posts as it is a way to say THANKS.
regards.
MM -
Regarding replacement path.. Could you help me please .. ?
Dear all,
I have problem when i use variable replacement path, where it replace another variable.
The scenario is like this:
I have variable cal. month user input where the type is interval (let say it's called var A).
Then i create rep. path variable cal. month:
1. Replace with : Key
2. Use Interval : From Value.
I use this rep. path variable for restricted KF.
When i run the report:
I fill in the value for Var A:
01.2003 - 05.2003
The invalid things are:
1. Rep. Path variable only get the value 01.2003. The impact the KF is only restricted by 01.2003.
It supposed to be restricted by 01.2003, 02.2003, 03.2003, 04.2003.05.2003.
The questions are:
1. How can i overcome this problem?
2. How should i do, if i want to use replacement path in restricted KF that can restrict by 01.2003, 02..2003, 03.2003, 04.2003, 05.2003 ???
Could you help me to suggest what i should do please .. ?
Really need your guidances....
Regards,
Niel.Hi Niel,
When you use a variable(v1) of processing type replacement path and try to replace it wih another variable the replacement is only by single value. This you can find by details tab in the variable(v1) being created.
Hence you have only options of replacing it wih from value/ to value/ difference.
I didn't undersand why you wish to use variable(v1) wih processing type replacement path when you could have used the input variable type for restriction of the characteristic in the restricted key figure.
I think for your requirement variable processing by manual input is more suitable unless you have some reason for replacement which I didn't undestand.
Thanks and regards,
Sunmit. -
Query regarding direct path write
Hi All,
We have Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production running on Redhat 4.
We have performance issue with high disk utilization.
When seen statspack report, top event is always direct path write.
when checked about direct path write found that it is consequence of direct path inserts/high sort operations.
I checked v$sort_usage and identified query which is listed there most of time, but column segtype is HASH for that query.
So is there chance i can conclude that this is the query which is causing direct path writes as confusing thing is SEGTYPE is HASH.
Please let me know your comment about the same and also is there a way i can find sql statement which are writing to temp tablespace using direct path write.
Regards
Vinayv$sql_workarea_active gives information about the active work areas in the system. It shows the operation type, sid, memory usage and temp tablespace usage. You can check this to see what session is using the temporary tablespace for work areas.
-
Hi all,
I have a problem please help me. I am a novice to java programming. My problem is i stored a hashset object in the database. Hashset object contains urls. How i can retrieve the hashset from database. please guide me, how i can achieve this.
I apologize for my poor English
Thanks in advance.
Regards,
Rama DeviHi all,
Sorry, for my insufficient information. I stored some urls in HashSet object. When i am inserting into database i directly gave HashSet object in the insert statement.
like this
String query = "insert into sponsoredlinks(keyword,title,description,displayurl,url) values ('"+keyword5+"','"+Title1+"','"+first1+"','"+third1+"','"+hs+"')";
Here table name is sponsoredlinks and it is having 5 fields. Fields are keyword,title,description,displayurl,url and hs is the HashSet Object.
Regards,
Rama. -
Regarding registry path of plx files
Hi All
I have created a new library and referred it in one of the forms. But attaching library to the form requires the plx file path of the library to be mentioned in Form/Libr attachment section in Edit generator preference of the particular form.
Is there some some registry path which we can modify to put the path where all the plx files are kept. This will not require the attachment of library to the form explicitly.
Any help in this regard is appreciated.
Cheers SudhirDid you include the path of the plx files in your Forms path?
And after you deploy your Forms to the Oracle Application server also include the path of the plx files to the Forms path in the environment file.
Regards,
Mark -
Retrieve path of OrdURLBuilder changed - can't upgrade to 9.0.3
Class oracle.ord.html.OrdURLBuilder changed it's retriveve path default value - from "ordPlayMedia.jsp" (9.0.2) to "ordDeliverMedia" (9.0.3).
It didn't help to rename my jsp page, because "ordDeliverMedia" is without ".jsp"!?!
I used InterMedia images inside 9.0.2 with no problems. Now I want to upgrade to 9.0.3, but images doesn't display...
9.0.2:
<IMG SRC="ordPlayMedia.jsp?appModID=am&rowSetName=Pracovnik12&contentCol=Foto&rowKey=000100000002C103&cache=1032764228000" ALT="Photo">
9.0.3:
<IMG SRC="ordDeliverMedia?appModID=am&viewObjectName=Dochazka.Pracovnik12&contentCol=Foto&rowKey=000100000002C103000000A9000000F322F411C4&cache=1032764228000" ALT="Photo">
I took advantage of setting renderer automatically from attribute domain name (oracle.ord.im.OrdImageDomain). I suppose it is done inside
DataSourceImpl.getContextFieldRendererClassName().
I've no idea how to change retreive path - because instantiating OrdURLBuilder is done inside OrdBuildURLRenderer....
So now it is very problematical for me to upgrade to 9.0.3...
Can anybody help me?
Thank you very much for any comment
Jan PechanecThe following is a JDev903 web.xml for BC4J JSP apps. Notice the <servlet> and <servlet-mapping> elements. Please check your web.xml. If you don't see the same settings, that's probably why the default "ordDeliverMedia" didn't work for you. Pls copy/paste these two elements to your web.xml and try again.
regards,
Richard
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<description>Empty web.xml file for Web Application</description>
<servlet>
<servlet-name>ordDeliverMedia</servlet-name>
<servlet-class>oracle.ord.html.OrdPlayMediaServlet</servlet-class>
<init-param>
<param-name>releaseMode</param-name>
<param-value>Stateful</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>ordDeliverMedia</servlet-name>
<url-pattern>/ordDeliverMedia</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<welcome-file-list>
<welcome-file>main.html</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>/webapp/DataTags.tld</taglib-uri>
<taglib-location>/WEB-INF/lib/datatags.jar</taglib-location>
</taglib>
</web-ap -
Dear guys,
Support Pls..I am working In 640Basis system.
I have created Logical path ZDIRLOGGING and ZLOGICFILE
using FILE transaction.
I have set my logical path as below in WINDOWS NT environment.
ZDIRLOGGING :C:\usr\sap\RX1\DVEBMGS90\log\<FILENAME>
and
ZLOGICFILE : ZDIRLOGGING.
I used FILE_GET_NAME FM to Access the physical path using Logic file ZLOGICFILE.
My input to FM is
Logical file name :ZLOGICFILE
OS : WINDOWS NT or NT
Parameter_1 : ZTEST
ELEMINATE_BLANKS :X
Export parameter always gives different path
FILE_NAME <i>C:\usr\sap\RX1\SYS\GLobal\ZTEST.</i>
instead of below original path
<b>C:\usr\sap\RX1\DVEBMGS90\log\<FILENAME>.</b>
why it is..where i am wrong here..
could somebody help me..
Message was edited by: ambi chanHey guys,
To my confirmation i think i have done correctly.
I have followed all steps what you people told.
prblem i found often is, while creating Logical file
when i try to select Logical path(using f4) i get shortdump like this below.
So what i am doing still now is just entering the logical path name straight way in Input textbox and save.
DO you think below shortdump relates with this problem.
Also FYI, i tried giving SAP logical path in FM and tried..but still the DEFAULT DIR_GLOBAL path is taking by fm.
Any other solutions would be more great.
Runtime Errors LOAD_PROGRAM_NOT_FOUND
Exceptn CX_SY_PROGRAM_NOT_FOUND
Date and Time 29.06.2005 15:48:46
ShrtText
Program "/1BCF41/FILEPATH " not found.
What happened?
There are several possible reasons for the error:
Error in ABAP application program.
The current ABAP program "SAPLSDSD" had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
or
The current ABAP program had to be terminated because the
ABAP processor detected an internal system error.
The current ABAP program "SAPLSDSD" had to be terminated because the ABAP
processor discovered an invalid system state.
Error analysis
An exception occurred. This exception is dealt with in more detail below
. The exception, which is assigned to the class 'CX_SY_PROGRAM_NOT_FOUND', was
neither
caught nor passed along using a RAISING clause, in the procedure
"GENERATED_PROG_SELECT" "(FORM)"
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is:
On account of a branch in the program
(CALL FUNCTION/DIALOG, external PERFORM, SUBMIT)
or a transaction call, another ABAP/4 program
is to be loaded, namely "/1BCF41/FILEPATH ".
However, program "/1BCF41/FILEPATH " does not exist in the library.
Possible reasons:
a) Wrong program name specified in an external PERFORM or
SUBMIT or, when defining a new transaction, a new
dialog module or a new function module.
b) Transport error
b) Transport error
Missing RAISING Clause in Interface
Program SAPLSDSD
Include LSDSDF15
Row 11
Module type (FORM)
Module Name GENERATED_PROG_SELECT
Trigger Location of Exception
Program SAPLSDSD
Include LSDSDF15
Row 78
Module type (FORM)
Module Name GENERATED_PROG_SELECT
Source Code Extract
Line
SourceCde
48
MSG DH805: Anzeige nicht möglich (Inkonsistenz der Eingabehilfe)
49
MESSAGE i805(dh).
50
EXIT.
51
ENDIF.
52
ENDIF.
53
Die Ausgabe auf die in der Record_tab verwalteten Felder
54
beschränken.
55
select_fields[] = shlp-fielddescr[].
56
delete select_Fields where mask+4(1) = 'X'.
57
In den Selektionsoptionen könnten die Suchhilfe statt des
58
Tabellennamens angegeben sein. Deshalb muß nochmals umgemappt
59
werden.
60
sort shlp-fielddescr by fieldname.
61
selopt_tab[] = shlp-selopt[].
62
LOOP AT selopt_tab ASSIGNING <so>.
63
READ TABLE shlp-fielddescr INTO dfies_wa WITH KEY
64
fieldname = <so>-shlpfield BINARY SEARCH
65
TRANSPORTING tabname.
66
IF sy-subrc <> 0 OR dfies_wa-tabname IS INITIAL.
67
DELETE selopt_tab.
68
ELSE.
69
<so>-shlpname = dfies_wa-tabname.
70
ENDIF.
71
ENDLOOP.
72
PERFORM select_table IN PROGRAM (repid)
73
TABLES value_tab
74
select_Fields
75
selopt_tab
76
USING maxrows sort cursor-with_cursor
77
changing cursor-c.
>>>>>
ENDFORM.
79
80
81
FORM generated_program_validity_check *
82
83
84
85
--> repid *
86
--> valid *
87
88
FORM generated_prog_validity_check
89
USING repid TYPE sy-repid
90
checktable type tabname
91
texttable type tabname
92
CHANGING valid TYPE c.
93
DATA: timestamp TYPE timestamp.
94
data: trdir_wa type trdir.
95
data: rhead_tab type table of rhead.
96
data: rhead_wa type rhead.
97 -
Hello,
I have a string that contains a full FileName; i.e., The path and the file name.
How can I get just the path out of that string?
I tried "File(FileName.path)" but it returned something like "0000 temp"
Seemingly, that only works on a file object, and not on a string.
I wanted to do something through find/replace within the string... but I dont know about it.
In other languages I would do a reverse search on a forward slash - which would find the last slash in the string
and I would erase everything after that.
If anyone can help me with this, I will greatly appreciate it!
Thanks,
DaveyAssume a string variable s; then
myPath = Folder(s).path;
(if the string s is a legal path) will give you the path associated with s's the full path.
Peter -
Regarding logical path....LSMW
dear all..
i m working on LSMW for BOM creation.. i have created two flat files for header and the child windown (component). but when i m creating session, its asking for a logical path.. i have tried it with the t code FILE.. but its not working.
can anybody tell me how to assign logical file and logical path during creation of sesion.. is there anything with the authorization issue or something else..
pls help
jigar t patel> dear all..
> i m working on LSMW for BOM creation.. i have created
> two flat files for header and the child windown
> (component). but when i m creating session, its
> asking for a logical path.. i have tried it with the
> t code FILE.. but its not working.
What "is not working"?
Markus -
Querry regarding Evaluation path in org management
Hi Experts,
I need to configure an evaluation path as follows.
1. A manager M1 belongs to org unit O1. He manages Org unit O2.
2. Org unit O2 reports to O1. similarly O3 also reports to O1.
3. Now I need to develop a evaluation path in which, M1 should have visibility to all employees from both O2 and O3 in his MSS..
I have tried out many combinations with A002 and B002 relationships. but it not working.
So could you help me to build this evaluation path.
Thanks
SameerHi Sameer,
As per your existing relationships, 02 and 03 both reports to 01 org. unit..
M1 belongs to 01, and 02 Reports to 01.
So I think you should create a relationship like the following.
1) Either M1 has to manage 03 (A012)
or
2) 02 has to Reports to 01 (A002 b/w the org.units)
I think any one of the above relationships must exist..
Otherwise, M1 cannot view all the employees from 03 in MSS, Since He is no more related with Org. unit 03. -
Regarding the path variable. somebody please help !!!
I have a small problem, I have to change the path variable often. So I thought of creating two .bat files to change it when i needed. But the problem is in XP...
set Path=%Path%;C:\myfolder;
command doesnt seems to be working. Actually it doesnt change the Path system variable at all. Please help me with this and Sorry if i have posted the questing in a wrong forum.
Kawisha.Hi
First of all as I know there is a limit for the length of the path string.
For the second time if you change the path in a CMD than this doesn't change the path string of the system only the CMD path string has changed.
If you want to change to system path string than do it in the Control Panel/System/Special Tab/Enviroment Variables/System Variables/Path.
Ott Karesz
http://www.trendo-kft.hu -
Hi all,
I have downloaded the internal table to application server.
but in AL11 transaction I am not able to see that directory. Is there any way to access the application server path where I downloaded the file.Hello,
Either you can ask basis team to do SAP mapping of the directory where you have loaded file in application server.
or you can get the physical file apth & try to connect the server using FTP explorer tool.you need to ahve user id & pwd for the server.ONce you access server just click on the directory where you ahve loaded file .Find file & see the contents.
Thanks.
Mark points if helpful.
Maybe you are looking for
-
Issue with Screen Painter Add-On after patch updation
Hi Experts, We are using 2007 B PL10. We upgraded to PL 11 and now we are getting the following error while trying to start the Screen Painter Add-On. "Wrong Executable digital signature for Add-on" Please help! Thanks in advance Ajith G
-
No Display of Results in Data Grid
I have the following code. The logger shows that the connection to the remote service t is successful. If I dump the results of the CFC I get the data I'm looking for. I haven't done this in a while. Any ideas on why I'm not getting results in the da
-
How to combine two albums in one ?
Hi, I bough a new mac and with it came the fastideous task of re-adding all the albums to iTunes once again. Everything was going fine until I added a album which has 2 CDs 14 tracks in one CD and 5 more in a Bonus CD what happen when I added the CDs
-
I get an Error when I try to input levels.
I am trying to make an avoider game that has levels. When I make the first level everything works fine but when I try to make level 2 I get this error. TypeError: Error #1009: Cannot access a property or method of a null object reference. a
-
Cannot launch application to open a file from jdev extension
Hello: I use the following code to let my application to open a file: String[] cmd = new String[3]; cmd[0] = "cmd.exe" ; cmd[1] = "/C" ; cmd[2] = "myfile.pdf; Process p = Runtime.getRuntime().exec(cmd); p.waitFor(); It worked fine if it was in a main