Insert Into @temptable hangs but #temptable works
I have a simple temp table declared as a table variable. This is used on nearly 50 deployed databases and works fin. However, on one server, 2008-R2 as are all the others, the Insert statement hangs. If I change to a #temptable the exact same code
works. Is there a configuration setting that would account for this behavior. This is what the code looks like;
On all my other servers this works fine. On one server it would hang until I modified it to use CREATE table #Counts.
declare @Counts table
CountOf varchar(10), StatusID bigint, StatusName varchar(30), TheCount bigint
insert into @Counts
Select
'Files' as CountOf,
sc.StatusID as StatusID,
sc.StatusName as StatusName,
count_big(*) as TheCount
from
dfFiles f with (nolock)
join dfFolders d with (nolock)
on d.folderid = f.folderid
join dfVolumes v with (nolock)
on v.VolumeUID = d.VolumeUID
and v.MachineName = @MachineName
join dfStatusCodes sc with (nolock)
on sc.StatusID = f.StatusID
group by sc.StatusID, sc.StatusName
union all
Select
'Folders' as CountOf,
sc.StatusID as StatusID,
sc.StatusName as StatusName,
count_big(*) as TheCount
from
dfFolders d with (nolock)
join dfVolumes v with (nolock)
on v.VolumeUID = d.VolumeUID
and v.MachineName = @MachineName
join dfStatusCodes sc with (nolock)
on sc.StatusID = d.StatusID
group by sc.StatusID, sc.StatusName
Supposedly, this is a query-plan issue. As you may know the optimizer works from the statistics sampled from the data and from this it makes an estimation of what is the best plan. Since the data profile may be different in different database, the query
plans may be different in different databases.
And of course, the set of avilable indexes may be different in different databases too.
So what has this do with temp table vs. table variables? The presence of a table variable precludes a parallel plan, whereas there is no such restriction with temp tables.
Thus, you need to look at the query plans to see what is going on. Make sure statistics are up to date, and also check that this server has the same indexes as the other server.
Erland Sommarskog, SQL Server MVP, [email protected]
Similar Messages
-
How insert into table select from table works in jdbc driver?
Hi, Supposing one table has two LOB fields, one LOB field is BLOB type while the other is CLOB type, I use the following sql statement to copy a row into a new row:
insert into table (id, file_body, file_content) select new_id, file_body, file_content from table where id = '111';
After commit on the connection, I can see the copied record in the table and both LOB fields are not null and this's the expected behavior.
However after some days later, the copy function becomes to be a problem, the BLOB field named file_body can be null when the copy job is done, while other fields copy successfully.
The issue can not be reproduced every time.
I suppose the jdbc driver may try to allocate byte buffer in the heap to perform copy operation for BLOB fields,if there is no enough memory available in the heap the copy operation may fail but the commit on the connection can be successful.b/c I can see a lot of OOM errors in the log files and I believe this can contribute to the issue.
Hope someone can give me a hint or comments.
Thanks,
SuoNayiI want to figure out what's memory leak point and I have tried the following solutions but none worked:
1.I have tried to dump the memory of the JVM but failed,I can see the following errors :
[root@localhost xxx]# jmap -heap:format=b 3027
Attaching to process ID 3027, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 1.5.0_16-b02
Unknown oop at 0x00002b21a24cd550
Oop's klass is null
Finding object size using Printezis bits and skipping over...
Unknown oop at 0x00002b21a3634380
Oop's klass is null
Finding object size using Printezis bits and skipping over...
2.and the thread stack can not be dumped successfully as well:
Thread 3046: (state = BLOCKED)
- java.lang.Object.wait(long) @bci=0 (Compiled frame; information may be imprecise)
Error occurred during stack walking:
the version of java is:
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_16-b02, mixed mode)
I have to added dump thread stack option in JVM arguments, -XX:+HeapDumpOnOutOfMemoryError.
If there are other solutions please let me know, thanks. -
Background Job Hanged but no work process assigned
Hi,
Background job has hanged When i see in SM37. But no work process assigned to this job. All work process are waiting status.
What could be the reason. What is the resolution process.
Thanks,
DayakarHow did you come to a conclusion that the bg job is hangend.
What is the status of the job. ? I guess Job defined, but not yet eligible to run even if the start condition has been fulfilled so it should be in Scheduled status. -
My Mac air running OS X 10.9.3 will not recognise anything in USB ports, even thought they are fine on iMac computer and it has happily read them up until today. I have tried inserting slowly and checked preferences to accept Read only devices. Any ideas?
Reset PRAM: http://support.apple.com/kb/PH14222
Reset SMC. http://support.apple.com/kb/HT3964
Choose the appropriate method.
"Resetting SMC on portables with a battery you should not remove on your own". -
Insert into temp table with sorting not works
Hi,
Am inserting some of the values into temp table . Before going to insert i will be sorting a cloumn in descending order and then i will try insert. But actually inserts in ascending order.Dont know why.
Please find the code
Create table #TempTable( column1 smalldateTime )
Insert into #TempTable
Select distinct(column1) from table1 where cloumn2 = 1 order by column1 desc
When i query the table
select * from #TempTable
shows the dates are in ascending order instead it should in descending
But when i query this Select distinct(column1) from table1 where cloumn2 = 1 order by column1 desc
dates are in descending order which means recent dates fills topOr use a CTE = Common Table Expression:
CREATE TABLE #test (id int);
INSERT INTO #test
SELECT object_id
FROM sys.objects;
SELECT COUNT(*)
FROM #test;
GO
;WITH cte AS
(SELECT Top 2 *
FROM #test
ORDER BY id desc)
DELETE FROM cte;
GO
SELECT COUNT(*)
FROM #test;
GO
DROP TABLE #test;
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Problem while inserting into a table which has ManyToOne relation
Problem while inserting into a table *(Files)* which has ManyToOne relation with another table *(Folder)* involving a attribute both in primary key as well as in foreign key in JPA 1.0.
Relevent Code
Entities:
public class Files implements Serializable {
@EmbeddedId
protected FilesPK filesPK;
private String filename;
@JoinColumns({
@JoinColumn(name = "folder_id", referencedColumnName = "folder_id"),
@JoinColumn(name = "uid", referencedColumnName = "uid", insertable = false, updatable = false)})
@ManyToOne(optional = false)
private Folders folders;
public class FilesPK implements Serializable {
private int fileId;
private int uid;
public class Folders implements Serializable {
@EmbeddedId
protected FoldersPK foldersPK;
private String folderName;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "folders")
private Collection<Files> filesCollection;
@JoinColumn(name = "uid", referencedColumnName = "uid", insertable = false, updatable = false)
@ManyToOne(optional = false)
private Users users;
public class FoldersPK implements Serializable {
private int folderId;
private int uid;
public class Users implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer uid;
private String username;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "users")
private Collection<Folders> foldersCollection;
I left out @Basic & @Column annotations for sake of less code.
EJB method
public void insertFile(String fileName, int folderID, int uid){
FilesPK pk = new FilesPK();
pk.setUid(uid);
Files file = new Files();
file.setFilename(fileName);
file.setFilesPK(pk);
FoldersPK folderPk = new FoldersPK(folderID, uid);
// My understanding that it should automatically handle folderId in files table,
// but it is not…
file.setFolders(em.find(Folders.class, folderPk));
em.persist(file);
It is giving error:
Internal Exception: java.sql.SQLException: Field 'folderid' doesn't have a default value_
Error Code: 1364
Call: INSERT INTO files (filename, uid, fileid) VALUES (?, ?, ?)_
_ bind => [hello.txt, 1, 0]_
It is not even considering folderId while inserting into db.
However it works fine when I add folderId variable in Files entity and changed insertFile like this:
public void insertFile(String fileName, int folderID, int uid){
FilesPK pk = new FilesPK();
pk.setUid(uid);
Files file = new Files();
file.setFilename(fileName);
file.setFilesPK(pk);
file.setFolderId(folderId) // added line
FoldersPK folderPk = new FoldersPK(folderID, uid);
file.setFolders(em.find(Folders.class, folderPk));
em.persist(file);
My question is that is this behavior expected or it is a bug.
Is it required to add "column_name" variable separately even when an entity has reference to ManyToOne mapping foreign Entity ?
I used Mysql 5.1 for database, then generate entities using toplink, JPA 1.0, glassfish v2.1.
I've also tested this using eclipselink and got same error.
Please provide some pointers.
ThanksHello,
What version of EclipseLink did you try? This looks like bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=280436 that was fixed in EclipseLink 2.0, so please try a later version.
You can also try working around the problem by making both fields writable through the reference mapping.
Best Regards,
Chris -
INSERT INTO statement in java servlet.
Hiya
Was wondering if anyone knew how to use variables from an html form into a sql insert into statement? The constants work ok below, its just getting the variables to work.
//constants work ok.
rs = stmt.executeQuery("INSERT INTO ACCOUNTS " + " VALUES ('un', 'test2', 'test2', 'test2', 'test', 'test', 'test', 'test', 'test')");
//doesn't do anything no errors.
rs = stmt.executeQuery("INSERT INTO ACCOUNTS " + " VALUES ( '"+uname+"', " + " '"+fname+"', " + " '"+sname+"'," + "'"+address1+"'," + "'"+address2+"'," + "'"+town+"'," + "'"+county+"'," + "'"+postcode+"')");<html>
<head>
<title>
CreateAccount
</title>
</head>
<body>
<form method=get action=/servlet/website.CreateAccount>
<p> Username:
<input type=text name="username"> </p>
<p> Password:
<input type=text name="password"> </p>
<p> First Name:
<input type=text name="firstname"> </p>
<p> Surname:
<input type=text name="surname"> </p>
<p> 1st Line of Address:
<input type=text name="1address"> </p>
<p> 2nd Line of Address:
<input type=text name="2address"> </p>
<p> Town:
<input type=text name="town"> </p>
<p> County:
<input type=text name="county"> </p>
<p> Postcode:
<input type=text name="postcode"> </p>
<input type=submit>
</form>
</body>
</html>
package website;
import java.io.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class CreateAccount extends HttpServlet {
private static final String CONTENT_TYPE = "text/html";
/**Initialize global variables*/
public void init(ServletConfig config) throws ServletException {
super.init(config);
/**Process the HTTP Get request*/
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
ResultSet rs = null;
Connection con = null;
res.setContentType("text/html");
PrintWriter out = res.getWriter();
//get the variables entered in the form
String uname = req.getParameter("username");
String pwd = req.getParameter("password");
String fname = req.getParameter("firstname");
String sname = req.getParameter("surname");
String address1 = req.getParameter("1address");
String address2 = req.getParameter("2address");
String town = req.getParameter("town");
String county = req.getParameter("county");
String postcode = req.getParameter("postcode");
try {
// Load the database driver
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
// Get a Connection to the database
con = DriverManager.getConnection("jdbc:odbc:account", "", "");
//Add the data into the database
try
String sql = "INSERT INTO ACCOUNTS " + " VALUES (?,?,?,?,?,?,?,?)";
PreparedStatement statement = con.prepareStatement(sql);
statement.setString(1, uname);
statement.setString(2, fname);
statement.setString(3, sname);
statement.setString(4, address1);
statement.setString(5, address2);
statement.setString(6, town);
statement.setString(7, county);
statement.setString(8, postcode);
int numRowsChanged = statement.executeUpdate(sql);
statement.close();
//Statement stmt = null;
//stmt = con.createStatement();
//Create a Statement object
//constants work ok.
//rs = stmt.executeQuery("INSERT INTO ACCOUNTS " + " VALUES ('uname', 'test2', 'test2', 'test2', 'test', 'test', 'test', 'test', 'test')");
catch (Exception e)
// show that the new account has been created
out.println("<p> New account created: </p>");
out.println(" '"+uname+"'");
catch(ClassNotFoundException e) {
out.println("Couldn't load database driver: " + e.getMessage());
catch(SQLException e) {
out.println("SQLException caught: " + e.getMessage());
finally {
// Always close the database connection.
try {
if (con != null) con.close();
catch (SQLException ignored) { }
}ok now the regular statement with constant values inserts data into the database (the regular statement is being used with a result set ) but the prepared statement does not - there are no error messages but it does not insert any data either. The data is going into the variables due to the system.out.println, but is it going into the prepared statement? I believe the prepared statement is being executed with the executeupdate method. -
Second record not inserting into ztable
Hi All,
I have designed z table with following fields.
1) CONSULTANT
2) MODULE_NAME
3) CR_DATE
4) ISSUE
5) RPT_NAME
6) TCODE
7) REQ_NO
8) DEV_STA
9) QA_STA
10) PRD_STA.
the ztable contains no primaty key as we are storing the duplicates values
I have created One screen with all above fields using module pooled programming. One Input screen is designed containing all above fields. after that when i click on SAVE Button all above fields are getting inserted into ztable. But when i again fill the data the second record is not getting inserted into ztable.
I have written the following code for this :
wa_issue-CONSULTANT = ZISSUE-CONSULTANT.
wa_issue-MODULE_NAME = ZISSUE-MODULE_NAME.
wa_issue-CR_DATE = ZISSUE-CR_DATE.
wa_issue-ISSUE = ZISSUE-ISSUE.
wa_issue-RPT_NAME = ZISSUE-RPT_NAME.
wa_issue-TCODE = ZISSUE-TCODe.
wa_issue-REQ_NO = ZISSUE-REQ_NO.
wa_issue-DEV_STA = ZISSUE-DEV_STA.
wa_issue-QA_STA = ZISSUE-QA_STA.
wa_issue-PRD_STA = ZISSUE-PRD_STA.
insert into zissue values wa_issue .
commit work.Hi,
hcheck the key fields in the table
Regards,
V.Balaji
Reward if Usefull... -
Insert into oracle DB using vb2005
I have a form that has click button1. The problem with this code is after insert command something should be inserted into oracle DB but nothing there(so how to execute insert command and commit it using VB2005), any suggestion should refer to the code.
Imports System
Imports System.Data ' VB.NET
Imports Oracle.DataAccess.Client ' ODP.NET Oracle data provider
Imports Excel = Microsoft.Office.Interop.Excel
Public Class Form1
'System.Data.OracleClient lets you access Oracle databases.
Public con As System.Data.OracleClient.OracleConnection = New System.Data.OracleClient.OracleConnection() 'Oracle.DataAccess.Client.OracleConnection()
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim xlApp As Excel.Application
Dim xlWorkBook As Excel.Workbook
Dim xlWorkSheet As Excel.Worksheet
Dim range As Excel.Range
Dim rCnt As Integer
Dim cCnt As Integer
Dim Obj As Object
xlApp = New Excel.ApplicationClass
xlApp.Visible = True
xlWorkBook = xlApp.Workbooks.Open("c:\employee.xls")
xlWorkSheet = xlWorkBook.Worksheets("sheet1")
range = xlWorkSheet.UsedRange
For rCnt = 2 To range.Rows.Count
For cCnt = 1 To range.Columns.Count
Obj = CType(range.Cells(rCnt, cCnt), Excel.Range)
'MsgBox(Obj.value)
Next
Next
xlWorkBook.Close()
xlApp.Quit()
releaseObject(xlApp)
releaseObject(xlWorkBook)
releaseObject(xlWorkSheet)
End Sub
Private Sub releaseObject(ByVal obj As Object)
Try
System.Runtime.InteropServices.Marshal.ReleaseComObject(obj)
obj = Nothing
Catch ex As Exception
obj = Nothing
Finally
GC.Collect()
End Try
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim daOracle As New OracleDataAdapter
Dim InsertCommand As New OracleCommand
daOracle.InsertCommand = New OracleCommand
'1.Create connection object to Oracle database
Dim con As OracleConnection = New OracleConnection()
Try
'2.Specify connection string
con.ConnectionString = ("Data Source=mgra;User Id=tmar; Password=grams")
'3. Open the connection through ODP.NET
con.Open()
Catch ex As Exception
'4.display if any error occurs
MsgBox(ex.Message, Microsoft.VisualBasic.MsgBoxStyle.Exclamation, "OraScan")
'3.Create command object to perform a query against the database:
Dim cmdQuery As String = "SELECT * FROM employee"
InsertCommand.CommandText = "insert into meta_objecttypes values(4,'table','table','ERStudio','Demo')"
daOracle.InsertCommand = InsertCommand
' Create the OracleCommand object to work with select
Dim cmd As OracleCommand = New OracleCommand(cmdQuery)
cmd.Connection = con
cmd.CommandType = CommandType.Text
'get the DataReader object from command object
Dim rdr As OracleDataReader = cmd.ExecuteReader(CommandBehavior.CloseConnection)
cmd.ExecuteNonQuery()
'check if it has any row
While rdr.Read()
rdr.Close()
End While
Finally
' Close and Dispose OracleConnection object
con.Close()
con.Dispose()
End Try
End Sub
End ClassFor best results, please repost this to the ODP.NET forum.
-
Weird problem w. mysql 4.0 when inserting into a table with auto_incremet
Since I upgraded my mysql database from 3.23 to 4.0.1
the following code does not work anymore:
I get this error msg:
<b>"Invalid argument value: Duplicate entry '2147483647' for key 1"</b>
<code>
package mysql4test;
import java.sql.*;
class test {
public test() {
public static void main(String[] args) {
Connection connection = null;
Statement st = null;
try {
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
connection = DriverManager.getConnection
("jdbc:mysql://192.168.0.4/x?user=x&password=");
st = connection.createStatement();
for (int i=1;i<10;i++)
String insert = "insert into x (b) values('hello');";
System.out.println(insert);
st.executeUpdate(insert);
} catch (Exception ex) { System.err.println(ex.getMessage());}
</code>
The table definition of table x is the following:
create table x(a int(11) primary key auto_increment, b varchar(10));
What makes the thing even more mysterious is, that doing the same thing as this programm does manually on an mysql client does not produces any error message.
insert into x (b) values('hello'); works fine on the mysql client deliverd with the server.Hi eggsurplus!
Yes, I succeeded in different ways to solve the problem. changing the table was one of it. but the problem is that i can't simply change all tables (there are a lot) as the are used in other programms.
The simplest solution that i figured out so far was changing the insert from
insert into x (b) values('hello')
to
insert into x (a,b) values("+i+",'hello')"
But this solution is still not satisfactory as in more complex programs you can't just use the i variable of the for loop, but you have to add a new variable that increments on every insert.
This still means changing a lot of code that i wrote for mysql 3.x.
Besides, i tried also another jdbc driver and it still didn't work.
The same bug was reported in a PHP forum, but without solution -
Selection breaks after inserting into dataProvider
I have been battling this issue for a couple of days now. I
have a HorizontalList that is using an itemRenderer component that
I created. When I insert an item into the dataProvider using
addItemAt....
1) the item is inserted
2) i see the item rendered correctly in the HorizontalList
However, the selection breaks. What I mean by this is the
newly added items does NOT highlight when I roll over it and if I
click on it, it does not select. This only happens for the newly
added item, all the others that were already in the list work fine
(highlight and can be selected).
I've tried calling validateNow() on the HorizontalList after
inserting into the dataprovider but it doesn't help at all.
Please help.I can't believe this, but after 2 days of trying to figure
this out I figured it out just moments after posting to the forum!
Here is what fixed it and I am not sure exactly why. At this
point I don't care...
The dataProvider I was using contained a list of custom
objects. I had a property on the class called uid. When I commented
out this property, everything worked. I don't know what made me
think to try this. I guess my uid property on the class was
conflicting with the uid property on the itemRenderer component or
something.
Finally. -
Insert into and Invalid numeric constant
Hi all,
i try create table t1
f1 fixed(10)
and insert -2 into into t1:
insert into t1(f1) values (-2) works fine
insert into t1(f1) values (-(2)) does not work (Error Executing 'insert into t1(f1) values (-(2))' [-3016] (at 28): Invalid numeric constant)
insert into t1(f1) values (-(2+0)) works fine
It's feature or bug?
Best regards,
Lukasz.
MAXDB 7.6.03.07 & Windows Server 2003Hi Lukasz,
this is pretty sure a bug.
SELECT -(f1) FROM T1
works correct.
KR Lars -
In a global transaction 2 records are inserted in a DB, but only one of them is committed
Hello,
in a ATMI application I run the following servers using one DB2 database:
A kind of Frontend, which receives requests over TCP-IP and sends these requests to other servers by the following calls: tpbegin, tpcall S1, tpcall S2, tpcommit
S1, written in C with embedded SQL: inserts 1 record A
S2, written in COBOL with embedded SQL: inserts 1 record B
Here is a snippet of the config-File:
>>>>>>
*GROUPS
GROUP1
LMID=server GRPNO=1
TMSNAME=TMS_UDB TMSCOUNT=2
OPENINFO="UDB_XA:db=xxx,uid=yyy,pwd=zzz"
*SERVERS
FE SRVGRP=GROUP1 SRVID=200 MIN=1 MAX=1 MINDISPATCHTHREADS=1 MAXDISPATCHTHREADS=2 CLOPT="-s FE:services"
S1 SRVGRP=GROUP1 SRVID=100 MIN=1 MAX=1 CLOPT="-s S1:services"
S2 SRVGRP=GROUP1 SRVID=700 MIN=1 MAX=5 CLOPT="-s S2:services"
<<<<<<
My problem is: only record B is in the database at the end of the transaction. If I am debugging the transaction I can see that record A is inserted into the database, but it has vanished after the tpcommit.
All servers are built with "-r UDB_XA" and call tpopen during initialisation.
I have produced a trace, where I see the following:
Tuxedo Version 12.1.1.0, 64-bit, Linux RH, DB2 9.7
gtrid is the same everywhere
tpreturn in S2 calls xa_end: this is the server which inserts the commited record B
tpreturn in S1 does NOT call xa_end.
Thanks everyone.
GeorgHi Todd,
In the call of S1 the TPNOTRAN flag is not set
S1 ist built with: buildserver -o ... -f "source/S1.c $(LINK_OBJS)" -r UDB_XA -s S1:services
All the servers are built alike.
Statements like SQL CONNECT do not exist in S1
What does irritate me in the trace: there are lines with "tpopen = 1". In the documentation the return value for error is -1, and we check for -1 in the code. What does the 1 mean?
The trace follows beneath.
Regards
Georg
151706.SERVER!tmboot.5389.2406381312.-2: 08-06-2013: client high water (0), total client (0)
151706.SERVER!tmboot.5389.2406381312.-2: TRACE:tr: trace("*:ulog:dye")
151706.SERVER!tmboot.5389.2406381312.-2: TRACE:tr: dye
151708.SERVER!BBL.5390.530695936.0: 08-06-2013: Tuxedo Version 12.1.1.0, 64-bit, Patch Level (none)
151708.SERVER!BBL.5390.530695936.0: TRACE:tr: trace("*:ulog:dye")
151708.SERVER!BBL.5390.530695936.0: TRACE:tr: dye
151708.SERVER!BBL.5390.530695936.0: TRACE:tr: trace("*:ulog:dye")
151708.SERVER!BBL.5390.530695936.0: TRACE:tr: dye
151710.SERVER!BBL.5390.530695936.0: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!BBL.5390.530695936.0: TRACE:tr: dye
151710.SERVER!BBL.5390.530695936.0: LIBTUX_CAT:262: INFO: Standard main starting
151710.SERVER!BBL.5390.530695936.0: TRACE:ia: { tpsvrinit(14, "BBL -C dom=DOM -g 30002 -i 0 -u SERVER -U /path/ULOG -m 0 -A")
151710.SERVER!BBL.5390.530695936.0: TRACE:ia: { tpadvertise(".TMIB", 0x0x409349)
151710.SERVER!BBL.5390.530695936.0: TRACE:ia: } tpadvertise = 1
151710.SERVER!BBL.5390.530695936.0: TRACE:ia: { tpadvertise("..TMIBSET", 0x0x409349)
151710.SERVER!BBL.5390.530695936.0: TRACE:ia: } tpadvertise = 1 [tperrno TPENOENT]
151710.SERVER!BBL.5390.530695936.0: TRACE:ia: } tpsvrinit = 1 [tperrno TPENOENT]
151710.SERVER!TMS_UDB.5393.2750289696.0: 08-06-2013: Tuxedo Version 12.1.1.0, 64-bit
151710.SERVER!TMS_UDB.5393.2750289696.0: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!TMS_UDB.5393.2750289696.0: TRACE:tr: dye
151710.SERVER!TMS_UDB.5393.2750289696.0: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!TMS_UDB.5393.2750289696.0: TRACE:tr: dye
151710.SERVER!TMS_UDB.5393.2750289696.0: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!TMS_UDB.5393.2750289696.0: TRACE:tr: dye
151710.SERVER!TMS_UDB.5393.2750289696.0: LIBTUX_CAT:262: INFO: Standard main starting
151710.SERVER!TMS_UDB.5393.2750289696.0: TRACE:ia: { tpsvrinit(14, "TMS_UDB -C dom=DOM -g 1 -i 30001 -u SERVER -U /path/ULOG -m 0 -A")
151710.SERVER!TMS_UDB.5393.2750289696.0: TRACE:ia: { tpopen()
151710.SERVER!TMS_UDB.5393.2750289696.0: TRACE:xa: { xa_open(0x0xeeeb10, 0, 0x0)
151710.SERVER!TMS_UDB.5393.2750289696.0: TRACE:xa: } xa_open = 0
151710.SERVER!TMS_UDB.5393.2750289696.0: TRACE:ia: } tpopen = 1
151710.SERVER!TMS_UDB.5393.2750289696.0: TRACE:ia: { tpalloc("rpcrqst", "", 4096)
151710.SERVER!TMS_UDB.5393.2750289696.0: TRACE:ia: } tpalloc = 0x0xf4a068
151710.SERVER!BBL.5390.530695936.0: TRACE:ia: { tprealloc(0x0xe0ad28, 52)
151710.SERVER!BBL.5390.530695936.0: TRACE:ia: } tprealloc = 0x0xe0e208
151710.SERVER!BBL.5390.530695936.0: TRACE:ia: { tpfree(0x0xe0d7b8)
151710.SERVER!BBL.5390.530695936.0: TRACE:ia: } tpfree
151710.SERVER!TMS_UDB.5393.2750289696.0: TRACE:ia: { tpfree(0x0xf4e188)
151710.SERVER!TMS_UDB.5393.2750289696.0: TRACE:ia: } tpfree
151710.SERVER!TMS_UDB.5393.2750289696.0: TRACE:xa: { xa_recover(0x0x7fff59d82990, 100, 0, 0x1000000)
151710.SERVER!TMS_UDB.5393.2750289696.0: TRACE:xa: } xa_recover = 0
151710.SERVER!TMS_UDB.5393.2750289696.0: TRACE:ia: } tpsvrinit = 1
151710.SERVER!TMS_UDB.5394.2099959584.0: 08-06-2013: Tuxedo Version 12.1.1.0, 64-bit
151710.SERVER!TMS_UDB.5394.2099959584.0: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!TMS_UDB.5394.2099959584.0: TRACE:tr: dye
151710.SERVER!TMS_UDB.5394.2099959584.0: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!TMS_UDB.5394.2099959584.0: TRACE:tr: dye
151710.SERVER!TMS_UDB.5394.2099959584.0: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!TMS_UDB.5394.2099959584.0: TRACE:tr: dye
151710.SERVER!TMS_UDB.5394.2099959584.0: LIBTUX_CAT:262: INFO: Standard main starting
151710.SERVER!TMS_UDB.5394.2099959584.0: TRACE:ia: { tpsvrinit(14, "TMS_UDB -C dom=DOM -g 1 -i 30002 -u SERVER -U /path/ULOG -m 0 -A")
151710.SERVER!TMS_UDB.5394.2099959584.0: TRACE:ia: { tpopen()
151710.SERVER!TMS_UDB.5394.2099959584.0: TRACE:xa: { xa_open(0x0x1706b10, 0, 0x0)
151710.SERVER!TMS_UDB.5394.2099959584.0: TRACE:xa: } xa_open = 0
151710.SERVER!TMS_UDB.5394.2099959584.0: TRACE:ia: } tpopen = 1
151710.SERVER!TMS_UDB.5394.2099959584.0: TRACE:ia: } tpsvrinit = 1
151710.SERVER!S1.5395.3805534048.0: 08-06-2013: Tuxedo Version 12.1.1.0, 64-bit
151710.SERVER!S1.5395.3805534048.0: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!S1.5395.3805534048.0: TRACE:tr: dye
151710.SERVER!S1.5395.3805534048.0: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!S1.5395.3805534048.0: TRACE:tr: dye
151710.SERVER!S1.5395.3805534048.0: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!S1.5395.3805534048.0: TRACE:tr: dye
151710.SERVER!S1.5395.3805534048.0: LIBTUX_CAT:262: INFO: Standard main starting
151710.SERVER!S1.5395.3805534048.0: TRACE:at: { tpsvrinit(18, "S1 -C dom=DOM -g 1 -i 100 -u SERVER -U /path/ULOG -m 0 -s S1:services")
151710.SERVER!S1.5395.3805534048.0: TRACE:at: { tpopen()
151710.SERVER!S1.5395.3805534048.0: TRACE:xa: { xa_open(0x0xf4eb10, 0, 0x0)
151710.SERVER!S1.5395.3805534048.0: TRACE:xa: } xa_open = 0
151710.SERVER!S1.5395.3805534048.0: TRACE:at: } tpopen = 1
151710.SERVER!S1.5395.3805534048.0: TRACE:xa: { ax_reg(0, 0x0x7fffbae0ac80, 0)
151710.SERVER!S1.5395.3805534048.0: TRACE:xa: } ax_reg = 0
151710.SERVER!S1.5395.3805534048.0: TRACE:at: } tpsvrinit = 0
151710.SERVER!FE.5396.2057348960.0: 08-06-2013: Tuxedo Version 12.1.1.0, 64-bit
151710.SERVER!FE.5396.2057348960.0: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!FE.5396.2057348960.0: TRACE:tr: dye
151710.SERVER!FE.5396.2057348960.0: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!FE.5396.2057348960.0: TRACE:tr: dye
151710.SERVER!FE.5396.2057348960.0: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!FE.5396.2057348960.0: TRACE:tr: dye
151710.SERVER!FE.5396.2057348960.0: LIBTUX_CAT:262: INFO: Standard main starting
151710.SERVER!FE.5396.2057348960.0: TRACE:at: { tpsvrinit(18, "FE -C dom=DOM -g 1 -i 200 -u SERVER -U /path/ULOG -m 0 -s FE:services")
151710.SERVER!FE.5396.2057348960.0: TRACE:at: { tpopen()
151710.SERVER!FE.5396.2057348960.0: TRACE:xa: { xa_open(0x0x29ddb10, 0, 0x0)
151710.SERVER!FE.5396.2057348960.0: TRACE:xa: } xa_open = 0
151710.SERVER!FE.5396.2057348960.0: TRACE:at: } tpopen = 1
151710.SERVER!FE.5396.2057348960.0: TRACE:xa: { ax_reg(0, 0x0x7fffeb618490, 0)
151710.SERVER!FE.5396.2057348960.0: TRACE:xa: } ax_reg = 0
151710.SERVER!FE.5396.2057348960.0: TRACE:at: } tpsvrinit = 0
151710.SERVER!FE.5396.1917224704.-2: TRACE:at: { tpappthrinit (0)
151710.SERVER!FE.5396.1917224704.-2: TRACE:ia: { tpsetctxt(1, 0x0)
151710.SERVER!FE.5396.1917224704.1: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!FE.5396.1917224704.1: TRACE:tr: dye
151710.SERVER!FE.5396.1917224704.1: TRACE:ia: } tpsetctxt = 0
151710.SERVER!FE.5396.1917224704.1: TRACE:at:} tpappthrinit = 0
151710.SERVER!FE.5396.1917224704.1: TRACE:at: { tpopen()
151710.SERVER!FE.5396.1917224704.1: TRACE:xa: { xa_open(0x0x7fd868005730, 0, 0x0)
151710.SERVER!FE.5396.1906734848.-2: TRACE:at: { tpappthrinit (0)
151710.SERVER!FE.5396.1906734848.-2: TRACE:ia: { tpsetctxt(2, 0x0)
151710.SERVER!FE.5396.1906734848.2: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!FE.5396.1906734848.2: TRACE:tr: dye
151710.SERVER!FE.5396.1906734848.2: TRACE:ia: } tpsetctxt = 0
151710.SERVER!FE.5396.1906734848.2: TRACE:at:} tpappthrinit = 0
151710.SERVER!FE.5396.1906734848.2: TRACE:at: { tpopen()
151710.SERVER!FE.5396.1906734848.2: TRACE:xa: { xa_open(0x0x7fd860005730, 0, 0x0)
151710.SERVER!FE.5396.1896244992.-2: TRACE:at: { tpappthrinit (0)
151710.SERVER!FE.5396.1896244992.-2: TRACE:ia: { tpsetctxt(3, 0x0)
151710.SERVER!FE.5396.1896244992.3: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!FE.5396.1896244992.3: TRACE:tr: dye
151710.SERVER!FE.5396.1896244992.3: TRACE:ia: } tpsetctxt = 0
151710.SERVER!FE.5396.1896244992.3: TRACE:at:} tpappthrinit = 0
151710.SERVER!FE.5396.1896244992.3: TRACE:at: { tpopen()
151710.SERVER!FE.5396.1896244992.3: TRACE:xa: { xa_open(0x0x7fd858005730, 0, 0x0)
151710.SERVER!FE.5396.1885755136.-2: TRACE:at: { tpappthrinit (0)
151710.SERVER!FE.5396.1885755136.-2: TRACE:ia: { tpsetctxt(4, 0x0)
151710.SERVER!FE.5396.1885755136.4: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!FE.5396.1885755136.4: TRACE:tr: dye
151710.SERVER!FE.5396.1885755136.4: TRACE:ia: } tpsetctxt = 0
151710.SERVER!FE.5396.1885755136.4: TRACE:at:} tpappthrinit = 0
151710.SERVER!FE.5396.1885755136.4: TRACE:at: { tpopen()
151710.SERVER!FE.5396.1885755136.4: TRACE:xa: { xa_open(0x0x7fd85c005730, 0, 0x0)
151710.SERVER!FE.5396.1875265280.-2: TRACE:at: { tpappthrinit (0)
151710.SERVER!FE.5396.1875265280.-2: TRACE:ia: { tpsetctxt(5, 0x0)
151710.SERVER!FE.5396.1875265280.5: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!FE.5396.1875265280.5: TRACE:tr: dye
151710.SERVER!FE.5396.1875265280.5: TRACE:ia: } tpsetctxt = 0
151710.SERVER!FE.5396.1875265280.5: TRACE:at:} tpappthrinit = 0
151710.SERVER!FE.5396.1875265280.5: TRACE:at: { tpopen()
151710.SERVER!FE.5396.1875265280.5: TRACE:xa: { xa_open(0x0x7fd850005730, 0, 0x0)
151710.SERVER!FE.5396.1864775424.-2: TRACE:at: { tpappthrinit (0)
151710.SERVER!FE.5396.1864775424.-2: TRACE:ia: { tpsetctxt(6, 0x0)
151710.SERVER!FE.5396.1864775424.6: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!FE.5396.1864775424.6: TRACE:tr: dye
151710.SERVER!FE.5396.1864775424.6: TRACE:ia: } tpsetctxt = 0
151710.SERVER!FE.5396.1864775424.6: TRACE:at:} tpappthrinit = 0
151710.SERVER!FE.5396.1864775424.6: TRACE:at: { tpopen()
151710.SERVER!FE.5396.1864775424.6: TRACE:xa: { xa_open(0x0x7fd854005730, 0, 0x0)
151710.SERVER!FE.5396.1854285568.-2: TRACE:at: { tpappthrinit (0)
151710.SERVER!FE.5396.1854285568.-2: TRACE:ia: { tpsetctxt(7, 0x0)
151710.SERVER!FE.5396.1854285568.7: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!FE.5396.1854285568.7: TRACE:tr: dye
151710.SERVER!FE.5396.1854285568.7: TRACE:ia: } tpsetctxt = 0
151710.SERVER!FE.5396.1854285568.7: TRACE:at:} tpappthrinit = 0
151710.SERVER!FE.5396.1854285568.7: TRACE:at: { tpopen()
151710.SERVER!FE.5396.1854285568.7: TRACE:xa: { xa_open(0x0x7fd848005730, 0, 0x0)
151710.SERVER!FE.5396.1843795712.-2: TRACE:at: { tpappthrinit (0)
151710.SERVER!FE.5396.1843795712.-2: TRACE:ia: { tpsetctxt(8, 0x0)
151710.SERVER!FE.5396.1843795712.8: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!FE.5396.1843795712.8: TRACE:tr: dye
151710.SERVER!FE.5396.1843795712.8: TRACE:ia: } tpsetctxt = 0
151710.SERVER!FE.5396.1843795712.8: TRACE:at:} tpappthrinit = 0
151710.SERVER!FE.5396.1843795712.8: TRACE:at: { tpopen()
151710.SERVER!FE.5396.1843795712.8: TRACE:xa: { xa_open(0x0x7fd84c005730, 0, 0x0)
151710.SERVER!FE.5396.1822816000.-2: TRACE:ia: { tpsetctxt(9, 0x0)
151710.SERVER!FE.5396.1822816000.9: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!FE.5396.1822816000.9: TRACE:tr: dye
151710.SERVER!FE.5396.1822816000.9: TRACE:ia: } tpsetctxt = 0
151710.SERVER!FE.5396.1822816000.9: LIBTUX_CAT:6126: INFO: New server dispatched thread starting
151710.SERVER!FE.5396.1822816000.9: TRACE:at: { tpopen()
151710.SERVER!FE.5396.1822816000.9: TRACE:xa: { xa_open(0x0x7fd84c0170d0, 0, 0x0)
151710.SERVER!FE.5396.1927714560.-2: TRACE:at: { tpappthrinit (0)
151710.SERVER!FE.5396.1927714560.-2: TRACE:ia: { tpsetctxt(10, 0x0)
151710.SERVER!FE.5396.1927714560.10: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!FE.5396.1927714560.10: TRACE:tr: dye
151710.SERVER!FE.5396.1927714560.10: TRACE:ia: } tpsetctxt = 0
151710.SERVER!FE.5396.1927714560.10: TRACE:at:} tpappthrinit = 0
151710.SERVER!FE.5396.1927714560.10: TRACE:at: { tpopen()
151710.SERVER!FE.5396.1927714560.10: TRACE:at:} tpappthrinit = 0
151710.SERVER!FE.5396.1927714560.10: TRACE:at: { tpopen()
151710.SERVER!FE.5396.1927714560.10: TRACE:xa: { xa_open(0x0x7fd848019880, 0, 0x0)
151710.SERVER!FE.5396.1938204416.-2: TRACE:at: { tpappthrinit (0)
151710.SERVER!FE.5396.1938204416.-2: TRACE:ia: { tpsetctxt(11, 0x0)
151710.SERVER!FE.5396.1938204416.11: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!FE.5396.1938204416.11: TRACE:tr: dye
151710.SERVER!FE.5396.1938204416.11: TRACE:ia: } tpsetctxt = 0
151710.SERVER!FE.5396.1938204416.11: TRACE:at:} tpappthrinit = 0
151710.SERVER!FE.5396.1938204416.11: TRACE:at: { tpopen()
151710.SERVER!FE.5396.1938204416.11: TRACE:xa: { xa_open(0x0x7fd8540192d0, 0, 0x0)
151710.SERVER!FE.5396.1885755136.4: TRACE:xa: } xa_open = 0
151710.SERVER!FE.5396.1885755136.4: TRACE:at: } tpopen = 1
151710.SERVER!FE.5396.1843795712.8: TRACE:xa: } xa_open = 0
151710.SERVER!FE.5396.1843795712.8: TRACE:at: } tpopen = 1
151710.SERVER!SR.5409.185980768.0: 08-06-2013: Tuxedo Version 12.1.1.0, 64-bit
151710.SERVER!SR.5409.185980768.0: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!SR.5409.185980768.0: TRACE:tr: dye
151710.SERVER!SR.5409.185980768.0: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!SR.5409.185980768.0: TRACE:tr: dye
151710.SERVER!SR.5409.185980768.0: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!SR.5409.185980768.0: TRACE:tr: dye
151710.SERVER!SR.5409.185980768.0: LIBTUX_CAT:262: INFO: Standard main starting
151710.SERVER!SR.5409.185980768.0: TRACE:at: { tpsvrinit(18, "SR -C dom=DOM -g 1 -i 300 -u SERVER -U /path/ULOG -m 0 -s SR:services")
151710.SERVER!SR.5409.185980768.0: TRACE:at: { tpopen()
151710.SERVER!SR.5409.185980768.0: TRACE:xa: { xa_open(0x0x1399b10, 0, 0x0)
151710.SERVER!FE.5396.1896244992.3: TRACE:xa: } xa_open = 0
151710.SERVER!FE.5396.1896244992.3: TRACE:at: } tpopen = 1
151710.SERVER!FE.5396.1854285568.7: TRACE:xa: } xa_open = 0
151710.SERVER!FE.5396.1854285568.7: TRACE:at: } tpopen = 1
151710.SERVER!FE.5396.1917224704.1: TRACE:xa: } xa_open = 0
151710.SERVER!FE.5396.1917224704.1: TRACE:at: } tpopen = 1
151710.SERVER!FE.5396.1927714560.10: TRACE:xa: } xa_open = 0
151710.SERVER!FE.5396.1927714560.10: TRACE:at: } tpopen = 1
151710.SERVER!FE.5396.1822816000.9: TRACE:xa: } xa_open = 0
151710.SERVER!FE.5396.1822816000.9: TRACE:at: } tpopen = 1
151710.SERVER!FE.5396.1875265280.5: TRACE:xa: } xa_open = 0
151710.SERVER!FE.5396.1875265280.5: TRACE:at: } tpopen = 1
151710.SERVER!FE.5396.1906734848.2: TRACE:xa: } xa_open = 0
151710.SERVER!FE.5396.1906734848.2: TRACE:at: } tpopen = 1
151710.SERVER!FE.5396.1864775424.6: TRACE:xa: } xa_open = 0
151710.SERVER!FE.5396.1864775424.6: TRACE:at: } tpopen = 1
151710.SERVER!FE.5396.1938204416.11: TRACE:xa: } xa_open = 0
151710.SERVER!FE.5396.1938204416.11: TRACE:at: } tpopen = 1
151710.SERVER!SR.5409.185980768.0: TRACE:xa: } xa_open = 0
151710.SERVER!SR.5409.185980768.0: TRACE:at: } tpopen = 1
151710.SERVER!SR.5409.185980768.0: TRACE:xa: { ax_reg(0, 0x0x7fff552572d0, 0)
151710.SERVER!SR.5409.185980768.0: TRACE:xa: } ax_reg = 0
151710.SERVER!SR.5409.185980768.0: TRACE:at: } tpsvrinit = 0
151710.SERVER!SR.5409.56346368.-2: TRACE:at: { tpappthrinit (0)
151710.SERVER!SR.5409.56346368.-2: TRACE:ia: { tpsetctxt(1, 0x0)
151710.SERVER!SR.5409.56346368.1: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!SR.5409.56346368.1: TRACE:tr: dye
151710.SERVER!SR.5409.56346368.1: TRACE:ia: } tpsetctxt = 0
151710.SERVER!SR.5409.56346368.1: TRACE:at:} tpappthrinit = 0
151710.SERVER!SR.5409.56346368.1: TRACE:at: { tpopen()
151710.SERVER!SR.5409.56346368.1: TRACE:xa: { xa_open(0x0x7f37fc005730, 0, 0x0)
151710.SERVER!SR.5409.45856512.-2: TRACE:ia: { tpsetctxt(2, 0x0)
151710.SERVER!SR.5409.45856512.2: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!SR.5409.45856512.2: TRACE:tr: dye
151710.SERVER!SR.5409.45856512.2: TRACE:ia: } tpsetctxt = 0
151710.SERVER!SR.5409.45856512.2: LIBTUX_CAT:6126: INFO: New server dispatched thread starting
151710.SERVER!SR.5409.45856512.2: TRACE:at: { tpopen()
151710.SERVER!SR.5409.45856512.2: TRACE:xa: { xa_open(0x0x7f37f4003520, 0, 0x0)
151710.SERVER!SR.5409.66836224.-2: TRACE:at: { tpappthrinit (0)
151710.SERVER!SR.5409.66836224.-2: TRACE:ia: { tpsetctxt(3, 0x0)
151710.SERVER!SR.5409.66836224.3: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!SR.5409.66836224.3: TRACE:tr: dye
151710.SERVER!SR.5409.66836224.3: TRACE:ia: } tpsetctxt = 0
151710.SERVER!SR.5409.66836224.3: TRACE:at:} tpappthrinit = 0
151710.SERVER!SR.5409.66836224.3: TRACE:at: { tpopen()
151710.SERVER!SR.5409.66836224.3: TRACE:xa: { xa_open(0x0x7f37f8005730, 0, 0x0)
151710.SERVER!SR.5409.45856512.2: TRACE:xa: } xa_open = 0
151710.SERVER!SR.5409.45856512.2: TRACE:at: } tpopen = 1
151710.SERVER!SR.5409.66836224.3: TRACE:xa: } xa_open = 0
151710.SERVER!SR.5409.66836224.3: TRACE:at: } tpopen = 1
151710.SERVER!SR.5409.56346368.1: TRACE:xa: } xa_open = 0
151710.SERVER!SR.5409.56346368.1: TRACE:at: } tpopen = 1
151710.SERVER!SD.5413.2751166304.0: 08-06-2013: Tuxedo Version 12.1.1.0, 64-bit
151710.SERVER!SD.5413.2751166304.0: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!SD.5413.2751166304.0: TRACE:tr: dye
151710.SERVER!SD.5413.2751166304.0: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!SD.5413.2751166304.0: TRACE:tr: dye
151710.SERVER!SD.5413.2751166304.0: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!SD.5413.2751166304.0: TRACE:tr: dye
151710.SERVER!SD.5413.2751166304.0: LIBTUX_CAT:262: INFO: Standard main starting
151710.SERVER!SD.5413.2751166304.0: TRACE:at: { tpsvrinit(18, "SD -C dom=DOM -g 1 -i 600 -u SERVER -U /path/ULOG -m 0 -s SD:services")
151710.SERVER!SD.5413.2751166304.0: TRACE:at: { tpopen()
151710.SERVER!SD.5413.2751166304.0: TRACE:xa: { xa_open(0x0x2b75b10, 0, 0x0)
151710.SERVER!SD.5413.2751166304.0: TRACE:xa: } xa_open = 0
151710.SERVER!SD.5413.2751166304.0: TRACE:at: } tpopen = 1
151710.SERVER!SD.5413.2751166304.0: TRACE:xa: { ax_reg(0, 0x0x7fff2182b280, 0)
151710.SERVER!SD.5413.2751166304.0: TRACE:xa: } ax_reg = 0
151710.SERVER!SD.5413.2751166304.0: TRACE:xa: { ax_unreg(0, 0)
151710.SERVER!SD.5413.2751166304.0: TRACE:xa: } ax_unreg = 0
151710.SERVER!SD.5413.2751166304.0: TRACE:at: } tpsvrinit = 0
151710.SERVER!SD.5413.2632021760.-2: TRACE:ia: { tpsetctxt(1, 0x0)
151710.SERVER!SD.5413.2632021760.1: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!SD.5413.2632021760.1: TRACE:tr: dye
151710.SERVER!SD.5413.2632021760.1: TRACE:ia: } tpsetctxt = 0
151710.SERVER!SD.5413.2632021760.1: LIBTUX_CAT:6126: INFO: New server dispatched thread starting
151710.SERVER!SD.5413.2632021760.1: TRACE:at: { tpopen()
151710.SERVER!SD.5413.2632021760.1: TRACE:xa: { xa_open(0x0x7f8498003520, 0, 0x0)
151710.SERVER!SD.5413.2632021760.1: TRACE:xa: } xa_open = 0
151710.SERVER!SD.5413.2632021760.1: TRACE:at: } tpopen = 1
151710.SERVER!SC1.5415.3318970208.0: 08-06-2013: Tuxedo Version 12.1.1.0, 64-bit
151710.SERVER!SC1.5415.3318970208.0: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!SC1.5415.3318970208.0: TRACE:tr: dye
151710.SERVER!SC1.5415.3318970208.0: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!SC1.5415.3318970208.0: TRACE:tr: dye
151710.SERVER!SC1.5415.3318970208.0: TRACE:tr: trace("*:ulog:dye")
151710.SERVER!SC1.5415.3318970208.0: TRACE:tr: dye
151710.SERVER!SC1.5415.3318970208.0: LIBTUX_CAT:262: INFO: Standard main starting
151710.SERVER!SC1.5415.3318970208.0: TRACE:at: { tpsvrinit(18, "SC1 -C dom=DOM -g 1 -i 700 -u SERVER -U /path/ULOG -m 0 -s SC1:SC1")
151710.SERVER!SC1.5415.3318970208.0: TRACE:at: { tpopen()
151710.SERVER!SC1.5415.3318970208.0: TRACE:xa: { xa_open(0x0x1b23f00, 0, 0x0)
151711.SERVER!SC1.5415.3318970208.0: TRACE:xa: } xa_open = 0
151711.SERVER!SC1.5415.3318970208.0: TRACE:at: } tpopen = 1
151711.SERVER!SC1.5415.3318970208.0: TPSVRINIT =TPSVRINIT started successfully
151711.SERVER!SC1.5415.3318970208.0: TRACE:at: } tpsvrinit = 1
151711.SERVER!S2.5426.2701363040.0: 08-06-2013: Tuxedo Version 12.1.1.0, 64-bit
151711.SERVER!S2.5426.2701363040.0: TRACE:tr: trace("*:ulog:dye")
151711.SERVER!S2.5426.2701363040.0: TRACE:tr: dye
151711.SERVER!S2.5426.2701363040.0: TRACE:tr: trace("*:ulog:dye")
151711.SERVER!S2.5426.2701363040.0: TRACE:tr: dye
151711.SERVER!S2.5426.2701363040.0: TRACE:tr: trace("*:ulog:dye")
151711.SERVER!S2.5426.2701363040.0: TRACE:tr: dye
151711.SERVER!S2.5426.2701363040.0: LIBTUX_CAT:262: INFO: Standard main starting
151711.SERVER!S2.5426.2701363040.0: TRACE:at: { tpsvrinit(18, "S2 -C dom=DOM -g 1 -i 800 -u SERVER -U /path/ULOG -m 0 -s S2:S2")
151711.SERVER!S2.5426.2701363040.0: TRACE:at: { tpopen()
151711.SERVER!S2.5426.2701363040.0: TRACE:xa: { xa_open(0x0xd80430, 0, 0x0)
151711.SERVER!S2.5426.2701363040.0: TRACE:xa: } xa_open = 0
151711.SERVER!S2.5426.2701363040.0: TRACE:at: } tpopen = 1
151711.SERVER!S2.5426.2701363040.0: TPSVRINIT =TPSVRINIT started successfully
151711.SERVER!S2.5426.2701363040.0: TRACE:at: } tpsvrinit = 1
151734.SERVER!FE.5396.1885755136.4: TRACE:at: { tpbegin(0, 0x0)
151734.SERVER!FE.5396.1885755136.4: gtrid x0 x5200f756 x1: TRACE:at: } tpbegin = 1
151734.SERVER!FE.5396.1885755136.4: gtrid x0 x5200f756 x1: TRACE:at: { tpalloc("CARRAY", "", 17160)
151734.SERVER!FE.5396.1885755136.4: gtrid x0 x5200f756 x1: TRACE:at: } tpalloc = 0x0x7fd85c016468
151734.SERVER!FE.5396.1885755136.4: gtrid x0 x5200f756 x1: TRACE:at: { tpcall("S1", 0x0x7fd85c016468, 17160, 0x0x631210, 0x0x7fd870664c28, 0x0)
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:tr: dye
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: { tpservice({"S1", 0x10, 0x0xfaf0a8, 17160, 0, 2147483648, {0, -2, -1}})
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: { tpalloc("CARRAY", "", 3000)
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: } tpalloc = 0x0xfaae18
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: { tpalloc("CARRAY", "", 3000)
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: } tpalloc = 0x0xfb3fa8
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: { tpalloc("CARRAY", "", 18000)
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: } tpalloc = 0x0xfb4e68
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: { tpcall("EDP", 0x0xfaae18, 1586, 0x0x640b08, 0x0x645208, 0x0)
151734.SERVER!SD.5413.2632021760.1: gtrid x0 x5200f756 x1: TRACE:tr: dye
151734.SERVER!SD.5413.2632021760.1: gtrid x0 x5200f756 x1: TRACE:at: { tpservice({"EDP", 0x10, 0x0x2bd73a8, 1586, 0, 2147483648, {0, -2, -1}})
151734.SERVER!SD.5413.2632021760.1: gtrid x0 x5200f756 x1: TRACE:at: { tpalloc("CARRAY", "", 8192)
151734.SERVER!SD.5413.2632021760.1: gtrid x0 x5200f756 x1: TRACE:at: } tpalloc = 0x0x7f84980161e8
151734.SERVER!SD.5413.2632021760.1: gtrid x0 x5200f756 x1: TRACE:at: { tpreturn(2, 0, 0x0x7f84980161e8, 14, 0x0)
151734.SERVER!SD.5413.2632021760.1: gtrid x0 x5200f756 x1: TRACE:ia: { tpalloc("rpcrqst", "", 4096)
151734.SERVER!SD.5413.2632021760.1: gtrid x0 x5200f756 x1: TRACE:ia: } tpalloc = 0x0x7f84980184e8
151734.SERVER!SD.5413.2632021760.1: TRACE:ia: { tpfree(0x0x7f84980161e8)
151734.SERVER!SD.5413.2632021760.1: TRACE:ia: } tpfree
151734.SERVER!SD.5413.2632021760.1: TRACE:at: } tpreturn [long jump]
151734.SERVER!SD.5413.2632021760.1: TRACE:at: } tpservice
151734.SERVER!SD.5413.2632021760.1: TRACE:tr: undye
151734.SERVER!SD.5413.2632021760.1: TRACE:at: { tpfree(0x0x2bd73a8)
151734.SERVER!SD.5413.2632021760.1: TRACE:at: } tpfree
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: } tpcall = 0
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: { tpalloc("CARRAY", "", 4096)
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: } tpalloc = 0x0xfa9b18
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: { tpcall("EDP", 0x0xfa9b18, 4096, 0x0x646e70, 0x0x7fffbae12278, 0x0)
151734.SERVER!SD.5413.2632021760.1: gtrid x0 x5200f756 x1: TRACE:tr: dye
151734.SERVER!SD.5413.2632021760.1: gtrid x0 x5200f756 x1: TRACE:at: { tpservice({"EDP", 0x10, 0x0x2bd60a8, 4096, 0, 2147483648, {0, -2, -1}})
151734.SERVER!SD.5413.2632021760.1: gtrid x0 x5200f756 x1: TRACE:at: { tpalloc("CARRAY", "", 8192)
151734.SERVER!SD.5413.2632021760.1: gtrid x0 x5200f756 x1: TRACE:at: } tpalloc = 0x0x7f84980161e8
151734.SERVER!SD.5413.2632021760.1: gtrid x0 x5200f756 x1: TRACE:at: { tpreturn(2, 0, 0x0x7f84980161e8, 2064, 0x0)
151734.SERVER!SD.5413.2632021760.1: TRACE:ia: { tpfree(0x0x7f84980161e8)
151734.SERVER!SD.5413.2632021760.1: TRACE:ia: } tpfree
151734.SERVER!SD.5413.2632021760.1: TRACE:at: } tpreturn [long jump]
151734.SERVER!SD.5413.2632021760.1: TRACE:at: } tpservice
151734.SERVER!SD.5413.2632021760.1: TRACE:tr: undye
151734.SERVER!SD.5413.2632021760.1: TRACE:at: { tpfree(0x0x2bd60a8)
151734.SERVER!SD.5413.2632021760.1: TRACE:at: } tpfree
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: } tpcall = 0
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: UskRef0_db2.db_ref0_insert_azref: nach insert
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: { tpfree(0x0xfaae18)
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: } tpfree
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: { tpfree(0x0xfbb498)
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: } tpfree
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: { tpreturn(2, 0, 0x0xfb4e68, 17160, 0x0)
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:ia: { tpalloc("rpcrqst", "", 4096)
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:ia: } tpalloc = 0x0xfaae18
151734.SERVER!FE.5396.1885755136.4: gtrid x0 x5200f756 x1: TRACE:at: } tpcall = 0
151734.SERVER!FE.5396.1885755136.4: gtrid x0 x5200f756 x1: TRACE:at: { tpcall("AR01", 0x0x7fd85c024fe8, 15624, 0x0x631210, 0x0x7fd870664a68, 0x0)
151734.SERVER!SR.5409.45856512.2: gtrid x0 x5200f756 x1: TRACE:at: { tpservice({"AR01", 0x10, 0x0x14035e8, 15624, 0, 2147483648, {0, -2, -1}})
151734.SERVER!SR.5409.45856512.2: gtrid x0 x5200f756 x1: TRACE:at: { tpalloc("CARRAY", "", 15624)
151734.SERVER!SR.5409.45856512.2: gtrid x0 x5200f756 x1: TRACE:at: } tpalloc = 0x0x7f37f4015f58
151734.SERVER!SR.5409.45856512.2: gtrid x0 x5200f756 x1: TRACE:at: { tpalloc("CARRAY", "", 32784)
151734.SERVER!SR.5409.45856512.2: gtrid x0 x5200f756 x1: TRACE:at: } tpalloc = 0x0x7f37f4019f68
151734.SERVER!SR.5409.45856512.2: gtrid x0 x5200f756 x1: TRACE:at: { tpcall("S2", 0x0x7f37f4019f68, 32784, 0x0x62d948, 0x0x7f3802ba2298, 0x0)
151734.SERVER!S2.5426.2701363040.0: gtrid x0 x5200f756 x1: TRACE:tr: dye
151734.SERVER!S2.5426.2701363040.0: gtrid x0 x5200f756 x1: TRACE:at: { tpservice({"S2", 0x10, 0x0xde8348, 32784, 0, 2147483648, {0, -2, -1}})
151734.SERVER!S2.5426.2701363040.0: gtrid x0 x5200f756 x1: TRACE:at: { tptypes(0x0xde8348, 0x0x7fff807aa030, 0x0x7fff807aa010)
151734.SERVER!S2.5426.2701363040.0: gtrid x0 x5200f756 x1: TRACE:at: } tptypes = 35840
151734.SERVER!S2.5426.2701363040.0: gtrid x0 x5200f756 x1: TRACE:at: { tpfree(0x0xde8348)
151734.SERVER!S2.5426.2701363040.0: gtrid x0 x5200f756 x1: TRACE:at: } tpfree
151734.SERVER!S1.5395.3805534048.0: TRACE:ia: { tpfree(0x0xfb4e68)
151734.SERVER!S1.5395.3805534048.0: TRACE:ia: } tpfree
151734.SERVER!S1.5395.3805534048.0: TRACE:at: } tpreturn [long jump]
151734.SERVER!S1.5395.3805534048.0: TRACE:at: } tpservice
151734.SERVER!S1.5395.3805534048.0: TRACE:tr: undye
151734.SERVER!S2.5426.2701363040.0: gtrid x0 x5200f756 x1: TRACE:xa: { ax_reg(0, 0x0x7fff807a7f90, 0)
151734.SERVER!S2.5426.2701363040.0: gtrid x0 x5200f756 x1: TRACE:xa: } ax_reg = 0
151734.SERVER!S2.5426.2701363040.0: gtrid x0 x5200f756 x1: TRACE:at: { tpalloc("CARRAY", "", 32784)
151734.SERVER!S2.5426.2701363040.0: gtrid x0 x5200f756 x1: TRACE:at: } tpalloc = 0x0xdf63e8
151734.SERVER!S2.5426.2701363040.0: gtrid x0 x5200f756 x1: TRACE:at: } tpservice
151734.SERVER!S2.5426.2701363040.0: gtrid x0 x5200f756 x1: TRACE:at: { tpreturn(2, 538976288, 0x0xdf63e8, 32784, 0x0)
151734.SERVER!S2.5426.2701363040.0: gtrid x0 x5200f756 x1: TRACE:ia: { tpalloc("rpcrqst", "", 4096)
151734.SERVER!S2.5426.2701363040.0: gtrid x0 x5200f756 x1: TRACE:ia: } tpalloc = 0x0xdfe8a8
151734.SERVER!S2.5426.2701363040.0: gtrid x0 x5200f756 x1: TRACE:xa: { xa_end(0x0xd80430, 0, 0x4000000)
151734.SERVER!S2.5426.2701363040.0: gtrid x0 x5200f756 x1: TRACE:xa: } xa_end = 0
151734.SERVER!SR.5409.45856512.2: gtrid x0 x5200f756 x1: TRACE:at: } tpcall = 0
151734.SERVER!SR.5409.45856512.2: gtrid x0 x5200f756 x1: TRACE:at: { tpreturn(2, 0, 0x0x7f37f4015f58, 15624, 0x0)
151734.SERVER!SR.5409.45856512.2: gtrid x0 x5200f756 x1: TRACE:ia: { tpalloc("rpcrqst", "", 4096)
151734.SERVER!SR.5409.45856512.2: gtrid x0 x5200f756 x1: TRACE:ia: } tpalloc = 0x0x7f37f402bc88
151734.SERVER!SR.5409.45856512.2: TRACE:ia: { tpfree(0x0x7f37f4015f58)
151734.SERVER!SR.5409.45856512.2: TRACE:ia: } tpfree
151734.SERVER!SR.5409.45856512.2: TRACE:at: } tpreturn [long jump]
151734.SERVER!SR.5409.45856512.2: TRACE:at: } tpservice
151734.SERVER!SR.5409.45856512.2: TRACE:at: { tpfree(0x0x14035e8)
151734.SERVER!SR.5409.45856512.2: TRACE:at: } tpfree
151734.SERVER!FE.5396.1885755136.4: gtrid x0 x5200f756 x1: TRACE:at: } tpcall = 0
151734.SERVER!FE.5396.1885755136.4: gtrid x0 x5200f756 x1: TRACE:at: { tpcall("S1", 0x0x7fd85c0299f8, 17160, 0x0x631210, 0x0x7fd8706649c8, 0x0)
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: { tpservice({"S1", 0x10, 0x0xfb3fa8, 17160, 0, 2147483648, {0, -2, -1}})
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: { tpalloc("CARRAY", "", 3000)
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: } tpalloc = 0x0xfa9b18
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: { tpalloc("CARRAY", "", 3000)
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: } tpalloc = 0x0xfbf168
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: { tpalloc("CARRAY", "", 18000)
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: } tpalloc = 0x0xfc65e8
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: { tpcall("EDP", 0x0xfa9b18, 1564, 0x0x640b08, 0x0x645208, 0x0)
151734.SERVER!SD.5413.2632021760.1: gtrid x0 x5200f756 x1: TRACE:at: { tpservice({"EDP", 0x10, 0x0x2bd86a8, 1564, 0, 2147483648, {0, -2, -1}})
151734.SERVER!SD.5413.2632021760.1: gtrid x0 x5200f756 x1: TRACE:at: { tpalloc("CARRAY", "", 8192)
151734.SERVER!SD.5413.2632021760.1: gtrid x0 x5200f756 x1: TRACE:at: } tpalloc = 0x0x7f84980161e8
151734.SERVER!S2.5426.2701363040.0: TRACE:ia: { tpfree(0x0xdf63e8)
151734.SERVER!S2.5426.2701363040.0: TRACE:ia: } tpfree
151734.SERVER!S2.5426.2701363040.0: TRACE:at: } tpreturn [long jump]
151734.SERVER!S2.5426.2701363040.0: TRACE:at:} tpservice
151734.SERVER!S2.5426.2701363040.0: TRACE:tr: undye
151734.SERVER!SD.5413.2632021760.1: gtrid x0 x5200f756 x1: TRACE:at: { tpreturn(2, 0, 0x0x7f84980161e8, 38, 0x0)
151734.SERVER!SD.5413.2632021760.1: TRACE:ia: { tpfree(0x0x7f84980161e8)
151734.SERVER!SD.5413.2632021760.1: TRACE:ia: } tpfree
151734.SERVER!SD.5413.2632021760.1: TRACE:at: } tpreturn [long jump]
151734.SERVER!SD.5413.2632021760.1: TRACE:at: } tpservice
151734.SERVER!SD.5413.2632021760.1: TRACE:at: { tpfree(0x0x2bd86a8)
151734.SERVER!SD.5413.2632021760.1: TRACE:at: } tpfree
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: } tpcall = 0
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: { tpfree(0x0xfa9b18)
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: } tpfree
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: { tpfree(0x0xfaf0a8)
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: } tpfree
151734.SERVER!S1.5395.3805534048.0: gtrid x0 x5200f756 x1: TRACE:at: { tpreturn(2, 0, 0x0xfc65e8, 17160, 0x0)
151734.SERVER!S1.5395.3805534048.0: TRACE:ia: { tpfree(0x0xfc65e8)
151734.SERVER!S1.5395.3805534048.0: TRACE:ia: } tpfree
151734.SERVER!S1.5395.3805534048.0: TRACE:at: } tpreturn [long jump]
151734.SERVER!S1.5395.3805534048.0: TRACE:at: } tpservice
151734.SERVER!FE.5396.1885755136.4: gtrid x0 x5200f756 x1: TRACE:at: } tpcall = 0
151734.SERVER!FE.5396.1885755136.4: gtrid x0 x5200f756 x1: TRACE:at: { tpcommit(0x0)
151734.SERVER!FE.5396.1885755136.4: gtrid x0 x5200f756 x1: TRACE:xa: { xa_commit(0x0x7fd85c005730, 0, 0x40000000)
151734.SERVER!FE.5396.1885755136.4: gtrid x0 x5200f756 x1: TRACE:xa: } xa_commit = 0
151734.SERVER!FE.5396.1885755136.4: TRACE:at: } tpcommit = 1 -
Commit for every 1000 records in Insert into select statment
Hi I've the following INSERT into SELECT statement .
The SELECT statement (which has joins ) has around 6 crores fo data . I need to insert that data into another table.
Please suggest me the best way to do that .
I'm using the INSERT into SELECT statement , but i want to use commit statement for every 1000 records .
How can i achieve this ..
insert into emp_dept_master
select e.ename ,d.dname ,e.empno ,e.empno ,e.sal
from emp e , dept d
where e.deptno = d.deptno ------ how to use commit for every 1000 records .ThanksSmile wrote:
Hi I've the following INSERT into SELECT statement .
The SELECT statement (which has joins ) has around 6 crores fo data . I need to insert that data into another table.Does the another table already have records or its empty?
If its empty then you can drop it and create it as
create your_another_table
as
<your select statement that return 60000000 records>
Please suggest me the best way to do that .
I'm using the INSERT into SELECT statement , but i want to use commit statement for every 1000 records .That is not the best way. Frequent commit may lead to ORA-1555 error
[url http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:275215756923]A nice artical from ASKTOM on this one
How can i achieve this ..
insert into emp_dept_master
select e.ename ,d.dname ,e.empno ,e.empno ,e.sal
from emp e , dept d
where e.deptno = d.deptno ------ how to use commit for every 1000 records .
It depends on the reason behind you wanting to split your transaction into small chunks. Most of the time there is no good reason for that.
If you are tying to imporve performance by doing so then you are wrong it will only degrade the performance.
To improve the performance you can use APPEND hint in insert, you can try PARALLEL DML and If you are in 11g and above you can use [url http://docs.oracle.com/cd/E11882_01/appdev.112/e25788/d_parallel_ex.htm#CHDIJACH]DBMS_PARALLEL_EXECUTE to break your insert into chunks and run it in parallel.
So if you can tell the actual objective we could offer some help. -
Inserting into Postgres via ODBC Gateway
Hi, I've made some tests, here are results and questions:
Postgres:
CREATE TABLE t_dump
str character varying(100)
)Oracle: [ORADB: db link to Postgrers]
INSERT INTO "t_dump"@ORADB VALUES ('test'); Works fine, both from SQL as from PL/SQL
However:
Declare
m_str Varchar2 (10) := 'test';
Begin
INSERT INTO "t_dump"@ORADB VALUES (m_str);
End;Gives me an error:
Error report:
ORA-00604: error occurred at recursive SQL level 1
ORA-02067: transaction or savepoint rollback required
ORA-28511: lost RPC connection to heterogeneous remote agent using SID=ORA-28511: lost RPC connection to heterogeneous remote agent using SID=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=DB)(PORT=1521))(CONNECT_DATA=(SID=pg)))
ORA-02055: distributed update operation failed; rollback required
ORA-02063: preceding lines from ORADB
ORA-06512: at line 8
00604. 00000 - "error occurred at recursive SQL level %s"
*Cause: An error occurred while processing a recursive SQL statement
(a statement applying to internal dictionary tables).
*Action: If the situation described in the next error on the stack
can be corrected, do so; otherwise contact Oracle Support.Dynamic SQL gives exact same error:
Declare
m_str Varchar2 (10) := 'test';
Begin
EXECUTE IMMEDIATE
'INSERT INTO "t_dump"@ORADB VALUES (:v0)'
Using m_str;
End;Is there any way I could use variables into queries?
One more issiue:
I have created partitioned table in Postgres, and simple INSERT statement works fine [SQL from Oracle]; however- the same statement, enclosed with begin/end [PL/SQL] needs about 60 seconds to finish. Is it normal behaviour? Is there any config/pragma/.. I could use to speed it up?
Regards
Bart DabrHi,
Your sample also doesn't work in PL/SQL block..
Here is my detailed config:
Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
TNS for Linux: Version 11.2.0.1.0 - Production
PostgreSQL 8.4.8 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.5.real (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2, 64-bit
and latest ODBC version from Postgres webpage (09.00.0310)
I will install the latest Postgres DB and try it then
Here is the trace, with removed some 'libname=/usr/lib64/libodbc.so, funcname=SQLGetDescRec' parts from init
Oracle Corporation --- WEDNESDAY OCT 05 2011 10:00:47.743
Heterogeneous Agent Release
11.2.0.1.0
Oracle Corporation --- WEDNESDAY OCT 05 2011 10:00:47.743
Version 11.2.0.1.0
Entered hgogprd
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
Entered hgosdip
setting HS_OPEN_CURSORS to default of 50
setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
setting HS_FDS_RECOVERY_PWD to default value
setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
setting HS_IDLE_TIMEOUT to default of 0
setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
setting HS_NLS_NCHAR to default of "AL32UTF8"
setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
setting HS_FDS_DATE_MAPPING to default of "DATE"
setting HS_RPC_FETCH_REBLOCKING to default of "ON"
setting HS_FDS_FETCH_ROWS to default of "100"
setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
setting HS_FDS_MAP_NCHAR to default of "TRUE"
setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
setting HS_FDS_QUERY_DRIVER to default of "TRUE"
setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
Parameter HS_FDS_QUOTE_IDENTIFIER is not set
setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
HOSGIP returned value of "32" for HS_FDS_SQLLEN_INTERPRETATION
setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
setting HS_FDS_DELAYED_OPEN to default of "TRUE"
setting HS_FDS_WORKAROUNDS to default of "0"
Exiting hgosdip, rc=0
ORACLE_SID is "pg"
Product-Info:
Port Rls/Upd:1/0 PrdStat:0
Agent:Oracle Database Gateway for ODBC
Facility:hsa
Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:pg
Exiting hgogprd, rc=0
hostmstr: 0: HOA After hoagprd
hostmstr: 0: HOA Before hoainit
Entered hgoinit
HOCXU_COMP_CSET=1
HOCXU_DRV_CSET=870
HOCXU_DRV_NCHAR=873
HOCXU_DB_CSET=873
HOCXU_SEM_VER=112000
Entered hgolofn at 2011/10/05-10:00:47
HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/lib64/libodbc.so"
Entered hgolofns at 2011/10/05-10:00:47
libname=/usr/lib64/libodbc.so, funcname=SQLAllocHandle
symbol_peflctx=0xe74082a0
hoaerr:0
Exiting hgolofns at 2011/10/05-10:00:47
Entered hgolofns at 2011/10/05-10:00:47
Exiting hgolofns at 2011/10/05-10:00:47
Exiting hgolofn, rc=0 at 2011/10/05-10:00:47
HOSGIP for "HS_OPEN_CURSORS" returned "50"
HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
treat_SQLLEN_as_compiled = 0
Exiting hgoinit, rc=0 at 2011/10/05-10:00:47
hostmstr: 0: HOA After hoainit
hostmstr: 0: HOA Before hoalgon
Entered hgolgon at 2011/10/05-10:00:47
reco:0, name:kg, tflag:0
Entered hgosuec at 2011/10/05-10:00:47
Exiting hgosuec, rc=0 at 2011/10/05-10:00:47
HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
using kg as default value for "HS_FDS_DEFAULT_OWNER"
HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
Entered hgocont at 2011/10/05-10:00:47
HS_FDS_CONNECT_INFO = "pg"
RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
Entered hgogenconstr at 2011/10/05-10:00:47
dsn:pg, name:kg
optn:
Entered hgocip at 2011/10/05-10:00:47
dsn:pg
Exiting hgocip, rc=0 at 2011/10/05-10:00:47
##>Connect Parameters (len=22)<##
## DSN=pg;
#! UID=kg;
#! PWD=*
Exiting hgogenconstr, rc=0 at 2011/10/05-10:00:47
Entered hgolosf at 2011/10/05-10:00:47
ODBC Function-Available-Array 0xFFFE 0x01FF 0xFF00 0xFA7F 0x03FF 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0xFE00 0x3B5D
Exiting hgolosf, rc=0 at 2011/10/05-10:00:47
DriverName:psqlodbcw.so, DriverVer:09.00.0310
DBMS Name:PostgreSQL, DBMS Version:8.4.8
Exiting hgocont, rc=0 at 2011/10/05-10:00:47
SQLGetInfo returns Y for SQL_CATALOG_NAME
SQLGetInfo returns 0 for SQL_MAX_CATALOG_NAME_LEN
Exiting hgolgon, rc=0 at 2011/10/05-10:00:47
hostmstr: 0: HOA After hoalgon
RPC Calling nscontrol(0), rc=0
hostmstr: 0: RPC Before Upload Caps
hostmstr: 0: HOA Before hoaulcp
Entered hgoulcp at 2011/10/05-10:00:47
Entered hgowlst at 2011/10/05-10:00:47
Exiting hgowlst, rc=0 at 2011/10/05-10:00:47
SQLGetInfo returns 0x1d for SQL_OWNER_USAGE
TXN Capable:2, Isolation Option:0xa
SQLGetInfo returns 64 for SQL_MAX_SCHEMA_NAME_LEN
SQLGetInfo returns 64 for SQL_MAX_TABLE_NAME_LEN
SQLGetInfo returns 0 for SQL_MAX_PROCEDURE_NAME_LEN
SQLGetInfo returns " (0x22) for SQL_IDENTIFIER_QUOTE_CHAR
SQLGetInfo returns Y for SQL_COLUMN_ALIAS
3 instance capabilities will be uploaded
capno:1989, context:0x00000000, add-info: 0
capno:1991, context:0x0001ffff, add-info: 0
capno:1992, context:0x0001ffff, add-info: 0
Exiting hgoulcp, rc=0 at 2011/10/05-10:00:47
hostmstr: 0: HOA After hoaulcp
hostmstr: 0: RPC After Upload Caps
hostmstr: 0: RPC Before Upload DDTR
hostmstr: 0: HOA Before hoauldt
Entered hgouldt at 2011/10/05-10:00:47
NO instance DD translations were uploaded
Exiting hgouldt, rc=0 at 2011/10/05-10:00:47
hostmstr: 0: HOA After hoauldt
hostmstr: 0: RPC After Upload DDTR
hostmstr: 0: RPC Before Begin Trans
hostmstr: 0: HOA Before hoabegn
Entered hgobegn at 2011/10/05-10:00:47
tflag:0 , initial:1
hoi:0x1c6766b8, ttid (len 22) is ...
00: 53452E65 36323536 3636622E 322E3135 [SE.e625666b.2.15]
10: 2E393235 3737 [.92577]
tbid (len 19) is ...
00: 53455B32 2E31352E 39323537 375D5B31 [SE[2.15.92577][1]
10: 2E345D [.4]]
Exiting hgobegn, rc=0 at 2011/10/05-10:00:47
hostmstr: 0: HOA After hoabegn
hostmstr: 0: RPC After Begin Trans
hostmstr: 0: RPC Before Describe Procedure
hostmstr: 0: HOA Before hoapdsc
Entered hgopdsc at 2011/10/05-10:00:47
Describing procedure kg.test
Output hoada
hgopdsc, line 1406: NO hoada to print
Exiting hgopdsc, rc=942 at 2011/10/05-10:00:47
hostmstr: 0: HOA After hoapdsc
hostmstr: 0: RPC After Describe Procedure
hostmstr: 0: RPC Before Describe Table
hostmstr: 0: HOA Before hoadtab
Entered hgodtab at 2011/10/05-10:00:47
count:1
table: kg.test
Allocate hoada[0] @ 0xdcaa10
Entered hgopcda at 2011/10/05-10:00:47
Column:1(col1): dtype:4 (INTEGER), prc/scl:10/0, nullbl:1, octet:-1, sign:1, radix:10
Exiting hgopcda, rc=0 at 2011/10/05-10:00:47
Entered hgopcda at 2011/10/05-10:00:47
Column:2(col2): dtype:12 (VARCHAR), prc/scl:100/0, nullbl:1, octet:255, sign:1, radix:10
Exiting hgopcda, rc=0 at 2011/10/05-10:00:47
The hoada for table kg.test follows...
hgodtab, line 876: Printing hoada @ 0xdcaa10
MAX:2, ACTUAL:2, BRC:1, WHT=6 (TABLE_DESCRIBE)
hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
4 INTEGER Y 4 4 0/ 0 0 0 0 col1
12 VARCHAR Y 255 255 0/ 0 0 0 200 col2
Exiting hgodtab, rc=0 at 2011/10/05-10:00:47
hostmstr: 0: HOA After hoadtab
hostmstr: 0: HOA Before hoadafr
Entered hgodafr, cursor id 0 at 2011/10/05-10:00:47
Free hoada @ 0xdcaa10
Exiting hgodafr, rc=0 at 2011/10/05-10:00:47
hostmstr: 0: HOA After hoadafr
hostmstr: 0: RPC After Describe Table
hostmstr: 0: RPC Before SQL Bundling
hostmstr: 0: HOA Before hoxpars
Entered hgopars, cursor id 1 at 2011/10/05-10:00:47
type:0
SQL text from hgopars, id=1, len=46 ...
00: 53454C45 43542041 312E2263 6F6C3122 [SELECT A1."col1"]
10: 2C41312E 22636F6C 32222046 524F4D20 [,A1."col2" FROM ]
20: 226B6722 2E227465 73742220 4131 ["kg"."test" A1]
Exiting hgopars, rc=0 at 2011/10/05-10:00:47
hostmstr: 0: HOA After hoxpars
hostmstr: 0: HOA Before hoxopen
Entered hgoopen, cursor id 1 at 2011/10/05-10:00:47
hgoopen, line 86: NO hoada to print
Deferred open until first fetch.
Exiting hgoopen, rc=0 at 2011/10/05-10:00:47
hostmstr: 0: HOA After hoxopen
hostmstr: 0: HOA Before hoxdscr
Entered hgodscr, cursor id 1 at 2011/10/05-10:00:47
Allocate hoada @ 0xdca9d0
Entered hgopcda at 2011/10/05-10:00:47
Column:1(col1): dtype:4 (INTEGER), prc/scl:10/0, nullbl:1, octet:0, sign:1, radix:0
Exiting hgopcda, rc=0 at 2011/10/05-10:00:47
Entered hgopcda at 2011/10/05-10:00:47
Column:2(col2): dtype:12 (VARCHAR), prc/scl:100/0, nullbl:1, octet:255, sign:1, radix:0
Exiting hgopcda, rc=0 at 2011/10/05-10:00:47
hgodscr, line 880: Printing hoada @ 0xdca9d0
MAX:2, ACTUAL:2, BRC:100, WHT=5 (SELECT_LIST)
hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
4 INTEGER Y 4 4 0/ 0 0 0 0 col1
12 VARCHAR Y 255 255 0/ 0 0 0 200 col2
Exiting hgodscr, rc=0 at 2011/10/05-10:00:47
hostmstr: 0: HOA After hoxdscr
hostmstr: 0: RPC After SQL Bundling
hostmstr: 0: RPC Before Describe Table
hostmstr: 0: HOA Before hoadtab
Entered hgodtab at 2011/10/05-10:00:47
count:1
table: test
Allocate hoada[0] @ 0xdcdd88
Entered hgopcda at 2011/10/05-10:00:47
Column:1(col1): dtype:4 (INTEGER), prc/scl:10/0, nullbl:1, octet:-1, sign:1, radix:10
Exiting hgopcda, rc=0 at 2011/10/05-10:00:47
Entered hgopcda at 2011/10/05-10:00:47
Column:2(col2): dtype:12 (VARCHAR), prc/scl:100/0, nullbl:1, octet:255, sign:1, radix:10
Exiting hgopcda, rc=0 at 2011/10/05-10:00:47
The hoada for table test follows...
hgodtab, line 876: Printing hoada @ 0xdcdd88
MAX:2, ACTUAL:2, BRC:1, WHT=6 (TABLE_DESCRIBE)
hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
4 INTEGER Y 4 4 0/ 0 0 0 0 col1
12 VARCHAR Y 255 255 0/ 0 0 0 200 col2
Exiting hgodtab, rc=0 at 2011/10/05-10:00:47
hostmstr: 0: HOA After hoadtab
hostmstr: 0: HOA Before hoadafr
Entered hgodafr, cursor id 0 at 2011/10/05-10:00:47
Free hoada @ 0xdcdd88
Exiting hgodafr, rc=0 at 2011/10/05-10:00:47
hostmstr: 0: HOA After hoadafr
hostmstr: 0: RPC After Describe Table
hostmstr: 0: RPC Before SQL Bundling
hostmstr: 0: HOA Before hoxclse
Entered hgoclse, cursor id 1 at 2011/10/05-10:00:47
Exiting hgoclse, rc=0 at 2011/10/05-10:00:47
hostmstr: 0: HOA After hoxclse
hostmstr: 0: HOA Before hoadafr
Entered hgodafr, cursor id 1 at 2011/10/05-10:00:47
Free hoada @ 0xdca9d0
Exiting hgodafr, rc=0 at 2011/10/05-10:00:47
hostmstr: 0: HOA After hoadafr
hostmstr: 0: HOA Before hoxpars
Entered hgopars, cursor id 1 at 2011/10/05-10:00:47
type:0
SQL text from hgopars, id=1, len=48 ...
00: 494E5345 52542020 494E544F 20227465 [INSERT INTO "te]
10: 73742220 2822636F 6C31222C 22636F6C [st" ("col1","col]
20: 32222920 56414C55 45532028 3F2C3F29 [2") VALUES (?,?)]
Exiting hgopars, rc=0 at 2011/10/05-10:00:47
hostmstr: 0: HOA After hoxpars
hostmstr: 0: HOA Before hoaexec
Entered hgoexec, cursor id 1 at 2011/10/05-10:00:47
octype=4 (INSERT)
hgoexec, line 108: Printing hoada @ 0xdcaa50
MAX:2, ACTUAL:2, BRC:1, WHT=3 (BIND_LIST)
hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
3 DECIMAL N 1 0 0/ 0 0 0 0 ?
12 VARCHAR N 4 0 0/ 0 870 0 200 ?
Entered hgoprbv at 2011/10/05-10:00:47
hgoprbv, line 145: Printing hoada @ 0xdcaa50
MAX:2, ACTUAL:2, BRC:1, WHT=3 (BIND_LIST)
hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
3 DECIMAL N 1 0 0/ 0 0 0 0 ?
12 VARCHAR N 4 0 0/ 0 870 0 200 ?
Exiting hgoprbv, rc=0 at 2011/10/05-10:00:47
{code}
End of the trace, session closed, nothing more in file
Regards
Bart Dabr
Maybe you are looking for
-
Gmail on iPhone4: can receive email but cannot send email
I am using a brand new iPhone 4 with iOS 5.0.1. I can receive emails from Gmail without any problems, but when trying to send emails I get the error message "the connection to the outgoing server 'smtp.gmail.com' failed. Additional outgoing mail serv
-
Hi Sap Gurus, We use f-48 to enter down payments, and f-54 to clear these down payments. We are also deducting tds while making down payments to the taxable vendors as per income tax rules. In case of Invoices posted using fb60 every thing is going f
-
How to show grand total at bottom in Pivot view?
Hi All, How to show the report Grand total at bottom in pivot table?Plz help. Regards, Vaishnavi
-
Hi all ! I try to connect to Oracle database using jdk 1.3, and defining classpath = classe12.jar. There's no problem at compilation but errors runtime. Thanks, it's urgent !!!!!! The source: import java.sql.*; import oracle.jdbc.driver.*; public cla
-
I have a requirement to allow ESS users to download their previous year's W2 in OFX format. I will appreciate any ideas about how best this can be achieved. My thoughts: Solution 1: Step 1: Create a web dynpro application and deply it on the Portal E