Mapping a logical path to a real unix path in sqlplus.
hi everyone
Please, I trying to run a windows application that uses an oracle ex db over wine in a linux box .
The scenario is:
Linux -> wine -> win App -> Oracle xe(linux version)! So the win app will be dealing with a native linux version of oracle xe.
At certain point some sql script need to be executed by sqlplus.
The command is: sqlplus /NOLOG @F:\some\path\script.sql.
The problem is that I have F:/ mapped in wine to /some/path but it is not mapped in sqlplus, so sqlplus cannot find the script. My question is, is that a way (by using an environment variable or by any other way) to create a
map like that F:\ -> /some/path, so every time sqlplus try to execute a script in F:\ it looks at /some/path?
Great regards
Guilherme Longo
Hi,
I do not have answer.
I just like know why you run database with Wine ? You can install Linux native one
Regards,
Jari
Similar Messages
-
Hello,
what is a physical file and logical file in PATH table of SAP.
Plz help,
aafaqHi aafaqhusain,
1. logical file path is nothing but a IDENTIFIER/STRING/NAME
= the name by which
we refer to that file.
(in our programs)
2. The physical location of that file,
may change from server to server,
or from time to time.
(hence, we do not use hardcoded physical path,
in our programs,
but instead use this MAPPING of logical path,
to the physical path)
regards,
amit m. -
Mapping logical path valid name
We have existing mappings with "." in logical path name such
as www.test.com
However, when we try to create a new mapping with "." in them
we get a coldfusion error that states:
Please enter a valid name for the mapping
Is it possible to include characters such as "." in a logical
path? If so, how? If not, how did the existing mappings get
setup?Mappings with be the full path on the server, such as
c:\website\sitefiles\ and the name is just one word normally (
/mapping ). URLs are not a good thing to try to map. -
Logical path creation for an InfoSpoke
Hi,
I have an InfoSpoke for which I need to create a Logical Path. All I know is it involves some commands in MSDOS may be. Could anyone please let me know the procedure for the same?
Thanks.Hi Bobs,
Go to File trnx -> drill down the Logical File Path Definition -> Clcik on "Create a logical file path" in middle of the screen ->
Then it will prompt for details of logical path you want to create
EX: you can specify in the same lines as give below
Logical path ZXXXXXXXXXX
Name Description of ZXXXXXXXXX
Syntax group UNIX Unix compatible
Physical path /ABC/XYZ/<FILENAME>
ZXXXXXXXXX is the logical path you want to create
/ABC/XYZ/<FILENAME> -> /ABC/XYZ/ is the physical path in your server where your files will stored. dont forget to give filename within <> as shown above.
Just save after that
Regards
Sunil -
Logical File creation in Logical path
Hi all,
I am after an info, how to create different logical file name in the same physical path.
Suppose I have physical path: X/claims/interface/outbound which is assigned to logical path LP
Now under this path I want to store some logical file say 1, 2, and 3
What would be the naming convention? & how to do it?
Any help would be highly appreciated.
Regards,
Kironmoy Banerjee.Hi,
Use FM u2018FILE_GET_NAMEu2019 to assign the physical file name using a logical file name.
Remember you need to create u2018logical file nameu2019 using transaction u2013 FILE.
R/3 applications run on various platforms with various file systems. Hence we use platform-independent logical file names in our application programs.
Function module u2018FILE_GET_NAMEu2019 converts a logical file name to the corresponding physical file name and path for the hardware platform concerned.
For this conversion to work for different platforms, the definition of a logical file name must include a logical file path, which in turn is converted to different physical file paths, depending on the particular platform. The platform-specific file name returned by the function module is composed of the physical file path for the current platform and the physical file name associated with the logical file name. Placeholders in physical file and path names are substituted at runtime by the corresponding current values.
Example
logical file name: MONTHLY_SALES_FILE
physical file name: VALUES<PARAM_1>
logical path: SALES_DATA_PATH
physical path (UNIX): /usr/<SYSID>/<FILENAME>
physical path (Windows): C:\SALES\<FILENAME>.
Santosh
Edited by: Santhosh Nagaraj on Sep 30, 2009 2:45 PM -
LSMW-logical path not specified
Hi experts,
I am doing an LSMW object for purchasing info records conversion.
In the step "specify files" i am not able to save wat i have done cos i am getting an error 'No logical path has been specified' .I have choosed the file from PC-Frontend. Due to this problem am not able to go ahead with further steps.
please help.
Thanks,
NeelaHi
Have u followed all the steps perfectly while creating a lsmw ???
There are 14 steps that are normally used and these are :
1) Maintain Object Attributes.
2) Maintain Source Structures.
3) Maintain Source Fields.
4) Maintain Structure Relations
5) Maintain Field Mapping and conversion rules .
6) Maintain Fixed Values,translations ,user defined routines.
7) Specify Files .
8) Assign Files .
9) Read DATA.
10) Display Read Data.
11) Convert Data.
12) Display Converted Data.
13) Create Batch Input Session.
14) Run Batch Input Sesion.
Check this link
http://help.sap.com/saphelp_nw04s/helpdata/en/87/f3ae74e68111d1b3ff006094b944c8/content.htm
www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc -
Regards
Pavan -
LSMW accept file from logical path?
Dear All,
Can LSMW designs for conversions accept file from logical path?
The requirement is during actual conversion execution -the conversion team can store files anywhere they want, configure logical file names/paths and use our LSMWs without needing program modifications.
Kindly let me know.
Thanks in Advance
RanjanHai KCR
Using Tcode MM01 -- Maintain the source fields are
1) mara-amtnr char(18)
2) mara-mbrsh char(1)
3) mara-mtart char(4)
4) makt-maktx char(40)
5) mara-meins char(3)
the flate file format is like this as follows
MAT991,C,COUP,Srinivas material01,Kg
MAT992,C,COUP,Srinivas material02,Kg
AMT993,C,COUP,Srinivas material03,Kg
MAT994,C,COUP,Srinivas material04,Kg
MAT995,C,COUP,Srinivas material05,Kg
goto Tcode LSMW
give Project Name
Subproject Name
object Name
Press Enter -
Press Execute Button
It gives 13 radio-Button Options
do the following 13 steps as follows
1) select radio-Button 1 and execute
Maintain Object Attributes
select Standard Batch/Direct Input
give Object -- 0020
Method -- 0000
save & Come Back
2) select radio-Button 2 and execute
Maintain Source Structures
select the source structure and got to click on create button
give source structure name & Description
save & Come Back
3) select radio-Button 3 and execute
Maintain Source Fields
select the source structure and click on create button
give
first field
field name matnr
Field Label material Number
Field Length 18
Field Type C
Second field
field name mbrsh
Field Label Industrial Sector
Field Length 1
Field Type C
Third field
field name mtart
Field Label material type
Field Length 4
Field Type C
fourth field
field name maktx
Field Label material description
Field Length 40
Field Type C
fifth field
field name meins
Field Label base unit of measurement
Field Length 3
Field Type C
save & come back
4) select radio-Button 4 and execute
Maintain Structure Relations
go to blue lines
select first blue line and click on create relationship button
select Second blue line and click on create relationship button
select Third blue line and click on create relationship button
save & come back
5) select radio-Button 5 and execute
Maintain Field Mapping and Conversion Rules
Select the Tcode and click on Rule button there you will select constant
and press continue button
give Transaction Code : MM01 and press Enter
after that
1) select MATNR field click on Source filed(this is the field mapping) select MATNR and press Enter
2) select MBRSH field click on Source filed(this is the field mapping) select MBRSH and press Enter
3) select MTART field click on Source filed(this is the field mapping) select MTART and press Enter
4) select MAKTX field click on Source filed(this is the field mapping) select MAKTX and press Enter
5) select MEINS field click on Source filed(this is the field mapping) select MEINS and press Enter
finally
save & come back
6) select radio-Button 6 and execute
Maintain Fixed Values, Translations, User-Defined Routines
Create FIXED VALUE Name & Description as MM01
Create Translations Name & Description as MM01
Create User-Defined Routines Name & Description as MM01
after that delete all the above three just created in the 6th step
FIXED VALUE --MM01
Translations --MM01
User-Defined Routines --MM01
come back
7) select radio-Button 7 and execute
Specify Files
select On the PC (Frontend) -- and click on Create button(f5)
give the path of the file like "c:\material_data.txt"
description : -
separators as select comma radiao- button
and press enter save & come back
8) select radio-Button 8 and execute
Assign Files
Save & come back
9) select radio-Button 9 and execute
Read Files
Execute
come back
come back
10) select radio-Button 10 and execute
Display Imported Data
Execute and press enter
come back
Come back
11) select radio-Button 11 and execute
Convert Data
Execute
come back
Come back
12) select radio-Button 12 and execute
Display Converted Data
Execute & come back
13) select radio-Button 13 and execute
Start Direct Input Program
select the Program
select continue button
go with via physical file
give the lock mode as 'E'
and execute
Thanks & regards
Sreenivasulu P -
Logical file name or logical path name incorrectly defined
Dear All,
We are doing archival in our IDES for test purpose before we do it to our Production.
Steps Performed
Copied AM_ASSET archive object to ZAM_ASSET
Logical Path
Logical path ZAM_ASSET
Name Asset
Syntax group UNIX Unix compatible
Physical path /archive/test/<FILENAME>
Logical File Name
Logical file ZAMASSET
Name Asset
Physical file FI_<MONTH>_<DAY>.txt
Data format ASC
Applicat.area AM
Logical path ZAM_ASSET
But when we run the WRITE though SARA , in the job log we get the following
Logical file name or logical path name incorrectly defined
When generating a file name for an archive file that is to be created, the system determined that the logical file name FIAA_ARCHIVE_DATA_FILE or the logical path name ARCHIVE_GLOBAL_PATH was defined incorrectly.
But we have maintained a Logical name ZAMASSET , so we are unable to change the location of archived file and as well as the format.
So is there any setting we need to maintain apart from the logical file name and logical file path.
Suggestions are highly appreciated.
Thanks in anticipationhi,
follow this steps :
- transaction SARA
- enter authorization objects, eg SD_VBAK
- hit button CUSTOMIZING
- Archiving Object-Specific Customizing: execute Technical Setting
- field Logical File Name enter or select ARCHIVE_DATA_FILE
- leave CONTENT REPOSITORY as blank if you are not using 3rd party for storing (eg. IBM Tivoli)
- back to customizing
- from Basis Customizing, execute : Cross-Client File Names/Paths
- on Logical FIle Path Definition, highlight (select) ARCHIVE_GLOBAL_PATH on the right pane
- double click on the Assignment of Physical Paths to Logical Path on the left pane
- double click on OS used, eg. UNIX, define Physical Path where archive file (on WRITE process) will be stored
- save changes made
- double click Logical File Definition, Cross Client on the left pane
- double click ARCHIVE_DATA_FILE on the right pane
- make sure that logical path is already set to ARCHIVE_GLOBAL_PATH
- save changes made
this setting also can be done using transaction FILE
we have experienced on this case using SAP standard archiving (SARA, SARI) and everything is fine with this setting above.
hope it help you.
rgds,
Alfonsus Guritno -
Error4 wen accesing thefilefrom Appln server with the Logical Path
Hi Experts
I'm facing the Problem when accesing the file from the Application server (Unix System) in the Format of ASII File and with the help of the Logical Path which is Specified in the Tcode FILE and getting the ERROR_4 when i try to see the Preview itself
Thanks
RachaHi,
This is Thilak. Actually we will ger ERROR 4 Bcz of arithmetic problems i.e., Flat file format sequence may be differ with the tran.structure(BW). So, Chk that sequence and load the data. -
Getting physical path from logical path
Hi,
I am using the FM FILE_GET_NAME to get the physical path for a given logical path which I have specified within the FILE transaction.
The code works fine when I run the program in foreground but it doesn't work when I run it in background.
Can anyone advise on why this is and how I can get this to work correctly in background aswell as foregroud.
The ultimate goal is to be able to poll a directory on the SAP server (which could be windows or unix) and to process the files in there.
Thanks,
RubyThank-you.
I would prefer to to use a default path if possible. The reason I defined a logical path was so that this could be defined outside the program.
Are you saying I cannot use this FM in background at all?
Is there another FM which will do the same thing but will work in background?
What I am trying to do is create a program which will run in the background polling a particular directory and then process the files in this directory if it finds any.
Do you know how I could achieve this using logical paths rather than using hardcoded paths? -
HI,
I am using struts in my web application deployed on OC4J server.
I am hitting a problem that the "sub page" gets incorrect url.The details are as follows:
in my struts config the mapping is defined as :
1) "parent.do" is mapped to /WEB-INF/mypages/parent.jsp
2)"child.do" is mapped to /WEB-INF/mypages/child.jsp
My page "parent.jsp" contains two frames one having some a page with static images and the other frame having the src as "child.do"
Now if I invoke the http://myserver/myapp/parent.do
the first frame loads correctly while for second it throws an error 404 that "http://myserver/myapp/WEB-INF/mypages/child.do" not found.
It seems to me that that the subpage does not get the correct information about the context.
Any suggestions will be greatly appreciated.
Regards.When you are not in development, you can assign a different physical path to the same logical path in your staging system via the file transaction. As long as you use the logical path name in your code, it will be interpreted correctly with the setup in the system.
-
How to Configure logical path and how to retrieve physical path for an IDOC
Hi ,
I want to configure logical path for an IDOC,
and then I need to retrieve Physical path from this logical path
using a FM (eg. FILE_GET_NAME).
How to configure the logical path for an idoc ?
Regards ,
Harshit RungtaUsing Logical Files in ABAP Programs
To create a physical file name from a logical file name in your ABAP programs, use the function module FILE_GET_NAME. To insert the function module call in your program, choose Edit ® Insert statement from the ABAP Editor screen. A dialog box appears. Select Call Function and enter FILE_GET_NAME. The parameters of this function module are listed below.
Import parameters
Parameters
Function
CLIENT
The maintenance tables for the logical files and paths are client-dependent. Therefore, the desired client can be imported. The current client is stored in the system field SY-MANDT.
LOGICAL_FILENAME
Enter the logical file name in upper case letters that you want to convert.
OPERATING_SYSTEM
You can import any operating system that is contained in the list in Transaction SF04 (see Assigning Operating Systems to Syntax Groups). The physical file name will be created according to the syntax group to which the operating system is linked. The default parameter is the value of the system field
SY-OPSYS.
PARAMETER_1
PARAMETER_2
If you specify these import parameters, the reserved words in the physical path names will be replaced by the imported values.
USE_PRESENTATION
_SERVER
With this flag you can decide whether to import the operating system of the presentation server instead of the operating system imported by the parameter OPERATING_SYSTEM.
WITH_FILE_EXTENSION
If you set this flag unequal to SPACE, the file format defined for the logical file name is appended to the physical file name.
Export Parameters
Parameters
Function
EMERGENCY_FLAG
If this parameter is unequal to SPACE, no physical name is defined in the logical path. An emergency physical name was created from table FILENAME and profile parameter DIR_GLOBAL.
FILE_FORMAT
This parameter is the file format defined for the logical file name. You can use this parameter, for example, to decide in which mode the file should be opened.
FILE_NAME
This parameter is the physical file name that you can use with the ABAP statements for working with files.
Exception Parameters
Parameters
Function
FILE_NOT_FOUND
This exception is raised if the logical file is not defined.
OTHERS
This exception is raised if other errors occur.
Suppose the logical file MYTEMP and the logical path TMP_SUB are defined as in the preceding topics and we have the following program:
DATA: FLAG,
FORMAT(3),
FNAME(60).
WRITE SY-OPSYS.
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
LOGICAL_FILENAME = 'MYTEMP'
OPERATING_SYSTEM = SY-OPSYS
PARAMETER_1 = '01'
IMPORTING
EMERGENCY_FLAG = FLAG
FILE_FORMAT = FORMAT
FILE_NAME = FNAME
EXCEPTIONS
FILE_NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC = 0.
WRITE: / 'Flag :', FLAG,
/ 'Format :', FORMAT,
/ 'Phys. Name:', FNAME.
ENDIF.
The output appears as follows:
HP-UX
FLAG :
FORMAT : BIN
Phys. Name: /tmp/TEST01
In this example, the R/3 System is running under the operating system HP-UX, which is member of the syntax group UNIX. The logical file name MYTEMP with the logical path TMP_SUB is converted into a physical file name /tmp/TEST01 as defined for the syntax group UNIX. The field FNAME can be used in the further flow of the program to work with file TEST01 in directory /tmp.
Suppose we have a logical file name EMPTY with the physical file name TEST, connected to a logical path that has no specification of a physical path. If you replace the EXPORTING parameter 'MYTEMP' with 'EMPTY' in the above example, the output appears as follows:
HP-UX
FLAG : X
FORMAT :
Phys. Name: /usr/sap/S11/SYS/global/TEST
The system created an emergency file name, whose path depends on the installation of the current R/3 System. -
When I click on a picture or map in i.e. Kijiji real estate pages, Firefox opens it all crunched to the right side of the page. How can I correct this?
For instance I view an apartment ad which has various pictures attached. It says click on the pictures to see an enlarged version. FF opens the page however most of the page is blank and the picture appears to be pushed to the right side of the page and shows as if it has been scrunched agains the right side not showing the whole picture.
What Can I do to correct this?I see that you have increased some font sizes considerably.
* font.size.fixed.x-western: 20
* font.size.variable.x-western: 22
This can effect margins when the website specifies these as em values and cause content to shift.
If you have made changes to Advanced font settings like increasing the minimum/default font size then try the default minimum setting "none" and the default font size 16 in case the current setting is causing problems.
*Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
Make sure that you allow pages to choose their own fonts.
*Tools > Options > Content : Fonts & Colors > Advanced: [X] "Allow pages to choose their own fonts, instead of my selections above"
It is better not to increase the minimum font size, but to use an extension to set the default page zoom to prevent issues with text not being displayed properly.
You can use the NoSquint extension to set font size (text/page zoom) and text color on web pages.
*NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/
Note that your System Details List shows multiple Flash plugins.
* Shockwave Flash 16.0 r0
*Shockwave Flash 12.0 r0
You can find the installation path of all plugins on the <b>about:plugins</b> page.
*http://kb.mozillazine.org/Issues_related_to_plugins#Identifying_installed_plugins
You can check the Flash player installation folder for multiple Flash player plugins and remove older version(s) of the plugin (NPSWF32) and possibly (re)install the latest Flash player.
*(32 bit Windows) C:\Windows\System32\Macromed\Flash\
*(64 bit Windows) C:\Windows\SysWOW64\Macromed\Flash\
Your System Details list shows that you have a user.js file in the profile folder to initialize prefs each time Firefox starts.
The user.js file is only present if you or other software has created this file and normally it wouldn't be there.
You can check its content with a plain text editor (right-click: Open with) if you didn't create this file yourself.
The user.js file is read each time Firefox is started and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session.
You can delete this user.js and rename (or delete) the prefs.js file to reset all prefs to the default value including prefs set via user.js and prefs that are no longer supported in the current Firefox release.
*http://kb.mozillazine.org/Preferences_not_saved
*http://kb.mozillazine.org/Resetting_preferences -
What are Logical patha nd physical paths?
Hi all,
When i am uploading Material master data through LSMW i am getting Error like The Logical file name LSMW_* ....is not created.
What are this Logical files and i know these are Created by FILE tCode.
My question is why we need this file and it asking Logical path aslo and what is this Logical path and physcal path??
i did't not understand in SAP help link .
Thanks ,
MadhuHello,
Logical File path name is used to Map the physical path of the application server.
You can also access the file from the application server by directly passing the physical path as you convert the logical file name to physical path in your program.
I know you have read the SAP help documentation, but still may be this link can also help you.
[http://help.sap.com/saphelp_nw04/helpdata/en/8d/3e4ec2462a11d189000000e8323d3a/frameset.htm]
Thanks,
Jayant -
Usage of logical name, logical path name, physical name of a file
Hi all,
I have to write to a file on the application server. I had been given the logical name, logical path name and physical name. Suggest how to use these parameters and get the path where to store the file.
Thanks & Regards,
Kasinath.Open Dataset
catch system-exceptions DATASET_CANT_OPEN = 8.
open dataset UNIX_FILE for output in text mode encoding default.
endcatch.
Write to Dataset
loop at IT_STR into IS_STR.
catch system-exceptions DATASET_NOT_OPEN = 0 .
transfer IS_STR-STR to UNIX_FILE.
endcatch.
endloop.
if SY-SUBRC eq 0.
message S138(ZSM) with 'Data Downloaded to Unix File'.
endif.
Close Dataset
close dataset UNIX_FILE.
Regards
- Gopi
Maybe you are looking for
-
ITunes won't download on my PC
Everytime I try to download iTunes to my computer it says that there's a Apple Software update that can't be removed. I went in and tried to manually delete it and ti is NO WHERE to be found on my computer. I really need iTunes.. I just bought a new
-
Using the XSQL Page Processor Programmatically Issue
HI, I am using the oracle class "oracle.xml.xsql.XSQLRequest " to make use of the XSQL Page Processor from within a Java program and generate a diffenent format files (i.e. HTML, PDF). Everything works fine from the jdeveloper ,but when i deploy the
-
I have found with iTunes 11 that to move music over on my iPod it works very well and shows the 'on this iPod' button when you click on the device. With my iPhone however, you can click on iPhone but then there is no 'on this iPhone' button or the ad
-
My friend has a zune and has a copy of 300. the file he gave me is in WMV format. Im not sure how to add the file to my itunes library. it is in my WMP library and i can play it with WMP. i checked the support guides on itunes and tried to import the
-
I want to be able to use Photoshop features like being able to rotate the canvas, but I keep getting errors saying "Could not complete request because it only works with OpenGL enabled document windows." But I have decent graphics cards which suppor