TS failing on Use Toolkit Package
Started to have problems installing Win7 x64 on machines (HP EliteBook 9470) after removing drivers belonging to other package.
Keep on getting these error messages:
C:\_SMSTaskSequence\Packages\S01000FB\Scripts\ZTISCCM.wsf(11, 3) (null): Library not registered.
C:\_SMSTaskSequence\Packages\S01000FB\Scripts\ZTISCCM.wsf(1655, 4) Microsoft VBScript-runtime error: Object needed: 'oUtility.Arguments'
Failed to run the action: Use Toolkit Package.
Incorrect function. (Error: 00000001; Source: Windows)
As stated above, the drivers that were removed belonged to another package (another HP machine), so it should not have affected this package. Or so i thought...
Every HP 9470 now bombs out on Use Toolkit Package, after the step "Setup Windows and ConfigMgr".
Initially i figured this was a driver related error, so drivers for the NIC has been removed and imported again (Intel 82579LM).
I've tried three different file versions, two from HP and one (newer date) from Dell and finally a native driver from Intel (dated from this year) to no avail.
The files are all downloaded fine.
I can ping internal servers and external sites.
When the machine boots up after this failed install, the icon for wireless connection behaves weird:
It shows as if there are wireless networks available but not connected.
Hovering the mouse over, it does say that it is connected and i can reach both internal servers and external websites.
Unplug and replug the network cable results in the icon for cabled network showing up for a few seconds, then disappering again, acting as if there is no LAN card available.
There are no missing drivers (no exclamation marks) in Device manager.
Anyone else seen this or something like it?
This happens on any HP machine we have.
Hi,
Have you found any solution for this?
We have the same problem in our environment.
SCCM 2012 R2 CU1 with MDT 2013
The problem shows itself when deploying Windows 7 x64 with x86 boot image on the HP z420 and HP zBook 14. HP 9470 has not been tested yet. However, everything works fine with x64 boot. I do not want to use the Z64 boot image!
Does anyone have any solution for this?
The error just popped up by itself without us consciously made any changes in the environment. Has worked well previously with the x86 boot image and Win7 x64 on these models before.
TWP
Similar Messages
-
"Use Toolkit Package" and "Gather" - When do you have to run them?
Greetings,
I have inherited a huge task sequence (MDT 2012 integrated with SCCM 2012) that calls "Use Toolkit Package" and "Gather" many many times even though there are only a few reboots.
Is it true that the "Use Toolkit package" step (followed immediately by Gather) only need to be run right at the beginning of the TS and only after every reboot?
Is it also true that the "Gather" step on it's own only needs to be run when you have run another step which may alter/create a variable which is used in the rules? (i.e. customsettings.ini).
Thanks
David ZThanks.
My question was when exactly do you need to run the steps. I suspect that many people have task sequences with loads of "use toolkit package" and "gather" in places when they are NOT needed.
First let's look at the step "Use Toolkit Package". There is no reference to that task sequence step in the MDT documentation. Im aware that this simply copies the "deployment share" so all the scripts etc that are necessary for future task sequence steps
are available (In MDT only environments this was not necessary as the UNC path to the deployment share was always available - so this is an SCCM only step). Your reference states that it copies it to the local hard drive. This is not entirely true. I understand
that when Winpe is loaded, it is loaded into a ramdrive and therefore my "Use Toolkit package" step which is the first in the task sequence is loaded somewhere into the "RAM" drive (probably under "X" drive somewhere?).
So my assumption is that "Use toolkit package" must be run as the first task sequence step, then any time immediately after the winpe system is restarted. If, during winpe and before the OS is loaded onto the hard drive, you format the hard drive (which
is often the case), you do not need to run "Use Toolkit.." as it still exists in the RAM drive. When you apply the OS and restart, and then run "Use toolkit.." again, it must magically work out that it is to then load to the hard drive and not the RAM drive.
However, once the "deployment share" has been loaded to hard drive, Im assuming that you never need to run the "Use toolkit.." again even if the system restarts as once it is loaded to the hard drive, it remains there (assuming you dont format disks again
which is unlikely after the OS has loaded).
The answer to "when must you run Gather" is alot trickier. The first assumption is that Gather has to be run immediately after "Use toolkit..." as the system has initialised or restarted and none of the variables created by "gather" exist.
Im guessing that "gather" may need to be run when you suspect that something in the rules file has changed. For example, you may have run a task sequence step that sets variable "A" for the first time. Your rules file may generate another variable, "B",
based on variable "A" so "gather" must be run to evaluate "B".
However, once the OS has loaded and "gather" has been run, the variables.dat file is created and remains permanently on disk so that if the machine is restarted again, you dont have to run "gather" as all the variables persist in variables.dat.
All of the above is an educated guess as I have searched the web extensively and have not found a definitive explanation. I would be grateful if anything above could be confirmed/denied so this could remain as a definitive guide that may not help just
me, but others :-).
Thanks
David Z -
Mail adapter fails when using Mail Package Format
Hi.
Using XI 3.0 stack level 9.
When i set up the mail adapeter to Use mail package format (by ticking the "Use Mail Package") checkbox I get the following error :
"error occured: [2005-09-14T09:42:46Z] unable to call the mailer; com.sap.aii.messaging.srt.BubbleException: Failed to call the endpoint [null "null"]; nested exception caused by: com.sap.aii.messaging.util.XMLScanException: expecting end tag: Mail, but found Subject at state 1".
The scenario is basic : file in mail out.
File coming in has the structure :
<ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
<ns:Subject>Sap test</ns:Subject>
<ns:From>SAP</ns:From>
<ns:To>[email protected]</ns:To>
<ns:X_Mailer>Outlook</ns:X_Mailer>
<ns:Content>Contect</ns:Content>
</ns:Mail>
Any help would be appreciated.Hi Rodney,
try to use the following structure...
<ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
<Subject>Sap test</Subject>
<From>SAP</From>
<To>[email protected]</To>
<X_Mailer>Outlook</X_Mailer>
<Content>Contect</Content>
</ns:Mail>
The namespace should only be included in the Mail tag. On our side it works fine with the mentioned structure.
Hope it helps...
Regards,
Lars -
Error while using Mail Package for dynamic email address - XMLScanException
Hi All,
i am trying to implement File_to_Mail Scanrio. Here i am using mail package stuff to make use the dynamic mail Id's. i am following the blog /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address. i have finished all the settings as per the blog but it throwing the following error
failed to send mail: com.sap.aii.messaging.util.XMLScanException: expecting start tag: Mail, but found Mail at state 1
Please help me to resolve this error.
Thanks in advance
-Siva
Edited by: Siva Ram on Jan 18, 2008 7:43 AM
Edited by: Siva Ram on Jan 18, 2008 7:43 AM
Edited by: Siva Ram on Jan 18, 2008 7:44 AM
Edited by: Siva Ram on Jan 18, 2008 7:44 AM
Edited by: Siva Ram on Jan 21, 2008 5:59 AMHi Siva
check with these threads discuss the same XMLScanException
Mail adapter fails when using Mail Package Format
Error in E-mail Adapter - Message protocol XIALL
Mapping Error with mail package
Error in Mail Adapter
See the below links also
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
/people/sravya.talanki2/blog/2005/08/18/triggering-e-mails-to-shared-folders-of-sap-is-u
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
Error in Mail Adapter
Mapping Error with mail package
Regards
Abhishek -
SSIS package is failing when using SQL server agent
I am trying to execute an SSIS package through an SQL server agent and receiving the following error:
Message
Executed as user: serv-syst\SYSTEM. Microsoft (R) SQL Server Execute Package Utility Version 10.50.1600.1 for 32-bit Copyright (C) Microsoft Corporation 2010. All rights reserved. Started: 1:56:53 PM Error: 2014-04-21
13:56:54.81 Code: 0xC0202009 Source: PACKAGEWMG Connection manager "DestinationConnectionOLEDB" Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred.
Error code: 0x80040E4D. An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80040E4D Description: "Login failed for user 'hsnzha'.". End Error Error: 2014-04-21
13:56:54.82 Code: 0xC00291EC Source: Drop table(s) SQL Task 1 Execute SQL Task Description: Failed to acquire connection "DestinationConnectionOLEDB". Connection may not be configured
correctly or you may not have the right permissions on this connection. End Error Error: 2014-04-21 13:56:54.82 Code: 0xC0202009 Source: PACKAGEWMG Connection manager "DestinationConnectionOLEDB"
Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E4D. An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80040E4D Description: "Login
failed for user 'hsnzha'.". End Error Error: 2014-04-21 13:56:54.82 Code: 0xC00291EC Source: Preparation SQL Task 1 Execute SQL Task Description: Failed to acquire connection
"DestinationConnectionOLEDB". Connection may not be configured correctly or you may not have the right permissions on this connection. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 1:56:53 PM
Finished: 1:56:54 PM Elapsed: 0.844 seconds. The package execution failed. The step failed.
My SSIS package retrieves a excel file and saves the vales into an SQL table. When I run the package by itself in my server it works fine but when it's called from a SQL agent, it fails with the above error. Please help me resolve it.That's the issue. If it's a SQL login the password cannot be retrieved by account executing the package from the job which is why login fails. In that case best thing would be set password in job properties or pass it using configuration created in the package
See
HTTP://blogs.msdn.com/b/runeetv/archive/2011/12/22/ssis-package-using-sql-authentication-and-dontsavesensitive-as-protectionlevel.aspx
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
My package is saved with ServerStorage which appears under \\server\Stored Packages\MSDB\PACKAGE and when I run it, it works fine.
There is a new error message that I get now after following the steps from the link...
Message
Microsoft (R) SQL Server Execute Package Utility
Version 10.50.1600.1 for 32-bit
Copyright (C) Microsoft Corporation 2010. All rights reserved.
Started: 3:34:22 PM
Error: 2014-04-21 15:34:23.82
Code: 0xC0202009
Source: PACKAGEWMG Connection manager "SourceConnectionExcel"
Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft Office Access Database Engine" Hresult: 0x80004005 Description: "Unexpected error from external database driver (????????).".
End Error
Error: 2014-04-21 15:34:23.82
Code: 0xC020801C
Source: Data Flow Task 1 Source - 'Contact Center$' [1]
Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "SourceConnectionExcel" failed with error code 0xC0202009. There may be error
messages posted before this with more information on why the AcquireConnection method call failed.
End Error
Error: 2014-04-21 15:34:23.82
Code: 0xC0047017
Source: Data Flow Task 1 SSIS.Pipeline
Description: component "Source - 'Contact Center$'" (1) failed validation and returned error code 0xC020801C.
End Error
Error: 2014-04-21 15:34:23.82
Code: 0xC004700C
Source: Data Flow Task 1 SSIS.Pipeline
Description: One or more component failed validation.
End Error
Error: 2014-04-21 15:34:23.82
Code: 0xC0024107
Source: Data Flow Task 1
Description: There were errors during task validation.
End Error
DTExec: The package execution returned DTSER_FAILURE (1).
Started: 3:34:22 PM
Finished: 3:34:23 PM
Elapsed: 1.25 seconds -
KB2879017 setup error - failed to migrate dependent packages
Hi this error "KB2879017 setup error - failed to migrate dedpendent packages" during installation of Microsoft Security pacthes at Windows XP SP3 pc . I'm using IE7 (version 7.0.5730.13) . Below logs the error. Anyone can advice?
275.407: Destination:C:\Program Files\internet explorer\iexplore.exe (7.0.6000.21357)
275.407: UpdateSpUpdSvcInf: Source [ProcessesToRunAfterReboot] section is empty; nothing to do.
275.407: MigrateHotfix: Migrating hotfix KB2586448-IE8
275.407: QFE KB2586448-IE8 has no backup directory to migrate.
275.407: Migrating QFE KB2586448-IE8 with command line: update.exe -Z -Q -B:sp3qfe
289.797: Update.exe failed 1603.
289.797: MigrateHotfixes: Migration of KB2586448-IE8 failed
289.797: DoInstallation: Migration failed
290.641: Failed to migrate dependent packages.
351.032: Message displayed to the user: Failed to migrate dependent packages.
351.032: User Input: OK
351.032: Update.exe extended error code = 0xf0ea
351.032: Update.exe return code was masked to 0x643 for MSI custom action compliance.This forum is for questions and issues with the MAP Toolkit. You will need to post this question in a forum that is related to the software you are having trouble with.
Please remember to click "Mark as Answer" on the post that helps you, and to click
"Unmark as Answer" if a marked post does not actually answer your question. Please
VOTE as HELPFUL if the post helps you. This can be beneficial to other community members reading the thread. -
Error while sending a mail using UTP_MAIL package in Oracle 10g
Hi,
We are using UTP_MAIL package to send a mail from Oracle 10g.We have follwed the following steps ...
SQL> connect sys/password as sysdba
Connected.
SQL> @$ORACLE_HOME/rdbms/admin/utlmail.sql
Package created.
Synonym created.
SQL> @$ORACLE_HOME /rdbms/admin/prvtmail.plb
Package body created.
SQL > alter system set smtp_out_server = '<mail_server_ip:25>' scope =spfile;
System altered..
Now we try the code
begin
utl_mail.send(
sender => 'sender's mail',
recipients => 'receiver mail',
CC => 'optional',
subject => 'Testing utl_mail',
message => 'Test Mail'
end;
But we get the following error...
ERROR at line 1:
ORA-29278: SMTP transient error: 421 Service not available
ORA-06512: at "SYS.UTL_SMTP", line 21
ORA-06512: at "SYS.UTL_SMTP", line 97
ORA-06512: at "SYS.UTL_SMTP", line 139
ORA-06512: at "SYS.UTL_MAIL", line 405
ORA-06512: at "SYS.UTL_MAIL", line 594
ORA-06512: at line 2
We also tried connecting to the mail server through telnet .But it is not getting connected..
Please help us to solve the issue.From your own posting you may have the clue, if you try to access your mail server through telnet and it is not successful, it means the service is down or there are networking issues.
On pre 10gR2 versions there was a bug 4083461.8. It could affect you if you are on 10gR1
"Bug 4083461 - UTL_SMTP.OPEN_CONNECTION in shared server fails with ORA-29278 Doc ID: Note:4083461.8"
This was fixed on 10gR2 base and on 9.2.0.8.0
~ Madrid -
Error while using UTL_DBWS package
Hello
I want to call a web service using UTL_DBWS package as explained in this link.
http://www.oracle-base.com/articles/10g/utl_dbws10g.php
I implemented the example successfully, and I need to my own web service.
my web service is just a java class that return a hello world and a parameter. deployed on Integrated weblogic server shipped with Jdeveloper11g.
here is my java class
package ws;
import javax.jws.Oneway;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
@WebService
public class HelloWorld {
public HelloWorld() {
@WebMethod(action = "http://ws//sayHelloWorld")
public String sayHelloWorld(){
return "Hello World";
@WebMethod(action = "http://ws//sayHelloWorld")
public String sayHelloName(@WebParam(name = "arg0")
String n){
return "Hello " + n;
}my WSDL is
<?xml version="1.0" encoding="UTF-8" ?>
- <!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is Oracle JAX-WS 2.1.5.
-->
- <!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is Oracle JAX-WS 2.1.5.
-->
- <definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://ws/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://ws/" name="HelloWorldService">
- <types>
- <xsd:schema>
<xsd:import namespace="http://ws/" schemaLocation="http://127.0.0.1:7101/Application15-Model-context-root/HelloWorldPort?xsd=1" />
</xsd:schema>
</types>
- <message name="sayHelloWorld">
<part name="parameters" element="tns:sayHelloWorld" />
</message>
- <message name="sayHelloWorldResponse">
<part name="parameters" element="tns:sayHelloWorldResponse" />
</message>
- <message name="sayHelloName">
<part name="parameters" element="tns:sayHelloName" />
</message>
- <message name="sayHelloNameResponse">
<part name="parameters" element="tns:sayHelloNameResponse" />
</message>
- <portType name="HelloWorld">
- <operation name="sayHelloWorld">
<input message="tns:sayHelloWorld" />
<output message="tns:sayHelloWorldResponse" />
</operation>
- <operation name="sayHelloName">
<input message="tns:sayHelloName" />
<output message="tns:sayHelloNameResponse" />
</operation>
</portType>
- <binding name="HelloWorldPortBinding" type="tns:HelloWorld">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
- <operation name="sayHelloWorld">
<soap:operation soapAction="http://ws//sayHelloWorld" />
- <input>
<soap:body use="literal" />
</input>
- <output>
<soap:body use="literal" />
</output>
</operation>
- <operation name="sayHelloName">
<soap:operation soapAction="http://ws//sayHelloWorld" />
- <input>
<soap:body use="literal" />
</input>
- <output>
<soap:body use="literal" />
</output>
</operation>
</binding>
- <service name="HelloWorldService">
- <port name="HelloWorldPort" binding="tns:HelloWorldPortBinding">
<soap:address location="http://127.0.0.1:7101/Application15-Model-context-root/HelloWorldPort" />
</port>
</service>
</definitions>and my function is to call the web service
CREATE OR REPLACE FUNCTION SAYHelloMYNAME (p_int_1 IN Varchar2)
RETURN NUMBER
AS
l_service UTL_DBWS.service;
l_call UTL_DBWS.call;
l_wsdl_url VARCHAR2(32767);
l_namespace VARCHAR2(32767);
l_service_qname UTL_DBWS.qname;
l_port_qname UTL_DBWS.qname;
l_operation_qname UTL_DBWS.qname;
l_xmltype_in XMLTYPE;
l_xmltype_out XMLTYPE;
l_return VARCHAR2(100);
BEGIN
l_wsdl_url := 'http://127.0.0.1:7101/Application15-Model-context-root/HelloWorldPort?wsdl';
l_namespace := 'http://ws/';
l_service_qname := UTL_DBWS.to_qname(l_namespace, 'HelloWorldService');
l_port_qname := UTL_DBWS.to_qname(l_namespace, 'HelloWorldPort');
l_operation_qname := UTL_DBWS.to_qname(l_namespace, 'sayHelloName');
l_service := UTL_DBWS.create_service (
wsdl_document_location => URIFACTORY.getURI(l_wsdl_url),
service_name => l_service_qname);
l_call := UTL_DBWS.create_call (
service_handle => l_service,
port_name => l_port_qname,
operation_name => l_operation_qname);
l_xmltype_in := XMLTYPE('<?xml version="1.0" encoding="utf-8"?>
<sayHelloWorld xmlns="' || l_namespace || '">
<parameters>' || p_int_1 || '</parameters>
</sayHelloWorld>');
l_xmltype_out := UTL_DBWS.invoke(call_Handle => l_call,
request => l_xmltype_in);
UTL_DBWS.release_call (call_handle => l_call);
UTL_DBWS.release_service (service_handle => l_service);
l_return := l_xmltype_out.extract('//return/text()').getstringVal();
RETURN l_return;
END;
/but when I test the function I get this error
ORA-29532: Java call terminated by uncaught Java exception: java.lang.IllegalAccessException: error.build.wsdl.model: oracle.j2ee.ws.common.tools.api.WsdlValidationException: Failed to read wsdl file at: "http://127.0.0.1:7101/Application15-Model-context-root/HelloWorldPort?wsdl", caused by: java.net.ConnectException. : Connection refused
ORA-06512: at "WSUSER.UTL_DBWS", line 193
ORA-06512: at "WSUSER.UTL_DBWS", line 190
ORA-06512: at "WSUSER.SAYHELLOMYNAME", line 24any suggestions?M.Jabr wrote:
can you elaborate more on this?
I can open http://127.0.0.1:7101/Application15-Model-context-root/HelloWorldPort?wsdl
on my browser.Is your browser on that Oracle server? You are instructing Oracle server code (the UTL_DBWS package) to access that URL.
The IP in that URL is a localhost IP address - and that means using the local IP stack only. So it expects a web server on the Oracle server platform on tcp port 7101. It cannot use that IP to access your client/development machine.
How can I test it using UTL_HTTP?You can write a basic web browser, minus the rendering engine, using UTL_HTTP. You can also use it for web service calls - which is my preference as I deem the UTL_DBWS package to clunky and complex.
See:
{message:id=1925297} (sample PL/SQL web browser)
{message:id=4205205} (sample PL/SQL web browser SOAP call) -
Failed to load Execute Package Task error.
Hello Experts,
Excuse my newbie question.
Execute Package Task: Error: The task has failed to load. The contact information for the task is "Microsoft Corporation; Microsoft SQL Server; Microsoft corporation; All Rights Reserved http://www.microsoft.com/sql/support/default.asp:1"
We have a windows service running on our app server that deploys a package that executes other packages using execute package task. This package and rest of the packages are in the same folder at the same level under integration services
catalog. The package fails to execute with the above said error.
Execute package task is configured to run in 'in-process' mode. Changing delay validation to true/false in child packages didn't help.
ironically if the package is deployed using a console application from the app server the package gets executed just fine. I checked permissions, everything seem fine.
Is there anyway to get details of this error to understand the problem better? I am looking at reports > standard reports > all executions.
Thanks.As it turns out, the 63bit ExecPackageTask.dll was not found under "C:\Program Files\Microsoft SQL Server\110\DTS\Binn". Installing "SQL Server Data Tools" installed only 32 bit version of the component under "C:\Program Files (x86)\Microsoft SQL
Server\110\DTS\Binn".
Is there a way to get 64bit version of this component without installing "Integration Services" (to avoid possible license issues)?
Hi Jayakarthiks,
To make use of the 64-bit ExecPackageTask.dll, you also need the 64-bit SSIS runtime and 64-bit DTExec utility tool. To obtain the 64-bit SSIS runtime and tools, you have to install the SQL Server Integration Services service from your SQL Server 2012 install
media.
Reference:
http://msdn.microsoft.com/en-us/library/ms143731.aspx
Regards,
Mike Yin
If you have any feedback on our support, please click here
Mike Yin
TechNet Community Support -
Error logging using DBMS_ERRLOG package
Hi All,
We have following tables, which are growing day-by-day and giving performance problems.
There are total 25 tables (1 parent and 24 child tables, with different structures).
Here i gave some Samples, NOT actual table structures.
Actually we don't require all the data for our regular activities.
So we thought of moving part of the data into Other (Archive) tables, on daily basis.
Using SOME criteria, we are finding eligible records to be moved into Archive tables.
All child records follows the Parent.
Original Tables
==================
create table customer (c_id number(5), c_name varchar2(10),c_address varchar2(10));
create table orders (o_id number(5),c_id number(5),o_info clob);
create table personal_info (p_id number(5),c_id number(5), age number(3), e_mail varchar2(25), zip_code varchar2(10)):
Archive Tables
==============
create table customer_arch (c_id number(5), c_name varchar2(10),c_address varchar2(10));
create table orders_arch (o_id number(5),c_id number(5),o_info varchar2(100));
create table personal_info_arch (p_id number(5),c_id number(5), age number(3), e_mail varchar2(25), zip_code varchar2(10)):
Temp table
==========
create table C_temp (rnum number(5), ids number(5));
Sample Code
============
PROCEDURE payment_arch
IS
l_range_records NUMBER (4) := 2000;
l_total_count NUMBER(10) := 0;
l_prev_count NUMBER(10) := 0;
l_next_count NUMBER(10) := 0;
BEGIN
--Finding eligible records to be moved into Archive tables.
INSERT INTO C_TEMP
SELECT ROWNUM,c_id FROM customer;
SELECT NVL(MAX(ID),0) INTO l_total_count FROM OPP_PAYMENT_ID_TEMP;
IF l_total_count > 0 -- Start Count check
THEN
LOOP -- Insert Single payments
IF ((l_total_count - l_prev_count) >= l_next_count )
THEN
l_next_count := l_prev_count + l_range_records;
ELSE
l_next_count := l_total_count;
END IF;
l_prev_count := l_prev_count ;
INSERT INTO customer_ARCH
SELECT * FROM customer a
WHERE c_id in (SELECT c_id
FROM C_TEMP b WHERE rnum BETWEEN l_prev_count AND l_next_count);
INSERT INTO orders_ARCH
SELECT * FROM orders a
WHERE c_id in (SELECT c_id
FROM C_TEMP b WHERE rnum BETWEEN l_prev_count AND l_next_count);
INSERT INTO personal_info_ARCH
SELECT * FROM personal_info a
WHERE c_id in (SELECT c_id
FROM C_TEMP b WHERE rnum BETWEEN l_prev_count AND l_next_count);
-- Delete Archived Single Payments
DELETE customer a
WHERE c_id in (SELECT c_id
FROM C_TEMP b WHERE ID BETWEEN l_prev_count AND l_next_count);
COMMIT;
IF l_next_count = l_total_count
THEN
EXIT;
else
l_prev_count := l_next_count;
END IF;
END LOOP; -- Insert Single payments
END IF; -- End Count check
EXCEPTION
WHEN NO_DATA_FOUND
THEN
NULL;
WHEN OTHERS
THEN
RAISE_APPLICATION_ERROR('-20002','payment_arch: ' || SQLCODE ||': ' || SQLERRM);
END Payment_Arch;
In production, we may require to archive 25000 Parent records and 25000*4*3 child records per day.
Now the problem is:
By any chance, if record fails, We want to know the Exact record ,just "c_id" for the particular table
where the error raised and Error message.
We thought of using DBMS_ERRLOG package, but we CAN NOT log errors of Different tables into SINGLE error log table.
In the above case It require 3 Different tables and it logs all columns from the original table.
It's a un-necessary burden on the database.
We would be very glad, if anyone can help us with some good thought.
Thanks in advance.
srinivasduplicate post
Insufficient privilege error when executing DBMS_ERRLOG through PLSQL -
Error in mail adapter whilst using 'mail package' option
Hello,
I am using receiver mail adapter. Its working fine when I do not use 'mail package option'. But when I use mail package option, this error comes in
Message processing failed. Cause: com.sap.aii.af.modules.conversion.xml2plain.ConversionException: No data is allowed on this structure level (2) at XML element Mail,Subject
This is the sample of payload:
<?xml version="1.0" encoding="UTF-8" ?>
- <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
<Subject>Data Update to Portal failed</Subject>
<From>sender email id/From>
<To>receiver email id/To>
<Reply_To />
<Content_Type>text/plain</Content_Type>
<Content>Error: Undefined Error</Content>
</ns1:Mail>
Any idea what should I do to get it working. Alternatively, is it possible to use the dynamic value into the email 'TO' field.
Thanks in adavanceHi All,
I need the same info in my requirement . The Scenario is MAIL > FILE . THe Vendor sends the email with Invoices ( An Attachment) to a mail server and the attachment has to be moved to the network folder (File )
Here , I used IMAP4 Protocol in MAil Sender CC
I wanted to know is it required to use :localejbs/ AF_Modules/PayloadSwapBean and any module configuration to petch the attachment ? -
When building an app for the x86 platform, speech APIs fail when the x86 package is run on the desktop of an x64 system. You may see an error with the message "mod not found".
Use the Visual Studio Configuration Manager to retarget the app to x64 when running on an x64 system.
-
Archiving files generated by PL/SQL program using UTL_FILE package
Dear All,
We have on PL/SQL package that is generating some data files using UTL_FILE package in one specific directory.
I am working on concurrent program of type host(unix script) to move generated file to some archive folder.
Now the problem is owner of the files generated by PL/SQL is oracle and file permissions of the generated files are 644(Only read permission for group and others).
Concurrent program is using an another os user applmgr to execute the script attached with concurrent program.
Because applmgr is not having write permission on the files, hence mv command is failing.
Please suggest me how to resolve this issue.
Regards
Devender YadavHi;
I just think that, you can create one sh which is chancing permission of related path owner for applmgr user and put it on crontab and it can run every 1 min.
Regard
Helios -
Problem in Using Utl_Http package
Hi to all,
I'm trying to send the sms(Short Message Service) using utl_Http package. When I'm trying to run a sql statement like
SELECT utl_http.request('http://www.oracle.com/index.html') FROM dual
I'm getting an error message like this.
The following error has occurred:
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1577
ORA-12545: Connect failed because target host or object does not exist
ORA-06512: at line 1
Pls help me to solve this problem.
Regards,
Alok DubeyThank you for ur reply. Infact my database was not able to access the internet. currently, it is working fine.
I'am using this code. It's works well.
CREATE OR REPLACE PROCEDURE Send_Sms_Http
AS
text_str VARCHAR2(5000);
V_Message VARCHAR2(200) := REPLACE('This is a DEMO SMS sent to u on '||TO_CHAR(SYSDATE,'DD/MM/RRRR HH12:MI:SS AM'),' ','%20');
text_sms VARCHAR2(5000) := 'http://hapi.smsapi.org/SendSMS.aspx?UserName=xxxx&password=xxxx&MobileNo=xxxx,xxxxx&SenderID=xxxx&CDMAHeader=xxxxx&Message='||V_Message;
BEGIN
text_str := utl_http.request(text_sms);
Dbms_Output.Put_Line('text_str = '||text_str);
EXCEPTION
WHEN OTHERS THEN
Dbms_Output.Put_line('Error in sending the message'||SQLERRM);
END;
Regards,
Alok Dubey -
How to use utl_ftp package to transfer files from one system to another
Hi all,
How to use utl_ftp package to transfer files from one system to another using plsql procedure .
I failed to find the appropriate document ,kindly help me .
Thanks,
P Prakashprakash wrote:
I am sorry tell you, this blog is not enough to for me.It's not a blog, it's Chris' website where you download the package from. Once you download the package and unrar it, then the package spec gives instructions (and I think there's instructions on how to install it too).
Kindly let me know if there is any oracle documentation for this .It's not an Oracle created package, it was created by Chris. It's based around the UTL_TCP package if you really want to get into the nitty gritty of how it works, but I don't think you do.
Maybe you are looking for
-
External hard drive and SD card won't auto mount
I am using MBP with retina on Yosemite. MacBook Pro (Retina, 15-inch, Late 2013). On Maverick, all my external drives used to auto mount. The same was true just after Yosemite was installed. Lately, only my Time Machine hard drive auto mounts and oth
-
Unreadable codes shows in PDF report.
Hi, I need to export PDF report via OAF page. But thers is some unreadable codes(Actually is chinese character) shows in PDF report. So, would you please help me out. BTY: Both rtf and xml have chinese character. CO:processFormRequest: if (pageContex
-
Upgrade to Mac Yosemite 10.10
Does anyone know if Photoshop Elements and Premier Elements 12 is compatible with Yosemite 10.10? I don't want to upgrade until I know my version of Elements will work. Help.
-
I'm receiving a "Warning Unreponsive Script" very often, how do I get rid of it?
Warning Unresponsive script A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete. Script: file:///C:/Documents%20and%20Settings/Gloria%20Anderson/App
-
Since installing Snow Leopard, ive been having some crashing issues (first just with CS3 suite), that was so called "permissions, cache" issues, by my Mac specialist. I got my MAC specialist to fix what he thought was the issue by deleting un-compati