Using 'export to database' in background processing
If i call a Function Module in Background will i be able to Export values to Database ?
like:
CALL FUNCTION 'func_name' IN BACKGROUND TASK TABLES table = table1.
and in FM:
EXPORT <one> FROM <two> TO DATABASE indx(some) ID 'some1'.
I am only able to export if i dont use the background processing.
thanks
Edited by: shalaxy s on Feb 10, 2009 3:18 PM
Hi Shalaxy,
Calling Function Module in Background/Update Task is normally used for bundling techniques where your requirement is to execute all the database updates in single database LUW (Logical Unit of Work) in order to maintain data integrity. All your database updates gets successfull or none of them.
If you call FM in Background Task, it is not executed immediatly, it is registered with all its values and executed only when COMMIT WORK statement is executed.
I think there is no explicit COMMIT WORK statement in your code and that is why you are not able to see effect of EXPORT TO DATABASE statement as LUW is not at all initiated.
I feel, as your requirement is only to suppress the ALV output, you should handle it through some other alternative e.g. using parameter or something like that and If function module you are talking about is Z and you are willing to change it.
Regards,
Vishal
Similar Messages
-
DB statistics - Use of 'Construct Database Statistics ' in process chain
Hello,
I would like to know the differences (or is it complementar ?) between:
- using Business content Statistics cubes + Tools / BW statistics for infoproviders
- variant 'Construct Database Statistics' that can be used in process chains
Have the 2 techniques to be used together ?
Thanks in advance,
RegardsHi Thomas,
Statistics should get loaded in the Business content Statistics cubes .........now by using the process type 'Construct Database Statistics' we can automate the process............actually ...........The DB Statistics options for the InfoCube allow to collect current DB statistics about the tables associated with the InfoCube............the collection of statistics can be automated.........
Regards,
Debjani........ -
Hi,
I am working in oracle9i and solaris 5.8. I am deleting all the files without shutdown the test database.
If i use ps -ef | grep ora_
it shows
dbacoe 29828 1 0 Dec 20 ? 0:00 ora_pmon_oracle9i
dbacoe 29838 1 0 Dec 20 ? 0:00 ora_reco_oracle9i
dbacoe 29830 1 0 Dec 20 ? 0:00 ora_dbw0_oracle9i
I want to remove these background process.
But i remove the test database completely
Please provide the possible ways...
Cheers
Gobi.What you actually wish to achieve here ? If you remove your test database using DBCA, then their associate background process never hurts you at all.
hare krishna
Alok -
How can we use cl_gui_html_viewer in a background process.
Hello,
Refering to this thread: Pie chart using Class cl_igs_chart ??
How can we use cl_gui_html_viewer in a background process.
I want to execute a html code in bakground process in abap program.
but using cl_gui_html_viewer I have an error with CNTL_ERROR in the method CONSTRUCTOR;
ThanksMarie,
I don't know about HTML viewer specifically, but whenever a GUI object is needed to be used in background, there is a standard method to avoid CNTL_ERROR.
When a program runs in background, there is no "screen" and hence no GUI, and hence a custom control can not be displayed. That is why the program generates an error.
The trick is to avoid creating the custom control in background.
if sy-batch = 'X'. "background mode
* We don't want to create the custom control
else. "dialog mode
create object l_container exporting ...
endif.
* We really don't need a container for using CL_GUI_ objects
* Proceed with the normal coding
create object l_html_viewer
exporting
parent = l_container -
Using ServletContextListener for background process in tomcat, problems?
Hi, I am building a web app using mojarra 1.2, hibernate 3.2, mysql 5 and tomcat 6. Currently, there's a need to run a background process every hour to:
1) query the database
2) process information
3) send emails to (big) list of individuals when matched
4) update database
5) must happen during business hour
For now, my approach to this problem is to hook a Timer object inside a class implements ServletContextListener. So that every hour during business hour will process the steps above when Tomcat started until someone shut down shut down Tomcat or when it crash (hopefully that won't happen).
I read a few articles, they claimed this is not a good approach because in a managed environment, background thread like this won't be in the scope of the container.
Due to certain reasons, we can't deploy this part as a separate daemon (e.g: jsvc) yet. We'll need to wait for few other things to occur before can we deploy a full daemon services.
The question for this post is: What are some of the potential problems we will be dealing with when running background thread like this in tomcat? What are some of the things we'll need to watch out for before real problems arise (e.g size of db connection, # of concurrent process, etc) what are some other pitfalls other experienced when deploying background thread in tomcat?
We hope this solution will be able to handle what needs to be done until our daemon service is ready.
Thank you for your opinionsYou can try this.. Which gives more grip... in making threads etc..
Here is a class with a method that sets up a ScheduledExecutorService to beep every ten seconds for an hour:
import static java.util.concurrent.TimeUnit.*;
class BeeperControl {
private final ScheduledExecutorService scheduler =
Executors.newScheduledThreadPool(1);
public void beepForAnHour() {
final Runnable beeper = new Runnable() {
public void run() { System.out.println("beep"); }
final ScheduledFuture<?> beeperHandle =
scheduler.scheduleAtFixedRate(beeper, 10, 10, SECONDS);
scheduler.schedule(new Runnable() {
public void run() { beeperHandle.cancel(true); }
}, 60 * 60, SECONDS);
} -
Background processes using Administration Services
Where does the background process execute when submitted through Administration Services?I think probably it would escecute on the server which is running the Administrative Services server, but want to verify this.We are running Administrative Services 6.5.3.Thanks
As an update:
The "However, this time the database "Invoke" activity is showing the following warning:" is not the issue.
I replaced the starter Partner link in the BPEL process and created it, again, using the BPEL designer. I left the ESB Adapter partner link for the database insert.
This deploysand executes without issue.
So the issue seems to be that it did not like the ESB file read service as the initiating Partner link.
I will try and discover why!
Regards
A. -
Data of alv report in excel file in background processing using open datas
Hi Experts,
I have developed report for purchase register . if i execute this report in background process i am not able to get the downloaded file in excel and output is also not coming properly, columns are going to overlap.
i used open dataset read dataset and close dataset but still problem is not solved. so if anyone have code with this and also which will have concatenate statement in the code send it.
Regards,
RahulHi Rahul,
Ur code shud be like below:
DATA : l_filename2 TYPE string,
v_extn.
SPLIT p_filename AT '.xls' INTO l_filename2 v_extn.
CONCATENATE l_filename2 'downloaded' INTO l_filename2 SEPARATED BY '_'.
CONCATENATE l_filename2 'txt' INTO l_filename2 SEPARATED BY '.'.
OPEN DATASET l_filename2 IN TEXT MODE FOR OUTPUT ENCODING DEFAULT.
IF sy-subrc <> 0.
MESSAGE e499(sy) WITH text-e02.
ENDIF.
LOOP AT it_order_number INTO wa_order_number.
TRANSFER wa_order_number TO l_filename2.
ENDLOOP.
CLOSE DATASET l_filename2.
Now, go to tcode AL11 and check it in the Application server itself.
Hope this helps,
Regards,
Arnab. -
Error while trying to export my database using this command
Hi,
I am trying to export my database using this command :
expdp system/manager@db1 full=n schemas=kul4231 dumpfile=kul4231_20091122.dmp logfile=kul4231_20091122.log directory=dump_dir1
Error:
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-31626: job does not exist
ORA-31637: cannot create job SYS_EXPORT_SCHEMA_05 for user SYSTEM
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPV$FT_INT", line 600
ORA-39080: failed to create queues "KUPC$C_1_20091122101110" and "" for Data Pump job
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPC$QUE_INT", line 1606
ORA-01008: not all variables bound
DB version : Release 10.2.0.4.0
all ideas are welcomed!!!!!!!!!!!! let me know where am i going wrong!!!!!!!
thanks in advance..!!!!!!!!
venkat.What is your SGA settings? (especially streams_pool_size).
You can try to bump streams_pool_size to 100M if your current setting is below that.
Regards
Tomasz K. -
Our organization uses an Oracle database hosted on a Unix platform and one of our data processing outputs is a “stuffer” document that has a barcode, and Unix jobs automatically send the document to a printer.
Is there a way, or does Adobe have a product or solution, to create a PDF version of the document including the barcode, before it’s sent to a printer?What format is the document that is printed? Or what technology is used to format the printer? There isn't a standard way of doing things in Unix.
-
How to select a display varaint using VL06O with background processing
We are on 4.70 I would like to schedule a few delivery reports using VL06O I have created a selection variant which works fine. I am not able to select a display variant for background processing. If I process in the foreground the system uses the my user defined variant but not in background processing.
Help,
Jim Durkin
Gleason
Edited by: James Durkin on Dec 4, 2008 7:22 PM
Edited by: James Durkin on Dec 8, 2008 6:51 PMBackground processing in VL06O is actually meant for outputting the delivery documents (picking list, delivery note etc.) and not the delivery list itself. The list of deliveries you see when releasing the spool request is for your reference only, not relevant to any layout maintenance.
Edited by: Jalo Kotinurmi on Dec 11, 2008 1:56 AM -
Which background process involves in datapump export/import?
Hi guys,
Could any one please tell me which background process involves in datapump export and import activity? . any information please.
/mRData pump export and import is done by foreground server processes (master and workers), not background.
http://www.acs.ilstu.edu/docs/Oracle/server.101/b10825/dp_overview.htm#sthref22 -
Background process for recovering database.
Dear Guru's,
Not sure whether this is the correct forum to post this thread.
Can anyone let me know, what is the background process that does the recovery of database (Instance recovery is done by SMON automatically).
I mean, when we go for PITR or refresh, we'll apply archive files to the backups. Which background process reads the archive files to the buffer cache, so that they are applied to the database.
Regards,
Kumar865747 wrote:
Dear Guru's,
Not sure whether this is the correct forum to post this thread.
Can anyone let me know, what is the background process that does the recovery of database (Instance recovery is done by SMON automatically).
I mean, when we go for PITR or refresh, we'll apply archive files to the backups. Which background process reads the archive files to the buffer cache, so that they are applied to the database.
why does answer matter since you have no control over it to begin with? -
Are there performancebenefits to reorganizing database-using export/import?
I have a production database using Oracle 9.2.0.5, which has been running for last 3 years since it was upgraded from 8.1.7. At that time we had done full export of 8.1.7 database and then created 9.2. instance and then imported all the application schemas.
Load on our database has been increasing and there are constant pressures from management to improve performance. We have looked at indexes many times, have lots of memory for SGA and have tuned various init.ora parameters. Being a third party packages, we cannot rewrite queries.
Application is a mix of OLTP and reporting, it is definitely more read than write.
Are there any benefits to reorganize database using export/import, i.e., we will do a full export of existing database and then delete all objects from application schemas and do schema imports. We will run the dbms_Stats again to recomputed statistics. Of course, we will test all of that in a test environment before making change sin production.
I have heard different views on reorganization. Some people say it is useless, some people say it can improve performance since data will be placed homely in fewer blocks.
Appreciate your feedback.Hi,
Oracle gave us reorg utilities (dbms_redefinition) because Oracle does not do real-time reorganization for performamnce reasons.
In some applications, reorgs are critical to high-performance, while in others, it may make no difference.
Remember, a reorg simply puts the indexes and tables into their "optimal" pristine state.
The most striking benefit of table reorgs is when a "sparse" table experiences lots of full scans. After the reorg, response time can be cut in half.
Also, in cases where related rows are queried together, a reorg with row-resequencing (like 10g sorted hash clusters) make a bif difference:
http://www.dba-oracle.com/t_table_row_resequencing.htm
But like I said, it depends on many factors . . .
Hope this helps . . .
Donald K. Burleson
Oracle Press author
Author of "Oracle Tuning: The Definitive Reference"
http://www.rampant-books.com/book_2005_1_awr_proactive_tuning.htm -
Need help with database migration using export/import
Hi,
I am planning to do a database migration from 8.0.6 to 10.2.0.4. I am using export/import. Please answer some of my queries:
1) Do i need to do full export using SYS/SYSTEM user.
exp80 system/manager file=c:full.dmp log=c:\full.txt full=y consistent=y
2) Will there be any data corruption while export.
3) Is export/import the only method of migration/upgradation.
Please help
Thanks.I'll answer the specifics that I know about your questions, but please look at the post from Srini for additional info:
1) Do i need to do full export using SYS/SYSTEM user.
exp80 system/manager file=c:full.dmp log=c:\full.txt full=y consistent=yA full export will move as much information (metadata/data) as possible. In order to do a full export/import, you need to do this from a
privileged account. A privileged account is one with EXP_FULL_DATABASE for export and IMP_FULL_DATABASE for import.
2) Will there be any data corruption while export.The data in the objects that you are exporting is being read, nothing is written to user data. I'm not sure what this is available in 8.0.6,
but if you need a consistent export, look to see if consistent=y is available in 8.0.6. All this means is that the dump file created will have
consistent data in it.
3) Is export/import the only method of migration/upgradation.If you are changing hardware, the only supported way from 8.0 to 10.2.0.4, that I know of, is using exp/imp.
Hope this helps.
Dean -
Maintain infotype 0015 using bdc background processing
Hi Experts,
While uploading canteen allowance in infotype 0015 using bdc by using call transaction method - background processing, i couldn't able to process the program using background job. The following error was appearing in job overview as shown in below.
Error Msg: 'Cannot perform frontend function in batch input mode'
I have given my program name and variant name in JOB Wizard. Please give me your inputs on this to resolve this.Hi ,
try to make use of FM HR_INFOTYPE_OPERATION & see its documentation or search SDN for sample program.
regards
Prabhu
Maybe you are looking for
-
On Firefox 4, how can I put one "new tab" on the "tab bar" (The + sign) and one next to the "back/forward" buttons (as in FF 3.6)? In my current Firefox, the "new tab" icon/item from the "customize" pop-up window menu of items is placed next to my ho
-
So many times i get this in the title bar "not responding", avg pops up and say's there is a of memory being used like 270mb by facebook, i use pop up blockers, do not track me add ons anything to speed page loading, I repeatedly get different script
-
Startup Problem Continual Chime Loop
Last night I tried upgrading my os but the install froze (I was just booting from the install disk). I had to do a hard restart but ever since then all I get is a continual restart loop. The machine restarts, I hear the chime then the DVD spins up. S
-
How to run an update query on results from a spreadsheet
Hey there, I am new to this kinda thing. I received a spreadsheet that has 2 tabs, 1 is called SQL Results, and has a ton of data. 1 is called SQL Statement and has a select statement in the first cell. I was told to run an update query using the spr
-
Hello, I have a macbook pro 13 "core i5, 4GB with Intel graphics card, which Iupdated with OS X lion and want to share the desk with a monitor 22" DELLbrand yet I activated the option to desktop sharing, but plug the same monitoron another mac book 1