Welcome-file issue in App Server 8.2
Hello all,
can you explain some strange behaviour of Application Server?
I have to set some page as a starting page. We all know that i have to put
<welcome-file-list>
<welcome-file>MyStartPage.jsp</welcome-file>
</welcome-file-list>
</web-app>
to web.xml.
So, my app does not include servlets, and i have web.xml as following:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<welcome-file-list>
<welcome-file>MyStartPage.jsp</welcome-file>
</welcome-file-list>
</web-app>
BUT: this works in Tomcat, but does NOT work in Sun App Server 8.2.
In SUN App server, i have to add
<servlet>
<servlet-name>Fake servlet</servlet-name>
<jsp-file>MyStartPage.jsp</jsp-file>
</servlet>
to web.xml (obviously, before welcome-file-list element).
IMHO, it's an issue... Why do i have to use some fake declaration?
Can someone test this curious issue against other App servers?
Thanks in advance, Vad.
Hi,
I am facing the same issue. I did not verify with Tomcat but with an earlier version - 1.4.01
It used to work earlier with J2ee sdk 1.4.01. I installed the J2ee sdk 1.4.03 after uninstalling 1.4.01. I had a bunch of JSPs, and a web.xml specifying the welcome page. It used to work fine. Now after 1.4.03, (server 8.2), the welcome page does not work. Instead it displays the list of JSPs on the page. There have been no modifications to the web.xml. The 8.2 has a bug here.
Similar Messages
-
Emdedding a pdf file generated on app server in a peoplesoft page
All,
I have a requirement to embed a pdf file on the app server in a peoplesoft page.
I am planning to do a push the file to the webserver using put attachment and then add a reference to the image in an html area on the page.
However, I need to position the pdf document when the page is displayed as the html area is smaller than the pdf document such that the middle part of the document is shown to the user. This is required so that the user does not have to sroll to that position.
Is there a way to do this ?What is the PeopleTools version and application version you are using.
Jayaprakash Tedla -
CL_GUI_PDFVIEWER and files from the App server
Hi,
I would liek to use the class CL_GUI_PDFVIEWER to read files from the app server (transaction AL11) and then to present them.
it is easy to use the local machine files.
how can I use the method open_document with a file from there?
Thanks,
ItayThanks for the help.
I tried what you suggested but I get a dump for some reason.
Can you help?
This is the dump:
Exception condition "SYSTEM_FAILURE" raised.
Program SAPLOLEA
Include LOLEAU10
Row 358
Module type (FUNCTION)
Module Name AC_FLUSH_CALL_INTERNAL
This is the program:
REPORT zpdftest .
DATA: g_html_viewer TYPE REF TO cl_gui_html_viewer,
my_main_container TYPE REF TO cl_gui_custom_container,
entry1(100) TYPE c,
entry2(100) TYPE c.
DATA: okcode TYPE sy-ucomm,
gt_pdf TYPE STANDARD TABLE OF string,
wa_pdf TYPE string,
g_url(2048) TYPE c
START-OF-SELECTION.
SET SCREEN 100.
*& Module pbo_0100 OUTPUT
MODULE pbo_0100 OUTPUT.
SET PF-STATUS 'STATUS100'.
SET TITLEBAR 'TITLE100'.
IF my_main_container IS INITIAL.
CREATE OBJECT my_main_container
EXPORTING
container_name = 'CUSTOM_CNTL'
EXCEPTIONS
cntl_error = 1
OTHERS = 2.
CHECK sy-subrc IS INITIAL.
CREATE OBJECT g_html_viewer
EXPORTING
parent = my_main_container
EXCEPTIONS
cntl_error = 1
cntl_install_error = 2
dp_install_error = 3
dp_error = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
DATA: lv_filename TYPE rlgrap-filename.
lv_filename = '/PBMGUS/UXA/ABAP/TEST.PDF'.
OPEN DATASET lv_filename FOR INPUT
IN BINARY MODE
WHILE sy-subrc IS INITIAL.
READ DATASET lv_filename INTO wa_pdf.
IF NOT sy-subrc IS INITIAL.
EXIT.
ENDIF.
APPEND wa_pdf TO gt_pdf.
ENDWHILE.
CLOSE DATASET lv_filename.
CALL METHOD g_html_viewer->load_data
EXPORTING
type = 'application'
subtype = 'pdf'
IMPORTING
assigned_url = g_url
CHANGING
data_table = gt_pdf
EXCEPTIONS
dp_invalid_parameter = 1
dp_error_general = 2
cntl_error = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL METHOD g_html_viewer->show_url
EXPORTING
url = g_url
EXCEPTIONS
cntl_error = 1
cnht_error_not_allowed = 2
cnht_error_parameter = 3
dp_error_general = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
ENDMODULE. " pbo_0100 OUTPUT
*& Module pai_0100 INPUT
MODULE pai_0100 INPUT.
CASE okcode.
WHEN 'BACK'.
LEAVE to screen 0.
WHEN OTHERS.
CALL METHOD cl_gui_cfw=>dispatch.
ENDCASE.
CLEAR okcode.
ENDMODULE. " pai_0100 INPUT -
Multiple screens issue on App Server 10.1.2.3
Hi, I'm having an issue with having multiple screen open within the same session on App Server 10g.
The first screen opens and operates just fine.
When I open the 2nd screen, I have some poplists that get built when it opens, but it doesn't seem to populate them. If I close my first screen and this one, then open this screen, it works fine. I do have some "Global" variables that we're using that may be causing the issue. THey worked fine in the days of 6i but conflicting now in 10g when multiple screens are opened.
I was wondering if there was a solution to get around this, or there is a config file that I could change that would resolve this.
Any help is much appreciated. Thank you in advance.
ChrisHi,
We have just run it through with the same patchset for the installer. This is a clean install of Win OS and installed the 10g database first.
We receive the following error when installing the App Server (Forms & Reports)
*"Output generated from configuration assistant "Application Server Control Configuration Assistant":*
*Oracle Enterprise Manager 10g Application Server Control Release 10.1.2.0.2*
*Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.*
*http://200810G.[hostname]:18100/emd/console/aboutApplication*
*Starting Oracle Enterprise Manager 10g Application Server Control ..The Oracleoracleas1ASControl service is starting*
*The Oracleoracleas1ASControl service could not be started.*
*A service specific error occurred: 2.*
*More help is available by typing NET HELPMSG 3547.*
*Configuration assistant "Application Server Control Configuration Assistant" failed"*
When we type NET HELPMSG 3547 (as suggested), we receive the following error message:
*"A service specifig error occurred: ***."*
Are you running Windows Server 2008 (first release) or Windows Server 2008 R2?
Any suggestions? I will try installing the App Server without installing the database now to see if that makes any difference.
Thanks -
Deploying a WAR file to Sun App Server 8.1 PE
So I thought that if I downloaded Sun App Server PE 8.1 and put it on my soon-to-be production machine, it should be pretty easy right?
Nope. So I have JSC update 6 (which includes Sun Application Server 8.0) (God how I wish there was a catchy name like Tomcat or something)
And I have a machine running a good copy, installed and everything, of Sun Application Server 8.1 Platform Edition (another catchy name) up on the production target.
I create a WAR file in JSC, scp it up.
Then try to deploy it - so I get bit by the no DB connection thing.
Ok, but when I copy each of my connection's attributes (the driver (which I did copy up to the lib directory) is MySQL's Connector/J)
I copy the username, password, URL and DriverClass attributes to the connection pool.
I still get a
"Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Class name is wrong or classpath is not set for : com.sun.sql.datasource.DriverAdapter"
when I try to Ping the ConnectionPool
I have javax.sql.DataSource as the resource type... (same as 8.0 uses)
what JAR file is DriverAdapter in? anyone know?
cheers,
KrisOkay. mysql folks - this works......
here's what happened, on the production server, different from the dev machine....
mysql 4.1.9
sun application server platform edition PE 8.1
connector/j - latest
and on the dev machine: JSC Update 6 and the app works fine on the dev machine.
first, there is a JAR file in ~whatever/Create/SunAppServer/lib/ named
driveradaptor.jar
and it it comtains
com.sun.sql.datasource.DriverAdapter
which 8.1 ain't got
and should be copied up to
/installdir/SunAppServer/domains/domain1/lib/ext/driveradapter.jar
(domain1 is your app svr domain that runs your app.)
your Connector/J JAR needs to go here too. I used:
mysql-connector-java-3.2.0-alpha-bin.jar
downloaded from mysql.com.
and then there is the whole thing about Added Properties in the Connection Pool page inside the 8.1 Admin Console (which is nice work guys). Gawd, I added a bunch of properties and am, frankly, not sure which ones actually work (for the Ping, for the initial connection creation and the eventual successful connection all seem to use different combinations...)
and I found this in the domain's domain.xml once all the admin console page filling was done - but you'll need to add each one as a Property in the connection pool:
<jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="com.sun.sql.datasource.DriverAdapter" fail-all-connections="false" [blah...]
<property name="Username" value="root"/>
<property name="Password" value="secret"/>
<property name="ValidationQuery" value="SELECT 1"/>
<property name="DriverClassName" value="com.mysql.jdbc.Driver"/>
<property name="LoginTimeout" value="0"/>
<property name="Url" value="jdbc:mysql://localhost/databasename?autoReconnect=true"/>
<property name="User" value="root"/>
<property name="password" value="secret"/>
<property name="PasswordCredential" value="secret"/>
</jdbc-connection-pool>
(and you see how User and Username and username are all the same thing? well, different parts of 8.1 seem to use different attributes...)
Just keep Adding Properties in the connection pool until you get them all....
Oh and, the two key class references for the pool are:
datasource class: com.sun.sql.datasource.DriverAdapter
resource type: javax.sql.ConnectionPoolDataSource
Finally: in the /installdir/SunAppServer/domains/domain1/applications/j2ee-modules/YourAppName/WEB-INF/
your 'sun-web.xml' (don't delete it, like some have advocated, I think that wrong) needs to look like:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet 2.4//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd">
<sun-web-app xmlns="http://java.sun.com/xml/ns/j2ee">
<context-root>/yourcontext</context-root>
<resource-ref>
<res-ref-name>jdbc/Yourname</res-ref-name>
<jndi-name>jdbc/Yourname</jndi-name>
<default-resource-principal>
<name>root</name>
<password>secret</password>
</default-resource-principal>
</resource-ref>
</sun-web-app>
and I think that's all of it. the only Bug I would I would say is that the sun-web.xml should have the right res-ref-name, but then I think the Creator Team knows this and will fix it sometime soon.
cheers,
and Roger Federer lost in the Aussie Open. (I think he lost tomorrow too, that whole time zone thing being so damn Einsteinian...)
-Kristofer -
Accessing txt files in the App server from web application
Hi All,
We have a use case, where we need to access txt files from the ADF web application.
We will display to the user the path of the file and whenever he/she clicks, it should be downloaded automatically to the users machine.
Environments we need to develop: JDeveloper 10.1.3.4 and Oracle App Server 10.1.3.1
And our server has credentials and only those who have access to the server can access the files.
Point me or suggest me a good solution to this use case.
Regards,
Naga.Hi Joonas,
i was able to download the files, thanks a lot for your guidance. i will mark your answer as correct.
Can you let me know how to achieve the following usecase.
1. there will be multiple text files in the server i.e., out of our web application context like in some folder
2. And we need to give user a http link and if he clicks on the link that file should be downloaded automatically to his machine.
and we are using oracle app server 10.1.3.4, please point me to some document or example.
thank you.
naga. -
Background Job spool / output file in different app server
We are working with 2 ECC app servers, A and B.
I've defined in app server A a background job to run an abap report and this report creates and submit 4 other background jobs.
Each of these 4 jobs is regarding an abap report which outputs a text file in the server.
The question is, why are the jobs generating the files in different app servers randomically?
The same file, in the 1st execution was generated in app server A, and without any change was generated in app server B, in the job 2nd execution?
Thank you!Hi,
You can specify server name whille creating a batch job , so that it gets executed to that server only.
there is one field (in SM36 during creation or SM37 while modifying batch job) called "Exec Target " , where you can specify server name.
Hence you can plan to run your some batch jobs on server A or B.
Regards,
Rupali -
How to check file name in APP server
Hi,
Iam writing some files to APP server .Iam unable to check those files by using AL11. How to check those files in APP server?Hi,
You can use this FM EPS_GET_DIRECTORY_LISTING.
Also please try this FM /SAPDMC/LSM_F4_SERVER_FILE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_apath.
* Open the Browse Dialog Box on the Application Server
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
IMPORTING
serverfile = p_apath
EXCEPTIONS
canceled_by_user = 1
OTHERS = 2.
IF sy-subrc <> 0.
* No need to check for sy-subrc
ENDIF.
Regards,
Ferry Lianto -
Class not Found issue in App Server
Hi
I have a problem in deploying a ear file in the WSAD 4.0. It gives the following error
[04.10.07 22:22:25:156 GMT+05:30] f6e78a0 SystemOut U Compiling content of ejbModule/basfcorp/emcp/bo/ejb/login
[04.10.07 22:22:25:203 GMT+05:30] f6e78a0 SystemOut U (1 problem found) Copying all resources on the classpath
[04.10.07 22:22:25:312 GMT+05:30] f6e78a0 SystemOut U (1 problem found) Build done
[04.10.07 22:22:25:312 GMT+05:30] f6e78a0 SystemOut U Java build completed
[04.10.07 22:22:25:312 GMT+05:30] f6e78a0 SystemOut U Invoking Validation on /Deployed_EmcpEJB.jar.
[04.10.07 22:22:25:484 GMT+05:30] f6e78a0 SystemOut U ejbModule/basfcorp/emcp/bo/ejb/login/EJSRemoteStatelessMCP_Login.java(-1): This compilation unit indirectly references the missing type basfcorp.emcp.util.common.MCP_Exception (typically some required class file is referencing a type outside the classpath)
[04.10.07 22:22:25:562 GMT+05:30] f6e78a0 SystemOut U Shutting down workbench.
[04.10.07 22:22:26:359 GMT+05:30] f6e78a0 SystemOut U Execution Halted: Compilation Errors Reported
[04.10.07 22:22:26:359 GMT+05:30] f6e78a0 SystemOut U 1 Errors, 0 Warnings, 0 Informational Messages
Does any of you guys have an idea what would be the solution for this error? This seems to be specific to this version of the App Server and Development Environment. The MCP_Exception .java whcih the application says is missing was writtem by us and it was working fine if we create the jar and ear files in the same machine. But when we try to deploy the ear file in a seperate server we get into this error. Your assistance is much appreciated
Regards
SKSo, does the MCP_Exception get packed along with the ear? Sounds to me like maybe you have it in some common or shared part of the developement classpath, and don't move it to the application's classpath when deploying. Peek through the ear and make sure that the MXP_Exception.class file is in the proper pacakage, in the ear somewhere.
-
Generated WSDL Issue - Glassfish App Server
Hi,
I am at a loss as to how to modify the generated WSDL and associated schema for a webservice I am deploying to Glassfish V2 Milestone 4 - Build 33. I'm using EJB 3.0 and the entity beans I developed have one to many and many to one references to each other:
An OverrideVersion contains a reference to the OverrideRequest it belongs to. There can be numerous OverrideVersions. I've tested the database code extensively and there is no problem performing saves and retrieves. The following is taken from the OverrideVersion class:
@ManyToOne
@JoinColumn(name="request", referencedColumnName="pricingRef")
private OverrideRequest request;and this is from the OverrideRequest class:
@OneToMany(mappedBy="request", cascade=CascadeType.ALL,
fetch = FetchType.EAGER)
private Set<OverrideVersion> overrideVersionCollection;The problem is that if I leave the app server to generate the WSDL these references are generated, which I don't want - I only want the Verson to reference :
<xs:complexType name="overrideVersion">
<xs:sequence>
<xs:element name="request" type="tns:overrideRequest" minOccurs="0"/>
</xs:sequence>
</xs:complexType>and<xs:complexType name="overrideRequest">
<xs:sequence>
<xs:element name="overrideVersionCollection" type="tns:overrideVersion" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>I need to be able to change the WSDL as I am getting the following error on retrieves:
com.sun.istack.SAXException2: A cycle is detected in the object graph. This will cause infinitely deep XML:I followed the advice in http://forum.java.sun.com/thread.jspa?threadID=725485&messageID=4184020
"For now, the way is to do this manually : stop the app server, edit the as_install_dir/domains/domain1/generated/xml/j2ee-{apps|modules}/{your-app}/{META|WEB}-INF/wsdl/XXXXX.wsdl, and restart the app server"
but no matter what I do the changes I make to the generated WSDL and schema files aren't refelected in the actual WSDL at the ?WSDL address.
So I decided to take the generated WSDL file, modify it (remove the cyclic references), and drop it in my applications META-INF/wsdl directory (along with the previously generated schema) and specify the @WebService wsdlLocation attribute in my stateless session bean:
@WebService(serviceName="PricingService",
portName="PricingServicePort",
wsdlLocation="META-INF/wsdl/PricingService.wsdl")But after deployment I try to access the WSDL (at the same address as the previous generated WSDL http://localhost:8080/PricingService/PricingService?wsdl) and get a plain white HTML page with: Invalid wsdl request http://localhost:8080/PricingService/PricingServiceI haven't been able to come up with a solution to this problem either.
This is doing my head in so any help would be greatly appreciated.
Thanks.Hi Arvind,
First thing u shud do is..for invoking a webservice through XI do not import all the WSDLs ....Import only the WSDL under the porttypes....
Port types defines the interface in XI...Once u import them....Then check the msg type.....As per u info u shud see them as
getAuthorizationIn_doc---request
getAuthorizationOut_doc---Response..
If u want something more plz ask
Regards,
AshwinM
Note:- Reward If helpful -
FM to get file name on app server
Hello experts,
I'm trying to use a FM to get the filename of a file on the application server. The FM I am using is F4_FILENAME_SERVER, but it doesn't seem to work.
Does anyone have an alternative? Or maybe someone knows common problems with this FM?
Thanks in advance!
Best regards,
DannyTry the function modules
F4_DXFILENAME
F4_DXFILENAME_4_DYNP
F4_DXFILENAME_TOPRECURSION
F4_FILENAME
F4_FILENAME_SERVER
Reward Points if useful. -
File Attributes from App Server by RFC (GET_FILE_ATTRIBUTES does not work )
Hello,
We have an Objects application that is started through an RFC BAPI call from a Java app. The Java app. passes a file to the BAPI. We want to test, as efficiently as possible, if the file is 0 bytes long. We have tried /epsf/get_file_attributes but there is a problem with it being called remotely. We have Remote Enabled the function module. Local tests work fine (GUI User), but when it is called by the Bapi(Technical User) we receive sy-subrc = 2. I think it is referring to a 'Communication Error'.
I found a nice class, CL_GUI_FRONTEND_SERVICES for the workstation server, but nothing comparable for the application server.
Help is greatly appreciated as I am pulling my hair out.
Best Regards,
Mark LengelHello Andreas,
The GET_FILE_ATTRIBUTES fm is also from the EPS Function Group and provides the file size, it just does not work when called from Rfc/Bapi. Won't the GET_DIRECTORY_LISTING fm just return directory info ?
I am afraid I will have to resort to the OPEN, READ, CLOSE DATASET steps in order to check for a zero length file.
Regards,
Mark -
Background job - failing when file not on app server
Hi Experts,
I am facing an issue, while I am trying to run a program in background.
Let me explain u the situation.
My program runs in background and pick one file from predifined folder from application server and process that file. if file is not in the folder batch job goes into cancel status. but what i want if proposed file is not available then batch job will run and finished; it should not go into cancle status.
waiting for valuable inputs,
Prarthan.
Edited by: Julius Bussche on Feb 20, 2009 1:06 PM
Please use meaningfull subject titleshi
below is my piece of code for application server.
thanks.
FORM application_server .
TYPE-POOLS: kcde.
DATA : lt_intern TYPE kcde_cells OCCURS 0 WITH HEADER LINE.
DATA wa_src01 TYPE string.
DATA: BEGIN OF wa_src0,
material LIKE bapi2017_gm_item_create-material,
consumption_qty(13) TYPE c," like bapi2017_gm_item_create-entry_qnt,
base_uom LIKE bapi2017_gm_item_create-entry_uom_iso,
movement_type LIKE bapi2017_gm_item_create-move_type,
cost_center LIKE bapi2017_gm_item_create-costcenter,
doc_date LIKE bapi2017_gm_head_01-doc_date,
post_date LIKE bapi2017_gm_head_01-pstng_date,
plant LIKE bapi2017_gm_item_create-plant,
storage_location LIKE bapi2017_gm_item_create-stge_loc,
END OF wa_src0.
DATA : lt_src0 LIKE TABLE OF wa_src0.
DATA : file1 TYPE string.
DATA : tmp0(20). " type string.
DATA : intern1 TYPE kcde_intern.
DATA : tmp_date LIKE sy-datum.
path1 = path.
replace '.txt' in PATH1 with ''.
IF path IS INITIAL.
path = '/usr/local/interface/globalone/SFA/SFA_WORK/SFA_'.
tmp_date0(2) = sy-datum6(2). "date dd
tmp_date2(2) = sy-datum4(2). "month mm
tmp_date4(4) = sy-datum0(4). "year yyyy
CONCATENATE path plant tmp_date '.txt' INTO path.
concatenate path tmp_date into path1.
ENDIF.
file1 = path.
file_nm = path.
FILE_NM2 = PATH1.
OPEN DATASET file_nm FOR INPUT IN TEXT MODE ENCODING NON-UNICODE.
IF sy-subrc NE 0.
MESSAGE e000(zmm002).
EXIT.
ELSE.
DO.
READ DATASET file_nm INTO wa_src01.
IF sy-subrc = 0.
CLEAR wa_src0.
REPLACE cl_abap_char_utilities=>cr_lf(1) IN wa_src01 WITH ''.
SPLIT wa_src01 AT cl_abap_char_utilities=>horizontal_tab
INTO wa_src0-material
tmp0
wa_src0-base_uom
wa_src0-movement_type
wa_src0-cost_center
wa_src0-doc_date
wa_src0-post_date
wa_src0-plant
wa_src0-storage_location.
SHIFT tmp0 LEFT DELETING LEADING '0'.
wa_src0-consumption_qty = tmp0.
APPEND wa_src0 TO lt_src0.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLEAR wa_src0.
LOOP AT lt_src0 INTO wa_src0.
REPLACE ',' IN wa_src0-consumption_qty WITH '.'.
MOVE: wa_src0-material TO wa_srcdata-material,
wa_src0-consumption_qty TO wa_srcdata-consumption_qty,
wa_src0-base_uom TO wa_srcdata-base_uom,
wa_src0-movement_type TO wa_srcdata-movement_type,
wa_src0-cost_center TO wa_srcdata-cost_center,
wa_src0-doc_date TO wa_srcdata-doc_date,
wa_src0-post_date TO wa_srcdata-post_date,
wa_src0-plant TO wa_srcdata-plant,
wa_src0-storage_location TO wa_srcdata-storage_location.
APPEND wa_srcdata TO gt_srcdata.
CLEAR wa_srcdata.
CLEAR wa_src0.
ENDLOOP.
ENDIF.
DELETE DATASET file_nm.
ENDFORM. " application_server -
Log File Issue In SQL server 2005 standard Edition
We have database of size 375GB .The data file has 80 GB free space within .When trying to rebuild the index we had 450 GB free space on the disk where Log file is residing.The rebuild index activity failed due to space issue.added more space and got the
job done successfully
The Log file has grow up to 611GB to complete the rebuild index.
version :SQL server 2005 Standard Edition .Is ther a way to estimate the space required for rebuild index in this version.
I am aware we notmaly allocate 1.5 times of data file.But in this case It was totaly wrong.
Any suggestion with examples would be appreciated.
RaghuOK, there's a few things here.
Can you outline for everybody the recovery model you are using, the frequency with which you take full, differential and transaction log backups.
Are you selectively rebuilding your indexes or are you rebuilding everything?
How often are you doing this? Do you need to?
There are some great resources on automated index maintenance, check out
this post by Kendra Little.
Depending on your recovery point objectives I would expect a production database to be in the full recovery mode and as part of this you need to be taking regular log backups otherwise your log file will just continue to grow. By taking a log backup it will
clear out information from inactive VLF's and therefore allow SQL Server to write back to those VLF's rather than having to grow the log file. This is a simplified version of events, there are caveats.
A VLF will be marked as active if it still has an open transaction in it or there is a HA option that still requires that data to be available as that data has not been copied to another node yet.
Most customers that I see take transaction log backups every 15 - 30 minutes, but this really does depend upon how much data your company can afford to lose. That's another discussion for another day.
Make sure that you take a transaction log backup prior to your job that does your index rebuilds (hopefully a smart job not a sledge hammer job).
As mentioned previously swapping to bulk logged can help to reduce the size of the amount of information logged during index rebuilds. If you do this make sure to swap back into the full recovery model straight after and perform a full backup. There are
problems with the ability to do point in time restores whilst in the bulk logged recovery model, so you need to reduce the amount of time you use it.
Really you also need to look at how your indexes are created does the design of them lead to them being fragmented on a regular basis? Are they being used? Are there better indexes out there that can help performance?
Hopefully that should put you on the right track.
If you find this helpful, please mark the post as helpful,
If you think this solves the problem, please propose or mark it an an answer.
Please provide details on your SQL Server environment such as version and edition, also DDL statements for tables when posting T-SQL issues
Richard Douglas
My Blog: Http://SQL.RichardDouglas.co.uk
Twitter: @SQLRich -
Execute listcube in background - where is the file stored on app server
Hi,
I want to execute listcube in background.
to execute in background, the only output option available is Store in file (appl server).
My question is where is this file stored.
there is no information in the job log nor is there any spool.
Also, can I determine myself where is this output file written.I have a couple of questions that could lead to an answer to your question...
Does your BW environment have one or more application servers, in addition to the Database Central Instance (DBCI)? If so, do you use logon groups for SAP Logon so that the logon loads are balanced?
I'm asking these questions because if you have a multiple application server environment and logon balancing, you may not be logging onto the same server every time that you're executing LISTCUBE and it will save to the directory path of the server you're logged onto.
Maybe you are looking for
-
How can I copy a file from adobe reader to my contacts
How can I copy a list of names and addresses from Adobe Reader to my contacts
-
Cursor focus during a PPR event
Hi, I have two messageTextInput columns (lets say text1 and text2) inside a table region. When a user enters a value in text1 and do a tab out, I fire a PPR event and set some attributes in my VO. The problem is: after it is done, the cursor focus do
-
My iMAC is sooo slow what can I do?
OS X 10.7.5 4 GB 1333 MHz DDR3
-
Listener class not found which is declared in the Connector project.
Hi friends, I have a problem, I have created a new J2ee connector project in eclipse and created the classes listener,activatioinspec,resource adapter and worker with the name JCA1. I have created another Message driven bean project with name MDB1.Si
-
A Few Serious Questions for ALL Programmers
I am fairly new to programming ,and ,so far, have only finished 2 programming classes at the college I attend. One class was a mix of Program Logic and C++. The other was Visual Basic. Right now I am in Java 1. I absolutely LOVED C++ and Visual Basic