Error in Multi - replication
When I try to add Master site then error comes
SQL> begin
2 dbms_repcat.add_master_database(
3 gname => 'hr_repg',
4 master => 'orc2.world',
5 use_existing_objects => TRUE,
6 copy_rows => FALSE,
7 propagation_mode => 'ASYNCHRONOUS');
8 end;
9 /
begin
ERROR at line 1:
ORA-04052: error occurred when looking up remote object [email protected]
ORA-00604: error occurred at recursive SQL level 2
ORA-12638: Credential retrieval failed
ORA-06512: at "SYS.DBMS_REPCAT_UTL", line 4262
ORA-06512: at "SYS.DBMS_REPCAT_MAS", line 2156
ORA-06512: at "SYS.DBMS_REPCAT", line 146
ORA-06512: at line 2
Is there anyone have solution pls write to me.
Thanks in Advance
I had some problems like this. The setup of the database links is very important. If it is not exactly right, you will get permission errors similar to this.
Refer to the Metalink Note 117434.1 [http://metalink.oracle.com] - title "Initial Steps Required to Create a Multi Master Replication Environment V8.1/V9.x
I hope this helps.
Regards,
Stuart.
Similar Messages
-
ORA-20001: Error in multi row delete operation: ORA-01403: no data
Whenever I attempt a multi-row delete on my master detail page, I recieve the error:
ORA-20001: Error in multi row delete operation: ORA-01403: no dataI have seen in other threads that the primary key attribute of the underlying table needs to be set to 'Show' in the report attributes. I have tried this both with it displaying as 'Hidden' ('Show' is unchecked) and with it displaying as text. Either way still gives me the same error.
Is there anything else not mentioned in the other threads that could be causing this error for me?
Thanks.
BoilerUPJimmy,
In your multi row delete process you specify schema name, table and column name. Your report needs to be of type âSQL query (Updateable report)â. And your report needs to include the primary key column of your table. The column or alias name of that report column needs to correspond with the actual column name of your table.
Marc -
Strange errors in session replication
I get following errors in session replication :
weblogic.utils.NestedError: Tried to update secondary, but it thought
it was the primary
- with nested exception:
[weblogic.cluster.replication.BadStatusException: updateSecondary
found
-148099416498695151 but it is not the primary]
Using Weblogic451, SP7 on Solaris 2.6.
Any clues ??
-Kuntal Shah.
Hello,
> > Alteon is set to use "permanent hashing" to route the client into
> > the same server in each request.
>
> How do you expect the switch to know about the secondary node
> if the primary fails? This information is stored in the URL and
> parsed by a proxy.
It took a couple of days and fair amount of documentation to understand
the behaviour of the web cluster...;-)
We changed the configuration to include two proxy servers between the
Alteon switch and web cluster, but we ended up with a different problem.
The setup at the moment is:
- Sun Solaris 2.6, native threads, JDK 1.1.7B_008
- two WLS 4.51 SP7 running in cluster using in-memory replication
- only servlets deployed in the servers
- Two WLS proxies between the webcluster and alteon switch. Both proxies are
configured to use both of the web servers. they do not belong to the web
cluster.
The proxies are configured in the following way:
weblogic.httpd.session.enable=true
weblogic.httpd.session.timeoutSecs=1800
weblogic.httpd.session.invalidationIntervalSecs=600
weblogic.httpd.session.URLRewriting.enable=true
weblogic.httpd.session.cookies.enable=true
weblogic.httpd.session.cookie.maxAgeSecs=-1
weblogic.httpd.session.cookie.domain=some.domain.name
weblogic.httpd.register.cluster=weblogic.servlet.internal.HttpClusterServlet
weblogic.httpd.initArgs.cluster=defaultServers=x.y.z.a1:9001|x.y.z.a2:9001
weblogic.httpd.defaultServlet=cluster
weblogic.allow.execute.weblogic.servlet=everyone
Probably most of the configuration parameters are not necessary, can
somebody tell me which are
and which are not?
The servers in the web cluster are configured in the following way:
The following parameters are in the start-up script of the servers:
-Dweblogic.cluster.enable=true \
-Dweblogic.system.name=somehost \
-Dweblogic.cluster.name=someclustercluster \
-Dweblogic.cluster.multicastAddress=237.0.0.1 \
-Dweblogic.system.bindAddr=x.y.z.a1 \
-Dweblogic.system.nativeIO.enable=true \
-Dweblogic.debug.replication=1 \
And the following are in the cluster-wide properties file:
weblogic.httpd.clustering.enable=true
weblogic.httpd.session.persistence=true
weblogic.httpd.session.persistentStoreType=replicated
weblogic.httpd.session.enable=true
weblogic.httpd.session.timeoutSecs=1800
weblogic.httpd.session.invalidationIntervalSecs=600
weblogic.httpd.session.URLRewriting.enable=true
weblogic.httpd.session.cookies.enable=true
weblogic.httpd.session.cookie.domain=some.domain.name
The IP-address of the Alteon box in front of the proxies is bound to
'some.domain.name'.
The first problem seems to be very poor performance. The overall throughtput
is vveeeerrryyy slow, comparing
to the configuration where there is no proxy sitting in front of the
cluster. Furthermore, at some stage the proxy
starts to print out error messages: java.lang.InvalidStateException: broken
pipe [...] . After those exceptions no
client get any response anymore.
Could someone give some hints what are the most essential items in the
weblogic.properties -file for the
proxy server? Also, if someone has some experience from setting up a
configuration similar to ours: one hardware
load-balancer in front of two proxies, and eventually two web servers
running in a web cluster.
Cheers,
Jarno.
-
*UPDATE 1/23/2009 07:08 AM* This is a partial fix. I no longer think the Recurrence Range is the culprit. It seems the Time Zones features between Outlook & Palm are not cooperating. This explains why my 12 am events are syncing as 6 pm the day before; I live in GMT-6:00 so it's moving my events ahead by 6 hours. Another event I set for 1 pm in Outlook was changed to 7 am on my Treo. I am going to start over and recreate each event, this time setting the Time Zones, which I hadn't done before. I tested it out and it worked with a single event... let's see how long it lasts. I've also found that using 'No Time' on my Treo is not compatible with Outlook. It's better to set a time with 0 minutes duration.
*UPDATE 1/23/2009 04:11 AM* This is a partial fix. My monthly and yearly problematic recurring events are now showing up at 6 pm the day before on my Treo, though my Outlook calendar is fine. I think this has to do with the Recurrence Range Start/End in Outlook, which is set automatically. If only there were a way to change this...
After a WHOLE LOTTA trial-and-error (like 3 days worth), I think I finally solved my OLERR:14-001 issue!
Problem: Syncing Palm Treo 755p calendar with Outlook 2007
Error Message (simplified):
HotSync session completed with messages on [date] [time]
HotSync session started on [date] [time], and completed in [0] seconds
Outlook Calendar synchronization completed with messages
Duration: [0] seconds
Outlook Calendar
The multi-day repeating appointment titled [event] beginning [date] [time] cannot be converted for use on the Handheld. Please divide the appointment up into single-days and re-synchronize.
OLERR:14-0001
- Desktop overwrite HH Sync
Note: You will likely have several of these ‘Multi-day’ instances in your hotsync log (I had 58). You may want to change Calendar in hotsync to "Desktop overwrites Handheld" after you get this error, to avoid erasing events while you are fixing this issue. Otherwise, you may have to restore them from a backup copy (if you have one) and start over. You can switch back once you’re through.
Solution: First, I tried this Palm KB Article: http://kb.palm.com/SRVS/NUA/launchKB.asp?c=31167. After this didn’t work for me… I did trial-and-error. I believe the problem is that each recurring event, which you set up as ‘All-day’, must be changed to have a duration of 0 minutes from within Outlook. I was able to change some events directly, but I found that some of the records had corrupted, and would just revert. My fool-proof solution was to recreate EVERY problematic event (yes, one-by-one) using the following steps:
Open Outlook
Go to your default calendar, where your events are synced
In the top menu choose ‘View’ > ‘Current View’ > ‘Recurring Appointments’
Open a ‘New Appointment’
Enter subject and other options, such as Categorize, Importance, Time Zones, or Reminder
Make sure starting and ending date & time are the EXACT same
Select ‘Recurrence’ & choose your pattern
I did not choose ‘No end date’ (hence the Palm article), but rather ‘End by:’ and typed in 2031, then pressed tab to auto-generate a suitable end date. I chose 2031 because that is last year my Treo’s calendar goes to. Click OK
Repeat for every event in your error log, until you get a clean "Desktop overwrites Handheld" hotsync (Outlook should be closed when you sync)
Switch Calendar in hotsync back to "Synchronize"
Even though I still get the message OLERR14:001, my syncs are successful. Now I will give my Treo time to see if the issue returns later. Until then, happy Outlook syncing and good luck!
Post relates to: Treo 755p (Sprint)
Message Edited by akeaw3000 on 01-23-2009 04:11 AM
Message Edited by akeaw3000 on 01-23-2009 07:08 AMhello,
if all of your data is on the phone you can change the sync action to handhled overwrites desktop
how to:
open palm desktop software
on the top left click on 'hotsync' and then 'custom'
on the calendar conduit
highlight it and click on 'change'
then choose 'handhled overwrites desktop'
hope this will help you
Post relates to: Palm TX -
Error in Multi Message Mapping
Hi,
I am getting the following error in my multi message mapping scenario where I am trying to create 2 different output files from a single input file based on some condition. I tested the message mapping by using a test file and it works fine, but when I use the same file and test it end to end the scenario is failing with the following error.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--
Request Message Mapping
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="MAPPING">GENERIC</SAP:Code>
<SAP:P1>Split mapping created no messages</SAP:P1>
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:Stack>Split mapping created no messages</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Is there something wrong with my configuration?
The trace has the following content.
Trace level="1" type="T">*** START APPLICATION TRACE ***</Trace>
<Trace level="3" type="T">Document start</Trace>
<Trace level="3" type="T">Start tag [ns0:Messages]</Trace>
<Trace level="3" type="T">Add raw attribute [ xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge"]</Trace>
<Trace level="3" type="T">Start tag [ns0:Message1]</Trace>
<Trace level="3" type="T">Close tag [ns0:Message1]</Trace>
<Trace level="3" type="T">Start tag [ns0:Message2]</Trace>
<Trace level="3" type="T">Close tag [ns0:Message2]</Trace>
<Trace level="3" type="T">Close tag [ns0:Messages]</Trace>
<Trace level="3" type="T">Document end</Trace>
<Trace level="1" type="T">*** END APPLICATION TRACE ***</Trace>
<Trace level="2" type="T">Java mapping com/sap/xi/tf/_Employee1_MT_To_Employee1_MT_AND_Employee2_MT_MM_ completed. (executeStep() of com.sap.xi.tf._Employee1_MT_To_Employee1_MT_AND_Employee2_MT_MM_).</Trace>
<Trace level="3" type="T">Message Type 1 Number of Messages 0</Trace>
<Trace level="3" type="T">Message Type 2 Number of Messages 0</Trace>
<Trace level="1" type="E">CL_XMS_PLSRV_MAPPING~ENTER_PLSRV</Trace>
</Trace>
<Trace level="3" type="System_Error">Error exception return from pipeline processing!</Trace>
<Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />
- <!--
-->
<Trace level="3" type="T">Persisting message Status = 014</Trace>
<Trace level="3" type="T">Message version 001</Trace>
<Trace level="3" type="T">Pipeline CENTRAL</Trace>
</SAP:Trace>Hi,
The scenario I am trying to test is a multi mapping scenario where I am trying to split one source message and create two target messages by using two different receiver interfaces, one for each message.
I am on PI 7.1 and when I test message mapping and operation mapping using the payload from SXMB_MONI, it is successful. Whereas when I test the scenario end to end I am getting the following error messages:
Operation Mapping
Employee_Out_SI_To_Employee1_In_SI_AND_Employee2_In_SI_OM
Name
Employee_Out_SI_To_Employee1_In_SI_AND_Employee2_In_SI_OM
Namespace
http://accenture.com/1:N_multi-mapping
Runtime error
Split mapping created no messages
Start tag ns0:Messages Add raw attribute xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge" Start tag ns0:Message1 Close tag ns0:Message1 Start tag ns0:Message2 Close tag ns0:Message2 Close tag ns0:Messages
Could someone please help
Cheers,
S -
Error Maintaining multi-lingual tables.
Hello, for past few days i have been stack at this error, can't find the solution. So i am bringing my problem here, hoping for an answer.
Platform: Linux Red Hat Enterprise 5
i am on R12.1.3 version and DB: 11g 2 realise.
I need to install a Finnish language on EBS, so i licensed Finnish language in EBS.
As mentioned in subject my problem lies within Maintaining multi-lingual tables.
After i run the adadmin and select Maintain multi-lingual tables, everything is right until the last jobs, where 3 workers fail! here is the error
sqlplus -s APPS/***** @/u01/ar121/VIS/apps/apps_st/appl/ibc/12.0.0/sql/IBCNLINS.sql
Connected.
PL/SQL procedure successfully completed.
MESG
LANGUAGE=AMERICAN
PACKAGE=IBC_CITEM_VERSIONS_PKG
SQLERRM=ORA-29875: failed in the execution of the ODCIINDEXINSERT routine
ORA-20000: Oracle Text error:
DRG-50857: oracle error in textindexmethods.ODCIIndexInsert
ORA-20000: Oracle Text error:
DRG-10607: index meta data is not ready yet for queuing DML
DRG-50857: oracle error in drdmlv
ORA-01426: numeric overflow
ORA-30576: ConText Option dictionary loading error
MESG
ORA-06512: at "CTXSYS.DRUE", line 160
ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 752
select to_date('ERROR')
ERROR at line 1:
ORA-01858: a non-numeric character was found where a numeric was expected
And here is the worker fail
ATTENTION: All workers either have failed or are waiting:
FAILED: file IBCNLINS.sql on worker 1.
FAILED: file CSNLINS.sql on worker 2.
FAILED: file IRCNLINS.sql on worker 3.
the worker error is the same on all three workers, just script is changed.
I am pretty new at EBS, and newbie at DB administration too, so don't be so hard on me. Thx
Edited by: 905194 on Dec 30, 2011 4:17 AM
Edited by: 905194 on Dec 30, 2011 4:20 AM
Edited by: 905194 on Dec 30, 2011 4:23 AMWas this instance upgraded from 11i and 10g database ? If so, a step in the upgrade may have been missed. Pl see this MOS Doc
Applying The Patch 6678700 Worker 1 Failed: File Cskbcat.Ldt. ERRORS: ORA-20000: Oracle Text error: DRG-50857: oracle error in textindexmethods.ODCIIndexUpdate, DRG-13201: KOREAN_LEXER is desupported (Doc ID 1333659.1)
If you are using 11.2.0.3, MOS Doc 1386945.1 (Oracle Text release 11.2.0.3.0 mandataroy Patches) may be applicable
HTH
Srini -
Error in creating replication ora-04052
Hi, I am having trouble creating my replication objects in oracle's replication manager. I am using two 8.0.5 db's, and the repman states that it cannot find the view [email protected] I did not see the view when I ran a manual select under sqlplus. The error message says to fix the error, to run a script to create the views. I have seen kglr.sql for 7.3, but I cannot find the proper script for 8.0.5 . Could anyone help me with the proper script name to run get replication working?
Thanks,
Tim
nullHi,
Let me explain..
You have started you session
sqlplus system/pwd @adcrtbsp.sql
Its trying to create here "'f:/oracle/dbf/transaction_table.dbf' "
Try to check the path with folder whether exists or not "/dbf"
Aman.. nice reply... !! I am late :-(
- Pavan Kumar N -
Error in Multi-mapping without BPM
Hi frnds,
I am doing a scenario File-XI-File. I am using the multi-splitting thing in the Message mapping. I have taken care of all the occurance's and "enhanced" thing in the IR and ID resp. I m using SP16. I want to avoid BPM.
But therez sme error cming up. When I check the MONI, its shwing "No messages created from split mapping" and when I test my interface using the Test Configuration in the ID, its shwing error in the Receiver Determination -- "HTTP connection to ABAP Runtime failed. Error: 403 Forbidden"
I have checked most of the blogs and forum suggestions. I have checked the ICF activations as well ...
So, do come back to me with your valuable suggestions, and I will award them points, if they really help me out.
Thanks and regards.
NeeteshHi Neetesh,
<i>
When I check the MONI, its shwing "No messages created from split mapping"</i>
For this, Can you check the source XML. Does it contain Tags like <messages> .. If yes, you need to remove them from your source XML.
If i am right, you have copied the XML from the TEST tab of the message mapping and pasted it in a notepad and saved it without making any changes at all..... Just do as i have mentioned above and i am sure you will no more get that error message in your MONI....
Also go through this weblog which talks about multi-mapping without BPM,
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
Regards,
Abhy -
Hi all,
In bpm, i have used a multi mapping transformation. And I get a error message that ' Cannot produce target element, check whether the source instance is valid' . And my two source messages are valid.
But in message mapping, i have given src1 and src2 as source messages in the same order.
But in the Messages_IN tab of bpm, the order of messages is reversed and it is src2 and src1. Can this be the reason for my mapping error? If so, how to rectify this.
If this is not the case, any more suggestions?Hi Aarthi,
Check your occurence of Target strucuture migth be 1 to 1 or 1 to Unbounded.U r message mapping doesn't populates the data for u r target strucutre.Test u r mapping by giving the valid data( Which data is pass of mapping validations).
In your mapping go to messages tab and check the sequence of your message types are correct or not.If not choose Message types once in correct sequence.
Cheers
Veera
>>> Reward Points,If it is needful. -
Activation error on Multi Provider which has Non-cumulative Cube
Hi,
My company has upgraded the BI 7.0 from 3.5.
It is working fine so far.
But I met the below message and could not activate it when I generate the multi provider which has Non-cumulative Cube.
Define the characteristics of the validity table for non-cumulatives (Message no. R7846)
And then I checked the Single cube but Single cube has no error.
I think this is program error and searched the notes in OSS but could not find.
Does any expert know this issue?
Thank you.Hi lee,
validity slice tables need to be defined for cubes using non cumulative key figures.
In this we need to specify the characteristic combination on which this table has be maintained.
The maintanence can be done from cube change mode, menu bar extras--> maintain non cumulative values.
This table constantly gets updated with validity dates as we upload data.
An report on this can be seen in tcode RSDV.
Naveen.A -
Error in Data Replication from R3
Hi
We are trying to replicate data from R/3 to SRM & getiing an error msg in SRM Inbound que saying "mapping error". Pls guide what is be done. We have already done replication of Basis3, Prod 0 , Prod1.
Pls. guide what could be a possible reason for this.
Regards
--VikasHi,
What is the error log in SLG1?Are you getting this error when replicating the products?I guess you have missed out some entries in the CRM related tables in R/3.Please check that.
BR,
Disha.
Pls reward points for useful answers. -
Error: The multi-part identifier "SourceView.MonitoringClassId" could not be bound
We have a strange error with multiple views under "Configuration Items". First of all with some users the error happens almost every time and there are a few users where this never happens. If it happens the following errors appear in the SCSM
console and the server evtentlog after clicking on a view.
Currently it looks like domain administrators don't face this problem. But SCSM admins and regular SCSM users have the same problem.
Eventlog:
Data Access Layer rejected retry on SqlError:
Request: Composite_Select_Path_00000000-0000-0000-0000-000000000000 -- (ManagedTypeId_SubqueryJoin0_00=880e7a50-afab-74d9-1e74-8a4ca50640b0), (ObjectStatus_4AE3E5FE_BC03_1336_0A45_80BF58DEE57B0=47101e64-237f-12c8-e3f5-ec5a665412fb), (CustomerName_97197BF6_C0B3_78BA_4B4A_A34047F47DCA0=%XName+YName%)
Class: 16
Number: 4104
Message: The multi-part identifier "SourceView.MonitoringClassId" could not be bound.
SCSM Console Error:
Date: 01.07.2014 14:58:05
Application: Service Manager Console
Application Version: 7.5.3079.0
Severity: Error
Message: An error occurred while loading the items.
Microsoft.EnterpriseManagement.UI.ViewFramework.AdvancedListSupportException: The Full adapter threw an exception. See the FullUpdate property to see the exception.
at Microsoft.EnterpriseManagement.UI.ViewFramework.AdvancedListSupportAdapter.DoAction(DataQueryBase query, IList`1 dataSources, IDictionary`2 parameters, IList`1 inputs, String outputCollectionName)
at Microsoft.EnterpriseManagement.UI.DataModel.QueryQueue.StartExecuteQuery(Object sender, ConsoleJobEventArgs e)
at Microsoft.EnterpriseManagement.ServiceManager.UI.Console.ConsoleJobExceptionHandler.ExecuteJob(IComponent component, EventHandler`1 job, Object sender, ConsoleJobEventArgs args)
Is there a way to troubleshoot this or can someone point me in the right direction?
I read that some of those "Full adapter"-errors should be fixed with SCSM R2 UR2. But it didn't help here.Hi,
Did you create any custom views? what is the common views between the end users facing this problem.
Regards
Antoine AL Ibry -
SQLCMD throwing error with multi-line queries
I get the error "Unclosed quotation mark after the character string..." when I pass multi-line queries to SQLCMD via a SQL Agent Job. For example, the following command fails:
SQLCMD -E -S MyServerName -Q "PRINT 'Hello';
PRINT 'World';" -b
SQLCMD seems to be only processing the first line, ignoring that there is more to the query. The actual error in this case is:
Msg 105, Level 15, State 1, Server MyServerName, Line 1
Unclosed quotation mark after the character string 'PRINT 'Hello';\n '.
Msg 102, Level 15, State 1, Server MyServerName, Line 1
Incorrect syntax near 'PRINT 'HELLO';\n'.
Where "\n" is actually an unprintable character for the line terminator.
What am I doing something wrong for passing multi-line statements to SQLCMD?Hi Brandon,
You can use sqlcmd to run a Transact-SQL script file. A Transact-SQL script file is a text file that can contain a combination of Transact-SQL statements, sqlcmd commands, and scripting variables.
To create a simple Transact-SQL script file by using Notepad and save the file as myScript.sql in the C drive.
To run the script file
1. Open a command prompt window.
2. In the Command Prompt window, type: sqlcmd -S myServer\instanceName -i C:\myScript.sql
3. Press ENTER.
TechNet
Subscriber Support
If you are TechNet Subscription user and have any feedback on our support quality, please send
your feedback here.
Thanks,
Maggie
Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread. -
Error while starting replication agent
Hi,
I am getting the following error while starting to replication agent
**** [TimesTen][TimesTen 11.2.2.2.0 ODBC Driver][TimesTen]TT8191: This store (M3*
on TH0986) is not involved in a replication scheme -- file "eeMisc.c", lineno 23
*11, procedure "sbEeGridErrorProc"*
**** ODBC Error = S1000, TimesTen Error = 8191*
Please help me out.This indicates some mismatch between your replication scheme definition and your overall environment (such as machine hostnames, IP addresses etc.).
Can you please provide:
1. Exact TimesTen version (output of ttversion command)
2. DSN settings for the database(s) in question from sys.odbc.ini (or Windows registry)
3. Output of the O/S hostname command on all participating machines (or Windows equivalent)
4. Exact text of CREATE REPLICATION or CREATE ACTIVE STANDBY PAIR statement.
5. Contents of /etc/hosts from all participating machines (if you are using hosts file based name resolution)
Thanks,
Chris -
Oraclient9i.dll error in multi threaded delphi server application
I created a multi threaded server application in delphi using oracle9i and indy server components. When I run my application, I am getting an error "oraclient9i.dll" error when executing my SQL statements. I have check communication between my server application and the client application without using oracle and its working fine, its only when I started executing SQL statements when I got this error.
Can anybody help me with this problem or point me to the right direction on how to resolve this issue.
thanks> I have tried what you suggested. I have created a
seperate TOracleSession on each thread that I create
on the OnConnect event however I am having Problems
using the oraclesession created on the OnExecute
event. Somehow it is still executing the SQL that I
have created on the main form where I first opened an
oraclesession component created on the main form.
It sounds then like the TOracleSession object in the thread is a copy of the one in the main thread/form.
> Do you think that It would work if I create an
instance of the TOracleDatasets and TOracleQuery on
the OnExecute event and also at the same time create
my TOracleSession on this event and continue
processing the data receive from the client server.
I've never used the Indy components for threading. The default TThread class worked just fine for me.
What I used to do is define the session and database objects as privates in my new thread class (let's call it TThreadSQL) - which was subclassed from TThread.
The constructor of this new TThreadSQL class did the following (writing here purely from memory - have not done Delphi for some time now): constructor TThreadSQL.Create( TNSalias, username, password : string );
// constructor is called with the Oracle session connection details
begin
inherited Create; // call the parent class constructor
CreateOracleSession; // call own private method to create an Oracle connection
end;
The CreateOracleSession method would then:
- create a BDE Session (TSession) object
- create a BDE Database (TDatabase) object, using the BDE Oracle native driver and an Oracle TNS alias plus username and password for connection
The destructor would close the connection. The Execute method which is used to fire up the thread, would use a TQuery object (or whatever) to execute a SQL using it owns connection.
Maybe you are looking for
-
I recently upgraded to OSX 10.9.1. Within Mail, I can no longer scroll in any window but the mailbox window. What happened? Not in the message window or the reading pane.
-
Problem with a flash player video on a particular website
Hi, I can't get the video to play correctly on the mypanini website MyPanini All I get is a partial video. I've tried the website on two laptops, an Ipad and a desktop all using different operating systems etc. and it's always the same. My flash pl
-
OK, this problem has been baffling me for two days now... MacBook Pro, Logic 9.1.7, Lion OSX 10.7.4, MOTU Traveler mk3 + MOTU 8Pre - firmware is up to date, CueMix is up to date (1.6) Recording levels of Audio tracks in Logic don't go past about 20%.
-
Canvas/work area image gets stuck, doesn't show any changes made?
For some reason, if I minimize my Photoshop CS4 window for a few minutes and come back to it the canvas image I was working on is stuck for lack of better words. I change the zoom, doesn't do anything, although it shows at the top that I did in fact
-
10.6 mail server shared IMAP folders not working on 10.9 apple mail
So we thought we upgrade a MBPro to 10.9 for some testing and low and behold, we already encountered a serious problem... well, at least for us. We operate a 10.6.8 mail server which also hosts shared IMAP folders, to which team members subscribe on