Apps server cache refresh
Hi all,
We have SRM server on windows 2003 with sql server 2005, in one of our Apps server service entry in service file for Message server is missing in the PRD.
STMS is showing red for that particular Apps server and it's showing unable to reach TMSADM RFC for the QAS.. so we have added the entry in service file in PRD Apps server.
We have to refresh the cache to make the change effect, with out bouncing the apps server how can we refresh the cache..
Please suggest...
Thanks,
Subhash
Hi Subhash,
Please check the RFC connection. I think rfc is missing. If rfc is running then configure stms again.
Regards,
Anil
Similar Messages
-
Multiple JVMs within app server - refresh of metdata not working
Hi guys.
We have an interesting scenario at present when running our application within a new test environment.
Our web-based application has the facility to refresh it's application metadata. This should mean that the next time the browser refreshes (or a user logs in to the application), the application will display based upon the refreshed metadata structure.
Previously, we have run our application on an app server with a single JVM without any dramas. ie. the refresh has always been reflected appropriately when viewing the application - as mentioned above.
However, we have installed the application in a new environment where the refreshing of meta data does not work consistently. That is, only about 50% of the time does the data refresh correctly. This can be seen by pressing the refresh button in an IE browser, so that the refreshed data appears approx. every second time the button is pressed. The only notable difference with this environment is that it runs 2 JVMs within the app server.
It seems that in this case, the 'old' data remains cached for the 'other' JVM, and that when the browser receives 'refreshed' data from the server, it does not always source from the same JVM.
This situation can be resolved by restarting the OC4J container, but this is not a desireable solution.
Is anyone aware of an OC4J parameter that can be set so that the 2 JVMs can run in synch so that both are refreshed appropriately when our meta data is cleared (refreshed) ? I don't believe this can be controlled within the Java source code, but I'm receptive to any other alternate solutions.
Thanks in advance.
Steve.I'd like to embed multiple instances of the JVM within
a single, multi-threaded native server process. I'm
aware this was not possible with the Sun JDK in the
past.
Is this still true (for JDK 1.4.1 say)?Yes, this is still true.
If it's still not possible, are there any timetables
as of when it might be available? No.
Likelihood?Check the current list of JSRs at http://www.jcp.org.
Ah, btw: Is support for VM unloading (during
DestroyJavaVM()) available now?No.
>
In any case: does anybody know of a JVM
implementation
available for Linux which supports multiple VM
instances within a single process?Why do you need multiple VMs? Would multiple separate 'processes' within a single VM work? If so, have a look at:
http://www.cs.utah.edu/flux/janos/janosvm.html
http://www.javagroup.org/echidna/
Jim S. -
Hi
I am installing web cache on two servers in web tier and J2EE server (with OHS) on another two servers in apps tier. Should I use standalone webcache or install from Oracle Apps Server package? If I choose Oracle Apps Server package, I have to disable Home, HTTP components. But it is DCM managed. Any suggestions?
And should I deploy my OHS servers on web cache servers in the web tier? In future we want to expand J2EE installation, we will deploy Portal with SSO, OID etc.
Regards
Shen JieShen Jie,
Please review the Enterprise Deployment to see what are the best architectures.
Hope this helps.
Deepak -
When i try to install iPlanet App Server on NT, I do not get screen to enter license key valid for evaluation.
Also during installation screens an error window is displayed saying "cache File Read error -- Could not read ProductKey entry from the cache file "Hi,
I also get the following message:
"Could not read ProductKey entry from the cache file"
I have no idea how to provide the installation software with the key. I also tried "keycheck.exe"
Do you have a solution for this problem? Did you finish the installation?
Christian -
Cannot start Web Cache in Oracle 10g App Server
Hi,
Our Application runs on Oracle10g App Server,
When it tried to start WebCache using the command
opmnctl startproc ias-component=WebCache process-type=WebCache
it shows the error...
opmn id=oracle10g:6200
no enabled components for this request
When i tried to enable WebCache using Enable/Disable Component in Oracle 10g Enterprise manager - I can't see WebCache component it to enabe or disable it.
When i tried opmnctl status., it shows
------------------------------------------------+---------
ias-component | process-type | pid | status
------------------------------------------------+---------
HTTP_Server | HTTP_Server | 7276 | Alive
LogLoader | logloaderd | N/A | Down
dcm-daemon | dcm-daemon | N/A | Down
OC4J | home | 7684 | Alive
OC4J | rhs | N/A | Down
OC4J | instaremit | 5880 | Alive
OC4J | insta_test_apr_02 | 7100 | Alive
WebCache is not running, also as the WebCache is not listed in Oracle 10g Enterprise manager, i can' enable or disable it.
Plz Help me over this.,
Regards.,
Deepak.CHi.,
Thanks again !!!
Yes, My Oracle HTTP Server is listening on port 80.
I am not clear, may i know why should the ports be changed for the request to go through Web Cache ???
Can i assign port 80 for Web Cache and 7778 for HTTP Server ?
Also In Oracle Enterprise Manager, Web Cache is not available...
home, HTTP Server, management alll these are there...
Also for HTTP Server, it's not showing any metric info, 'Not Yet Available' is shown even though the HTTP Server is running, how can i get metric info about Oracle HTTP Server, i have also used dmstool -t ohs_server, its not working
It's showing... FLEXMON ERROR : detected invalid table name ohs_server
dmstool -l -t also does'nt lists ohs_server
Hellp me over this.....
Deepak.C -
Implementing Oracle DCN with Coherence Cache in a weblogic 10 app server
I m trying to implements a DCN ( Database change notification ) on oracle to notify a listener of an event of DB so I can update Coherence Cache.
I followed the tutorial here and it is working fine using a sample program with a main method to execute the listener class and keep it running.
My question is how would this notification and listener gets implemented on a production environment since my local test was only running a main method to keep the listener running? what technology to use to keep the listener always running on the background and receive the notification from the database )?
would a [weblogic startup class|http://docs.oracle.com/cd/E13222_01/wls/docs81/ConsoleHelp/startup_shutdown.html] work for this purpose?
We are using Weblogic 10 as our app server.That's a very simple question with (many) potentially complex answers. I think that first uou need to study information on TimesTen to understand what it is and what it does. Then you need to relate that to you current performance bottleneck (I assume you have analysed those). If your bottleneck is database access then maybe TimesTen can help you.
Please bear in mind that TimesTen is not a 'transparent' drop in performance booster. To implement TimesTen and to realise significant performance improvement you will almost certainly need to make changes to both the application and the overall architecture. The cost/difficulty of doing that also needs to be factored in.
Chris -
500 Internal Server Error oracle.apps.fnd.cache.CacheException
I have been trying to access a new instance using JDEV, but i have been getting this error:
Can anyone help me ?
500 Internal Server Error
oracle.apps.fnd.cache.CacheException at oracle.apps.fnd.cache.AppsCache.get(AppsCache.java:228) at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1485) at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:354) at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:211) at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:171) at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:148) at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1259) at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:1114) at oracle.apps.fnd.common.logging.DebugEventManager.internalReinit(DebugEventManager.java:1083) at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:1050) at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:1037) at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:595) at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:941) at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:926) at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:891) at oracle.apps.fnd.common.WebAppsContext.<init>(WebAppsContext.java:1027) at oracle.apps.fnd.common.WebRequestUtil.validateContext(WebRequestUtil.java:223) at OAErrorPage.jspService(_OAErrorPage.java:62) [OAErrorPage.jsp] at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193) at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:847) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:813) at runregion.jspService(_runregion.java:193) [runregion.jsp] at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239) at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298) at java.lang.Thread.run(Thread.java:595)Caused by: oracle.apps.jtf.base.resources.FrameworkException: Error in IAS Cache: java.lang.NullPointerException: null Connection at oracle.apps.jtf.cache.IASCacheProvider.get(IASCacheProvider.java:712) at oracle.apps.jtf.cache.CacheManager.getInternal(CacheManager.java:4802) at oracle.apps.jtf.cache.CacheManager.get(CacheManager.java:4624) at oracle.apps.fnd.cache.AppsCache.get(AppsCache.java:216) ... 50 moreCaused by: oracle.apps.jtf.base.resources.FrameworkException: An exception occurred in the method CacheAccess.getnullThe base exception is:null Connection at oracle.apps.jtf.base.resources.FrameworkException.convertException(FrameworkException.java:607) at oracle.apps.jtf.base.resources.FrameworkException.addException(FrameworkException.java:585) at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:66) at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:88) at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:202) at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:218) at oracle.apps.jtf.base.resources.FrameworkException.<init>(FrameworkException.java:249) ... 54 moreHi Pardeep,
I was getting the same error. I have copied the JDK 1.5.0_16.zip from other user and unzip in the folder of mine like AB12020 where I have installed the Jdeveloper or might be your DBC file get corrupted.
Check out..
Thanks
Anil Sharma
PS-Pls marked ur questioned as answered and close the question.
Edited by: OAFUser on Jan 15, 2009 9:43 PM -
How do I clear the Disco cache on App Server 9.0.4
Can anyone tell me how I can clear the Discoverer cache installed on 9.0.4 Oracle App Server? Can it be done using App Server Control, is there command line syntax I can use?
Thanks
AndyHi Andy
I think the only way to get the memory back is to bounce the server. Sorry.
Best wishes
Michael -
Cache refresh error in Production Server in XI
Hi All,
whenever any object in ID gets changed cache refresh stops in XI in the production server.It throws error that it is unable to refresh the cache.All post installation activities are done properly.What should be done to solve the issue.What is the exact error? You may try looking into these two guides:
[How Tou2026 Handle Caches in SAP XI 3.0:|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1a69ea11-0d01-0010-fa80-b47a79301290?quicklink=index&overridelayout=true]
[How Tou2026 Handle XPI Caches in SAP NetWeaver 7.0:|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0332b2a-eb97-2910-b6ba-dbe52a01be34?quicklink=index&overridelayout=true]
For an overview of cache refresh errors in the Integration Repository or Integration Directory you can check SAP Note 780747. -
Connection/data source caching in JSC App Server?
Tried to change the data source for one of my apps (changed all data sources on all row sets). I got a connection error despite the fact that the IDE could see the data source.
I restarted the app server to no avail.
I finally stopped the app server AND restarted JSC and eveything started working again (except for the Conversion error I'm tracking down :-) ...Did the connection error occur at runtime ?
If so, then it's not recommended to change the datasource
especially if you change databases. It's not impossible to make
the changes - you need to edit the Page bean constructor and the
constructor in the SessionBean and anywhere else you
initialize the rowset with the URL.
If you changed the database, then because vendors
map JDBC types differently, you may need to make
changes . Typically you'll see conversion errors when changing
the database.
JDBC Type (which we call SQL Type) --> Java Type:
=========================================
CHAR --> java.lang.String
VARCHAR --> java.lang.String
LONGVARCHAR --> java.lang.String
NUMERIC --> java.math.BigDecimal
DECIMAL --> java.math.BigDecimal
BIT --> boolean
BOOLEAN --> boolean
TINYINT --> byte
SMALLINT --> short
INTEGER --> int
BIGINT --> long
REAL --> float
FLOAT --> double
DOUBLE --> double
BINARY --> byte[]
VARBINARY --> byte[]
LONGVARBINARY --> byte[]
DATE --> java.sql.Date
TIME --> java.sql.Time
TIMESTAMP --> java.sql.Timestamp
CLOB --> java.sql.Clob
BLOB --> java.sql.Blob
ARRAY --> java.sql.Array
DISTINCT --> (mapping of underlying type)
STRUCT --> java.sql.Struct
REF --> java.sql.Ref
DATALINK --> java.net.URL
JAVA_OBJECT --> (underlying Java class)
Source: JDBC 3.0 Specification, Appendix B
Also, see this post for more info :
http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=47015
John
JSC QA -
Office Web Apps Server , Excel Web Apps , Error , Event ID 5226
There is an environment of install Office Web Apps 2013 for SharePoint 2013 – with PDF Preview.
Having been able to use it without any problems.
One day, a preview of the Excel does not work properly.
Error or do not know the contents of the following, a solution to solve this issue anyone?
ERROR,
2014/XX/XX XX:55:30,
Excel Web App,5226,
Unable to create or access workbook cache at
C:\ProgramData\Microsoft\OfficeWebApps\Working\waccache\XXXX\Images.
Excel Services Application is unable to function without a workbook cache.If you have not followed instructions according to the following article. You need to reconfigure office web apps for sharepoint
http://technet.microsoft.com/en-us/library/jj966220(v=office.15).aspx
"Applying Office Web Apps Server updates by using the automatic updates process isn’t supported with Office Web Apps Server. This is because updates to an Office Web Apps Server must be applied in a specific way, as described in this article" -
Office Web Apps server security question
Hello,
According to this technet article Microsoft appears to recommend against allowing both external and internal users access to your OWA server.
http://technet.microsoft.com/en-us/library/jj219435(v=office.15).aspx#viewers
"Files that are intended to be viewed through a web browser by using Online Viewers must not require authentication. In other words, the files must be available publicly because Online Viewers can’t perform authentication when it is retrieving files.
We strongly recommend that the Office Web Apps Server farm that you use for Online Viewers is only able to access either the intranet or the Internet, but not both. This is because Office Web Apps Server doesn’t differentiate between requests for intranet
and Internet URLs. Somebody on the Internet could request an intranet URL, for example, causing a security leak if an internal document is viewed."
Just trying to make sense of this. I am building a new Lync 2013 environment and I definitely want my internal users to be able to leverage the OWA server. So does that mean I should not publish that server to the internet? And if I do
not, does that mean my users will not be able to share a powerpoint presentation at all to external users? If this is all true and I'm understanding this correctly, does this mean that most implementations choose one or the other? Or does Lync not
use these "Online Viewers" so I can just disable them and users will still be able to share powerpoint presentations with external users?
Thanks for any help you can provide for this confusion.No, you should publish to both internal and Internet on the same server, it's just how it's done with Lync. You can't really have two with Lync for this purpose anyway. Users will upload PowerPoint presentations to it when it's time to share,
no editing is possible, and the risk is generally minimal. You can shorten the cache time to help if you're concerned.
Regardless, from the article:
http://technet.microsoft.com/en-us/library/jj219442(v=office.15).aspx setting OpenFromUrlEnabled "Turns on or off the ability to use Online Viewers to view Officefiles from a URL or UNC path.". This is set to false and turned off by default.
Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
SWC Unified Communications -
Transfer a file from App Server to a FTP site.
Hi, Abapers.
I need your help. Probably, this topic has already been posted in a similar way, but we need an answer to solve our problem.
We have to sent a PDF file from a directory of our app server (AIX) to a FTP directory... which would the FM sequence we should use to goal it?
Best Regards.Hi Santiago,
create fm to send file from APP server to FTP site.
if you want to Post file from desktop to Appl use Transaction - CG3Y
if you want to Post file from Appl to Desktop use Transaction - CG3Z
copy the code below....
* Author: Prabhudas Date: 02/21/2006 *
* Name: Z_FTP_FILE_TO_SERVER *
* Title: FTP File on R/3 Application Server to External Server *
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(DEST_HOST) TYPE C
*" REFERENCE(DEST_USER) TYPE C
*" REFERENCE(DEST_PASSWORD) TYPE C
*" REFERENCE(DEST_PATH) TYPE C
*" REFERENCE(SOURCE_PATH) TYPE C
*" REFERENCE(FILE) TYPE C
*" REFERENCE(BINARY) TYPE CHAR1 OPTIONAL
*" REFERENCE(REMOVE_FILE) TYPE CHAR1 OPTIONAL
*" TABLES
*" FTP_SESSION STRUCTURE ZMSG_TEXT OPTIONAL
*" EXCEPTIONS
*" CANNOT_CONNECT
*" SOURCE_PATH_UNKNOWN
*" DEST_PATH_UNKNOWN
*" TRANSFER_FAILED
*" COMMAND_FAILED
DATA: w_password TYPE zftppassword,
w_length TYPE i,
w_key TYPE i VALUE 26101957,
w_handle TYPE i,
w_command(500) TYPE c.
REFRESH ftp_session.
* Scramble password (new Unicode-compliant routine)
w_length = STRLEN( dest_password ).
CALL FUNCTION 'HTTP_SCRAMBLE'
EXPORTING
SOURCE = dest_password
sourcelen = w_length
key = w_key
IMPORTING
destination = w_password.
* Connect to FTP destination (DEST_HOST)
CALL FUNCTION 'FTP_CONNECT'
EXPORTING
user = dest_user
password = w_password
host = dest_host
rfc_destination = 'SAPFTPA'
IMPORTING
handle = w_handle
EXCEPTIONS
not_connected = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING cannot_connect.
ENDIF.
* Optionally, specify binary file transfer
IF binary = 'X'.
w_command = 'bin'.
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
handle = w_handle
command = w_command
TABLES
data = ftp_session
EXCEPTIONS
command_error = 1
tcpip_error = 2.
IF sy-subrc <> 0.
CONCATENATE 'FTP command failed:' w_command
INTO w_command SEPARATED BY space.
MESSAGE ID 'ZW' TYPE 'E' NUMBER '042'
WITH w_command
RAISING command_failed.
ENDIF.
ENDIF.
* Navigate to source directory
CONCATENATE 'lcd' source_path INTO w_command SEPARATED BY space.
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
handle = w_handle
command = w_command
TABLES
data = ftp_session
EXCEPTIONS
command_error = 1
tcpip_error = 2.
IF sy-subrc <> 0.
CONCATENATE 'FTP command failed:' w_command
INTO w_command SEPARATED BY space.
MESSAGE ID 'ZW' TYPE 'E' NUMBER '042'
WITH w_command
RAISING source_path_unknown.
ENDIF.
* Navigate to destination directory
CONCATENATE 'cd' dest_path INTO w_command SEPARATED BY space.
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
handle = w_handle
command = w_command
TABLES
data = ftp_session
EXCEPTIONS
command_error = 1
tcpip_error = 2.
IF sy-subrc <> 0.
CONCATENATE 'FTP command failed:' w_command
INTO w_command SEPARATED BY space.
MESSAGE ID 'ZW' TYPE 'E' NUMBER '042'
WITH w_command
RAISING dest_path_unknown.
ENDIF.
* Transfer file
CONCATENATE 'put' file INTO w_command SEPARATED BY space.
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
handle = w_handle
command = w_command
TABLES
data = ftp_session
EXCEPTIONS
command_error = 1
tcpip_error = 2.
IF sy-subrc <> 0.
CONCATENATE 'FTP command failed:' w_command
INTO w_command SEPARATED BY space.
MESSAGE ID 'ZW' TYPE 'E' NUMBER '042'
WITH w_command
RAISING transfer_failed.
ENDIF.
* Disconnect from destination host
CALL FUNCTION 'FTP_DISCONNECT'
EXPORTING
handle = w_handle.
* Optionally, remove file from source directory
IF remove_file = 'X'.
CONCATENATE source_path '/' file INTO w_command.
CONCATENATE 'rm' w_command INTO w_command SEPARATED BY space.
OPEN DATASET '/dev/null' FOR OUTPUT FILTER w_command.
CLOSE DATASET '/dev/null'.
ENDIF.
Regards,
Prabhudas -
Hi,
Can some one tell me how to delete a specific file on the app server ?REPORT zdlc_delete_files .
DATA: wa_summary TYPE yloadsummary.
DATA: BEGIN OF tab1 OCCURS 500,
line(600),
END OF tab1.
DATA: unixcom LIKE rlgrap-filename.
DATA: lines TYPE i,
p_patho1(60).
SELECTION-SCREEN BEGIN OF BLOCK blk0 WITH FRAME TITLE text-u01.
PARAMETERS: p_patho(60) LOWER CASE
DEFAULT '/export/SAPtf/dlcinc/new/' OBLIGATORY,
p_sfile LIKE rlgrap-filename OBLIGATORY.
SELECTION-SCREEN END OF BLOCK blk0.
p_patho1 = p_patho.
CONCATENATE 'ls [D] '' ' p_patho1 INTO p_patho1.
unixcom = p_patho1.
REFRESH tab1.
CALL 'SYSTEM' ID 'COMMAND' FIELD unixcom
ID 'TAB' FIELD tab1[].
CASE p_sfile.
*To delete all .Read files.
WHEN '*.read'.
LOOP AT tab1.
SEARCH tab1-line FOR '.read'.
IF sy-subrc = 0.
CONCATENATE p_patho tab1-line INTO wa_summary-data_file.
DELETE DATASET wa_summary-data_file.
IF sy-subrc = 0.
WRITE :/'File Successfully deleted :', wa_summary-data_file.
ENDIF.
ENDIF.
ENDLOOP.
*To delte all .conv files.
WHEN '*.conv'.
LOOP AT tab1.
SEARCH tab1-line FOR '.conv'.
IF sy-subrc = 0.
CONCATENATE p_patho tab1-line INTO wa_summary-data_file.
DELETE DATASET wa_summary-data_file.
IF sy-subrc = 0.
WRITE :/'File Successfully deleted :', wa_summary-data_file.
ENDIF.
ENDIF.
ENDLOOP.
WHEN OTHERS.
*To delete a specified file.
CONCATENATE p_patho p_sfile INTO wa_summary-data_file.
DELETE DATASET wa_summary-data_file.
IF sy-subrc = 0.
WRITE :/ 'File Successfully deleted :', wa_summary-data_file.
ELSE.
WRITE :/ 'File does not exist: ', wa_summary-data_file.
ENDIF.
ENDCASE.
CHECK THIS CODE -
How can I keep a kind of global object (Singleton) in App Server?
Hi,
I am working with Application Server Platform Edition 8. I want to have a object on the App Server which will have only single instance. The instance will be available to all objects(ejbs) in the server.duffimo is right, the above approch can not be implemented.
I think we can achieve this by doing following setting in descriptor.
For Stateless bean under Weblogic (weblogic-ejb-jar.xml)
<pool>
<max-beans-in-free-pool>1</max-beans-in-free-pool>
<initial-beans-in-free-pool>1</initial-beans-in-free-pool>
</pool>
For Stateful bean under Weblogic (weblogic-ejb-jar.xml)
<stateful-session-cache>
<max-beans-in-cache>1</max-beans-in-cache>
</stateful-session-cache>
For Entity bean under Weblogic (weblogic-ejb-jar.xml)
<pool>
<max-beans-in-free-pool>1</max-beans-in-free-pool>
<initial-beans-in-free-pool>1</initial-beans-in-free-pool>
</pool>
and instance cache size
<entity-cache>
<max-beans-in-cache>1</max-beans-in-cache>
</entity-cache>
Hope these work....
Maybe you are looking for
-
Error in Starting OER Managed server on WEBLOGIC 11g..Linux OEL 4.7
Hi All, While starting the OER managed server from linux server kde console we are getting started with the the following error .. Pls provide any pointers in resolving the issue... <Jun 22, 2010 8:35:19 PM IST> <Warning> <HTTP> <BEA-101369> <Servlet
-
Getting ORA-20001: Creation of new object is not allowed: !!
Hi Am getting ORA-20001: Creation of new object is not allowed while enabling constraints after importing the dumps from source to target datbase,can anyone assist me to fix this issue.
-
Current Calendar Day on Selection Screen as Default
Hi, I have a situation where i need to have a variable which pulls up current calender day as a default value in the selection screen. Here users can use the default value if they want or else they should be able to change the default value to their
-
Balance in transaction currency using MIRO
Hello i´m trying to post an IR thru Transaction MIRO, but i´m getting the following error message "Balance in transaction currency" I´m trying to post these IR with a PO Reference. Someone can help me? Thanks
-
How to use the lcds in flex and how use the messageing serviecs in blazeds ?
I have a problem with messageing servies in Blazeds i used the romte and proxy very well but messaging services ?